@profplum700/etsy-v3-api-client 2.5.1 → 2.5.3
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/.tsbuildinfo +1 -1
- package/dist/browser.esm.js +3 -7
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +1 -1
- package/dist/browser.umd.js.map +1 -1
- package/dist/index.cjs +3 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +3 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8517 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.js +1180 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/index.umd.min.js +2 -0
- package/dist/index.umd.min.js.map +1 -0
- package/dist/node.cjs +3 -7
- package/dist/node.cjs.map +1 -1
- package/dist/node.esm.js +3 -7
- package/dist/node.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/browser.esm.js
CHANGED
|
@@ -1401,11 +1401,7 @@ class EtsyClient {
|
|
|
1401
1401
|
if (value === undefined || value === null)
|
|
1402
1402
|
continue;
|
|
1403
1403
|
if (Array.isArray(value)) {
|
|
1404
|
-
|
|
1405
|
-
if (item === undefined || item === null)
|
|
1406
|
-
continue;
|
|
1407
|
-
body.append(key, String(item));
|
|
1408
|
-
}
|
|
1404
|
+
body.append(key, value.filter(item => item !== undefined && item !== null).map(String).join(','));
|
|
1409
1405
|
}
|
|
1410
1406
|
else {
|
|
1411
1407
|
body.append(key, String(value));
|
|
@@ -1910,8 +1906,8 @@ class EtsyClient {
|
|
|
1910
1906
|
async updateListingProperty(params) {
|
|
1911
1907
|
const { shopId, listingId, propertyId, valueIds, values, scaleId } = params;
|
|
1912
1908
|
const body = new URLSearchParams();
|
|
1913
|
-
|
|
1914
|
-
|
|
1909
|
+
body.append('value_ids', valueIds.map(id => id.toString()).join(','));
|
|
1910
|
+
body.append('values', values.join(','));
|
|
1915
1911
|
if (scaleId !== undefined) {
|
|
1916
1912
|
body.append('scale_id', scaleId.toString());
|
|
1917
1913
|
}
|