@vaadin/vaadin-usage-statistics
Advanced tools
Comparing version 2.0.7 to 2.0.8
var fs = require('fs'); | ||
const disabledForMachine = process.env.npm_package_config_disabled; | ||
const greetingLogged = process.env.npm_package_config_greeting_logged; | ||
const optoutLogged = process.env.npm_package_config_optout_logged; | ||
let disabledForProject = false; | ||
@@ -18,3 +15,3 @@ | ||
if (disabledForMachine) { | ||
!optoutLogged && console.log(` | ||
console.log(` | ||
You have disabled Vaadin development time usage statistics collection. To re-enable, run: | ||
@@ -32,3 +29,3 @@ npm explore @vaadin/vaadin-usage-statistics -- npm run enable | ||
} else { | ||
!greetingLogged && console.log(` | ||
console.log(` | ||
Vaadin collects development time usage statistics to improve this product. To opt-out, either run: | ||
@@ -35,0 +32,0 @@ npm explore @vaadin/vaadin-usage-statistics -- npm run disable |
@@ -6,3 +6,3 @@ { | ||
"name": "@vaadin/vaadin-usage-statistics", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"directories": { | ||
@@ -31,5 +31,5 @@ "test": "test" | ||
"scripts": { | ||
"postinstall": "node check.js && npm config set @vaadin/vaadin-usage-statistics:greeting-logged true", | ||
"disable": "npm config set @vaadin/vaadin-usage-statistics:disabled true && npm run postinstall && npm config set @vaadin/vaadin-usage-statistics:optout-logged true", | ||
"enable": "npm config set @vaadin/vaadin-usage-statistics:disabled false && npm config set @vaadin/vaadin-usage-statistics:greeting-logged false && npm config set @vaadin/vaadin-usage-statistics:optout-logged false && npm run postinstall" | ||
"postinstall": "node check.js", | ||
"disable": "npm config set @vaadin/vaadin-usage-statistics:disabled true && npm run postinstall", | ||
"enable": "npm config set @vaadin/vaadin-usage-statistics:disabled false && npm run postinstall" | ||
}, | ||
@@ -36,0 +36,0 @@ "bugs": { |
@@ -462,3 +462,3 @@ /* This file is autogenerated from src/vaadin-usage-statistics.tpl.html */ | ||
get: function get$1() { | ||
return '2.0.7'; | ||
return '2.0.8'; | ||
} | ||
@@ -465,0 +465,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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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 2 instances in 1 package
3
31918
499