object-query-string
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -13,14 +13,15 @@ "use strict"; | ||
case "object": | ||
for (var i in input) { | ||
if (typeof input[i] === "object") | ||
arr.push(buildQuery(input[i], prefix ? prefix + "[" + i + "]" : i, opts)); | ||
else if (Array.isArray(input)) | ||
arr.push(prefix | ||
? prefix + "[]=" + _(input[i]) | ||
: _(input[i])); | ||
else | ||
arr.push(prefix | ||
? prefix + "[" + i + "]=" + _(input[i]) | ||
: i + "=" + _(input[i])); | ||
} | ||
for (var i in input) | ||
if (typeof input[i] !== "function") { | ||
if (typeof input[i] === "object") | ||
arr.push(buildQuery(input[i], prefix ? prefix + "[" + i + "]" : i, opts)); | ||
else if (Array.isArray(input)) | ||
arr.push(prefix | ||
? prefix + "[]=" + _(input[i]) | ||
: _(input[i])); | ||
else | ||
arr.push(prefix | ||
? prefix + "[" + i + "]=" + _(input[i]) | ||
: i + "=" + _(input[i])); | ||
} | ||
break; | ||
@@ -27,0 +28,0 @@ case "string": |
{ | ||
"name": "object-query-string", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Stringify objects as URL Query Strings, a lightweight mock of jQuery.param without any dependencies!", | ||
@@ -5,0 +5,0 @@ "author": "ΔO - David Obdržálek <david@deltazero.cz>", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15684
154
0