better-jsonp
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"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" |
# 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', |
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
57105
38