@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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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
|
});
|