@xylabs/delay 5.0.82 → 5.0.84

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 CHANGED
@@ -37,16 +37,22 @@ Base functionality used throughout XY Labs TypeScript/JavaScript libraries
37
37
  function delay(ms): Promise<unknown>;
38
38
  ```
39
39
 
40
+ Returns a promise that resolves after the specified number of milliseconds.
41
+
40
42
  ## Parameters
41
43
 
42
44
  ### ms
43
45
 
44
46
  `number`
45
47
 
48
+ The number of milliseconds to delay.
49
+
46
50
  ## Returns
47
51
 
48
52
  `Promise`\<`unknown`\>
49
53
 
54
+ A promise that resolves after the delay.
55
+
50
56
 
51
57
  Part of [sdk-js](https://www.npmjs.com/package/@xyo-network/sdk-js)
52
58
 
@@ -1,2 +1,7 @@
1
+ /**
2
+ * Returns a promise that resolves after the specified number of milliseconds.
3
+ * @param ms - The number of milliseconds to delay.
4
+ * @returns A promise that resolves after the delay.
5
+ */
1
6
  export declare const delay: (ms: number) => Promise<unknown>;
2
7
  //# sourceMappingURL=delay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../src/delay.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,qBAE/B,CAAA"}
1
+ {"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../src/delay.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,qBAE/B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/delay.ts"],"sourcesContent":["import { setTimeoutEx } from '@xylabs/timer'\n\nexport const delay = (ms: number) => {\n return new Promise(resolve => setTimeoutEx(resolve, ms))\n}\n"],"mappings":";AAAA,SAAS,oBAAoB;AAEtB,IAAM,QAAQ,CAAC,OAAe;AACnC,SAAO,IAAI,QAAQ,aAAW,aAAa,SAAS,EAAE,CAAC;AACzD;","names":[]}
1
+ {"version":3,"sources":["../../src/delay.ts"],"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"],"mappings":";AAAA,SAAS,oBAAoB;AAOtB,IAAM,QAAQ,CAAC,OAAe;AACnC,SAAO,IAAI,QAAQ,aAAW,aAAa,SAAS,EAAE,CAAC;AACzD;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/delay",
3
- "version": "5.0.82",
3
+ "version": "5.0.84",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "delay",
@@ -42,11 +42,11 @@
42
42
  "!**/*.test.*"
43
43
  ],
44
44
  "dependencies": {
45
- "@xylabs/timer": "~5.0.82"
45
+ "@xylabs/timer": "~5.0.84"
46
46
  },
47
47
  "devDependencies": {
48
- "@xylabs/ts-scripts-yarn3": "~7.4.11",
49
- "@xylabs/tsconfig": "~7.4.11",
48
+ "@xylabs/ts-scripts-yarn3": "~7.4.13",
49
+ "@xylabs/tsconfig": "~7.4.13",
50
50
  "typescript": "~5.9.3",
51
51
  "vitest": "~4.0.18"
52
52
  },