@nuxt/vue-app
Advanced tools
Comparing version 2.14.0 to 2.14.1
/*! | ||
* @nuxt/vue-app v2.14.0 (c) 2016-2020 | ||
* @nuxt/vue-app v2.14.1 (c) 2016-2020 | ||
@@ -4,0 +4,0 @@ * - All the amazing contributors |
{ | ||
"name": "@nuxt/vue-app", | ||
"version": "2.14.0", | ||
"version": "2.14.1", | ||
"repository": "nuxt/nuxt.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -249,5 +249,9 @@ import Vue from 'vue' | ||
await new Promise((resolve, reject) => { | ||
router.push(ssrContext.url, resolve, () => { | ||
router.push(ssrContext.url, resolve, (err) => { | ||
// https://github.com/vuejs/vue-router/blob/v3.3.4/src/history/errors.js | ||
if (!err._isRouter) return reject(err) | ||
if (err.type !== 1 /* NavigationFailureType.redirected */) return resolve() | ||
// navigated to a different route in router guard | ||
const unregister = router.afterEach(async (to, from, next) => { | ||
const unregister = router.afterEach(async (to, from) => { | ||
ssrContext.url = to.fullPath | ||
@@ -254,0 +258,0 @@ app.context.route = await getRouteData(to) |
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
165458
3550