@knowlearning/agents 0.2.7 → 0.2.8
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 +1 -1
- package/persistence/vuex.js +1 -2
package/package.json
CHANGED
package/persistence/vuex.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createStore } from 'vuex'
|
|
2
1
|
import MutableProxy from './json.js'
|
|
3
2
|
|
|
4
3
|
// TODO: consider path serialization approach. Also consider just using a mutable proxy from agent.state...
|
|
@@ -26,7 +25,7 @@ export default async function (storeDefinition) {
|
|
|
26
25
|
Object.keys(scopedPaths).forEach(key => ephemeralPaths[key] = true)
|
|
27
26
|
|
|
28
27
|
stateAttachedStore.state = () => MutableProxy(savedState || originalState, handlePatch, ephemeralPaths)
|
|
29
|
-
return
|
|
28
|
+
return stateAttachedStore
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
// TODO: sanitize module names for path serialization approach
|