whio-api-sdk 1.0.154 → 1.0.155

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ export declare class ApiSDK {
6
6
  private refreshToken;
7
7
  private user;
8
8
  constructor(config?: SDKConfig);
9
- private fetchConfig;
9
+ fetchConfig(url: string): Promise<void>;
10
10
  private getToken;
11
11
  private initialize;
12
12
  private request;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whio-api-sdk",
3
- "version": "1.0.154",
3
+ "version": "1.0.155",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
package/src/sdk/sdk.ts CHANGED
@@ -46,7 +46,7 @@ export class ApiSDK {
46
46
  this.initialize();
47
47
  }
48
48
 
49
- private async fetchConfig(url: string): Promise<void> {
49
+ public async fetchConfig(url: string): Promise<void> {
50
50
  const response = await fetch(url);
51
51
  if (!response.ok) {
52
52
  throw new Error(`Failed to fetch config from ${url}`);