url-search-params-polyfill
Advanced tools
Comparing version 8.0.0 to 8.1.0
10
index.js
@@ -12,3 +12,11 @@ /** | ||
var nativeURLSearchParams = (self.URLSearchParams && self.URLSearchParams.prototype.get) ? self.URLSearchParams : null, | ||
var nativeURLSearchParams = (function() { | ||
// #41 Fix issue in RN | ||
try { | ||
if (self.URLSearchParams && (new self.URLSearchParams('foo=bar')).get('foo') === 'bar') { | ||
return self.URLSearchParams; | ||
} | ||
} catch (e) {} | ||
return null; | ||
})(), | ||
isSupportObjectConstructor = nativeURLSearchParams && (new nativeURLSearchParams({a: 1})).toString() === 'a=1', | ||
@@ -15,0 +23,0 @@ // There is a bug in safari 10.1 (and earlier) that incorrectly decodes `%2B` as an empty space and not a plus. |
{ | ||
"name": "url-search-params-polyfill", | ||
"version": "8.0.0", | ||
"version": "8.1.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
15928
305