@mongodb-js/compass-logging
Advanced tools
Comparing version 0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18 to 0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47
@@ -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) { | ||
@@ -76,0 +76,0 @@ return; |
@@ -16,3 +16,3 @@ { | ||
"homepage": "https://github.com/mongodb-js/compass", | ||
"version": "0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18", | ||
"version": "0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47", | ||
"repository": { | ||
@@ -27,3 +27,3 @@ "type": "git", | ||
"peerDependencies": { | ||
"hadron-ipc": "0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18" | ||
"hadron-ipc": "^3.1.0" | ||
}, | ||
@@ -58,6 +58,6 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@mongodb-js/eslint-config-compass": "0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18", | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47", | ||
"@types/chai": "^4.2.21", | ||
@@ -69,3 +69,3 @@ "@types/mocha": "^9.0.0", | ||
"eslint": "^7.25.0", | ||
"hadron-ipc": "0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18", | ||
"hadron-ipc": "0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47", | ||
"mocha": "^8.4.0", | ||
@@ -80,3 +80,3 @@ "nyc": "^15.1.0", | ||
}, | ||
"gitHead": "85bec9e9b95acd9ace066254edfc492578f4f8b2" | ||
"gitHead": "01a3ac56d52443bc859ccdcf7ed301ffbdea7a47" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
40511