fetch-jsonp
Advanced tools
Comparing version 1.2.3 to 1.3.0
@@ -87,2 +87,5 @@ (function (global, factory) { | ||
} | ||
if (options.crossorigin) { | ||
jsonpScript.setAttribute('crossorigin', 'true'); | ||
} | ||
jsonpScript.id = scriptId; | ||
@@ -89,0 +92,0 @@ document.getElementsByTagName('head')[0].appendChild(jsonpScript); |
@@ -0,1 +1,5 @@ | ||
1.3.0 / 2023-7-6 | ||
================== | ||
* allow applications to set crossorigin attribute, thanks to @stfsy | ||
1.2.3 / 2022-9-13 | ||
@@ -2,0 +6,0 @@ ================== |
@@ -9,2 +9,3 @@ declare function fetchJsonp(url: string, options?: fetchJsonp.Options): Promise<fetchJsonp.Response>; | ||
nonce?: string; | ||
crossorigin?: boolean; | ||
referrerPolicy?: ReferrerPolicy; | ||
@@ -11,0 +12,0 @@ charset?: string; |
{ | ||
"name": "fetch-jsonp", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"description": "Fetch JSONP like a boss using Fetch API", | ||
@@ -5,0 +5,0 @@ "main": "build/fetch-jsonp.js", |
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
12393
129