@nuxt/vue-app
Advanced tools
Comparing version 2.14.4 to 2.14.5
/*! | ||
* @nuxt/vue-app v2.14.4 (c) 2016-2020 | ||
* @nuxt/vue-app v2.14.5 (c) 2016-2020 | ||
@@ -19,3 +19,3 @@ * - All the amazing contributors | ||
var dependencies = { | ||
"node-fetch": "^2.6.0", | ||
"node-fetch": "^2.6.1", | ||
unfetch: "^4.1.0", | ||
@@ -22,0 +22,0 @@ vue: "^2.6.12", |
{ | ||
"name": "@nuxt/vue-app", | ||
"version": "2.14.4", | ||
"version": "2.14.5", | ||
"repository": "nuxt/nuxt.js", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"node-fetch": "^2.6.0", | ||
"node-fetch": "^2.6.1", | ||
"unfetch": "^4.1.0", | ||
@@ -19,0 +19,0 @@ "vue": "^2.6.12", |
@@ -132,7 +132,5 @@ import Vue from 'vue' | ||
<% } %> | ||
<% if (loading) { %> | ||
watch: { | ||
'nuxt.err': 'errorChanged' | ||
}, | ||
<% } %> | ||
<% if (features.clientOnline) { %> | ||
@@ -219,14 +217,25 @@ computed: { | ||
}, | ||
<% if (loading) { %> | ||
errorChanged () { | ||
if (this.nuxt.err && this.$loading) { | ||
if (this.$loading.fail) { | ||
this.$loading.fail(this.nuxt.err) | ||
<% if (splitChunks.layouts) { %>async <% } %>errorChanged () { | ||
if (this.nuxt.err) { | ||
<% if (loading) { %> | ||
if (this.$loading) { | ||
if (this.$loading.fail) { | ||
this.$loading.fail(this.nuxt.err) | ||
} | ||
if (this.$loading.finish) { | ||
this.$loading.finish() | ||
} | ||
} | ||
if (this.$loading.finish) { | ||
this.$loading.finish() | ||
<% } %> | ||
let errorLayout = (NuxtError.options || NuxtError).layout; | ||
if (typeof errorLayout === 'function') { | ||
errorLayout = errorLayout(this.context) | ||
} | ||
<% if (splitChunks.layouts) { %> | ||
await this.loadLayout(errorLayout) | ||
<% } %> | ||
this.setLayout(errorLayout) | ||
} | ||
}, | ||
<% } %> | ||
<% if (features.layouts) { %> | ||
@@ -233,0 +242,0 @@ <% if (splitChunks.layouts) { %> |
@@ -616,3 +616,3 @@ import Vue from 'vue' | ||
<% if (features.layouts) { %> | ||
function setLayoutForNextPage (to) { | ||
<% if (splitChunks.layouts) { %>async <% } %>function setLayoutForNextPage (to) { | ||
// Set layout | ||
@@ -630,2 +630,5 @@ let hasError = Boolean(this.$options.nuxt.err) | ||
} | ||
<% if (splitChunks.layouts) { %> | ||
await this.loadLayout(layout) | ||
<% } %> | ||
this.setLayout(layout) | ||
@@ -632,0 +635,0 @@ } |
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
166304
3570
Updatednode-fetch@^2.6.1