@thzero/library_client_vue3_store_pinia 0.19.3 → 0.19.4
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/package.json +3 -3
- package/store/index.js +5 -0
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thzero/library_client_vue3_store_pinia",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.4",
|
|
5
5
|
"version_major": 0,
|
|
6
6
|
"version_minor": 19,
|
|
7
|
-
"version_patch":
|
|
8
|
-
"version_date": "10/
|
|
7
|
+
"version_patch": 4,
|
|
8
|
+
"version_date": "10/10/2026",
|
|
9
9
|
"description": "An opinionated library for vue3 with pinia store for the library_client_vue3 using the https://prazdevs.github.io/pinia-plugin-persistedstate library.",
|
|
10
10
|
"author": "thZero",
|
|
11
11
|
"author_url": "https://www.thzero.com",
|
package/store/index.js
CHANGED
|
@@ -60,6 +60,11 @@ class BaseStore {
|
|
|
60
60
|
// if (storeConfig.pluginPersistPaths && storeConfig.pluginPersistPaths[pluginPersistType])
|
|
61
61
|
// storeConfig[pluginPersistType].paths = [ ...storeConfig[pluginPersistType].paths, ...storeConfig.pluginPersistPaths[pluginPersistType] ];
|
|
62
62
|
delete storeConfig.pluginPersistPaths;
|
|
63
|
+
// as _initModule does: the getters and dispatcher are kept above and
|
|
64
|
+
// set on the store below; left in, pinia made each getter a readonly
|
|
65
|
+
// computed on the store, which hid an action of the same name
|
|
66
|
+
delete storeConfig.dispatcher;
|
|
67
|
+
delete storeConfig.getters;
|
|
63
68
|
|
|
64
69
|
const storeFunc = defineStore('main', storeConfig);
|
|
65
70
|
LibraryClientUtility.$store = storeFunc(options.pinia);
|