Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fetch-jsonp

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-jsonp - npm Package Compare versions

Comparing version 1.2.3 to 1.3.0

3

build/fetch-jsonp.js

@@ -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;

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc