Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wbe/deferred-promise

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wbe/deferred-promise - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

package.json
{
"name": "@wbe/deferred-promise",
"version": "1.0.1",
"description": "Create deferred promise who can be resolve or reject from anywhere.",
"version": "1.0.2",
"description": "Create a deferred promise who can be resolved or rejected from anywhere.",
"main": "src/index.ts",

@@ -19,4 +19,3 @@ "private": false,

"test": "jest",
"compile": "tsc -p tsconfig.json",
"publish": "npm run test && npm run compile && npm publish --access public"
"compile": "tsc -p tsconfig.json"
},

@@ -30,3 +29,6 @@ "devDependencies": {

"typescript": "^4.1.3"
},
"dependencies": {
"@wbe/deferred-promise": "^1.0.1"
}
}

7

README.md
# 🙏🏽 deferred promise
Create deferred promise who can be resolve or reject from anywhere.
Create a deferred promise who can be resolved or rejected from anywhere.

@@ -8,5 +8,5 @@ ## Usage

````js
import deferredPromise from "@wbe/deferredPromise";
import deferredPromise from "@wbe/deferred-promise";
// create deferred promise
const deferred = deferredPromise();

@@ -20,2 +20,3 @@

deferred.resolve();
// or reject it

@@ -22,0 +23,0 @@ deferred.reject();

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