From 5a580af4e58eb3939d0d8c4b3afdf604e7d0bd9d Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 15 Jan 2024 11:24:40 -0300 Subject: [PATCH] Update package.json and client.ts This commit updates the version number in the package.json file from 0.1.9 to 0.1.10. It also changes the access level of the setTokens() and clearTokens() methods in the client.ts file from private to protected. --- package.json | 2 +- src/client.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 939f24e..b209e2b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tribufu", - "version": "0.1.9", + "version": "0.1.10", "description": "Tribufu JS SDK", "repository": "https://github.com/Tribufu/TribufuJs", "author": "Tribufu ", diff --git a/src/client.ts b/src/client.ts index 3d076a4..45e1df3 100644 --- a/src/client.ts +++ b/src/client.ts @@ -85,7 +85,7 @@ export class TribufuClient extends TribufuApi { * @param refreshToken * @param expiresIn */ - private setTokens(accessToken: string | null, refreshToken?: string | null, expiresIn?: number | null): void { + protected setTokens(accessToken: string | null, refreshToken?: string | null, expiresIn?: number | null): void { this.options.accessToken = accessToken; this.options.refreshToken = refreshToken || null; this.options.expiresIn = expiresIn || null; @@ -94,7 +94,7 @@ export class TribufuClient extends TribufuApi { /** * Clear the tokens. */ - private clearTokens(): void { + protected clearTokens(): void { this.setTokens(null, null, null); }