idosell 0.4.4 → 0.4.11
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/README.md +2 -0
- package/changelog.md +6 -0
- package/dist/app.d.ts +6 -1
- package/dist/gateways.d.ts +315 -313
- package/dist/helpers.js +17 -0
- package/dist/index.js +1 -1
- package/dist/methods/postPackagesLabels.js +5 -0
- package/dist/methods/putProductsAttachments.js +1 -1
- package/dist/methods/putProductsMarketingZones.js +2 -2
- package/dist/reqparams.d.ts +3271 -0
- package/dist/request.js +4 -1
- package/dist/responses.d.ts +7024 -5370
- package/package.json +2 -2
- package/tests/postPackagesLabels.test.js +10 -0
- package/tests/putProductsAttachments.test.js +2 -2
- package/tests/putProductsMarketingZones.test.js +2 -2
- package/tests/searchProductsCategoriesIdosell.test.js +15 -0
package/dist/request.js
CHANGED
|
@@ -180,7 +180,10 @@ export const checkParams = (request) => {
|
|
|
180
180
|
const array = request.params[request.appendable.arrayNode];
|
|
181
181
|
const last = array[array.length - 1];
|
|
182
182
|
if (typeof last === 'object' && Object.keys(last).length === 0) {
|
|
183
|
-
array.
|
|
183
|
+
if (array.length === 1)
|
|
184
|
+
delete request.params[request.appendable.arrayNode];
|
|
185
|
+
else
|
|
186
|
+
array.pop();
|
|
184
187
|
}
|
|
185
188
|
}
|
|
186
189
|
processRequired(request);
|