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

promise-assist

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-assist - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

2

cjs/deferred.d.ts

@@ -15,3 +15,3 @@ export declare type PromiseResolveCb<T> = (value?: T | PromiseLike<T>) => void;

*/
export declare function deferred<T>(): IDeferredPromise<T>;
export declare function deferred<T = void>(): IDeferredPromise<T>;
//# sourceMappingURL=deferred.d.ts.map

@@ -15,3 +15,3 @@ export declare type PromiseResolveCb<T> = (value?: T | PromiseLike<T>) => void;

*/
export declare function deferred<T>(): IDeferredPromise<T>;
export declare function deferred<T = void>(): IDeferredPromise<T>;
//# sourceMappingURL=deferred.d.ts.map
{
"name": "promise-assist",
"description": "Several helper functions when working with native promises",
"version": "1.2.2",
"version": "1.2.3",
"main": "./cjs/index.js",

@@ -17,6 +17,7 @@ "module": "./esm/index.js",

"pretest": "yarn lint",
"test": "mocha -r @ts-tools/node/r \"test/**/*.spec.ts\" --watch-extensions ts"
"test": "mocha -r @ts-tools/node/r \"test/**/*.spec.ts\" --watch-extensions ts",
"prepack": "yarn build"
},
"devDependencies": {
"@ts-tools/node": "^0.9.2",
"@ts-tools/node": "^0.9.3",
"@types/chai": "^4.1.7",

@@ -27,3 +28,3 @@ "@types/chai-as-promised": "^7.1.0",

"chai-as-promised": "^7.1.1",
"mocha": "^5.2.0",
"mocha": "^6.0.0",
"npm-run-all": "^4.1.5",

@@ -30,0 +31,0 @@ "rimraf": "^2.6.3",

@@ -17,3 +17,3 @@ export type PromiseResolveCb<T> = (value?: T | PromiseLike<T>) => void

*/
export function deferred<T>(): IDeferredPromise<T> {
export function deferred<T = void>(): IDeferredPromise<T> {
let resolve!: PromiseResolveCb<T>

@@ -20,0 +20,0 @@ let reject!: PromiseRejectCb

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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