trivial-deferred
Advanced tools
Comparing version 1.0.0 to 1.0.1
18
index.js
module.exports = Deferred | ||
var P = Promise | ||
var P | ||
/* istanbul ignore next */ | ||
try { | ||
P = require('bluebird') | ||
} catch (er) {} | ||
P = Promise | ||
} catch (er) { | ||
try { | ||
P = require('bluebird') | ||
} catch (er) { | ||
throw new Error('this module requires a Promise implementation. ' + | ||
'Try installing bluebird.') | ||
} | ||
} | ||
/* istanbul ignore if */ | ||
if (!P) | ||
throw new Error('this module requires a Promise implementation. ' + | ||
'Try installing bluebird.') | ||
@@ -13,0 +17,0 @@ function Deferred () { |
{ | ||
"name": "trivial-deferred", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "The most dead-simple trivial Deferred implementation", | ||
"main": "index.js", | ||
"dependencies": {}, | ||
"devDependencies": {"tap": "9||10"}, | ||
"devDependencies": { | ||
"tap": "9||10" | ||
}, | ||
"scripts": { | ||
@@ -9,0 +11,0 @@ "test": "tap test.js --100" |
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
2405
30