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

es6-promisify

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-promisify - npm Package Compare versions

Comparing version 4.1.0 to 5.0.0

README.md

4

dist/promise.js
"use strict";
/*jslint es6, node, browser, maxlen: 120 */
/*global self, window */
/* global self, window, module, global, require */
module.exports = function () {

@@ -7,0 +5,0 @@

"use strict";
/*jslint node, this, es6, maxlen: 120 */
/* global module, require */
module.exports = function () {

@@ -46,7 +46,7 @@

var that = undefined;
var target = void 0;
if (settings && settings.thisArg) {
that = settings.thisArg;
target = settings.thisArg;
} else if (settings) {
that = settings;
target = settings;
}

@@ -64,15 +64,15 @@

for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
args[_key2 - 1] = arguments[_key2];
for (var _len2 = arguments.length, values = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
values[_key2 - 1] = arguments[_key2];
}
if (false === !!returnMultipleArguments) {
return resolve(args[0]);
return resolve(values[0]);
}
resolve(args);
resolve(values);
});
// Call the function
var response = original.apply(that, args);
var response = original.apply(target, args);

@@ -79,0 +79,0 @@ // If it looks like original already returns a promise,

{
"name": "es6-promisify",
"version": "4.1.0",
"version": "5.0.0",
"description": "Converts callback-based functions to ES6 Promises",

@@ -14,6 +14,6 @@ "main": "dist/promisify.js",

"dependencies": {
"es6-promise": "^3.2.1"
"es6-promise": "^4.0.3"
},
"scripts": {
"pretest": "./node_modules/jslint/bin/jslint.js --edition=\"2015-05-08\" ./lib/*.js ./tests/*.js",
"pretest": "./node_modules/eslint/bin/eslint.js ./lib/*.js ./tests/*.js",
"test": "gulp && nodeunit tests"

@@ -32,7 +32,12 @@ },

"babel-preset-es2015": "^6.9.0",
"eslint": "^2.13.1",
"gulp": "^3.9.1",
"gulp-babel": "^6.1.2",
"jslint": "^0.10.0",
"nodeunit": "^0.9.1"
"nodeunit": "^0.10.0"
},
"greenkeeper": {
"ignore": [
"eslint"
]
}
}
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