form-urlencoded
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,5 +0,13 @@ | ||
var isArray = require('util').isArray; | ||
// Filename: formurlencoded.js | ||
// Timestamp: 2013.10.06-21:36:29 (last modified) | ||
// Author(s): Bumblehead (www.bumblehead.com) | ||
var formUrlencoded = module.exports = { | ||
if (!Array.isArray) { | ||
Array.isArray = function (vArg) { | ||
return Object.prototype.toString.call(vArg) === "[object Array]"; | ||
}; | ||
} | ||
var formurlencoded = ((typeof module === 'object') ? module : {}).exports = { | ||
// input: {one:1,two:2} return: '[one]=1&[two]-2' | ||
@@ -42,3 +50,3 @@ encode : function (data) { | ||
f = encodeURIComponent(name) + '=' + value; | ||
} else if (isArray(value)) { | ||
} else if (Array.isArray(value)) { | ||
f = getArrNestVals(name, value); | ||
@@ -45,0 +53,0 @@ } else if (type === 'object') { |
{ | ||
"name": "form-urlencoded", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
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
14183
144