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.18-preview-20240505115807 to 0.0.18-preview-20240507182533

9

dist/index.js

@@ -19,17 +19,14 @@ "use strict";

var telemeter = new _telemeter["default"]();
var flush = (0, _createFlush["default"])(telemeter.isTrackingEnabled());
exports.flush = flush;
var flush = exports.flush = (0, _createFlush["default"])(telemeter.isTrackingEnabled());
if (flush) {
process.on("exit", flush);
}
var track = function track(event) {
var track = exports.track = function track(event) {
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
telemeter.track(event, data);
};
exports.track = track;
var setTelemetryEnabled = function setTelemetryEnabled() {
var setTelemetryEnabled = exports.setTelemetryEnabled = function setTelemetryEnabled() {
var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
telemeter.setTelemetryEnabled(enabled);
};
exports.setTelemetryEnabled = setTelemetryEnabled;
function trackFeatureFlag(flag) {

@@ -36,0 +33,0 @@ telemeter.trackFeatureFlag(flag);

@@ -31,3 +31,3 @@ "use strict";

}
(0, _createClass2["default"])(Store, [{
return (0, _createClass2["default"])(Store, [{
key: "getQueueSize",

@@ -108,5 +108,3 @@ value: function getQueueSize() {

}]);
return Store;
}();
var _default = Store;
exports["default"] = _default;
var _default = exports["default"] = Store;

@@ -38,3 +38,3 @@ "use strict";

}
(0, _createClass2["default"])(Telemeter, [{
return (0, _createClass2["default"])(Telemeter, [{
key: "getMachineId",

@@ -189,5 +189,3 @@ value: function getMachineId() {

}]);
return Telemeter;
}();
var _default = Telemeter;
exports["default"] = _default;
var _default = exports["default"] = Telemeter;

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

}
var _default = createFlush;
exports["default"] = _default;
var _default = exports["default"] = createFlush;

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

}
var _default = getTermProgram;
exports["default"] = _default;
var _default = exports["default"] = getTermProgram;

@@ -14,3 +14,3 @@ "use strict";

var _path = require("path");
var InMemoryConfigStore = /*#__PURE__*/function () {
var InMemoryConfigStore = exports.InMemoryConfigStore = /*#__PURE__*/function () {
function InMemoryConfigStore() {

@@ -22,3 +22,3 @@ (0, _classCallCheck2["default"])(this, InMemoryConfigStore);

}
(0, _createClass2["default"])(InMemoryConfigStore, [{
return (0, _createClass2["default"])(InMemoryConfigStore, [{
key: "createBaseConfig",

@@ -67,4 +67,2 @@ value: function createBaseConfig() {

}]);
return InMemoryConfigStore;
}();
exports.InMemoryConfigStore = InMemoryConfigStore;
}();

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

}
var _default = isTruthy;
exports["default"] = _default;
var _default = exports["default"] = isTruthy;

@@ -26,3 +26,3 @@ "use strict";

}
(0, _createClass2["default"])(Outbox, [{
return (0, _createClass2["default"])(Outbox, [{
key: "appendToBuffer",

@@ -196,5 +196,3 @@ value: function appendToBuffer(event) {

}]);
return Outbox;
}();
var _default = Outbox;
exports["default"] = _default;
var _default = exports["default"] = Outbox;

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

}
var _default = showAnalyticsNotification;
exports["default"] = _default;
var _default = exports["default"] = showAnalyticsNotification;

@@ -38,3 +38,3 @@ "use strict";

}
(0, _createClass2["default"])(TelemetryDispatcher, [{
return (0, _createClass2["default"])(TelemetryDispatcher, [{
key: "isTrackingEnabled",

@@ -151,5 +151,3 @@ value: function isTrackingEnabled() {

}]);
return TelemetryDispatcher;
}();
var _default = TelemetryDispatcher;
exports["default"] = _default;
var _default = exports["default"] = TelemetryDispatcher;
{
"name": "medusa-telemetry",
"version": "0.0.18-preview-20240505115807",
"version": "0.0.18-preview-20240507182533",
"description": "Telemetry for Medusa",

@@ -27,3 +27,3 @@ "main": "dist/index.js",

"@babel/preset-typescript": "^7.15.0",
"babel-preset-medusa-package": "1.1.20-preview-20240505115807",
"babel-preset-medusa-package": "1.1.20-preview-20240507182533",
"cross-env": "^5.2.1",

@@ -30,0 +30,0 @@ "jest": "^25.5.4",

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