bluebird
Advanced tools
Comparing version 2.10.0 to 2.10.1
@@ -0,1 +1,5 @@ | ||
## 2.10.1 (2015-09-21) | ||
- Fix error "Cannot promisify an API that has normal methods with 'Async'-suffix" when promisifying certain objects with a custom promisifier | ||
## 2.10.0 (2015-09-08) | ||
@@ -2,0 +6,0 @@ |
@@ -247,7 +247,12 @@ "use strict"; | ||
var promisifiedKey = key + suffix; | ||
obj[promisifiedKey] = promisifier === makeNodePromisified | ||
? makeNodePromisified(key, THIS, key, fn, suffix) | ||
: promisifier(fn, function() { | ||
return makeNodePromisified(key, THIS, key, fn, suffix); | ||
}); | ||
if (promisifier === makeNodePromisified) { | ||
obj[promisifiedKey] = | ||
makeNodePromisified(key, THIS, key, fn, suffix); | ||
} else { | ||
var promisified = promisifier(fn, function() { | ||
return makeNodePromisified(key, THIS, key, fn, suffix); | ||
}); | ||
util.notEnumerableProp(promisified, "__isPromisified__", true); | ||
obj[promisifiedKey] = promisified; | ||
} | ||
} | ||
@@ -254,0 +259,0 @@ util.toFastProperties(obj); |
{ | ||
"name": "bluebird", | ||
"description": "Full featured Promises/A+ implementation with exceptionally good performance", | ||
"version": "2.10.0", | ||
"version": "2.10.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
441119
8896