@xylabs/delay 5.0.95 → 5.0.97
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/README.md +43 -60
- package/package.json +7 -10
package/README.md
CHANGED
|
@@ -1,53 +1,70 @@
|
|
|
1
1
|
# @xylabs/delay
|
|
2
2
|
|
|
3
|
-
[![
|
|
3
|
+
[![npm][npm-badge]][npm-link]
|
|
4
|
+
[![license][license-badge]][license-link]
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
[![npm-badge][]][npm-link]
|
|
7
|
-
[![npm-downloads-badge][]][npm-link]
|
|
8
|
-
[![jsdelivr-badge][]][jsdelivr-link]
|
|
9
|
-
[![npm-license-badge][]](LICENSE)
|
|
10
|
-
[![codacy-badge][]][codacy-link]
|
|
11
|
-
[![codeclimate-badge][]][codeclimate-link]
|
|
12
|
-
[![snyk-badge][]][snyk-link]
|
|
13
|
-
[![socket-badge][]][socket-link]
|
|
6
|
+
> Base functionality used throughout XY Labs TypeScript/JavaScript libraries
|
|
14
7
|
|
|
8
|
+
## Install
|
|
15
9
|
|
|
16
|
-
|
|
10
|
+
Using npm:
|
|
17
11
|
|
|
12
|
+
```sh
|
|
13
|
+
npm install {{name}}
|
|
14
|
+
```
|
|
18
15
|
|
|
16
|
+
Using yarn:
|
|
19
17
|
|
|
20
|
-
|
|
18
|
+
```sh
|
|
19
|
+
yarn add {{name}}
|
|
20
|
+
```
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Using pnpm:
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
```sh
|
|
25
|
+
pnpm add {{name}}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Using bun:
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
bun add {{name}}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
38
|
+
|
|
39
|
+
## Reference
|
|
40
|
+
|
|
41
|
+
### packages
|
|
25
42
|
|
|
26
|
-
|
|
43
|
+
### delay
|
|
27
44
|
|
|
28
|
-
|
|
29
|
-
| ------ | ------ |
|
|
30
|
-
| [delay](#functions/delay) | Returns a promise that resolves after the specified number of milliseconds. |
|
|
45
|
+
### .temp-typedoc
|
|
31
46
|
|
|
32
|
-
### functions
|
|
47
|
+
### functions
|
|
33
48
|
|
|
34
|
-
|
|
49
|
+
### <a id="delay"></a>delay
|
|
35
50
|
|
|
36
51
|
[**@xylabs/delay**](#../README)
|
|
37
52
|
|
|
38
53
|
***
|
|
39
54
|
|
|
40
55
|
```ts
|
|
41
|
-
function delay(ms
|
|
56
|
+
function delay(ms): Promise<unknown>;
|
|
42
57
|
```
|
|
43
58
|
|
|
44
59
|
Returns a promise that resolves after the specified number of milliseconds.
|
|
45
60
|
|
|
46
61
|
## Parameters
|
|
47
62
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
63
|
+
### ms
|
|
64
|
+
|
|
65
|
+
`number`
|
|
66
|
+
|
|
67
|
+
The number of milliseconds to delay.
|
|
51
68
|
|
|
52
69
|
## Returns
|
|
53
70
|
|
|
@@ -56,41 +73,7 @@ Returns a promise that resolves after the specified number of milliseconds.
|
|
|
56
73
|
A promise that resolves after the delay.
|
|
57
74
|
|
|
58
75
|
|
|
59
|
-
Part of [sdk-js](https://www.npmjs.com/package/@xyo-network/sdk-js)
|
|
60
|
-
|
|
61
|
-
## Maintainers
|
|
62
|
-
|
|
63
|
-
- [Arie Trouw](https://github.com/arietrouw) ([arietrouw.com](https://arietrouw.com))
|
|
64
|
-
- [Matt Jones](https://github.com/jonesmac)
|
|
65
|
-
- [Joel Carter](https://github.com/JoelBCarter)
|
|
66
|
-
- [Jordan Trouw](https://github.com/jordantrouw)
|
|
67
|
-
|
|
68
|
-
## License
|
|
69
|
-
|
|
70
|
-
> See the [LICENSE](LICENSE) file for license details
|
|
71
|
-
|
|
72
|
-
## Credits
|
|
73
|
-
|
|
74
|
-
[Made with 🔥 and ❄️ by XYLabs](https://xylabs.com)
|
|
75
|
-
|
|
76
|
-
[logo]: https://cdn.xy.company/img/brand/XYPersistentCompany_Logo_Icon_Colored.svg
|
|
77
|
-
|
|
78
|
-
[main-build]: https://github.com/xylabs/sdk-js/actions/workflows/build.yml/badge.svg
|
|
79
|
-
[main-build-link]: https://github.com/xylabs/sdk-js/actions/workflows/build.yml
|
|
80
76
|
[npm-badge]: https://img.shields.io/npm/v/@xylabs/delay.svg
|
|
81
77
|
[npm-link]: https://www.npmjs.com/package/@xylabs/delay
|
|
82
|
-
[
|
|
83
|
-
[
|
|
84
|
-
[codeclimate-badge]: https://api.codeclimate.com/v1/badges/c5eb068f806f0b047ea7/maintainability
|
|
85
|
-
[codeclimate-link]: https://codeclimate.com/github/xylabs/sdk-js/maintainability
|
|
86
|
-
[snyk-badge]: https://snyk.io/test/github/xylabs/sdk-js/badge.svg?targetFile=package.json
|
|
87
|
-
[snyk-link]: https://snyk.io/test/github/xylabs/sdk-js?targetFile=package.json
|
|
88
|
-
|
|
89
|
-
[npm-downloads-badge]: https://img.shields.io/npm/dw/@xylabs/delay
|
|
90
|
-
[npm-license-badge]: https://img.shields.io/npm/l/@xylabs/delay
|
|
91
|
-
|
|
92
|
-
[jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/@xylabs/delay/badge
|
|
93
|
-
[jsdelivr-link]: https://www.jsdelivr.com/package/npm/@xylabs/delay
|
|
94
|
-
|
|
95
|
-
[socket-badge]: https://socket.dev/api/badge/npm/package/@xylabs/delay
|
|
96
|
-
[socket-link]: https://socket.dev/npm/package/@xylabs/delay
|
|
78
|
+
[license-badge]: https://img.shields.io/npm/l/@xylabs/delay.svg
|
|
79
|
+
[license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/delay",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.97",
|
|
4
4
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"delay",
|
|
@@ -29,12 +29,10 @@
|
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
31
|
"types": "./dist/neutral/index.d.ts",
|
|
32
|
-
"import": "./dist/neutral/index.mjs",
|
|
33
32
|
"default": "./dist/neutral/index.mjs"
|
|
34
33
|
},
|
|
35
34
|
"./package.json": "./package.json"
|
|
36
35
|
},
|
|
37
|
-
"types": "./dist/neutral/index.d.ts",
|
|
38
36
|
"files": [
|
|
39
37
|
"dist",
|
|
40
38
|
"!**/*.bench.*",
|
|
@@ -43,17 +41,16 @@
|
|
|
43
41
|
"README.md"
|
|
44
42
|
],
|
|
45
43
|
"dependencies": {
|
|
46
|
-
"@xylabs/timer": "~5.0.
|
|
44
|
+
"@xylabs/timer": "~5.0.97"
|
|
47
45
|
},
|
|
48
46
|
"devDependencies": {
|
|
49
|
-
"@types/node": "^25.
|
|
50
|
-
"@xylabs/
|
|
51
|
-
"@xylabs/
|
|
52
|
-
"@xylabs/tsconfig": "~7.8.4",
|
|
47
|
+
"@types/node": "^25.6.0",
|
|
48
|
+
"@xylabs/toolchain": "~7.10.4",
|
|
49
|
+
"@xylabs/tsconfig": "~7.10.4",
|
|
53
50
|
"esbuild": "^0.28.0",
|
|
54
51
|
"typescript": "^5",
|
|
55
|
-
"vite": "^8.0.
|
|
56
|
-
"vitest": "^4.1.
|
|
52
|
+
"vite": "^8.0.8",
|
|
53
|
+
"vitest": "^4.1.4"
|
|
57
54
|
},
|
|
58
55
|
"engines": {
|
|
59
56
|
"node": ">=18"
|