@whitesev/utils 2.7.2 → 2.7.4
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 +197 -350
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +197 -350
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +197 -350
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +197 -350
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +197 -350
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +197 -350
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/Utils.d.ts +30 -2
- package/dist/types/src/WindowApi.d.ts +4 -0
- package/dist/types/src/types/Event.d.ts +1 -2
- package/dist/types/src/types/Httpx.d.ts +4 -21
- package/dist/types/src/types/WindowApi.d.ts +4 -0
- package/dist/types/src/types/ajaxHooker.d.ts +1 -5
- package/package.json +1 -1
- package/src/ColorConversion.ts +5 -18
- package/src/CommonUtil.ts +8 -31
- package/src/DOMUtils.ts +9 -22
- package/src/Dictionary.ts +2 -7
- package/src/GBKEncoder.ts +1 -6
- package/src/Hooks.ts +1 -4
- package/src/Httpx.ts +102 -277
- package/src/LockFunction.ts +1 -3
- package/src/Log.ts +7 -23
- package/src/Progress.ts +2 -10
- package/src/TryCatch.ts +3 -11
- package/src/Utils.ts +213 -559
- package/src/UtilsCommon.ts +5 -9
- package/src/UtilsGMCookie.ts +1 -4
- package/src/UtilsGMMenu.ts +10 -29
- package/src/Vue.ts +2 -11
- package/src/WindowApi.ts +16 -0
- package/src/ajaxHooker/ajaxHooker.js +78 -142
- package/src/indexedDB.ts +3 -12
- package/src/types/Event.d.ts +1 -2
- package/src/types/Httpx.d.ts +4 -21
- package/src/types/WindowApi.d.ts +4 -0
- package/src/types/ajaxHooker.d.ts +1 -5
package/src/types/WindowApi.d.ts
CHANGED
|
@@ -7,4 +7,8 @@ export type WindowApiOption = {
|
|
|
7
7
|
globalThis?: typeof globalThis | Window;
|
|
8
8
|
self?: Window & typeof globalThis;
|
|
9
9
|
top: Window;
|
|
10
|
+
setTimeout: Window["setTimeout"];
|
|
11
|
+
setInterval: Window["setInterval"];
|
|
12
|
+
clearTimeout: Window["clearTimeout"];
|
|
13
|
+
clearInterval: Window["clearInterval"];
|
|
10
14
|
};
|
|
@@ -122,11 +122,7 @@ export declare interface UtilsAjaxHookResult {
|
|
|
122
122
|
};
|
|
123
123
|
});
|
|
124
124
|
*/
|
|
125
|
-
hook(
|
|
126
|
-
callback: (
|
|
127
|
-
request: UtilsAjaxHookRequestOptions
|
|
128
|
-
) => void | Promise<undefined>
|
|
129
|
-
): void;
|
|
125
|
+
hook(callback: (request: UtilsAjaxHookRequestOptions) => void | Promise<undefined>): void;
|
|
130
126
|
/**
|
|
131
127
|
* 过滤
|
|
132
128
|
* @example
|