@vulog/aima-client 1.2.7 → 1.2.9

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
@@ -21,6 +21,7 @@ type ClientOptions = {
21
21
  logResponse?: boolean;
22
22
  store?: Store;
23
23
  onLog?: (...args: any[]) => void;
24
+ userAgent?: string;
24
25
  };
25
26
  type ClientError = {
26
27
  formattedError: {
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ type ClientOptions = {
21
21
  logResponse?: boolean;
22
22
  store?: Store;
23
23
  onLog?: (...args: any[]) => void;
24
+ userAgent?: string;
24
25
  };
25
26
  type ClientError = {
26
27
  formattedError: {
package/dist/index.js CHANGED
@@ -160,7 +160,8 @@ var getClient = (options) => {
160
160
  headers: {
161
161
  "Cache-Control": "no-cache",
162
162
  "Content-Type": "application/json",
163
- "X-Api-Key": options.apiKey
163
+ "X-Api-Key": options.apiKey,
164
+ "User-Agent": options.userAgent ?? `aima-node/${"1.2.8"} ${options.fleetId}`
164
165
  },
165
166
  withCredentials: false
166
167
  });
package/dist/index.mjs CHANGED
@@ -124,7 +124,8 @@ var getClient = (options) => {
124
124
  headers: {
125
125
  "Cache-Control": "no-cache",
126
126
  "Content-Type": "application/json",
127
- "X-Api-Key": options.apiKey
127
+ "X-Api-Key": options.apiKey,
128
+ "User-Agent": options.userAgent ?? `aima-node/${"1.2.8"} ${options.fleetId}`
128
129
  },
129
130
  withCredentials: false
130
131
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulog/aima-client",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",