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

@mongodb-js/compass-logging

Package Overview
Dependencies
Maintainers
29
Versions
493
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongodb-js/compass-logging - npm Package Compare versions

Comparing version 0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5 to 0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c

25

dist/index.js

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

const debug_1 = __importDefault(require("debug"));
let preferencesIpc;
let preferences;
function emit(ipc, event, data) {

@@ -63,13 +63,13 @@ var _a;

try {
preferencesIpc !== null && preferencesIpc !== void 0 ? preferencesIpc : (preferencesIpc = (await Promise.resolve().then(() => __importStar(require('compass-preferences-model'))))
.preferencesIpc);
preferences !== null && preferences !== void 0 ? preferences : (preferences = (await Promise.resolve().then(() => __importStar(require('compass-preferences-model'))))
.preferencesAccess);
}
catch (_a) {
preferencesIpc !== null && preferencesIpc !== void 0 ? preferencesIpc : (preferencesIpc = {
preferences !== null && preferences !== void 0 ? preferences : (preferences = {
getPreferences() {
return Promise.resolve({ trackUsageStatistics: true });
return { trackUsageStatistics: true };
},
});
}
const { trackUsageStatistics = true } = await (preferencesIpc === null || preferencesIpc === void 0 ? void 0 : preferencesIpc.getPreferences());
const { trackUsageStatistics = true } = preferences === null || preferences === void 0 ? void 0 : preferences.getPreferences();
if (!trackUsageStatistics) {

@@ -83,3 +83,14 @@ return;

if (typeof properties === 'function') {
data.properties = await properties();
try {
data.properties = await properties();
}
catch (error) {
emit(ipc, 'compass:track', {
event: 'Error Fetching Attributes',
properties: {
event_name: event,
},
});
return;
}
}

@@ -86,0 +97,0 @@ emit(ipc, 'compass:track', data);

@@ -16,3 +16,3 @@ {

"homepage": "https://github.com/mongodb-js/compass",
"version": "0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5",
"version": "0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c",
"repository": {

@@ -57,6 +57,6 @@ "type": "git",

"devDependencies": {
"@mongodb-js/eslint-config-compass": "0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5",
"@mongodb-js/mocha-config-compass": "0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5",
"@mongodb-js/prettier-config-compass": "0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5",
"@mongodb-js/tsconfig-compass": "0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5",
"@mongodb-js/eslint-config-compass": "0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c",
"@mongodb-js/mocha-config-compass": "0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c",
"@mongodb-js/prettier-config-compass": "0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c",
"@mongodb-js/tsconfig-compass": "0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c",
"@types/chai": "^4.2.21",

@@ -68,3 +68,3 @@ "@types/mocha": "^9.0.0",

"eslint": "^7.25.0",
"hadron-ipc": "0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5",
"hadron-ipc": "0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c",
"mocha": "^8.4.0",

@@ -79,3 +79,3 @@ "nyc": "^15.1.0",

},
"gitHead": "25b11de63d51aa4ca7fda0f3eae67999e3418ca5"
"gitHead": "27bdd4c654b0108a364c4bb3541996722734028c"
}

Sorry, the diff of this file is not supported yet

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