Comparing version 1.0.1 to 1.0.2
@@ -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 @@ |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23914
500