url-search-params-polyfill
Advanced tools
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", |
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
16843
324