resolvable-promise
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -6,4 +6,4 @@ declare function Resolvable<T>(handler?: Executor<T>): Resolvable<T>; | ||
}; | ||
export default _default; | ||
export interface Resolvable<T> extends Promise<T> { | ||
export = _default; | ||
interface Resolvable<T> extends Promise<T> { | ||
resolve: Resolve<T>; | ||
@@ -10,0 +10,0 @@ reject: Reject; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function Resolvable(handler) { | ||
@@ -23,3 +22,3 @@ let resolve; | ||
} | ||
exports.default = Resolvable; | ||
module.exports = Resolvable; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "resolvable-promise", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Promises with the resolve and reject functions exposed", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -26,3 +26,3 @@ function Resolvable<T>(handler?: Executor<T>) { | ||
export default Resolvable as { | ||
export = Resolvable as { | ||
new <T>(promise?: Executor<T>): Resolvable<T> | ||
@@ -32,3 +32,3 @@ <T>(promise?: Executor<T>): Resolvable<T> | ||
export interface Resolvable<T> extends Promise<T> { | ||
interface Resolvable<T> extends Promise<T> { | ||
resolve: Resolve<T> | ||
@@ -35,0 +35,0 @@ reject: Reject |
@@ -14,3 +14,5 @@ { | ||
"forceConsistentCasingInFileNames": true, | ||
} | ||
}, | ||
"include": ["src/**/*.ts"], | ||
"exclude": ["src/**/*.test.ts"] | ||
} |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
9565
15
141