Gathering detailed insights and metrics for vuex-enhanced-router-sync
Gathering detailed insights and metrics for vuex-enhanced-router-sync
Gathering detailed insights and metrics for vuex-enhanced-router-sync
Gathering detailed insights and metrics for vuex-enhanced-router-sync
This package replaces vuex-router-sync and adds some useful features.
npm install vuex-enhanced-router-sync
Typescript
Module System
Node Version
NPM Version
46.9
Supply Chain
82.9
Quality
74.8
Maintenance
50
Vulnerability
99.6
License
TypeScript (55.99%)
JavaScript (44.01%)
Total Downloads
11,818
Last Day
12
Last Week
37
Last Month
111
Last Year
1,459
MIT License
1 Stars
39 Commits
1 Watchers
14 Branches
2 Contributors
Updated on May 28, 2021
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
vuex-enhanced-router-sync@1.0.0
Unpacked Size
15.56 kB
Size
5.72 kB
File Count
6
NPM Version
6.4.1
Node Version
8.12.0
Cumulative downloads
Total Downloads
Last Day
200%
12
Compared to previous day
Last Week
8.8%
37
Compared to previous week
Last Month
-28.8%
111
Compared to previous month
Last Year
2.5%
1,459
Compared to previous year
This package replaces vuex-router-sync
and adds some useful features.
I dislike the fact that vuex-router-sync
replaces the store state instead of updating it. This leads to the recomputation of all computed properties and getters related to the router state, even though it isn't really necessary.
Let's say you have a very expensive getter that depends on on the ?search=foo
query parameter and takes 1 second to complete. The user then clicks on a search result and &open=1
is added to the query. vuex-enhanced-router-sync
leaves search
alone and updates open
while vuex-router-sync
would update both search
and open
, which leads to longer blocking of the UI.
1npm install vuex-enhanced-router-sync 2# or 3yarn add vuex-enhanced-router-sync
See vue-router-sync
1import { sync } from "vuex-enhanced-router-sync"; 2 3sync(store, router, { immutable: false, moduleName: "route" }); 4// or 5sync(store, router, "route"); // only supply moduleName 6// or 7sync(store, router); // default options
store: Store<any>
router: VueRouter
options: string | options
(optional)
immutable: boolean
(default false
)
Set this to true if you want vuex-enhanced-router-sync to treat the state like an immutable object.
moduleName: string
(default "route"
)
The state can be accessed via vm.$store.state.<module name>.path
. See below for all available properties. This can also be set by supplying a string to options.
From vue-router:
store.state.<module name>
name: string
: The name of the current route, if it has one.path: string
: A string that equals the path of the current route.hash: string
: The hash of the current route.fullPath: string
: The full resolved URL including query and hash.query: object
: An object that contains key/value pairs of the query string.params: object
: An object that contains key/value pairs of dynamic segments and star segments.meta: object
: The meta of the current route.from: object
: The previous route.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
67 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More