fallback to bluebird

This commit is contained in:
AJ ONeal 2016-09-08 17:14:07 -06:00
parent e9bf8c035e
commit 1dfbc03155
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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 = {};