@sp-api-sdk/product-type-definitions-api-2020-09-01 4.0.15 → 4.0.16
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.
|
@@ -90,6 +90,7 @@ exports.setSearchParams = setSearchParams;
|
|
|
90
90
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
91
91
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
92
92
|
*/
|
|
93
|
+
// @ts-ignore
|
|
93
94
|
const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
94
95
|
if (value instanceof Set) {
|
|
95
96
|
return Array.from(value);
|
|
@@ -81,6 +81,7 @@ export const setSearchParams = function (url, ...objects) {
|
|
|
81
81
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
82
82
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
83
83
|
*/
|
|
84
|
+
// @ts-ignore
|
|
84
85
|
export const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
85
86
|
if (value instanceof Set) {
|
|
86
87
|
return Array.from(value);
|
|
@@ -28,7 +28,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
|
28
28
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
29
29
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
30
30
|
*/
|
|
31
|
-
export declare const replaceWithSerializableTypeIfNeeded: (key:
|
|
31
|
+
export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
|
|
32
32
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
33
33
|
export declare const toPathString: (url: URL) => string;
|
|
34
34
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/product-type-definitions-api-2020-09-01",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the Product Type Definitions API Use Case Guide.",
|
|
5
|
-
"version": "4.0.
|
|
5
|
+
"version": "4.0.16",
|
|
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.13.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.30",
|
|
22
|
+
"axios": "^1.13.6"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"product type definitions api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
|
|
44
44
|
}
|