Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
vuex-url-search-params
Advanced tools
Persist and rehydrate your Vuex store via url search params (window.location.search)
Persist and rehydrate your Vuex store via url search params (window.location.search).
npm i --save vuex-url-search-params
# or
yarn add vuex-url-search-params
npm i --no-save vue@2.x vue-template-compiler@2.x vuex@3.x # Optionally
yarn test:jest # Runs Jest with coverage collection
yarn test:coverage # Sends coverage to .coveralls.io
yarn test # yarn test:jest && yarn test:coverage
Look at the quite complex example at CodeSandbox:
Note, this plugin is now suitable only for array-like and iterable Vuex state values!
subscribeTo = [] <Array>
Mutations types for subscribing.
modifiers = {} <Object>
Object which defines how to <mutationType>
payload will be transform to the query string search param and back
modifiers.<mutationType>.key <String>
Query string search param name
modifiers.<mutationType>.pushStateModifier <Function>
Function for modifying mutation payload value for using it in a query string search param with key above. Accepts <mutationType>
payload as the first argument and Vuex store object as the second
modifiers.<mutationType>.popStateModifier <Function>
Function for modifying query string search param value for using it in an appropriate mutation. Accepts query string search param value as the first argument and Vuex store object as the second
modifiers.<mutationType>.emptyStateModifier <Function>
Function which result will be used as payload value for mutation when an appropriate query string search param become empty. Accepts Vuex store object as argument
qs = window.location.search <String>
Query string for initialization
store <Vuex.Store>
Vuex store object
FAQs
Persist and rehydrate your Vuex store via url search params (window.location.search)
The npm package vuex-url-search-params receives a total of 3 weekly downloads. As such, vuex-url-search-params popularity was classified as not popular.
We found that vuex-url-search-params demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.