Comparing version 2.3.0 to 2.3.1
@@ -64,2 +64,8 @@ // Load modules | ||
if (typeof obj !== 'object' || | ||
obj === null) { | ||
return ''; | ||
} | ||
var objKeys = Object.keys(obj); | ||
@@ -66,0 +72,0 @@ for (var i = 0, il = objKeys.length; i < il; ++i) { |
{ | ||
"name": "qs", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "A querystring parser that supports nesting and arrays, with a depth limit", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/hapijs/qs", |
@@ -91,2 +91,11 @@ // Load modules | ||
it('returns an empty string for invalid input', function (done) { | ||
expect(Qs.stringify(undefined)).to.equal(''); | ||
expect(Qs.stringify(false)).to.equal(''); | ||
expect(Qs.stringify(null)).to.equal(''); | ||
expect(Qs.stringify('')).to.equal(''); | ||
done(); | ||
}); | ||
it('stringifies an object with an empty object as a child', function (done) { | ||
@@ -93,0 +102,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
37975
678