@sp-api-sdk/vendor-direct-fulfillment-inventory-api-v1 4.0.16 → 4.0.17

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.
@@ -41,7 +41,7 @@ const VendorDirectFulfillmentInventoryApiAxiosParamCreator = function (configura
41
41
  // verify required parameter 'body' is not null or undefined
42
42
  (0, common_1.assertParamExists)('submitInventoryUpdate', 'body', body);
43
43
  const localVarPath = `/vendor/directFulfillment/inventory/v1/warehouses/{warehouseId}/items`
44
- .replace(`{${"warehouseId"}}`, encodeURIComponent(String(warehouseId)));
44
+ .replace('{warehouseId}', encodeURIComponent(String(warehouseId)));
45
45
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
46
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
47
47
  let baseOptions;
@@ -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 = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
95
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
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;
@@ -35,7 +35,7 @@ export const VendorDirectFulfillmentInventoryApiAxiosParamCreator = function (co
35
35
  // verify required parameter 'body' is not null or undefined
36
36
  assertParamExists('submitInventoryUpdate', 'body', body);
37
37
  const localVarPath = `/vendor/directFulfillment/inventory/v1/warehouses/{warehouseId}/items`
38
- .replace(`{${"warehouseId"}}`, encodeURIComponent(String(warehouseId)));
38
+ .replace('{warehouseId}', encodeURIComponent(String(warehouseId)));
39
39
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
40
40
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41
41
  let baseOptions;
@@ -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 = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
92
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
91
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
92
+ return mime !== null && jsonMime.test(mime);
93
93
  }
94
94
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/vendor-direct-fulfillment-inventory-api-v1",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor's inventory updates.",
5
- "version": "4.0.16",
5
+ "version": "4.0.17",
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.30",
22
- "axios": "^1.13.6"
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
  "vendor direct fulfillment inventory api"
42
42
  ],
43
- "gitHead": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }