@vulog/aima-client 1.0.9 → 1.0.10

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.mts CHANGED
@@ -24,6 +24,7 @@ type ClientError = {
24
24
  type Client = AxiosInstance & {
25
25
  refreshToken?: string;
26
26
  signInWithPassword: (username: string, password: string) => Promise<void>;
27
+ clientOptions: ClientOptions;
27
28
  };
28
29
 
29
30
  declare const getClient: (options: ClientOptions) => Client;
package/dist/index.d.ts CHANGED
@@ -24,6 +24,7 @@ type ClientError = {
24
24
  type Client = AxiosInstance & {
25
25
  refreshToken?: string;
26
26
  signInWithPassword: (username: string, password: string) => Promise<void>;
27
+ clientOptions: ClientOptions;
27
28
  };
28
29
 
29
30
  declare const getClient: (options: ClientOptions) => Client;
package/dist/index.js CHANGED
@@ -141,6 +141,7 @@ var getClient = (options) => {
141
141
  },
142
142
  withCredentials: false
143
143
  });
144
+ client.clientOptions = options;
144
145
  const clientCredentialsAuthentification = async () => {
145
146
  const params = new URLSearchParams();
146
147
  params.append("client_id", options.clientId);
package/dist/index.mjs CHANGED
@@ -105,6 +105,7 @@ var getClient = (options) => {
105
105
  },
106
106
  withCredentials: false
107
107
  });
108
+ client.clientOptions = options;
108
109
  const clientCredentialsAuthentification = async () => {
109
110
  const params = new URLSearchParams();
110
111
  params.append("client_id", options.clientId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulog/aima-client",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -33,7 +33,7 @@
33
33
  "typescript": "^5.6.3",
34
34
  "vitest": "^2.1.3"
35
35
  },
36
- "dependencies": {
36
+ "peerDependencies": {
37
37
  "axios": "^1.7.7",
38
38
  "lodash": "^4.17.21",
39
39
  "lru-cache": "^11.0.1"
package/src/getClient.ts CHANGED
@@ -43,6 +43,7 @@ const getClient = (options: ClientOptions): Client => {
43
43
  },
44
44
  withCredentials: false,
45
45
  }) as Client;
46
+ client.clientOptions = options;
46
47
 
47
48
  const clientCredentialsAuthentification = async (): Promise<string> => {
48
49
  const params = new URLSearchParams();
package/src/types.ts CHANGED
@@ -26,4 +26,5 @@ export type ClientError = {
26
26
  export type Client = AxiosInstance & {
27
27
  refreshToken?: string;
28
28
  signInWithPassword: (username: string, password: string) => Promise<void>;
29
+ clientOptions: ClientOptions;
29
30
  };