@sp-api-sdk/easy-ship-api-2022-03-23 4.3.11 → 4.3.12
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/cjs/api-model/configuration.js +2 -2
- package/dist/cjs/api-model/models/code.js +1 -1
- package/dist/cjs/api-model/models/handover-method.js +1 -1
- package/dist/cjs/api-model/models/label-format.js +1 -1
- package/dist/cjs/api-model/models/package-status.js +1 -1
- package/dist/cjs/api-model/models/unit-of-length.js +1 -1
- package/dist/cjs/api-model/models/unit-of-weight.js +1 -1
- package/dist/es/api-model/configuration.js +2 -2
- package/dist/es/api-model/models/code.js +1 -1
- package/dist/es/api-model/models/handover-method.js +1 -1
- package/dist/es/api-model/models/label-format.js +1 -1
- package/dist/es/api-model/models/package-status.js +1 -1
- package/dist/es/api-model/models/unit-of-length.js +1 -1
- package/dist/es/api-model/models/unit-of-weight.js +1 -1
- package/package.json +4 -4
|
@@ -91,8 +91,8 @@ class Configuration {
|
|
|
91
91
|
* @return True if the given MIME is JSON, false otherwise.
|
|
92
92
|
*/
|
|
93
93
|
isJsonMime(mime) {
|
|
94
|
-
const jsonMime =
|
|
95
|
-
return mime !== null &&
|
|
94
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
95
|
+
return mime !== null && jsonMime.test(mime);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
exports.Configuration = Configuration;
|
|
@@ -28,5 +28,5 @@ exports.Code = {
|
|
|
28
28
|
InvalidOrderState: 'InvalidOrderState',
|
|
29
29
|
RegionNotSupported: 'RegionNotSupported',
|
|
30
30
|
OrderNotEligibleForRescheduling: 'OrderNotEligibleForRescheduling',
|
|
31
|
-
InternalServerError: 'InternalServerError'
|
|
31
|
+
InternalServerError: 'InternalServerError',
|
|
32
32
|
};
|
|
@@ -88,7 +88,7 @@ export class Configuration {
|
|
|
88
88
|
* @return True if the given MIME is JSON, false otherwise.
|
|
89
89
|
*/
|
|
90
90
|
isJsonMime(mime) {
|
|
91
|
-
const jsonMime =
|
|
92
|
-
return mime !== null &&
|
|
91
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
92
|
+
return mime !== null && jsonMime.test(mime);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -25,5 +25,5 @@ export const Code = {
|
|
|
25
25
|
InvalidOrderState: 'InvalidOrderState',
|
|
26
26
|
RegionNotSupported: 'RegionNotSupported',
|
|
27
27
|
OrderNotEligibleForRescheduling: 'OrderNotEligibleForRescheduling',
|
|
28
|
-
InternalServerError: 'InternalServerError'
|
|
28
|
+
InternalServerError: 'InternalServerError',
|
|
29
29
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/easy-ship-api-2022-03-23",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to Marketplace support.",
|
|
5
|
-
"version": "4.3.
|
|
5
|
+
"version": "4.3.12",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.31",
|
|
22
|
+
"axios": "^1.15.2"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"easy ship api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|