@sp-api-sdk/fulfillment-inbound-api-v0
Advanced tools
Comparing version 1.9.4 to 1.9.5
@@ -83,2 +83,20 @@ "use strict"; | ||
exports.setOAuthToObject = setOAuthToObject; | ||
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") { | ||
if (typeof parameter === "object") { | ||
if (Array.isArray(parameter)) { | ||
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); | ||
} | ||
else { | ||
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)); | ||
} | ||
} | ||
else { | ||
if (urlSearchParams.has(key)) { | ||
urlSearchParams.append(key, parameter); | ||
} | ||
else { | ||
urlSearchParams.set(key, parameter); | ||
} | ||
} | ||
} | ||
/** | ||
@@ -90,15 +108,3 @@ * | ||
const searchParams = new URLSearchParams(url.search); | ||
for (const object of objects) { | ||
for (const key in object) { | ||
if (Array.isArray(object[key])) { | ||
searchParams.delete(key); | ||
for (const item of object[key]) { | ||
searchParams.append(key, item); | ||
} | ||
} | ||
else { | ||
searchParams.set(key, object[key]); | ||
} | ||
} | ||
} | ||
setFlattenedQueryParams(searchParams, objects); | ||
url.search = searchParams.toString(); | ||
@@ -105,0 +111,0 @@ }; |
@@ -75,2 +75,20 @@ /* tslint:disable */ | ||
}; | ||
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") { | ||
if (typeof parameter === "object") { | ||
if (Array.isArray(parameter)) { | ||
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); | ||
} | ||
else { | ||
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)); | ||
} | ||
} | ||
else { | ||
if (urlSearchParams.has(key)) { | ||
urlSearchParams.append(key, parameter); | ||
} | ||
else { | ||
urlSearchParams.set(key, parameter); | ||
} | ||
} | ||
} | ||
/** | ||
@@ -82,15 +100,3 @@ * | ||
const searchParams = new URLSearchParams(url.search); | ||
for (const object of objects) { | ||
for (const key in object) { | ||
if (Array.isArray(object[key])) { | ||
searchParams.delete(key); | ||
for (const item of object[key]) { | ||
searchParams.append(key, item); | ||
} | ||
} | ||
else { | ||
searchParams.set(key, object[key]); | ||
} | ||
} | ||
} | ||
setFlattenedQueryParams(searchParams, objects); | ||
url.search = searchParams.toString(); | ||
@@ -97,0 +103,0 @@ }; |
@@ -5,3 +5,3 @@ { | ||
"description": "The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.", | ||
"version": "1.9.4", | ||
"version": "1.9.5", | ||
"main": "dist/cjs/index.js", | ||
@@ -30,3 +30,3 @@ "module": "dist/es/index.js", | ||
"dependencies": { | ||
"@sp-api-sdk/common": "^1.9.16", | ||
"@sp-api-sdk/common": "^1.9.17", | ||
"axios": "^0.27.2" | ||
@@ -56,3 +56,3 @@ }, | ||
}, | ||
"gitHead": "e5aa87a6384048c9f49b97db7d5d7aca34927853" | ||
"gitHead": "07823635b37c2e82b4b6ad962d8ef4b7318a011c" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
587693
11380
104
3
5
1
19
150
+ Added@aws-sdk/client-sso@3.712.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.712.0(transitive)
+ Added@aws-sdk/client-sts@3.712.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.712.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.712.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.712.0(transitive)
+ Added@aws-sdk/util-user-agent-node@3.712.0(transitive)
+ Addedaws4-axios@3.3.10(transitive)
+ Addedis-core-module@2.16.0(transitive)
+ Addedresolve@1.22.9(transitive)
- Removed@aws-sdk/client-sso@3.709.0(transitive)
- Removed@aws-sdk/client-sso-oidc@3.709.0(transitive)
- Removed@aws-sdk/client-sts@3.709.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.709.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.709.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.709.0(transitive)
- Removed@aws-sdk/util-user-agent-node@3.709.0(transitive)
- Removedaws4-axios@3.3.9(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedresolve@1.22.8(transitive)
Updated@sp-api-sdk/common@^1.9.17