url-search-params-polyfill
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -281,2 +281,7 @@ /** | ||
appendTo(dict, decode(value.slice(0, index)), decode(value.slice(index + 1))); | ||
} else { | ||
if (value) { | ||
appendTo(dict, decode(value), ''); | ||
} | ||
} | ||
@@ -283,0 +288,0 @@ } |
{ | ||
"name": "url-search-params-polyfill", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "a simple polyfill for javascript URLSearchParams", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/jerrybendy/url-search-params-polyfill", |
@@ -60,2 +60,8 @@ /** | ||
}); | ||
it('Construct with a key without value', function () { | ||
var a = new URLSearchParams('a&b&c'); | ||
expect(a.get('a')).to.be.equal(''); | ||
expect(a.toString()).to.be.equal('a=&b=&c='); | ||
}); | ||
}); | ||
@@ -112,2 +118,7 @@ | ||
it('GetAll construct with an array value', function () { | ||
var a = new URLSearchParams('a[]=x&a[]=y'); | ||
expect(a.getAll('a[]')).to.be.deep.equal(['x', 'y']); | ||
}); | ||
it('GetAll read data with repetitive key, should return all data with same key', function () { | ||
@@ -114,0 +125,0 @@ var a = getKeyRepeatObj(); |
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
24113
8
624