@xylabs/delay 6.0.2 → 6.0.4
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.
package/dist/neutral/delay.d.ts
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* @param ms - The number of milliseconds to delay.
|
|
4
4
|
* @returns A promise that resolves after the delay.
|
|
5
5
|
*/
|
|
6
|
-
export declare const delay: (ms: number) => Promise<
|
|
6
|
+
export declare const delay: (ms: number) => Promise<void>;
|
|
7
7
|
//# sourceMappingURL=delay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../src/delay.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../src/delay.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,kBAE/B,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/delay.ts"],
|
|
4
|
-
"sourcesContent": ["import { setTimeoutEx } from '@xylabs/timer'\n\n/**\n * Returns a promise that resolves after the specified number of milliseconds.\n * @param ms - The number of milliseconds to delay.\n * @returns A promise that resolves after the delay.\n */\nexport const delay = (ms: number) => {\n return new Promise(resolve => setTimeoutEx(resolve, ms))\n}\n"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,oBAAoB;AAOtB,IAAM,QAAQ,CAAC,OAAe;AACnC,SAAO,IAAI,
|
|
4
|
+
"sourcesContent": ["import { setTimeoutEx } from '@xylabs/timer'\n\n/**\n * Returns a promise that resolves after the specified number of milliseconds.\n * @param ms - The number of milliseconds to delay.\n * @returns A promise that resolves after the delay.\n */\nexport const delay = (ms: number) => {\n return new Promise<void>(resolve => setTimeoutEx(() => resolve(), ms))\n}\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,oBAAoB;AAOtB,IAAM,QAAQ,CAAC,OAAe;AACnC,SAAO,IAAI,QAAc,aAAW,aAAa,MAAM,QAAQ,GAAG,EAAE,CAAC;AACvE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/delay",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"delay",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xylabs/timer": "~6.0.
|
|
44
|
+
"@xylabs/timer": "~6.0.4"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@xylabs/toolchain": "^8.1.
|
|
48
|
-
"@xylabs/tsconfig": "^8.1.
|
|
47
|
+
"@xylabs/toolchain": "^8.1.5",
|
|
48
|
+
"@xylabs/tsconfig": "^8.1.5",
|
|
49
49
|
"eslint": "^10.4.0",
|
|
50
50
|
"typescript": "^6.0.3",
|
|
51
|
-
"vite": "^8.0.
|
|
51
|
+
"vite": "^8.0.14",
|
|
52
52
|
"vitest": "^4.1.7"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|