Socket
Socket
Sign inDemoInstall

qs

Package Overview
Dependencies
Maintainers
0
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.0.6 to 0.0.7

5

History.md
0.0.7 / 2011-03-13
==================
* Fixed; handle empty string and `== null` in `qs.parse()` [dmit]
0.0.6 / 2011-02-14

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

6

lib/querystring.js

@@ -12,3 +12,3 @@

exports.version = '0.0.6';
exports.version = '0.0.7';

@@ -24,2 +24,4 @@ /**

exports.parse = function(str) {
if (str == undefined || str == '') return {};
return String(str)

@@ -117,2 +119,2 @@ .split('&')

}
}
}
{
"name": "qs",
"description": "querystring parser",
"version": "0.0.6",
"version": "0.0.7",
"repository": {},

@@ -6,0 +6,0 @@ "author": "TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)",

@@ -11,2 +11,4 @@

'test basics': function(){
qs.parse('0=foo').should.eql({ '0': 'foo' });
qs.parse('foo=c++')

@@ -104,2 +106,8 @@ .should.eql({ foo: 'c ' });

.should.eql({ items: ['bar', 'baz', 'raz'] });
},
'test empty': function(){
qs.parse('').should.eql({});
qs.parse(undefined).should.eql({});
qs.parse(null).should.eql({});
}

@@ -118,2 +126,2 @@

// }
};
};
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