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

better-jsonp

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-jsonp - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

dist/better-jsonp.js

5

package.json
{
"name": "better-jsonp",
"version": "0.2.1",
"version": "0.2.2",
"description": "A simple JSONP implementation",
"main": "src/index.js",
"main": "dist/better-jsonp.min.js",
"scripts": {

@@ -17,2 +17,3 @@ "dev": "node server.js",

"jsonp",
"fetch",
"front-end",

@@ -19,0 +20,0 @@ "cross-domain-solution"

12

README.md
# JSONP
[![npm](https://img.shields.io/npm/v/better-jsonp.svg)](https://www.npmjs.com/package/better-jsonp)
[![NPM](https://nodei.co/npm/better-jsonp.png?mini=true)](https://www.npmjs.com/package/better-jsonp/)
A minimal JSONP implementation which is used to be a kind of cross domain solution.

@@ -12,7 +16,9 @@

prefix: 'customName',
timeout: 5000
timeout: 5000,
// eg. ?customCallbackParams=...
callbackParams: 'customCallbackParams',
urlParams: {
key0: 1,
key2: 2
// eg. ?key0=0&key1=1...
key0: 0,
key1: 1
// ...

@@ -19,0 +25,0 @@ },

@@ -21,3 +21,3 @@ const path = require('path')

output: {
file: resolve(isProduction ? 'dist/bundle.min.js' : 'dist/bundle.js'),
file: resolve(isProduction ? 'dist/better-jsonp.min.js' : 'dist/better-jsonp.js'),
name: 'jsonp',

@@ -24,0 +24,0 @@ format: 'umd',

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