@nsnanocat/util 1.9.5 → 1.9.6

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.
Files changed (2) hide show
  1. package/getStorage.mjs +1 -0
  2. package/package.json +40 -36
package/getStorage.mjs CHANGED
@@ -12,6 +12,7 @@ import { Storage } from "./polyfill/Storage.mjs";
12
12
  * @return {object} { Settings, Caches, Configs }
13
13
  */
14
14
  export function getStorage(key, names, database) {
15
+ if (database?.Default?.Settings?.LogLevel) Console.logLevel = database.Default.Settings.LogLevel;
15
16
  Console.debug("☑️ getStorage");
16
17
  names = [names].flat(Number.POSITIVE_INFINITY);
17
18
  /***************** Default *****************/
package/package.json CHANGED
@@ -1,37 +1,41 @@
1
1
  {
2
- "name": "@nsnanocat/util",
3
- "description": "Pure JS's util module for well-known iOS network tools",
4
- "author": "VirgilClyne <Virgil@nanocat.me>",
5
- "homepage": "https://NSNanoCat.github.io/util",
6
- "keywords": [
7
- "loon",
8
- "quantumult",
9
- "surge",
10
- "shadowrocket",
11
- "stash",
12
- "egern"
13
- ],
14
- "license": "Apache-2.0",
15
- "bugs": "https://github.com/NSNanoCat/util/issues",
16
- "main": "index.js",
17
- "type": "module",
18
- "scripts": {
19
- "tsc:build": "npx tsc",
20
- "test": "node --test test/*.test.js",
21
- "test:merge": "node --test test/Lodash.merge.test.js"
22
- },
23
- "repository": {
24
- "type": "git",
25
- "url": "https://github.com/NSNanoCat/util.git"
26
- },
27
- "files": [
28
- "index.js",
29
- "lib",
30
- "polyfill",
31
- "getStorage.mjs"
32
- ],
33
- "devDependencies": {
34
- "typescript": "^5.6.3"
35
- },
36
- "version": "1.9.5"
37
- }
2
+ "name": "@nsnanocat/util",
3
+ "description": "Pure JS's util module for well-known iOS network tools",
4
+ "author": "VirgilClyne <Virgil@nanocat.me>",
5
+ "homepage": "https://NSNanoCat.github.io/util",
6
+ "keywords": [
7
+ "loon",
8
+ "quantumult",
9
+ "surge",
10
+ "shadowrocket",
11
+ "stash",
12
+ "egern"
13
+ ],
14
+ "license": "Apache-2.0",
15
+ "bugs": "https://github.com/NSNanoCat/util/issues",
16
+ "main": "index.js",
17
+ "type": "module",
18
+ "scripts": {
19
+ "tsc:build": "npx tsc",
20
+ "test": "node --test test/*.test.js",
21
+ "test:merge": "node --test test/Lodash.merge.test.js"
22
+ },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/NSNanoCat/util.git"
26
+ },
27
+ "files": [
28
+ "index.js",
29
+ "lib",
30
+ "polyfill",
31
+ "getStorage.mjs"
32
+ ],
33
+ "devDependencies": {
34
+ "typescript": "^5.6.3"
35
+ },
36
+ "publishConfig": {
37
+ "registry": "https://registry.npmjs.org/",
38
+ "access": "public"
39
+ },
40
+ "version": "1.9.6"
41
+ }