@whitesev/utils 1.0.2 → 1.0.3
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 +518 -503
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +518 -503
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +518 -503
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +518 -503
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +518 -503
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +518 -503
- package/dist/index.umd.js.map +1 -1
- package/dist/src/ajaxHooker.d.ts +6 -6
- package/package.json +1 -1
- package/rollup.config.js +1 -0
- package/src/Utils.ts +3 -3
- package/src/ajaxHooker.js +518 -503
package/dist/src/ajaxHooker.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
export function AjaxHooker(): {
|
|
2
|
+
hook: (fn: any) => number;
|
|
3
|
+
filter: (arr: any) => void;
|
|
4
|
+
protect: () => void;
|
|
5
|
+
unhook: () => void;
|
|
6
|
+
};
|
package/package.json
CHANGED
package/rollup.config.js
CHANGED
package/src/Utils.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ColorConversion } from "./ColorConversion";
|
|
|
2
2
|
import { GBKEncoder } from "./GBKEncoder";
|
|
3
3
|
import { UtilsCore } from "./UtilsCore";
|
|
4
4
|
import { UtilsGMCookie } from "./UtilsGMCookie";
|
|
5
|
-
import {
|
|
5
|
+
import { AjaxHooker } from "./ajaxHooker";
|
|
6
6
|
import { GMMenu } from "./UtilsGMMenu";
|
|
7
7
|
import { Hooks } from "./Hooks";
|
|
8
8
|
import { Httpx } from "./Httpx";
|
|
@@ -15,7 +15,7 @@ import { UtilsDictionary } from "./Dictionary";
|
|
|
15
15
|
|
|
16
16
|
class Utils {
|
|
17
17
|
/** 版本号 */
|
|
18
|
-
version = "2024.5.
|
|
18
|
+
version = "2024.5.25";
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* 在页面中增加style元素,如果html节点存在子节点,添加子节点第一个,反之,添加到html节点的子节点最后一个
|
|
@@ -186,7 +186,7 @@ class Utils {
|
|
|
186
186
|
* + 版本:1.4.1
|
|
187
187
|
* + 文档:https://scriptcat.org/zh-CN/script-show-page/637/
|
|
188
188
|
*/
|
|
189
|
-
ajaxHooker: UtilsAjaxHookResult =
|
|
189
|
+
ajaxHooker: UtilsAjaxHookResult = AjaxHooker as any;
|
|
190
190
|
/**
|
|
191
191
|
* 根据坐标点击canvas元素的内部位置
|
|
192
192
|
* @param canvasElement 画布元素
|