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.
This commit is contained in:
Guilherme Werner
2024-01-15 11:24:40 -03:00
parent 5125fc734b
commit 5a580af4e5
2 changed files with 3 additions and 3 deletions

View File

@ -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 <contact@Tribufu.com>",

View File

@ -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);
}