@nsnanocat/util 0.0.0-preview-ce381a0 → 0.0.0-preview-1422296
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/getStorage.mjs +64 -47
- package/dist/index.d.ts +3 -11
- package/dist/index.js +3 -11
- package/dist/lib/app.mjs +25 -9
- package/dist/lib/done.mjs +58 -48
- package/dist/lib/environment.mjs +15 -16
- package/dist/lib/index.d.mts +5 -0
- package/dist/lib/index.mjs +5 -5
- package/dist/lib/notification.mjs +50 -29
- package/dist/lib/runScript.mjs +27 -18
- package/dist/lib/time.mjs +17 -4
- package/dist/lib/wait.mjs +5 -3
- package/dist/polyfill/Console.mjs +171 -145
- package/dist/polyfill/Lodash.mjs +39 -29
- package/dist/polyfill/StatusTexts.mjs +2 -3
- package/dist/polyfill/Storage.d.mts +12 -0
- package/dist/polyfill/Storage.mjs +167 -173
- package/dist/polyfill/fetch-node.d.mts +3 -0
- package/dist/polyfill/fetch-node.mjs +2 -2
- package/dist/polyfill/fetch.mjs +115 -79
- package/dist/polyfill/index.d.mts +5 -0
- package/dist/polyfill/index.mjs +5 -5
- package/package.json +4 -4
- package/dist/lib/index.d.ts +0 -5
- package/dist/polyfill/Storage.d.ts +0 -8
- package/dist/polyfill/fetch-node.d.ts +0 -1
- package/dist/polyfill/index.d.ts +0 -5
- /package/dist/{getStorage.d.ts → getStorage.d.mts} +0 -0
- /package/dist/lib/{app.d.ts → app.d.mts} +0 -0
- /package/dist/lib/{done.d.ts → done.d.mts} +0 -0
- /package/dist/lib/{environment.d.ts → environment.d.mts} +0 -0
- /package/dist/lib/{notification.d.ts → notification.d.mts} +0 -0
- /package/dist/lib/{runScript.d.ts → runScript.d.mts} +0 -0
- /package/dist/lib/{time.d.ts → time.d.mts} +0 -0
- /package/dist/lib/{wait.d.ts → wait.d.mts} +0 -0
- /package/dist/polyfill/{Console.d.ts → Console.d.mts} +0 -0
- /package/dist/polyfill/{Lodash.d.ts → Lodash.d.mts} +0 -0
- /package/dist/polyfill/{StatusTexts.d.ts → StatusTexts.d.mts} +0 -0
- /package/dist/polyfill/{fetch.d.ts → fetch.d.mts} +0 -0
package/package.json
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
18
|
"scripts": {
|
|
19
|
-
"
|
|
19
|
+
"prebuild": "rimraf dist",
|
|
20
|
+
"build": "tsc",
|
|
20
21
|
"check": "biome check --write",
|
|
21
|
-
"dev": "rslib build --watch",
|
|
22
22
|
"format": "biome format --write",
|
|
23
23
|
"prepublishOnly": "npm run build"
|
|
24
24
|
},
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@biomejs/biome": "^1.9.2",
|
|
37
|
-
"@rslib/core": "^0.2.2",
|
|
38
37
|
"@types/node": "^22.10.2",
|
|
39
38
|
"fetch-cookie": "^3.1.0",
|
|
40
39
|
"node-fetch": "^3.3.2",
|
|
40
|
+
"rimraf": "^6.0.1",
|
|
41
41
|
"typescript": "^5.6.3"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
44
|
"fetch-cookie": "^3.1.0",
|
|
45
45
|
"node-fetch": "^3.3.2"
|
|
46
46
|
},
|
|
47
|
-
"version": "0.0.0-preview-
|
|
47
|
+
"version": "0.0.0-preview-1422296"
|
|
48
48
|
}
|
package/dist/lib/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare class Storage {
|
|
2
|
-
static data: Record<string, any>;
|
|
3
|
-
static dataFile: string;
|
|
4
|
-
static getItem<T = any>(keyName: string, defaultValue?: T): T;
|
|
5
|
-
static setItem(keyName: string, value: any): boolean;
|
|
6
|
-
static removeItem(keyName: string): boolean;
|
|
7
|
-
static clear(): boolean;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const getNodeFetch: () => Promise<{ fetch: typeof import('node-fetch').default }>;
|
package/dist/polyfill/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|