@stacksjs/browser 0.65.0 → 0.67.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.
- package/dist/index.js +4 -127
- package/dist/utils/sleep.d.ts +0 -6
- package/package.json +4 -6
- package/dist/index.js.map +0 -90
- package/src/index.ts +0 -1
- package/src/utils/base.ts +0 -12
- package/src/utils/debounce.ts +0 -1
- package/src/utils/function.ts +0 -32
- package/src/utils/guards.ts +0 -39
- package/src/utils/index.ts +0 -11
- package/src/utils/math.ts +0 -30
- package/src/utils/promise.ts +0 -134
- package/src/utils/regex.ts +0 -42
- package/src/utils/retry.ts +0 -43
- package/src/utils/sleep.ts +0 -125
- package/src/utils/throttle.ts +0 -47
- package/src/utils/vendors.ts +0 -258
package/dist/utils/sleep.d.ts
CHANGED
|
@@ -23,15 +23,9 @@ export type WaitOptions = number | {
|
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* Pauses execution until a specified condition is met.
|
|
26
|
-
* @param condition The condition to wait for.
|
|
27
|
-
* @param interval The interval at which to check the condition, in milliseconds. Defaults to 1000.
|
|
28
|
-
* @returns A promise that resolves when the condition is met.
|
|
29
26
|
*/
|
|
30
27
|
export declare function waitUntil(condition: () => boolean, options?: WaitOptions): Promise<void>;
|
|
31
28
|
/**
|
|
32
29
|
* Pauses execution while a specified condition is met.
|
|
33
|
-
* @param condition The condition to wait while.
|
|
34
|
-
* @param interval The interval at which to check the condition, in milliseconds. Defaults to 1000.
|
|
35
|
-
* @returns A promise that resolves when the condition is no longer met.
|
|
36
30
|
*/
|
|
37
31
|
export declare function waitWhile(condition: () => boolean, options?: WaitOptions): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/browser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.67.0",
|
|
5
5
|
"description": "Stacks core frontend/browser functionalities.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
|
|
@@ -19,26 +19,24 @@
|
|
|
19
19
|
"keywords": ["frontend", "browser", "stacks", "api"],
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
|
-
"bun": "./src/index.ts",
|
|
23
22
|
"import": "./dist/index.js"
|
|
24
23
|
},
|
|
25
24
|
"./*": {
|
|
26
|
-
"bun": "./src/*",
|
|
27
25
|
"import": "./dist/*"
|
|
28
26
|
}
|
|
29
27
|
},
|
|
30
28
|
"module": "dist/index.js",
|
|
31
29
|
"types": "dist/index.d.ts",
|
|
32
|
-
"files": ["README.md", "dist"
|
|
30
|
+
"files": ["README.md", "dist"],
|
|
33
31
|
"scripts": {
|
|
34
32
|
"build": "bun build.ts",
|
|
35
33
|
"typecheck": "bun tsc --noEmit",
|
|
36
34
|
"prepublishOnly": "bun run build"
|
|
37
35
|
},
|
|
38
36
|
"dependencies": {
|
|
39
|
-
"@stacksjs/utils": "0.
|
|
37
|
+
"@stacksjs/utils": "0.67.0"
|
|
40
38
|
},
|
|
41
39
|
"devDependencies": {
|
|
42
|
-
"@stacksjs/development": "0.
|
|
40
|
+
"@stacksjs/development": "0.67.0"
|
|
43
41
|
}
|
|
44
42
|
}
|