@vuepress/client
Advanced tools
Comparing version 2.0.0-beta.65 to 2.0.0-beta.66
@@ -104,19 +104,11 @@ import { | ||
}); | ||
let pendingPageData; | ||
let pendingToPath; | ||
router.beforeResolve(async (to, from) => { | ||
if (to.path !== from.path || from === START_LOCATION) { | ||
; | ||
[pendingPageData] = await Promise.all([ | ||
[pageData.value] = await Promise.all([ | ||
resolvers.resolvePageData(to.name), | ||
pagesComponents[to.name]?.__asyncLoader() | ||
]); | ||
pendingToPath = to.path; | ||
} | ||
}); | ||
router.afterEach((to, from) => { | ||
if (to.path !== from.path && to.path === pendingToPath) { | ||
pageData.value = pendingPageData; | ||
} | ||
}); | ||
return router; | ||
@@ -123,0 +115,0 @@ }; |
{ | ||
"name": "@vuepress/client", | ||
"version": "2.0.0-beta.65", | ||
"version": "2.0.0-beta.66", | ||
"description": "Client package of VuePress", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"vue-router": "^4.2.4", | ||
"@vuepress/shared": "2.0.0-beta.65" | ||
"@vuepress/shared": "2.0.0-beta.66" | ||
}, | ||
@@ -43,0 +43,0 @@ "publishConfig": { |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
34237
1120
+ Added@vuepress/shared@2.0.0-beta.66(transitive)
- Removed@vuepress/shared@2.0.0-beta.65(transitive)