
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
vuex-persisted-shared-state
Advanced tools
Persist Vuex state with localStorage and share between tabs.
Persist Vuex state with localStorage and share between tabs.
$ npm install vuex-persisted-shared-state
or
$ yarn add vuex-persisted-shared-state
import persistedSharedState from "vuex-persisted-shared-state";
const store = new Vuex.Store({
// ...
plugins: [
persistedSharedState({
'cart': 'SET_CART',
}),
]
});
persistedSharedState(mutations, options = {})
Creates a new instance of the plugin with the given mutations object and options.
Mutations can be provided like strings
{
'cart': 'SET_CART',
}
or like an objects
{
'cart': {
mutation: 'SET_CART',
share: false,
defaultValue: null,
},
}
The following options can be provided to configure the plugin for your specific needs:
share
: Should state change be shared between browser tabs. (default: true)prefix
: Prefix of the localStorage keys. (default: 'vuex-persisted-shared-state')FAQs
Persist Vuex state with localStorage and share between tabs.
The npm package vuex-persisted-shared-state receives a total of 0 weekly downloads. As such, vuex-persisted-shared-state popularity was classified as not popular.
We found that vuex-persisted-shared-state demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.