Comparing version 0.5.1 to 0.5.2
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 @@ ================== |
@@ -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')) | ||
}) |
387567
12816