Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

object-query-string

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-query-string - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

25

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc