object-to-formdata
Advanced tools
Comparing version 2.1.2 to 2.2.0
@@ -1,2 +0,2 @@ | ||
function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}var e=function(n){return void 0===n},t=function(n){return Array.isArray(n)},o=function(n){return n&&"number"==typeof n.size&&"string"==typeof n.type&&"function"==typeof n.slice};export default function i(r,f,u,s){if((f=f||{}).indices=!e(f.indices)&&f.indices,f.nullsAsUndefineds=!e(f.nullsAsUndefineds)&&f.nullsAsUndefineds,u=u||new FormData,e(r))return u;if(null===r)f.nullsAsUndefineds||u.append(s,"");else if(t(r))if(r.length)r.forEach(function(n,e){var t=s+"["+(f.indices?e:"")+"]";i(n,f,u,t)});else{var l=s+"[]";u.append(l,"")}else!function(n){return n instanceof Date}(r)?!function(n){return n===Object(n)}(r)||function(e){return o(e)&&"string"==typeof e.name&&("object"===n(e.lastModifiedDate)||"number"==typeof e.lastModified)}(r)||o(r)?u.append(s,r):Object.keys(r).forEach(function(n){var e=r[n];if(t(e))for(;n.length>2&&n.lastIndexOf("[]")===n.length-2;)n=n.substring(0,n.length-2);i(e,f,u,s?s+"["+n+"]":n)}):u.append(s,r.toISOString());return u} | ||
function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}var e=function(n){return void 0===n},t=function(n){return Array.isArray(n)},o=function(n){return n&&"number"==typeof n.size&&"string"==typeof n.type&&"function"==typeof n.slice};export default function i(r,f,u,s){if((f=f||{}).indices=!e(f.indices)&&f.indices,f.nullsAsUndefineds=!e(f.nullsAsUndefineds)&&f.nullsAsUndefineds,u=u||new FormData,e(r))return u;if(null===r)f.nullsAsUndefineds||u.append(s,"");else if(t(r))if(r.length)r.forEach((function(n,e){var t=s+"["+(f.indices?e:"")+"]";i(n,f,u,t)}));else{var l=s+"[]";u.append(l,"")}else!function(n){return n instanceof Date}(r)?!function(n){return n===Object(n)}(r)||function(e){return o(e)&&"string"==typeof e.name&&("object"===n(e.lastModifiedDate)||"number"==typeof e.lastModified)}(r)||o(r)?u.append(s,r):Object.keys(r).forEach((function(n){var e=r[n];if(t(e))for(;n.length>2&&n.lastIndexOf("[]")===n.length-2;)n=n.substring(0,n.length-2);i(e,f,u,s?s+"["+n+"]":n)})):u.append(s,r.toISOString());return u} | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n=n||self).objectToFormData=e()}(this,function(){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}var e=function(n){return void 0===n},t=function(n){return Array.isArray(n)},o=function(n){return n&&"number"==typeof n.size&&"string"==typeof n.type&&"function"==typeof n.slice};return function i(f,r,u,s){if((r=r||{}).indices=!e(r.indices)&&r.indices,r.nullsAsUndefineds=!e(r.nullsAsUndefineds)&&r.nullsAsUndefineds,u=u||new FormData,e(f))return u;if(null===f)r.nullsAsUndefineds||u.append(s,"");else if(t(f))if(f.length)f.forEach(function(n,e){var t=s+"["+(r.indices?e:"")+"]";i(n,r,u,t)});else{var c=s+"[]";u.append(c,"")}else!function(n){return n instanceof Date}(f)?!function(n){return n===Object(n)}(f)||function(e){return o(e)&&"string"==typeof e.name&&("object"===n(e.lastModifiedDate)||"number"==typeof e.lastModified)}(f)||o(f)?u.append(s,f):Object.keys(f).forEach(function(n){var e=f[n];if(t(e))for(;n.length>2&&n.lastIndexOf("[]")===n.length-2;)n=n.substring(0,n.length-2);i(e,r,u,s?s+"["+n+"]":n)}):u.append(s,f.toISOString());return u}}); | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n=n||self).objectToFormData=e()}(this,(function(){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}var e=function(n){return void 0===n},t=function(n){return Array.isArray(n)},o=function(n){return n&&"number"==typeof n.size&&"string"==typeof n.type&&"function"==typeof n.slice};return function i(f,r,u,s){if((r=r||{}).indices=!e(r.indices)&&r.indices,r.nullsAsUndefineds=!e(r.nullsAsUndefineds)&&r.nullsAsUndefineds,u=u||new FormData,e(f))return u;if(null===f)r.nullsAsUndefineds||u.append(s,"");else if(t(f))if(f.length)f.forEach((function(n,e){var t=s+"["+(r.indices?e:"")+"]";i(n,r,u,t)}));else{var c=s+"[]";u.append(c,"")}else!function(n){return n instanceof Date}(f)?!function(n){return n===Object(n)}(f)||function(e){return o(e)&&"string"==typeof e.name&&("object"===n(e.lastModifiedDate)||"number"==typeof e.lastModified)}(f)||o(f)?u.append(s,f):Object.keys(f).forEach((function(n){var e=f[n];if(t(e))for(;n.length>2&&n.lastIndexOf("[]")===n.length-2;)n=n.substring(0,n.length-2);i(e,r,u,s?s+"["+n+"]":n)})):u.append(s,f.toISOString());return u}})); | ||
//# sourceMappingURL=umd.js.map |
@@ -1,4 +0,2 @@ | ||
export = objectToFormData; | ||
declare function objectToFormData( | ||
export declare function objectToFormData( | ||
obj: any, | ||
@@ -5,0 +3,0 @@ cfg?: { |
{ | ||
"name": "object-to-formdata", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"repository": "therealparmesh/object-to-formdata", | ||
@@ -23,10 +23,10 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@babel/core": "7.5.5", | ||
"@babel/preset-env": "7.5.5", | ||
"@babel/core": "7.7.5", | ||
"@babel/preset-env": "7.7.6", | ||
"jest": "24.9.0", | ||
"npm-run-all": "4.1.5", | ||
"rollup": "1.20.3", | ||
"rollup": "1.27.11", | ||
"rollup-plugin-babel": "4.3.3", | ||
"rollup-plugin-terser": "5.1.1", | ||
"standard": "14.1.0" | ||
"rollup-plugin-terser": "5.1.3", | ||
"standard": "14.3.1" | ||
}, | ||
@@ -33,0 +33,0 @@ "babel": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
21468
14
298