@e280/stz 0.2.32 → 0.2.33
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/package.json +2 -2
- package/s/cycle.ts +1 -1
- package/x/cycle.d.ts +1 -1
- package/x/cycle.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e280/stz",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.33",
|
|
4
4
|
"description": "everyday ts fns for everything",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Chase Moskal <chasemoskal@gmail.com>",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@e280/science": "^0.1.10",
|
|
26
26
|
"@types/node": "^25.6.0",
|
|
27
|
-
"typescript": "^6.0.
|
|
27
|
+
"typescript": "^6.0.3"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"standard",
|
package/s/cycle.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* repeat the given async function over and over.
|
|
4
4
|
* - consider using `nap` in your fn to create a delay
|
|
5
5
|
*/
|
|
6
|
-
export function cycle(fn: (stop: () => void) => Promise<
|
|
6
|
+
export function cycle(fn: (stop: () => void) => unknown | Promise<unknown>) {
|
|
7
7
|
let timeout: any
|
|
8
8
|
let stopped = false
|
|
9
9
|
|
package/x/cycle.d.ts
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* repeat the given async function over and over.
|
|
3
3
|
* - consider using `nap` in your fn to create a delay
|
|
4
4
|
*/
|
|
5
|
-
export declare function cycle(fn: (stop: () => void) => Promise<
|
|
5
|
+
export declare function cycle(fn: (stop: () => void) => unknown | Promise<unknown>): () => void;
|
|
6
6
|
/** @deprecated renamed to `cycle` */
|
|
7
7
|
export declare const repeat: typeof cycle;
|
package/x/cycle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cycle.js","sourceRoot":"","sources":["../s/cycle.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,MAAM,UAAU,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"cycle.js","sourceRoot":"","sources":["../s/cycle.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,MAAM,UAAU,KAAK,CAAC,EAAoD;IACzE,IAAI,OAAY,CAAA;IAChB,IAAI,OAAO,GAAG,KAAK,CAAA;IAEnB,MAAM,IAAI,GAAG,GAAG,EAAE;QACjB,OAAO,GAAG,IAAI,CAAA;QACd,YAAY,CAAC,OAAO,CAAC,CAAA;IACtB,CAAC,CAAA;IAED,MAAM,IAAI,GAAG,KAAK,IAAG,EAAE;QACtB,IAAI,OAAO;YAAE,OAAM;QACnB,MAAM,EAAE,CAAC,IAAI,CAAC,CAAA;QACd,IAAI,OAAO;YAAE,OAAM;QACnB,OAAO,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IAC9B,CAAC,CAAA;IAED,IAAI,EAAE,CAAA;IACN,OAAO,IAAI,CAAA;AACZ,CAAC;AAED,qCAAqC;AACrC,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAA"}
|