@profplum700/etsy-v3-api-client 2.5.2 → 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/node.cjs CHANGED
@@ -1441,11 +1441,7 @@ class EtsyClient {
1441
1441
  if (value === undefined || value === null)
1442
1442
  continue;
1443
1443
  if (Array.isArray(value)) {
1444
- for (const item of value) {
1445
- if (item === undefined || item === null)
1446
- continue;
1447
- body.append(key, String(item));
1448
- }
1444
+ body.append(key, value.filter(item => item !== undefined && item !== null).map(String).join(','));
1449
1445
  }
1450
1446
  else {
1451
1447
  body.append(key, String(value));