abbot-http-client 0.0.7 → 0.0.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.cjs +12 -6
- package/dist/index.js +12 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -289,12 +289,14 @@ var CoreHttp = class {
|
|
|
289
289
|
const user = param1();
|
|
290
290
|
axios2 = this.createAxiosInstance({
|
|
291
291
|
key: user?.key,
|
|
292
|
-
token: user?.token
|
|
292
|
+
token: user?.token,
|
|
293
|
+
trackingId: user?.trackingId
|
|
293
294
|
});
|
|
294
295
|
} else {
|
|
295
296
|
axios2 = this.createAxiosInstance({
|
|
296
297
|
key: param1?.key,
|
|
297
|
-
token: param1?.token
|
|
298
|
+
token: param1?.token,
|
|
299
|
+
trackingId: param1?.trackingId
|
|
298
300
|
});
|
|
299
301
|
}
|
|
300
302
|
const response = await axios2.post(url, param);
|
|
@@ -306,12 +308,14 @@ var CoreHttp = class {
|
|
|
306
308
|
const user = param1();
|
|
307
309
|
axios2 = this.createAxiosInstance({
|
|
308
310
|
key: user?.key,
|
|
309
|
-
token: user?.token
|
|
311
|
+
token: user?.token,
|
|
312
|
+
trackingId: user?.trackingId
|
|
310
313
|
});
|
|
311
314
|
} else {
|
|
312
315
|
axios2 = this.createAxiosInstance({
|
|
313
316
|
key: param1?.key,
|
|
314
|
-
token: param1?.token
|
|
317
|
+
token: param1?.token,
|
|
318
|
+
trackingId: param1?.trackingId
|
|
315
319
|
});
|
|
316
320
|
}
|
|
317
321
|
const response = await axios2.get(url);
|
|
@@ -323,12 +327,14 @@ var CoreHttp = class {
|
|
|
323
327
|
const user = param1();
|
|
324
328
|
axios2 = this.createAxiosInstance({
|
|
325
329
|
key: user?.key,
|
|
326
|
-
token: user?.token
|
|
330
|
+
token: user?.token,
|
|
331
|
+
trackingId: user?.trackingId
|
|
327
332
|
});
|
|
328
333
|
} else {
|
|
329
334
|
axios2 = this.createAxiosInstance({
|
|
330
335
|
key: param1?.key,
|
|
331
|
-
token: param1?.token
|
|
336
|
+
token: param1?.token,
|
|
337
|
+
trackingId: param1?.trackingId
|
|
332
338
|
});
|
|
333
339
|
}
|
|
334
340
|
const formData = new FormData();
|
package/dist/index.js
CHANGED
|
@@ -252,12 +252,14 @@ var CoreHttp = class {
|
|
|
252
252
|
const user = param1();
|
|
253
253
|
axios2 = this.createAxiosInstance({
|
|
254
254
|
key: user?.key,
|
|
255
|
-
token: user?.token
|
|
255
|
+
token: user?.token,
|
|
256
|
+
trackingId: user?.trackingId
|
|
256
257
|
});
|
|
257
258
|
} else {
|
|
258
259
|
axios2 = this.createAxiosInstance({
|
|
259
260
|
key: param1?.key,
|
|
260
|
-
token: param1?.token
|
|
261
|
+
token: param1?.token,
|
|
262
|
+
trackingId: param1?.trackingId
|
|
261
263
|
});
|
|
262
264
|
}
|
|
263
265
|
const response = await axios2.post(url, param);
|
|
@@ -269,12 +271,14 @@ var CoreHttp = class {
|
|
|
269
271
|
const user = param1();
|
|
270
272
|
axios2 = this.createAxiosInstance({
|
|
271
273
|
key: user?.key,
|
|
272
|
-
token: user?.token
|
|
274
|
+
token: user?.token,
|
|
275
|
+
trackingId: user?.trackingId
|
|
273
276
|
});
|
|
274
277
|
} else {
|
|
275
278
|
axios2 = this.createAxiosInstance({
|
|
276
279
|
key: param1?.key,
|
|
277
|
-
token: param1?.token
|
|
280
|
+
token: param1?.token,
|
|
281
|
+
trackingId: param1?.trackingId
|
|
278
282
|
});
|
|
279
283
|
}
|
|
280
284
|
const response = await axios2.get(url);
|
|
@@ -286,12 +290,14 @@ var CoreHttp = class {
|
|
|
286
290
|
const user = param1();
|
|
287
291
|
axios2 = this.createAxiosInstance({
|
|
288
292
|
key: user?.key,
|
|
289
|
-
token: user?.token
|
|
293
|
+
token: user?.token,
|
|
294
|
+
trackingId: user?.trackingId
|
|
290
295
|
});
|
|
291
296
|
} else {
|
|
292
297
|
axios2 = this.createAxiosInstance({
|
|
293
298
|
key: param1?.key,
|
|
294
|
-
token: param1?.token
|
|
299
|
+
token: param1?.token,
|
|
300
|
+
trackingId: param1?.trackingId
|
|
295
301
|
});
|
|
296
302
|
}
|
|
297
303
|
const formData = new FormData();
|