brianmhunt-mutex-promise
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -443,3 +443,3 @@ "use strict"; | ||
var all = new MutexPromise(function (res, rej) { | ||
iter.forEach(function (valueOrPromise) { | ||
Array.from(iter).forEach(function (valueOrPromise) { | ||
var p = MutexPromise.resolve(valueOrPromise); | ||
@@ -446,0 +446,0 @@ var idx = arr.length; |
{ | ||
"name": "brianmhunt-mutex-promise", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Promises with uncaught handling and events", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -377,3 +377,3 @@ "use strict" | ||
var all = new MutexPromise(function (res, rej) { | ||
iter.forEach(function (valueOrPromise) { | ||
Array.from(iter).forEach(function (valueOrPromise) { | ||
var p = MutexPromise.resolve(valueOrPromise) | ||
@@ -380,0 +380,0 @@ var idx = arr.length |
@@ -290,2 +290,11 @@ // | ||
}) | ||
it("iterates over generator functions", function () { | ||
function* gen() { | ||
yield 1 | ||
yield 2 | ||
} | ||
return MP.all(gen()) | ||
.then((v) => assert.deepEqual(v, [1, 2])) | ||
}) | ||
}) | ||
@@ -292,0 +301,0 @@ |
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
43548
1076