Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 8.2.1 to 8.2.2

11

index.js

@@ -22,3 +22,3 @@ /**!

decodesPlusesCorrectly = nativeURLSearchParams && (new nativeURLSearchParams('s=%2B').get('s') === '+'),
isSupportSize = nativeURLSearchParams.prototype.hasOwnProperty('size'),
isSupportSize = 'size' in nativeURLSearchParams.prototype,
__URLSearchParams__ = "__URLSearchParams__",

@@ -248,5 +248,8 @@ // Fix bug in Edge which cannot encode ' &' correctly

get: function () {
var that = this
return Object.keys(this[__URLSearchParams__]).reduce(function (prev, cur) {
return prev + that[__URLSearchParams__][cur].length;
var dict = parseToDict(this.toString())
if (USPProto === this) {
throw new TypeError('Illegal invocation at URLSearchParams.invokeGetter')
}
return Object.keys(dict).reduce(function (prev, cur) {
return prev + dict[cur].length;
}, 0);

@@ -253,0 +256,0 @@ }

{
"name": "url-search-params-polyfill",
"version": "8.2.1",
"version": "8.2.2",
"description": "a simple polyfill for javascript URLSearchParams",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/jerrybendy/url-search-params-polyfill",

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