@redseat/api 0.1.0 → 0.1.1

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.
package/dist/client.d.ts CHANGED
@@ -5,6 +5,7 @@ export interface ClientOptions {
5
5
  server: IServer;
6
6
  getIdToken: () => Promise<string>;
7
7
  refreshThreshold?: number;
8
+ timeout: number;
8
9
  }
9
10
  export declare class RedseatClient {
10
11
  private readonly axios;
package/dist/client.js CHANGED
@@ -9,6 +9,7 @@ export class RedseatClient {
9
9
  this.baseUrl = this.getRegularServerUrl();
10
10
  this.axios = axios.create({
11
11
  baseURL: this.baseUrl,
12
+ timeout: options.timeout ?? 3000
12
13
  });
13
14
  // Detect local URL asynchronously and update axios instance
14
15
  this.detectLocalUrl().then((url) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseat/api",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "TypeScript API client library for interacting with Redseat servers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",