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

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.1 to 0.5.2

5

History.md
0.5.2 / 2012-11-14
==================
* fix uri encoding of non-plain object string values
0.5.1 / 2012-09-18

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

4

lib/querystring.js

@@ -146,3 +146,3 @@

} else {
return prefix + '=' + obj;
return prefix + '=' + encodeURIComponent(String(obj));
}

@@ -178,3 +178,3 @@ };

for (var i = 0; i < arr.length; i++) {
ret.push(stringify(arr[i], prefix + '['+i+']'));
ret.push(stringify(arr[i], prefix + '[' + i + ']'));
}

@@ -181,0 +181,0 @@ return ret.join('&');

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

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

@@ -9,2 +9,4 @@

var date = new Date(0);
var str_identities = {

@@ -55,2 +57,5 @@ 'basics': [

{ str: 'limit=1', obj: { limit: 1 }}
],
'others': [
{ str: 'at=' + encodeURIComponent(date), obj: { at: date } }
]

@@ -75,2 +80,3 @@ };

it('should support numbers', test('numbers'))
it('should support others', test('others'))
})
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