Socket
Socket
Sign inDemoInstall

qs

Package Overview
Dependencies
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qs - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

lib/utils.js

@@ -13,3 +13,7 @@ // Load modules

for (var i = 0, il = source.length; i < il; ++i) {
obj[i] = source[i];
if (source[i] !== undefined &&
source[i] !== null) {
obj[i] = source[i];
}
}

@@ -16,0 +20,0 @@

2

package.json
{
"name": "qs",
"version": "1.0.1",
"version": "1.0.2",
"description": "A querystring parser that supports nesting and arrays, with a depth limit",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/hapijs/qs",

@@ -144,2 +144,8 @@ // Load modules

it('correctly prunes undefined values when converting an array to an object', function (done) {
expect(Qs.parse('a[2]=b&a[99999999]=c')).to.deep.equal({ a: { '2': 'b', '99999999': 'c' } });
done();
});
it('supports malformed uri characters', function (done) {

@@ -146,0 +152,0 @@

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