bluebird
Advanced tools
Comparing version 3.0.0 to 3.0.1
"use strict"; | ||
module.exports = function(Promise, INTERNAL) { | ||
var PromiseReduce = Promise.reduce; | ||
var PromiseAll = Promise.all; | ||
Promise.prototype.mapSeries = Promise.prototype.each = function (fn) { | ||
function promiseAllThis() { | ||
return PromiseAll(this); | ||
} | ||
function PromiseMapSeries(promises, fn) { | ||
return PromiseReduce(promises, fn, INTERNAL, INTERNAL); | ||
} | ||
Promise.prototype.each = function (fn) { | ||
return this.mapSeries(fn) | ||
._then(promiseAllThis, undefined, undefined, this, undefined); | ||
}; | ||
Promise.prototype.mapSeries = function (fn) { | ||
return PromiseReduce(this, fn, INTERNAL, INTERNAL); | ||
}; | ||
Promise.mapSeries = Promise.each = function (promises, fn) { | ||
return PromiseReduce(promises, fn, INTERNAL, INTERNAL); | ||
Promise.each = function (promises, fn) { | ||
return PromiseMapSeries(promises, fn) | ||
._then(promiseAllThis, undefined, undefined, promises, undefined); | ||
}; | ||
Promise.mapSeries = PromiseMapSeries; | ||
}; |
{ | ||
"name": "bluebird", | ||
"description": "Full featured Promises/A+ implementation with exceptionally good performance", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "promise", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
407509
9610
0
7