fallback to bluebird
This commit is contained in:
parent
e9bf8c035e
commit
1dfbc03155
|
@ -27,7 +27,7 @@ function getMethods(inst, keys) {
|
|||
}
|
||||
|
||||
module.exports.create = function (opts) {
|
||||
var PromiseA = opts.PromiseA || global.Promise;
|
||||
var PromiseA = opts.PromiseA || global.Promise || require('bluebird');
|
||||
var crypto = require('crypto');
|
||||
var inst = opts.instance;
|
||||
var methods = getMethods(opts.instance, opts.methods);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// com.daplie.ipc.result - receive results and callback id
|
||||
|
||||
module.exports.create = function (opts) {
|
||||
var PromiseA = opts.PromiseA || global.Promise;
|
||||
var PromiseA = opts.PromiseA || global.Promise || require('bluebird');
|
||||
var crypto = require('crypto');
|
||||
var token = null;
|
||||
var inst = {};
|
||||
|
|
Loading…
Reference in New Issue