@augment-vir/core 30.1.0 → 30.3.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,4 +1,4 @@
|
|
|
1
|
-
import { convertDuration
|
|
1
|
+
import { convertDuration } from '@date-vir/duration';
|
|
2
2
|
import { DeferredPromise } from './deferred-promise.js';
|
|
3
3
|
/**
|
|
4
4
|
* An async pause for the given duration.
|
|
@@ -11,7 +11,7 @@ import { DeferredPromise } from './deferred-promise.js';
|
|
|
11
11
|
*/
|
|
12
12
|
export function wait(duration) {
|
|
13
13
|
const deferredPromise = new DeferredPromise();
|
|
14
|
-
const milliseconds = convertDuration(duration,
|
|
14
|
+
const milliseconds = convertDuration(duration, { milliseconds: true }).milliseconds;
|
|
15
15
|
if (milliseconds !== Infinity) {
|
|
16
16
|
setTimeout(() => {
|
|
17
17
|
deferredPromise.resolve();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augment-vir/core",
|
|
3
|
-
"version": "30.
|
|
3
|
+
"version": "30.3.0",
|
|
4
4
|
"description": "Core augment-vir augments. Use @augment-vir/common instead.",
|
|
5
5
|
"homepage": "https://github.com/electrovir/augment-vir",
|
|
6
6
|
"bugs": {
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"test:update": "npm test"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@date-vir/duration": "^6.0.
|
|
30
|
+
"@date-vir/duration": "^6.0.1",
|
|
31
31
|
"browser-or-node": "^3.0.0",
|
|
32
32
|
"json5": "^2.2.3",
|
|
33
33
|
"type-fest": "^4.26.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/node": "^22.
|
|
36
|
+
"@types/node": "^22.7.4",
|
|
37
37
|
"c8": "^10.1.2",
|
|
38
38
|
"istanbul-smart-text-reporter": "^1.1.4"
|
|
39
39
|
},
|