@augment-vir/common 30.8.4 → 31.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MaybePromise } from '@augment-vir/core';
|
|
1
2
|
import { AnyDuration } from '@date-vir/duration';
|
|
2
3
|
/**
|
|
3
4
|
* An error thrown by {@link wrapPromiseInTimeout} when the timeout is reached.
|
|
@@ -19,4 +20,4 @@ export declare class PromiseTimeoutError extends Error {
|
|
|
19
20
|
* @category Package : @augment-vir/common
|
|
20
21
|
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
21
22
|
*/
|
|
22
|
-
export declare function wrapPromiseInTimeout<T>(duration: Readonly<AnyDuration>, originalPromise:
|
|
23
|
+
export declare function wrapPromiseInTimeout<T>(duration: Readonly<AnyDuration>, originalPromise: MaybePromise<T>, failureMessage?: string | undefined): Promise<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augment-vir/common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "31.0.0",
|
|
4
4
|
"description": "A collection of augments, helpers types, functions, and classes for any JavaScript environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"augment",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"test:web": "virmator --no-deps test web"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@augment-vir/assert": "^
|
|
43
|
-
"@augment-vir/core": "^
|
|
42
|
+
"@augment-vir/assert": "^31.0.0",
|
|
43
|
+
"@augment-vir/core": "^31.0.0",
|
|
44
44
|
"@date-vir/duration": "^7.0.1",
|
|
45
45
|
"ansi-styles": "^6.2.1",
|
|
46
46
|
"json5": "^2.2.3",
|