Socket
Socket
Sign inDemoInstall

qs

Package Overview
Dependencies
Maintainers
1
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 0.5.5 to 0.5.6

2

component.json

@@ -5,3 +5,3 @@ {

"description": "query-string parser / stringifier with nesting support",
"version": "0.5.5",
"version": "0.5.6",
"keywords": ["querystring", "query", "parser"],

@@ -8,0 +8,0 @@ "scripts": ["index.js"],

@@ -51,2 +51,2 @@

var str = qs.stringify({ user: { name: 'Tobi', email: 'tobi@learnboost.com' }});
console.log(str);
console.log(str);
0.5.6 / 2013-04-09
==================
* fix empty key productions in parser
0.5.5 / 2013-03-20

@@ -3,0 +8,0 @@ ==================

@@ -110,2 +110,3 @@

if ('' == key) key = pair, val = '';
if ('' == key) return ret;

@@ -199,2 +200,3 @@ return merge(ret, decode(key), decode(val));

key = keys[i];
if ('' == key) continue;
if (null == obj[key]) {

@@ -201,0 +203,0 @@ ret.push(encodeURIComponent(key) + '=');

{
"name": "qs",
"description": "querystring parser",
"version": "0.5.5",
"version": "0.5.6",
"keywords": ["query string", "parser", "component"],

@@ -6,0 +6,0 @@ "repository": {

@@ -147,2 +147,7 @@

})
})
it('should not produce empty keys', function(){
expect(qs.parse('_r=1&'))
.to.eql({ _r: '1' })
})
})

@@ -20,3 +20,4 @@

{ str: 'foo=bar&bar=baz', obj: {foo: 'bar', bar: 'baz'}},
{ str: 'foo=bar&baz=&raz=', obj: { foo: 'bar', baz: null, raz: undefined }}
{ str: 'foo=bar&baz=&raz=', obj: { foo: 'bar', baz: null, raz: undefined }},
{ str: 'foo=bar', obj: { foo: 'bar', '':'' }}
],

@@ -23,0 +24,0 @@ 'escaping': [

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