vtb-appit 0.1.34 → 0.1.36
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/appit.js +2 -0
- package/package.json +1 -1
package/appit.js
CHANGED
|
@@ -1440,6 +1440,8 @@ class Appit {
|
|
|
1440
1440
|
if(data && ((data.hasOwnProperty('file') && data.file) || (data.hasOwnProperty('files') && data.files)) && method.toLowerCase() === 'post') {
|
|
1441
1441
|
return this.handleWithFormData(path, data);
|
|
1442
1442
|
}
|
|
1443
|
+
if(data && data.hasOwnProperty('file')) delete data.file;
|
|
1444
|
+
if(data && data.hasOwnProperty('files')) delete data.files;
|
|
1443
1445
|
|
|
1444
1446
|
const payload = (data) ? JSON.stringify(data).toString("utf8") : false;
|
|
1445
1447
|
if(!lang) lang = 'nl';
|