@nuxt/vue-app
Advanced tools
Comparing version 2.8.0 to 2.8.1
/*! | ||
* @nuxt/vue-app v2.8.0 (c) 2016-2019 | ||
* @nuxt/vue-app v2.8.1 (c) 2016-2019 | ||
@@ -4,0 +4,0 @@ * - All the amazing contributors |
{ | ||
"name": "@nuxt/vue-app", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"repository": "nuxt/nuxt.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -23,3 +23,5 @@ import Vue from 'vue' | ||
<% if (isDev) { %>consola.wrapConsole()<% } %> | ||
<% if (isDev) { %>consola.wrapConsole() | ||
console.log = console.__log | ||
<% } %> | ||
@@ -26,0 +28,0 @@ // Component: <NuxtLink> |
@@ -45,4 +45,9 @@ import Vue from 'vue' | ||
const [matchedRoute] = this.$route.matched | ||
const Component = matchedRoute && matchedRoute.components.default | ||
if (!matchedRoute) { | ||
return this.$route.path | ||
} | ||
const Component = matchedRoute.components.default | ||
if (Component && Component.options) { | ||
@@ -49,0 +54,0 @@ const { options } = Component |
import { stringify } from 'querystring' | ||
import consola from 'consola' | ||
import Vue from 'vue' | ||
@@ -101,3 +100,3 @@ <% if (fetch.server) { %>import fetch from 'node-fetch'<% } %> | ||
} catch (err) { | ||
consola.debug('Error occurred when calling nuxtServerInit: ', err.message) | ||
console.debug('Error occurred when calling nuxtServerInit: ', err.message) | ||
throw err | ||
@@ -223,3 +222,3 @@ } | ||
<% if (debug) { %>if (asyncDatas.length) consola.debug('Data fetching ' + ssrContext.url + ': ' + (Date.now() - s) + 'ms')<% } %> | ||
<% if (debug) { %>if (process.env.DEBUG && asyncDatas.length)console.debug('Data fetching ' + ssrContext.url + ': ' + (Date.now() - s) + 'ms')<% } %> | ||
@@ -226,0 +225,0 @@ // datas are the first row of each |
@@ -6,3 +6,2 @@ import Vue from 'vue' | ||
const log = console // on server-side, consola will catch all console.log | ||
const VUEX_PROPERTIES = ['state', 'getters', 'actions', 'mutations'] | ||
@@ -20,3 +19,3 @@ let store = {} | ||
if (typeof store === 'function') { | ||
return log.warn('Classic mode for store/ is deprecated and will be removed in Nuxt 3.') | ||
return console.warn('Classic mode for store/ is deprecated and will be removed in Nuxt 3.') | ||
}<% } %> | ||
@@ -109,3 +108,3 @@ | ||
if (typeof moduleData !== 'function') { | ||
log.warn(`${filePath} should export a method that returns an object`) | ||
console.warn(`${filePath} should export a method that returns an object`) | ||
const state = Object.assign({}, moduleData) | ||
@@ -119,3 +118,3 @@ return () => state | ||
if (moduleData.state && typeof moduleData.state !== 'function') { | ||
log.warn(`'state' should be a method that returns an object in ${filePath}`) | ||
console.warn(`'state' should be a method that returns an object in ${filePath}`) | ||
const state = Object.assign({}, moduleData.state) | ||
@@ -122,0 +121,0 @@ // Avoid TypeError: setting a property that has only a getter when overwriting top level keys |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
130419
2538
4