@whitesev/utils 1.9.3 → 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.
@@ -1,16 +1,16 @@
1
1
  export declare interface UtilsCoreOption {
2
2
  document: Document;
3
- window: Window;
4
- globalThis: typeof globalThis;
5
- self: typeof globalThis;
3
+ window: Window & typeof globalThis;
4
+ globalThis: typeof globalThis | Window;
5
+ self: Window & typeof globalThis;
6
6
  top: Window;
7
7
  }
8
8
  declare const UtilsCore: {
9
9
  init(option?: UtilsCoreOption): void;
10
10
  readonly document: Document;
11
- readonly window: Window;
12
- readonly globalThis: typeof globalThis;
13
- readonly self: typeof globalThis;
11
+ readonly window: Window & typeof globalThis;
12
+ readonly globalThis: typeof globalThis | Window;
13
+ readonly self: Window & typeof globalThis;
14
14
  readonly top: Window;
15
15
  };
16
16
  export { UtilsCore };
package/package.json CHANGED
@@ -1,47 +1,47 @@
1
- {
2
- "name": "@whitesev/utils",
3
- "version": "1.9.3",
4
- "description": "一个常用的工具库",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/node/index.esm.js",
7
- "types": "dist/index.d.ts",
8
- "jsdelivr": "dist/index.umd.js",
9
- "exports": {
10
- "./package.json": "./package.json",
11
- ".": {
12
- "import": "./dist/index.esm.js",
13
- "require": "./dist/index.cjs.js",
14
- "types": "./dist/index.d.ts"
15
- }
16
- },
17
- "files": [
18
- "dist"
19
- ],
20
- "scripts": {
21
- "build": "rollup --config"
22
- },
23
- "publishConfig": {
24
- "registry": "https://registry.npmjs.org/"
25
- },
26
- "keywords": [
27
- "typescript",
28
- "Utils",
29
- "工具类",
30
- "TamperMonkey",
31
- "VioletMonkey",
32
- "ScriptCat"
33
- ],
34
- "author": "WhiteSev",
35
- "license": "MIT",
36
- "dependencies": {
37
- "@rollup/plugin-babel": "^6.0.4",
38
- "@rollup/plugin-commonjs": "^25.0.8",
39
- "@rollup/plugin-node-resolve": "^15.2.3",
40
- "@rollup/plugin-typescript": "^11.1.6",
41
- "rollup-plugin-clear": "^2.0.7",
42
- "tslib": "^2.6.2"
43
- },
44
- "devDependencies": {
45
- "typescript": "^5.4.5"
46
- }
47
- }
1
+ {
2
+ "name": "@whitesev/utils",
3
+ "version": "1.9.5",
4
+ "description": "一个常用的工具库",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/node/index.esm.js",
7
+ "types": "dist/types/index.d.ts",
8
+ "jsdelivr": "dist/index.umd.js",
9
+ "exports": {
10
+ "./package.json": "./package.json",
11
+ ".": {
12
+ "import": "./dist/index.esm.js",
13
+ "require": "./dist/index.cjs.js",
14
+ "types": "./dist/index.d.ts"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "publishConfig": {
21
+ "registry": "https://registry.npmjs.org/"
22
+ },
23
+ "keywords": [
24
+ "typescript",
25
+ "Utils",
26
+ "工具类",
27
+ "TamperMonkey",
28
+ "VioletMonkey",
29
+ "ScriptCat"
30
+ ],
31
+ "author": "WhiteSev",
32
+ "license": "MIT",
33
+ "dependencies": {
34
+ "@rollup/plugin-babel": "^6.0.4",
35
+ "@rollup/plugin-commonjs": "^26.0.1",
36
+ "@rollup/plugin-node-resolve": "^15.2.3",
37
+ "@rollup/plugin-typescript": "^11.1.6",
38
+ "rollup-plugin-clear": "^2.0.7",
39
+ "tslib": "^2.6.3"
40
+ },
41
+ "devDependencies": {
42
+ "typescript": "^5.5.4"
43
+ },
44
+ "scripts": {
45
+ "build": "rollup --config"
46
+ }
47
+ }