@nats-io/nats-core
Advanced tools
Comparing version 3.0.0-26 to 3.0.0-27
@@ -33,3 +33,3 @@ import type { Nanos } from "./core"; | ||
export declare function timeout<T>(ms: number, asyncTraces?: boolean): Timeout<T>; | ||
export interface Delay extends Promise<void>, Cancelable { | ||
export interface Delay extends Promise<boolean>, Cancelable { | ||
cancel: () => void; | ||
@@ -36,0 +36,0 @@ } |
@@ -79,3 +79,3 @@ "use strict"; | ||
const timer = setTimeout(() => { | ||
resolve(); | ||
resolve(true); | ||
}, ms); | ||
@@ -85,2 +85,3 @@ const cancel = () => { | ||
clearTimeout(timer); | ||
resolve(false); | ||
} | ||
@@ -87,0 +88,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
export declare const version = "3.0.0-26"; | ||
export declare const version = "3.0.0-27"; |
@@ -5,3 +5,3 @@ "use strict"; | ||
// This file is generated - do not edit | ||
exports.version = "3.0.0-26"; | ||
exports.version = "3.0.0-27"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@nats-io/nats-core", | ||
"version": "3.0.0-26", | ||
"version": "3.0.0-27", | ||
"files": [ | ||
@@ -44,2 +44,2 @@ "lib/", | ||
} | ||
} | ||
} |
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
549779
8648