Socket
Socket
Sign inDemoInstall

url-search-params-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-search-params-polyfill - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

LICENSE

5

index.js

@@ -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 @@ }

2

package.json
{
"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();

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