@leexi/shared 0.3.4 → 0.3.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.
|
@@ -1341,10 +1341,7 @@ declare const _default: ({
|
|
|
1341
1341
|
files: string[];
|
|
1342
1342
|
languageOptions: {
|
|
1343
1343
|
parserOptions: {
|
|
1344
|
-
parser:
|
|
1345
|
-
meta?: { [K in keyof import("@typescript-eslint/utils/ts-eslint").Parser.ParserMeta]?: import("@typescript-eslint/utils/ts-eslint").Parser.ParserMeta[K] | undefined; };
|
|
1346
|
-
parseForESLint(text: string, options?: unknown): { [k in keyof import("@typescript-eslint/utils/ts-eslint").Parser.ParseResult]: unknown; };
|
|
1347
|
-
};
|
|
1344
|
+
parser: import("@typescript-eslint/utils/ts-eslint").Parser.LooseParserModule;
|
|
1348
1345
|
};
|
|
1349
1346
|
};
|
|
1350
1347
|
rules: {
|
package/dist/module.json
CHANGED
|
@@ -21,12 +21,9 @@ export const useLocalStorage = (key, defaultValue) => {
|
|
|
21
21
|
try {
|
|
22
22
|
const value = JSON.parse(_findLocalStorageValue());
|
|
23
23
|
return value || defaultValue;
|
|
24
|
-
} catch
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return _parseLocalStorageValue();
|
|
28
|
-
}
|
|
29
|
-
throw error;
|
|
24
|
+
} catch {
|
|
25
|
+
localStorage.setItem(key, JSON.stringify(localStorage.getItem(key)));
|
|
26
|
+
return _parseLocalStorageValue();
|
|
30
27
|
}
|
|
31
28
|
};
|
|
32
29
|
const data = useState(key, _parseLocalStorageValue);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"license": "UNLICENSED",
|
|
3
3
|
"name": "@leexi/shared",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.3.
|
|
5
|
+
"version": "0.3.6",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./composables": {
|
|
8
8
|
"import": "./dist/runtime/composables/index.js",
|
|
@@ -49,25 +49,22 @@
|
|
|
49
49
|
"@stylistic/eslint-plugin-js": "^4.2.0",
|
|
50
50
|
"@stylistic/eslint-plugin-ts": "^4.2.0",
|
|
51
51
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
|
52
|
+
"eslint": "^9.25.1",
|
|
52
53
|
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
53
|
-
"eslint-plugin-vue": "^10.
|
|
54
|
+
"eslint-plugin-vue": "^10.1.0",
|
|
54
55
|
"globals": "^16.0.0",
|
|
55
|
-
"typescript": "^5.8.
|
|
56
|
-
"typescript-eslint": "^8.
|
|
57
|
-
"vue-eslint-parser": "^10.1.
|
|
56
|
+
"typescript": "^5.8.3",
|
|
57
|
+
"typescript-eslint": "^8.31.1",
|
|
58
|
+
"vue-eslint-parser": "^10.1.3"
|
|
58
59
|
},
|
|
59
60
|
"devDependencies": {
|
|
60
61
|
"@nuxt/module-builder": "^1.0.1",
|
|
61
62
|
"@nuxt/test-utils": "^3.17.2",
|
|
62
|
-
"@types/node": "^22.
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"nuxt": "^3.16.2",
|
|
63
|
+
"@types/node": "^22.15.3",
|
|
64
|
+
"happy-dom": "^17.4.6",
|
|
65
|
+
"nuxt": "^3.17.1",
|
|
66
66
|
"tailwindcss": "<4.0.0",
|
|
67
|
-
"vitest": "^3.1.
|
|
68
|
-
"vue-tsc": "^2.2.
|
|
69
|
-
},
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"eslint": ">9.0.0"
|
|
67
|
+
"vitest": "^3.1.2",
|
|
68
|
+
"vue-tsc": "^2.2.10"
|
|
72
69
|
}
|
|
73
70
|
}
|