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

jsonp-p

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonp-p - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

index.js

@@ -1,3 +0,1 @@

'use strict';
module.exports = require('./lib/jsonp-p');

30

lib/jsonp-p.js

@@ -1,16 +0,8 @@

/*!
* @license jsonp-p
* (c) sugarshin
* License: MIT
*/
'use strict';
Object.defineProperty(exports, '__esModule', {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports['default'] = jsonpP;
exports.default = jsonpP;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _jsonp = require('jsonp');

@@ -20,2 +12,4 @@

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**

@@ -26,2 +20,3 @@ * jsonpP

* @param {Object} config for jsonp opts
* https://github.com/webmodules/jsonp#jsonpurl-opts-fn
* param: 'callback',

@@ -33,12 +28,15 @@ * timeout: 60000,

*/
function jsonpP(url, config) {
return new Promise(function (resolve, reject) {
(0, _jsonp2['default'])(url, config, function (err, res) {
if (err) reject(err);
(0, _jsonp2.default)(url, config, function (err, res) {
if (err) {
reject(err);
}
resolve(res);
});
});
}
module.exports = exports['default'];
} /*!
* @license jsonp-p
* (c) sugarshin
* License: MIT
*/
{
"name": "jsonp-p",
"version": "1.0.1",
"version": "1.0.2",
"description": "jsonp promisify wrapper.",

@@ -12,6 +12,3 @@ "repository": {

"lib",
"index.js",
"test",
"package.json",
"README.md"
"index.js"
],

@@ -25,7 +22,6 @@ "keywords": [

"scripts": {
"lint": "eslint src",
"eslint": "eslint src",
"test": "mocha --compilers js:espower-babel/guess test/**/*.js",
"start": "npm run compile -- -w",
"compile": "babel -d lib src",
"build": "npm run lint && npm run compile"
"transpile": "babel -d lib --presets es2015 --no-babelrc src",
"prepublish": "npm run eslint && npm run transpile && npm test"
},

@@ -35,9 +31,12 @@ "author": "sugarshin",

"devDependencies": {
"babel": "^5.8.23",
"babel-eslint": "^4.1.3",
"eslint": "^1.6.0",
"espower-babel": "^3.3.0",
"jsdom": "^6.5.1",
"mocha": "^2.3.3",
"power-assert": "^1.1.0"
"babel-cli": "^6.1.18",
"babel-eslint": "^4.1.5",
"babel-preset-es2015": "^6.1.18",
"eslint": "^1.9.0",
"eslint-config-sugarshin": "0.0.13",
"eslint-plugin-babel": "^2.1.1",
"espower-babel": "^4.0.0",
"jsdom": "^7.0.2",
"mocha": "^2.3.4",
"power-assert": "^1.2.0"
},

@@ -44,0 +43,0 @@ "dependencies": {

# jsonp-p
[![Build Status][travis-image]][travis-url]
[![Dependency Status][david-image]][david-url]
[![Devdependency Status][david-dev-image]][david-dev-url]
[![GitHub version][github-ver-image]][github-ver-url]

@@ -49,10 +51,8 @@ [![License][license-image]][license-url]

[npm-url]: https://www.npmjs.org/package/jsonp-p
[bower-image]: http://img.shields.io/bower/v/jsonp-p.svg
[bower-url]: http://bower.io/search/?q=jsonp-p
[david-image]: https://david-dm.org/sugarshin/jsonp-p.svg
[david-url]: https://david-dm.org/sugarshin/jsonp-p
[david-dev-image]: https://david-dm.org/sugarshin/jsonp-p/dev-status.svg
[david-dev-url]: https://david-dm.org/sugarshin/jsonp-p#info=devDependencies
[travis-image]: http://img.shields.io/travis/sugarshin/jsonp-p/master.svg?branch=master
[travis-url]: https://travis-ci.org/sugarshin/jsonp-p
[gratipay-image]: http://img.shields.io/gratipay/sugarshin.svg
[gratipay-url]: https://gratipay.com/sugarshin/
[coveralls-image]: https://coveralls.io/repos/sugarshin/jsonp-p/badge.svg
[coveralls-url]: https://coveralls.io/r/sugarshin/jsonp-p
[github-ver-image]: https://badge.fury.io/gh/sugarshin%2Fjsonp-p.svg

@@ -62,3 +62,1 @@ [github-ver-url]: http://badge.fury.io/gh/sugarshin%2Fjsonp-p

[license-url]: http://sugarshin.mit-license.org/
[downloads-image]: http://img.shields.io/npm/dm/jsonp-p.svg
[dependencies-image]: http://img.shields.io/david/sugarshin/jsonp-p.svg
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