node-rollout
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -53,3 +53,3 @@ var crypto = require('crypto') | ||
var promises = keys.map(function (k) { | ||
return this.get(k[0], k[1], k[2], multi) | ||
return this.get(k[0], k[1], k[2], multi).reflect() | ||
}.bind(this)) | ||
@@ -62,5 +62,3 @@ return new Promise(function (resolve, reject) { | ||
}) | ||
.then(function () { | ||
return promises.map(function (p) { return p.reflect() }) | ||
}) | ||
.then(Promise.all.bind(Promise, promises)) | ||
} | ||
@@ -67,0 +65,0 @@ |
{ | ||
"name": "node-rollout", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "feature rollout management", | ||
@@ -5,0 +5,0 @@ "author": "Ali Faiz & Dustin Diaz", |
@@ -179,2 +179,3 @@ var chai = require('chai') | ||
expect(result[0].isFulfilled()).to.be.true | ||
expect(result[0].value()).to.be.true | ||
}) | ||
@@ -181,0 +182,0 @@ }) |
Sorry, the diff of this file is not supported yet
68930
378