es6-promisify
Advanced tools
Comparing version 4.1.0 to 5.0.0
"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" | ||
] | ||
} | ||
} |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
7760
4
0
90
122
+ Addedes6-promise@4.2.8(transitive)
- Removedes6-promise@3.3.1(transitive)
Updatedes6-promise@^4.0.3