corvid-storeon
Advanced tools
Comparing version
{ | ||
"name": "corvid-storeon", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A tiny event-based state manager Storeon for Corvid by Wix", | ||
@@ -5,0 +5,0 @@ "main": "lib/es5.js", |
@@ -65,3 +65,3 @@ # corvid-storeon | ||
Latest available version: `v2.3.1` [Check status](https://www.wix.com/corvid/npm-modules) | ||
Latest available version: `v3.0.0` [Check status](https://www.wix.com/corvid/npm-modules) | ||
@@ -180,3 +180,3 @@ <img src="assets/cs.png" width="500" alt="Install corvid-storeon"> | ||
// Business logic | ||
function appModule(store) { | ||
const appModule = (store) => { | ||
store.on("@init", () => { | ||
@@ -193,6 +193,6 @@ return { | ||
}); | ||
} | ||
}; | ||
// Devtools | ||
function logger(store) { | ||
const logger = (store) => { | ||
store.on("@dispatch", (state, [event, data]) => { | ||
@@ -208,5 +208,5 @@ if (event === "@changed") { | ||
}); | ||
} | ||
}; | ||
export default createStoreon([ | ||
export const store = createStoreon([ | ||
appModule, | ||
@@ -213,0 +213,0 @@ (wixWindow.viewMode === "Preview" && logger), |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17451
0.08%0
-100%