New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nuxtjs/web-vitals

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/web-vitals - npm Package Compare versions

Comparing version

to
0.1.2

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.1.2](https://github.com/nuxt-community/web-vitals-module/compare/v0.1.1...v0.1.2) (2021-02-04)
### Features
* auto switch to log in dev if debug enabled and no provider set ([f38ea59](https://github.com/nuxt-community/web-vitals-module/commit/f38ea596a70223d1859383fac175dca11288e31a))
### [0.1.1](https://github.com/nuxt-community/web-vitals-module/compare/v0.1.0...v0.1.1) (2021-02-04)

@@ -7,0 +14,0 @@

6

dist/index.js

@@ -82,6 +82,8 @@ 'use strict';

if (!provider) {
if (!nuxt.options.dev) {
if (nuxt.options.dev && options.debug) {
provider = resolveProvider("log");
} else {
console.warn("[@nuxtjs/web-vitals] Please define a provider to activate this module");
return;
}
return;
}

@@ -88,0 +90,0 @@ const runtimeDir = path.resolve(__dirname, "runtime");

{
"name": "@nuxtjs/web-vitals",
"version": "0.1.1",
"version": "0.1.2",
"description": "Web Vitals for Nuxt.js",

@@ -5,0 +5,0 @@ "keywords": [

@@ -34,3 +34,3 @@ # Nuxt Web Vitals

webVitals: {
provider: 'log', // Auto detectd
// provider: '', // auto detectd
debug: false,

@@ -37,0 +37,0 @@ disabled: false