@wbe/deferred-promise
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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" | ||
} | ||
} |
# 🙏🏽 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(); |
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
10996
34
1
+ Added@wbe/deferred-promise@^1.0.1