@nuxt/telemetry
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.1.1](https://github.com/nuxt/telemetry/compare/v1.1.0...v1.1.1) (2020-06-26) | ||
### Bug Fixes | ||
* **module:** handle entry errors ([f8051d0](https://github.com/nuxt/telemetry/commit/f8051d047c0bd5f2128cce19b3a967e10e82005a)) | ||
## [1.1.0](https://github.com/nuxt/telemetry/compare/v1.0.1...v1.1.0) (2020-06-19) | ||
@@ -7,0 +14,0 @@ |
@@ -27,3 +27,3 @@ 'use strict'; | ||
var name = "@nuxt/telemetry"; | ||
var version = "1.1.0"; | ||
var version = "1.1.1"; | ||
@@ -492,7 +492,7 @@ function updateUserNuxtRc(key, val) { | ||
async function telemetryModule() { | ||
async function _telemetryModule(nuxt) { | ||
const toptions = { | ||
endpoint: destr(process.env.NUXT_TELEMETRY_ENDPOINT) || 'https://telemetry.nuxtjs.com', | ||
debug: destr(process.env.NUXT_TELEMETRY_DEBUG), | ||
...this.options.telemetry | ||
...nuxt.options.telemetry | ||
}; | ||
@@ -504,3 +504,3 @@ | ||
if (toptions.enabled === false || this.options.telemetry === false || !(await ensureUserconsent(toptions))) { | ||
if (toptions.enabled === false || nuxt.options.telemetry === false || !(await ensureUserconsent(toptions))) { | ||
log.info('Telemetry disabled'); | ||
@@ -518,7 +518,7 @@ return; | ||
const t = new Telemetry(this.nuxt, toptions); | ||
const t = new Telemetry(nuxt, toptions); | ||
if (this.options._start) { | ||
if (nuxt.options._start) { | ||
// nuxt start | ||
this.nuxt.hook('listen', () => { | ||
nuxt.hook('listen', () => { | ||
t.createEvent('project'); | ||
@@ -531,3 +531,3 @@ t.createEvent('session'); | ||
this.nuxt.hook('build:before', () => { | ||
nuxt.hook('build:before', () => { | ||
t.createEvent('project'); | ||
@@ -538,5 +538,13 @@ t.createEvent('session'); | ||
}); | ||
profile(this.nuxt, t); | ||
profile(nuxt, t); | ||
} | ||
async function telemetryModule() { | ||
try { | ||
await _telemetryModule(this.nuxt); | ||
} catch (err) { | ||
log.error(err); | ||
} | ||
} | ||
function profile(nuxt, t) { | ||
@@ -543,0 +551,0 @@ const startT = {}; |
{ | ||
"name": "@nuxt/telemetry", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"repository": "nuxt/telemetry", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
27829
631