@infisale-client/api 0.0.37 → 1.0.0

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/index.d.ts CHANGED
@@ -21,8 +21,8 @@ interface IApiClient {
21
21
  response: AxiosInterceptorManager<AxiosResponse>;
22
22
  };
23
23
  }
24
- declare class ApiClient implements IApiClient {
25
- baseURL: string;
24
+ export declare class ApiClient implements IApiClient {
25
+ private baseURL;
26
26
  options?: {
27
27
  headers?: Record<string, string>;
28
28
  } | undefined;
@@ -48,5 +48,5 @@ declare class ApiClient implements IApiClient {
48
48
  constructor(baseURL: string, options?: {
49
49
  headers?: Record<string, string>;
50
50
  } | undefined);
51
+ setBaseURL(baseURL: string): void;
51
52
  }
52
- export default ApiClient;
package/dist/index.js CHANGED
@@ -29,6 +29,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
29
29
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.ApiClient = void 0;
32
33
  __exportStar(require("./api/index.js"), exports);
33
34
  const doc = __importStar(require("./api/index.js"));
34
35
  const axios_1 = __importDefault(require("axios"));
@@ -64,5 +65,9 @@ class ApiClient {
64
65
  response: this.api.interceptors.response,
65
66
  };
66
67
  }
68
+ setBaseURL(baseURL) {
69
+ this.baseURL = baseURL;
70
+ this.api.defaults.baseURL = baseURL;
71
+ }
67
72
  }
68
- exports.default = ApiClient;
73
+ exports.ApiClient = ApiClient;
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  export * from "./api/index.mjs";
2
2
  import * as doc from "./api/index.mjs";
3
3
  import Axios from 'axios';
4
- class ApiClient {
4
+ export class ApiClient {
5
5
  constructor(baseURL, options) {
6
6
  this.baseURL = baseURL;
7
7
  this.options = options;
@@ -33,5 +33,8 @@ class ApiClient {
33
33
  response: this.api.interceptors.response,
34
34
  };
35
35
  }
36
+ setBaseURL(baseURL) {
37
+ this.baseURL = baseURL;
38
+ this.api.defaults.baseURL = baseURL;
39
+ }
36
40
  }
37
- export default ApiClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "0.0.37",
3
+ "version": "1.0.0",
4
4
  "description": "api-sdk",
5
5
  "author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
6
6
  "homepage": "https://github.com/infisale/infisale-client#readme",
@@ -30,7 +30,7 @@
30
30
  "bugs": {
31
31
  "url": "https://github.com/infisale/infisale-client/issues"
32
32
  },
33
- "gitHead": "a978f694720293f9ee6c815b3849d0c5363bebc1",
33
+ "gitHead": "c502058d3e92f0863b3d8f9f2b57b40ce9da867a",
34
34
  "devDependencies": {
35
35
  "typescript": "^5.6.2"
36
36
  },