url-search-params-polyfill
Advanced tools
Comparing version 4.0.1 to 5.0.0
@@ -17,6 +17,12 @@ /** | ||
__URLSearchParams__ = "__URLSearchParams__", | ||
// Fix bug in Edge which cannot encode ' &' correctly | ||
encodesAmpersandsCorrectly = nativeURLSearchParams ? (function() { | ||
var ampersandTest = new nativeURLSearchParams(); | ||
ampersandTest.append('s', ' &'); | ||
return ampersandTest.toString() === 's=+%26'; | ||
})() : true, | ||
prototype = URLSearchParamsPolyfill.prototype, | ||
iterable = !!(self.Symbol && self.Symbol.iterator); | ||
if (nativeURLSearchParams && isSupportObjectConstructor && decodesPlusesCorrectly) { | ||
if (nativeURLSearchParams && isSupportObjectConstructor && decodesPlusesCorrectly && encodesAmpersandsCorrectly) { | ||
return; | ||
@@ -23,0 +29,0 @@ } |
{ | ||
"name": "url-search-params-polyfill", | ||
"version": "4.0.1", | ||
"version": "5.0.0", | ||
"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
26471
646