medusa-telemetry
Advanced tools
Comparing version 0.0.2-alpha.1075 to 0.0.2-alpha.1076
"use strict"; | ||
var _require = require("./util/is-cli"), | ||
isCI = _require.isCI; | ||
try { | ||
@@ -12,3 +15,3 @@ var showAnalyticsNotification = require("./util/show-notification"); | ||
if (enabledInConfig === undefined && !disabled) { | ||
if (enabledInConfig === undefined && !disabled && !isCI()) { | ||
showAnalyticsNotification(); | ||
@@ -15,0 +18,0 @@ } |
@@ -26,8 +26,10 @@ "use strict"; | ||
var _showNotification = _interopRequireDefault(require("./util/show-notification")); | ||
var _getTermProgram = _interopRequireDefault(require("./util/get-term-program")); | ||
var _isTruthy = _interopRequireDefault(require("./util/is-truthy")); | ||
var _getTermProgram = _interopRequireDefault(require("./util/get-term-program")); | ||
var _showNotification = _interopRequireDefault(require("./util/show-notification")); | ||
var _isCli = require("./util/is-cli"); | ||
var _store = _interopRequireDefault(require("./store")); | ||
@@ -78,3 +80,6 @@ | ||
if (enabled === undefined || enabled === null) { | ||
(0, _showNotification["default"])(); | ||
if (!(0, _isCli.isCI)()) { | ||
(0, _showNotification["default"])(); | ||
} | ||
enabled = true; | ||
@@ -101,2 +106,4 @@ this.store_.setConfig("telemetry.enabled", enabled); | ||
cpus: cpus && cpus.length > 0 && cpus[0].model || undefined, | ||
is_ci: (0, _isCli.isCI)(), | ||
ci_name: (0, _isCli.getCIName)(), | ||
arch: _os["default"].arch(), | ||
@@ -103,0 +110,0 @@ docker: (0, _isDocker["default"])(), |
{ | ||
"name": "medusa-telemetry", | ||
"version": "0.0.2-alpha.1075+b988b671", | ||
"version": "0.0.2-alpha.1076+9475ed76", | ||
"description": "Telemetry for Medusa", | ||
@@ -46,3 +46,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "b988b67118553c88ef6c6d53ae99ef1ad9d67305" | ||
"gitHead": "9475ed7689508cf8bda166ac8d7ccda544e76e2f" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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 4 instances 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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
38868
15
942
17