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.12-nxt.280 to 0.0.12-test.0

.turbo/turbo-test.log

6

CHANGELOG.md
# Change Log
## 0.0.12-test.0
### Patch Changes
- [#2017](https://github.com/medusajs/medusa/pull/2017) [`900260c5b`](https://github.com/medusajs/medusa/commit/900260c5b9df4f4f927db5bb6921e5e139ff269a) Thanks [@olivermrbl](https://github.com/olivermrbl)! - Adds enabled features flags to tracking event in `medusa-telemetry`
All notable changes to this project will be documented in this file.

@@ -4,0 +10,0 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

7

dist/index.js

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

exports.track = exports.setTelemetryEnabled = exports.flush = void 0;
exports.trackFeatureFlag = trackFeatureFlag;

@@ -41,2 +42,6 @@ var _telemeter = _interopRequireDefault(require("./telemeter"));

exports.setTelemetryEnabled = setTelemetryEnabled;
exports.setTelemetryEnabled = setTelemetryEnabled;
function trackFeatureFlag(flag) {
telemeter.trackFeatureFlag(flag);
}

27

dist/telemeter.js

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

var _fs = _interopRequireDefault(require("fs"));
var _isDocker = _interopRequireDefault(require("is-docker"));
var _os = _interopRequireDefault(require("os"));
var _fs = _interopRequireDefault(require("fs"));
var _path = require("path");
var _isDocker = _interopRequireDefault(require("is-docker"));
var _uuid = require("uuid");
var _store = _interopRequireDefault(require("./store"));
var _createFlush = _interopRequireDefault(require("./util/create-flush"));

@@ -29,2 +31,4 @@

var _isCi = require("./util/is-ci");
var _isTruthy = _interopRequireDefault(require("./util/is-truthy"));

@@ -34,6 +38,2 @@

var _isCi = require("./util/is-ci");
var _store = _interopRequireDefault(require("./store"));
var MEDUSA_TELEMETRY_VERBOSE = process.env.MEDUSA_TELEMETRY_VERBOSE || false;

@@ -52,2 +52,3 @@

this.queueCount_ = this.store_.getQueueCount();
this.featureFlags_ = new Set();
}

@@ -177,3 +178,4 @@

medusa_version: this.getMedusaVersion(),
cli_version: this.getCliVersion()
cli_version: this.getCliVersion(),
feature_flags: Array.from(this.featureFlags_)
};

@@ -199,2 +201,9 @@ this.store_.addEvent(event);

}
}, {
key: "trackFeatureFlag",
value: function trackFeatureFlag(flag) {
if (flag) {
this.featureFlags_.add(flag);
}
}
}]);

@@ -201,0 +210,0 @@ return Telemeter;

{
"name": "medusa-telemetry",
"version": "0.0.12-nxt.280+9d787c89",
"version": "0.0.12-test.0",
"description": "Telemetry for Medusa",

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

"@babel/preset-typescript": "^7.15.0",
"babel-preset-medusa-package": "^1.1.20-nxt.280+9d787c89",
"babel-preset-medusa-package": "^1.1.19",
"cross-env": "^5.2.1",

@@ -48,3 +48,3 @@ "eslint": "^6.8.0",

},
"gitHead": "9d787c8989acb6129c4a840f7b19250e2f53dc6b"
"gitHead": "41a5425405aea5045a26def95c0dc00cf4a5a44d"
}

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