@mongodb-js/compass-utils
Advanced tools
Comparing version 0.0.0-next-afee5c48dabf3b11ed0ee36a4560b5d39742fccf to 0.0.0-next-b0acc2df06637a4ef47c8b114b5f3fa39b9cf6f9
export declare function getAppName(): string | undefined; | ||
export declare function getAppVersion(): string | undefined; | ||
export declare function getStoragePath(): string; | ||
//# sourceMappingURL=electron.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getStoragePath = exports.getAppName = void 0; | ||
exports.getStoragePath = exports.getAppVersion = exports.getAppName = void 0; | ||
function getElectronApp() { | ||
@@ -23,2 +23,6 @@ let app; | ||
exports.getAppName = getAppName; | ||
function getAppVersion() { | ||
return getElectronApp()?.getVersion(); | ||
} | ||
exports.getAppVersion = getAppVersion; | ||
function getStoragePath() { | ||
@@ -25,0 +29,0 @@ const basepath = getElectronApp()?.getPath('userData'); |
@@ -1,5 +0,5 @@ | ||
export { AmpersandMethodOptions, promisifyAmpersandMethod, } from './promisify-ampersand-method'; | ||
export { getAppName, getStoragePath } from './electron'; | ||
export type { AmpersandMethodOptions } from './promisify-ampersand-method'; | ||
export { promisifyAmpersandMethod } from './promisify-ampersand-method'; | ||
export { getAppName, getStoragePath, getAppVersion } from './electron'; | ||
export { raceWithAbort, cancellableWait, createCancelError, isCancelError, throwIfAborted, } from './cancellable-promise'; | ||
export { broadcast, ipcExpose, ipcInvoke } from './ipc'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ipcInvoke = exports.ipcExpose = exports.broadcast = exports.throwIfAborted = exports.isCancelError = exports.createCancelError = exports.cancellableWait = exports.raceWithAbort = exports.getStoragePath = exports.getAppName = exports.promisifyAmpersandMethod = void 0; | ||
exports.throwIfAborted = exports.isCancelError = exports.createCancelError = exports.cancellableWait = exports.raceWithAbort = exports.getAppVersion = exports.getStoragePath = exports.getAppName = exports.promisifyAmpersandMethod = void 0; | ||
var promisify_ampersand_method_1 = require("./promisify-ampersand-method"); | ||
@@ -9,2 +9,3 @@ Object.defineProperty(exports, "promisifyAmpersandMethod", { enumerable: true, get: function () { return promisify_ampersand_method_1.promisifyAmpersandMethod; } }); | ||
Object.defineProperty(exports, "getStoragePath", { enumerable: true, get: function () { return electron_1.getStoragePath; } }); | ||
Object.defineProperty(exports, "getAppVersion", { enumerable: true, get: function () { return electron_1.getAppVersion; } }); | ||
var cancellable_promise_1 = require("./cancellable-promise"); | ||
@@ -16,6 +17,2 @@ Object.defineProperty(exports, "raceWithAbort", { enumerable: true, get: function () { return cancellable_promise_1.raceWithAbort; } }); | ||
Object.defineProperty(exports, "throwIfAborted", { enumerable: true, get: function () { return cancellable_promise_1.throwIfAborted; } }); | ||
var ipc_1 = require("./ipc"); | ||
Object.defineProperty(exports, "broadcast", { enumerable: true, get: function () { return ipc_1.broadcast; } }); | ||
Object.defineProperty(exports, "ipcExpose", { enumerable: true, get: function () { return ipc_1.ipcExpose; } }); | ||
Object.defineProperty(exports, "ipcInvoke", { enumerable: true, get: function () { return ipc_1.ipcInvoke; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@mongodb-js/compass-utils", | ||
"productName": "compass-utils Plugin", | ||
"description": "Utilities for MongoDB Compass Development", | ||
@@ -17,3 +16,3 @@ "author": { | ||
"homepage": "https://github.com/mongodb-js/compass", | ||
"version": "0.0.0-next-afee5c48dabf3b11ed0ee36a4560b5d39742fccf", | ||
"version": "0.0.0-next-b0acc2df06637a4ef47c8b114b5f3fa39b9cf6f9", | ||
"repository": { | ||
@@ -39,3 +38,3 @@ "type": "git", | ||
"bootstrap": "npm run compile", | ||
"prepublishOnly": "npm run compile", | ||
"prepublishOnly": "npm run compile && compass-scripts check-exports-exist", | ||
"compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", | ||
@@ -46,3 +45,3 @@ "typecheck": "tsc -p tsconfig-lint.json --noEmit", | ||
"lint": "npm run eslint . && npm run prettier -- --check .", | ||
"depcheck": "depcheck", | ||
"depcheck": "compass-scripts check-peer-deps && depcheck", | ||
"check": "npm run typecheck && npm run lint && npm run depcheck", | ||
@@ -54,13 +53,9 @@ "check-ci": "npm run check", | ||
"test-ci": "npm run test-cov", | ||
"reformat": "npm run prettier -- --write . && npm run eslint . --fix" | ||
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." | ||
}, | ||
"optionalDependencies": { | ||
"@electron/remote": "^2.0.11", | ||
"electron": "^26.2.2" | ||
}, | ||
"devDependencies": { | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-afee5c48dabf3b11ed0ee36a4560b5d39742fccf", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-next-afee5c48dabf3b11ed0ee36a4560b5d39742fccf", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-next-afee5c48dabf3b11ed0ee36a4560b5d39742fccf", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-next-afee5c48dabf3b11ed0ee36a4560b5d39742fccf", | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-b0acc2df06637a4ef47c8b114b5f3fa39b9cf6f9", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-next-b0acc2df06637a4ef47c8b114b5f3fa39b9cf6f9", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-next-b0acc2df06637a4ef47c8b114b5f3fa39b9cf6f9", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-next-b0acc2df06637a4ef47c8b114b5f3fa39b9cf6f9", | ||
"@types/chai": "^4.2.21", | ||
@@ -79,3 +74,7 @@ "@types/mocha": "^9.0.0", | ||
}, | ||
"gitHead": "afee5c48dabf3b11ed0ee36a4560b5d39742fccf" | ||
"dependencies": { | ||
"@electron/remote": "^2.1.2", | ||
"electron": "^29.4.3" | ||
}, | ||
"gitHead": "b0acc2df06637a4ef47c8b114b5f3fa39b9cf6f9" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
45773
20
147
+ Added@electron/remote@^2.1.2
+ Addedelectron@^29.4.3
+ Added@types/node@20.17.10(transitive)
+ Addedelectron@29.4.6(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removed@types/node@18.19.68(transitive)
- Removedelectron@26.6.10(transitive)
- Removedundici-types@5.26.5(transitive)