@whitesev/utils 1.9.4 → 1.9.5
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 +72 -64
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +72 -64
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +72 -64
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +72 -64
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +72 -64
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +72 -64
- package/dist/index.umd.js.map +1 -1
- package/dist/src/UtilsCore.d.ts +7 -7
- package/package.json +2 -2
package/dist/src/UtilsCore.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare interface UtilsCoreOption {
|
|
2
2
|
document: Document;
|
|
3
|
-
window: Window
|
|
4
|
-
globalThis:
|
|
5
|
-
self: Window
|
|
6
|
-
top: Window
|
|
3
|
+
window: Window & typeof globalThis;
|
|
4
|
+
globalThis: typeof globalThis | Window;
|
|
5
|
+
self: Window & typeof globalThis;
|
|
6
|
+
top: Window;
|
|
7
7
|
}
|
|
8
8
|
declare const UtilsCore: {
|
|
9
9
|
init(option?: UtilsCoreOption): void;
|
|
10
10
|
readonly document: Document;
|
|
11
|
-
readonly window: typeof globalThis
|
|
11
|
+
readonly window: Window & typeof globalThis;
|
|
12
12
|
readonly globalThis: typeof globalThis | Window;
|
|
13
|
-
readonly self: typeof globalThis
|
|
14
|
-
readonly top:
|
|
13
|
+
readonly self: Window & typeof globalThis;
|
|
14
|
+
readonly top: Window;
|
|
15
15
|
};
|
|
16
16
|
export { UtilsCore };
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whitesev/utils",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.5",
|
|
4
4
|
"description": "一个常用的工具库",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/node/index.esm.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
8
|
"jsdelivr": "dist/index.umd.js",
|
|
9
9
|
"exports": {
|
|
10
10
|
"./package.json": "./package.json",
|