Socket
Socket
Sign inDemoInstall

trivial-deferred

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trivial-deferred - npm Package Compare versions

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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc