json-form-data
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"name": "json-form-data", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "A library to convert javascript objects into form data.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,3 +0,22 @@ | ||
(function() { | ||
(function (root, factory) { | ||
if (typeof define === 'function' && define.amd) { | ||
define([], function() { | ||
return (root.jsonToFormData = factory()); | ||
}); | ||
} else if (typeof module === 'object' && module.exports) { | ||
module.exports = (root.jsonToFormData = factory()); | ||
} else { | ||
root.jsonToFormData = factory(); | ||
} | ||
}(this, function() { | ||
console.log(arguments); | ||
function isArray(val) { | ||
@@ -13,3 +32,3 @@ | ||
window.jsonToFormData = function(jsonObject, parentKey, carryFormData) { | ||
return function(jsonObject, parentKey, carryFormData) { | ||
@@ -58,2 +77,2 @@ var formData = carryFormData || new FormData(); | ||
}; | ||
})(); | ||
})); |
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
11331
224