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

@mongodb-js/compass-utils

Package Overview
Dependencies
Maintainers
33
Versions
478
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.0-next-a3a765b8a2457aa8562be3af9f2f755fd1be90aa to 0.0.0-next-a4904bd5548a39928960e26cf4ea1155f9d16157

1

dist/electron.d.ts
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');

5

dist/index.d.ts

@@ -1,4 +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';
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
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");

@@ -11,0 +12,0 @@ Object.defineProperty(exports, "raceWithAbort", { enumerable: true, get: function () { return cancellable_promise_1.raceWithAbort; } });

{
"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-a3a765b8a2457aa8562be3af9f2f755fd1be90aa",
"version": "0.0.0-next-a4904bd5548a39928960e26cf4ea1155f9d16157",
"repository": {

@@ -45,3 +44,3 @@ "type": "git",

"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",

@@ -53,13 +52,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": "^25.8.4"
},
"devDependencies": {
"@mongodb-js/eslint-config-compass": "0.0.0-next-a3a765b8a2457aa8562be3af9f2f755fd1be90aa",
"@mongodb-js/mocha-config-compass": "0.0.0-next-a3a765b8a2457aa8562be3af9f2f755fd1be90aa",
"@mongodb-js/prettier-config-compass": "0.0.0-next-a3a765b8a2457aa8562be3af9f2f755fd1be90aa",
"@mongodb-js/tsconfig-compass": "0.0.0-next-a3a765b8a2457aa8562be3af9f2f755fd1be90aa",
"@mongodb-js/eslint-config-compass": "0.0.0-next-a4904bd5548a39928960e26cf4ea1155f9d16157",
"@mongodb-js/mocha-config-compass": "0.0.0-next-a4904bd5548a39928960e26cf4ea1155f9d16157",
"@mongodb-js/prettier-config-compass": "0.0.0-next-a4904bd5548a39928960e26cf4ea1155f9d16157",
"@mongodb-js/tsconfig-compass": "0.0.0-next-a4904bd5548a39928960e26cf4ea1155f9d16157",
"@types/chai": "^4.2.21",

@@ -78,3 +73,7 @@ "@types/mocha": "^9.0.0",

},
"gitHead": "a3a765b8a2457aa8562be3af9f2f755fd1be90aa"
"dependencies": {
"@electron/remote": "^2.1.2",
"electron": "^29.4.2"
},
"gitHead": "a4904bd5548a39928960e26cf4ea1155f9d16157"
}

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

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