@mongodb-js/compass-utils
Advanced tools
Comparing version 0.0.0-next-f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5 to 0.0.0-next-f1cc072e7154ac75180c80633b514e7033db4cb0
@@ -5,2 +5,3 @@ declare class AbortError extends Error { | ||
} | ||
export declare const throwIfAborted: (signal?: AbortSignal) => void; | ||
export declare const createCancelError: () => AbortError; | ||
@@ -7,0 +8,0 @@ export declare function isCancelError(error: any): error is AbortError; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.cancellableWait = exports.raceWithAbort = exports.isCancelError = exports.createCancelError = void 0; | ||
exports.cancellableWait = exports.raceWithAbort = exports.isCancelError = exports.createCancelError = exports.throwIfAborted = void 0; | ||
class AbortError extends Error { | ||
@@ -10,2 +10,8 @@ constructor() { | ||
} | ||
const throwIfAborted = (signal) => { | ||
if (signal?.aborted) { | ||
throw signal.reason ?? (0, exports.createCancelError)(); | ||
} | ||
}; | ||
exports.throwIfAborted = throwIfAborted; | ||
const createCancelError = () => { | ||
@@ -12,0 +18,0 @@ const controller = new AbortController(); |
@@ -1,4 +0,5 @@ | ||
export { AmpersandMethodOptions, promisifyAmpersandMethod, } from './promisify-ampersand-method'; | ||
export { StoragePaths, getStoragePaths } from './get-storage-paths'; | ||
export { raceWithAbort, cancellableWait, createCancelError, isCancelError, } from './cancellable-promise'; | ||
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.isCancelError = exports.createCancelError = exports.cancellableWait = exports.raceWithAbort = exports.getStoragePaths = 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"); | ||
Object.defineProperty(exports, "promisifyAmpersandMethod", { enumerable: true, get: function () { return promisify_ampersand_method_1.promisifyAmpersandMethod; } }); | ||
var get_storage_paths_1 = require("./get-storage-paths"); | ||
Object.defineProperty(exports, "getStoragePaths", { enumerable: true, get: function () { return get_storage_paths_1.getStoragePaths; } }); | ||
var electron_1 = require("./electron"); | ||
Object.defineProperty(exports, "getAppName", { enumerable: true, get: function () { return electron_1.getAppName; } }); | ||
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"); | ||
@@ -13,2 +15,3 @@ Object.defineProperty(exports, "raceWithAbort", { enumerable: true, get: function () { return cancellable_promise_1.raceWithAbort; } }); | ||
Object.defineProperty(exports, "isCancelError", { enumerable: true, get: function () { return cancellable_promise_1.isCancelError; } }); | ||
Object.defineProperty(exports, "throwIfAborted", { enumerable: true, get: function () { return cancellable_promise_1.throwIfAborted; } }); | ||
//# 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-f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5", | ||
"version": "0.0.0-next-f1cc072e7154ac75180c80633b514e7033db4cb0", | ||
"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,12 +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.10" | ||
}, | ||
"devDependencies": { | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-next-f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-next-f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-next-f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5", | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-f1cc072e7154ac75180c80633b514e7033db4cb0", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-next-f1cc072e7154ac75180c80633b514e7033db4cb0", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-next-f1cc072e7154ac75180c80633b514e7033db4cb0", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-next-f1cc072e7154ac75180c80633b514e7033db4cb0", | ||
"@types/chai": "^4.2.21", | ||
@@ -78,3 +74,7 @@ "@types/mocha": "^9.0.0", | ||
}, | ||
"gitHead": "f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5" | ||
"dependencies": { | ||
"@electron/remote": "^2.1.2", | ||
"electron": "^29.4.2" | ||
}, | ||
"gitHead": "f1cc072e7154ac75180c80633b514e7033db4cb0" | ||
} |
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
147
2
+ Added@electron/remote@^2.1.2
+ Addedelectron@^29.4.2
+ Addedelectron@29.4.6(transitive)
- Removedelectron@33.3.0(transitive)