nuxt-umami
Advanced tools
Comparing version 2.0.0-beta.2 to 2.0.0-beta.3
@@ -21,8 +21,14 @@ import type { PreflightResult } from './types'; | ||
function helloDebugger(id: ErrorId, raw?: any) { | ||
function screamer(id: ErrorId, raw?: any) { | ||
const { level, text } = warnings[id]; | ||
// eslint-disable-next-line no-console | ||
console[level](`[UMAMI]: ${text}`, '\n', raw); | ||
console[level](`[UMAMI]: ${text}`, '\n'); | ||
// eslint-disable-next-line no-console | ||
raw && (console[level](raw)); | ||
} | ||
function silencio(id: ErrorId, raw?: any) {} | ||
const helloDebugger = process.env.NODE_ENV === 'production' ? silencio : screamer; | ||
export { helloDebugger }; |
{ | ||
"name": "nuxt-umami", | ||
"type": "module", | ||
"version": "2.0.0-beta.2", | ||
"version": "2.0.0-beta.3", | ||
"main": "./nuxt.config.ts", | ||
@@ -6,0 +6,0 @@ "description": "Integrate Umami Analytics into Nuxt", |
@@ -5,3 +5,3 @@ # Nuxt Umami <sup>@next<sup> | ||
[![Downloads](https://img.shields.io/npm/dt/nuxt-umami.svg?style=flat-square)](https://www.npmjs.com/package/nuxt-umami) | ||
[![License](https://img.shields.io/npm/l/nuxt-umami/?style=flat-square)](/LICENSE) | ||
[![License](https://img.shields.io/npm/l/nuxt-umami?style=flat-square)](/LICENSE) | ||
@@ -8,0 +8,0 @@ Deeply integrate [**Umami Analytics**](https://umami.is/) into your Nuxt websites / applications. |
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
14952
324