url-search-params-polyfill
Advanced tools
Comparing version 8.2.3 to 8.2.4
11
index.js
@@ -136,5 +136,4 @@ /**! | ||
// There is a bug in Safari 10.1 and `Proxy`ing it is not enough. | ||
var forSureUsePolyfill = !decodesPlusesCorrectly; | ||
var useProxy = (!forSureUsePolyfill && nativeURLSearchParams && !isSupportObjectConstructor && self.Proxy); | ||
var propValue; | ||
var useProxy = self.Proxy && nativeURLSearchParams && (!decodesPlusesCorrectly || !encodesAmpersandsCorrectly || !isSupportObjectConstructor || !isSupportSize); | ||
var propValue; | ||
if (useProxy) { | ||
@@ -152,2 +151,3 @@ // Safari 10.0 doesn't support Proxy, so it won't extend URLSearchParams on safari 10.0 | ||
} | ||
/* | ||
@@ -164,2 +164,7 @@ * Apply polyfill to global object and append other prototype into it | ||
// Fix #54, `toString.call(new URLSearchParams)` will return correct value when Proxy not used | ||
if (!useProxy && self.Symbol) { | ||
USPProto[self.Symbol.toStringTag] = 'URLSearchParams'; | ||
} | ||
/** | ||
@@ -166,0 +171,0 @@ * |
{ | ||
"name": "url-search-params-polyfill", | ||
"version": "8.2.3", | ||
"version": "8.2.4", | ||
"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
17072
327