@whitesev/utils 1.1.9 → 1.2.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.amd.js.map +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/Utils.d.ts +1 -1
- package/package.json +1 -1
- package/src/Utils.ts +6 -2
- package/src/ajaxHooker/index.d.ts +1 -1
package/dist/src/Utils.d.ts
CHANGED
|
@@ -1584,7 +1584,7 @@ declare class Utils {
|
|
|
1584
1584
|
* "__vue__"
|
|
1585
1585
|
* )
|
|
1586
1586
|
*/
|
|
1587
|
-
waitVueByInterval(element: HTMLElement | (() =>
|
|
1587
|
+
waitVueByInterval(element: HTMLElement | (() => any), propertyName: string | ((__vue__: any) => boolean), timer?: number, maxTime?: number, vueName?: "__vue__" | string): Promise<boolean>;
|
|
1588
1588
|
/**
|
|
1589
1589
|
* 观察对象的set、get
|
|
1590
1590
|
* @param target 观察的对象
|
package/package.json
CHANGED
package/src/Utils.ts
CHANGED
|
@@ -4407,14 +4407,18 @@ class Utils {
|
|
|
4407
4407
|
* )
|
|
4408
4408
|
*/
|
|
4409
4409
|
waitVueByInterval(
|
|
4410
|
-
element:
|
|
4410
|
+
element:
|
|
4411
|
+
| HTMLElement
|
|
4412
|
+
| (() => any),
|
|
4411
4413
|
propertyName: string | ((__vue__: any) => boolean),
|
|
4412
4414
|
timer?: number,
|
|
4413
4415
|
maxTime?: number,
|
|
4414
4416
|
vueName?: "__vue__" | string
|
|
4415
4417
|
): Promise<boolean>;
|
|
4416
4418
|
async waitVueByInterval(
|
|
4417
|
-
element:
|
|
4419
|
+
element:
|
|
4420
|
+
| HTMLElement
|
|
4421
|
+
| (() => any),
|
|
4418
4422
|
propertyName: string | ((__vue__: any) => boolean),
|
|
4419
4423
|
timer = 250,
|
|
4420
4424
|
maxTime = -1,
|
|
@@ -57,7 +57,7 @@ declare interface UtilsAjaxHookRequestOptions {
|
|
|
57
57
|
*
|
|
58
58
|
* 在控制台输出时,xhr响应将包含所有属性,但只有被读取过的属性具有明确的值。修改对应属性即可影响读取结果,进而实现响应数据的修改。
|
|
59
59
|
*/
|
|
60
|
-
response?: (res: UtilsAjaxHookResponseOptions) => void;
|
|
60
|
+
response?: (res: Required<UtilsAjaxHookResponseOptions>) => void;
|
|
61
61
|
/**
|
|
62
62
|
* 只读属性。异步请求为true,同步请求为false,异步特性无法作用于同步请求
|
|
63
63
|
*/
|