Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

medusa-telemetry

Package Overview
Dependencies
Maintainers
2
Versions
1405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

medusa-telemetry - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15-staging-20221121092828

6

CHANGELOG.md
# Change Log
## 0.0.15-staging-20221121092828
### Patch Changes
- [`a76762418`](https://github.com/medusajs/medusa/commit/a76762418877e675977540dc95e095492873af44) Thanks [@olivermrbl](https://github.com/olivermrbl)! - Add missing changeset
## 0.0.14

@@ -4,0 +10,0 @@

@@ -16,2 +16,3 @@ "use strict";

exports.trackFeatureFlag = trackFeatureFlag;
exports.trackInstallation = trackInstallation;

@@ -46,2 +47,14 @@ var _telemeter = _interopRequireDefault(require("./telemeter"));

telemeter.trackFeatureFlag(flag);
}
function trackInstallation(installation, type) {
switch (type) {
case "plugin":
telemeter.trackPlugin(installation);
break;
case "module":
telemeter.trackModule(installation);
break;
}
}

24

dist/telemeter.js

@@ -10,2 +10,4 @@ "use strict";

var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));

@@ -51,2 +53,4 @@

this.featureFlags_ = new Set();
this.modules_ = new Set();
this.plugins_ = [];
}

@@ -63,3 +67,3 @@

if (typeof machineId !== "string") {
if ((0, _typeof2["default"])(machineId) !== "string") {
machineId = (0, _uuid.v4)();

@@ -178,3 +182,5 @@ this.store_.setConfig("telemetry.machine_id", machineId);

cli_version: this.getCliVersion(),
feature_flags: Array.from(this.featureFlags_)
feature_flags: Array.from(this.featureFlags_),
modules: Array.from(this.modules_),
plugins: this.plugins_
};

@@ -207,2 +213,16 @@ this.store_.addEvent(event);

}
}, {
key: "trackModule",
value: function trackModule(module) {
if (module) {
this.modules_.add(module);
}
}
}, {
key: "trackPlugin",
value: function trackPlugin(plugin) {
if (plugin) {
this.plugins_.push(plugin);
}
}
}]);

@@ -209,0 +229,0 @@ return Telemeter;

4

dist/util/is-ci.js

@@ -11,2 +11,4 @@ "use strict";

var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _ciInfo = _interopRequireDefault(require("ci-info"));

@@ -101,3 +103,3 @@

function herokuDetect() {
return typeof process.env.NODE === "string" && /\.heroku\/node\/bin\/node/.test(process.env.NODE) && "Heroku";
return (0, _typeof2["default"])(process.env.NODE) === "string" && /\.heroku\/node\/bin\/node/.test(process.env.NODE) && "Heroku";
}

@@ -104,0 +106,0 @@

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {

@@ -8,2 +10,4 @@ value: true

var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
// Returns true for `true`, true, positive numbers

@@ -13,3 +17,3 @@ // Returns false for `false`, false, 0, negative integers and anything else

// Return if Boolean
if (typeof value === "boolean") return value; // Return false if null or undefined
if ((0, _typeof2["default"])(value) === "boolean") return value; // Return false if null or undefined

@@ -16,0 +20,0 @@ if (value === undefined || value === null) return false; // If the String is true or false

{
"name": "medusa-telemetry",
"version": "0.0.14",
"version": "0.0.15-staging-20221121092828",
"description": "Telemetry for Medusa",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc