@starport/vuex
Advanced tools
Comparing version 0.1.26 to 0.1.27
{ | ||
"name": "@starport/vuex", | ||
"version": "0.1.26", | ||
"version": "0.1.27", | ||
"description": "A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends", | ||
@@ -5,0 +5,0 @@ "author": "Tendermint, Inc <hello@tendermint.com>", |
import blocks from './blocks.js' | ||
export default function init(store) { | ||
if (!store.hasModule([, 'common'])) { | ||
store.registerModule([, 'common'], { namespaced: true }) | ||
if (!store.hasModule(['common'])) { | ||
store.registerModule(['common'], { namespaced: true }) | ||
} | ||
store.registerModule([, 'common', 'blocks'], blocks) | ||
store.registerModule(['common', 'blocks'], blocks) | ||
store.subscribe(mutation => { | ||
@@ -9,0 +9,0 @@ if (mutation.type == 'common/env/INITIALIZE_WS_COMPLETE') { |
import env from './env.js' | ||
export default function init(store) { | ||
if (!store.hasModule([, 'common'])) { | ||
store.registerModule([, 'common'], { namespaced: true }) | ||
if (!store.hasModule(['common'])) { | ||
store.registerModule([ 'common'], { namespaced: true }) | ||
} | ||
store.registerModule([, 'common', 'env'], env) | ||
store.registerModule([ 'common', 'env'], env) | ||
} |
import starport from './starport.js' | ||
export default function init(store) { | ||
if (!store.hasModule([, 'common'])) { | ||
store.registerModule([, 'common'], { namespaced: true }) | ||
if (!store.hasModule(['common'])) { | ||
store.registerModule(['common'], { namespaced: true }) | ||
} | ||
store.registerModule([, 'common', 'starport'], starport) | ||
store.registerModule(['common', 'starport'], starport) | ||
} |
import wallet from './wallet.js' | ||
export default function init(store) { | ||
if (!store.hasModule([, 'common'])) { | ||
store.registerModule([, 'common'], { namespaced: true }) | ||
if (!store.hasModule(['common'])) { | ||
store.registerModule(['common'], { namespaced: true }) | ||
} | ||
store.registerModule([, 'common', 'wallet'], wallet) | ||
store.registerModule(['common', 'wallet'], wallet) | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38283