New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mongodb-js/compass-utils

Package Overview
Dependencies
Maintainers
0
Versions
496
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-daaf1922c05081858f5dcde674d9ea8cf57724ed to 0.0.0-next-dad4ed744aa994c3ed97e58b55dbfedcf8e5a9a8

6

dist/cancellable-promise.d.ts

@@ -12,4 +12,10 @@ declare class AbortError extends Error {

export declare function raceWithAbort<T>(promise: Promise<T>, signal: AbortSignal): Promise<T>;
/**
* Returns a promise that waits for a timeout and can be canceled with a signal
*
* @param ms Wait time
* @param signal Abort signal
*/
export declare function cancellableWait(ms: number, signal: AbortSignal): Promise<void>;
export {};
//# sourceMappingURL=cancellable-promise.d.ts.map

@@ -28,2 +28,3 @@ "use strict";

}
// .reason is not supported in all electron versions, so use AbortError as a fallback
return controller.signal.reason ?? new AbortError(message);

@@ -41,2 +42,3 @@ };

let abortListener;
// We need a promise that will reject as soon as the operation is aborted.
const pendingPromise = new Promise((_resolve, reject) => {

@@ -54,2 +56,8 @@ abortListener = () => reject(signal.reason ?? (0, exports.createCancelError)());

exports.raceWithAbort = raceWithAbort;
/**
* Returns a promise that waits for a timeout and can be canceled with a signal
*
* @param ms Wait time
* @param signal Abort signal
*/
async function cancellableWait(ms, signal) {

@@ -56,0 +64,0 @@ await raceWithAbort(new Promise((resolve) => {

2

dist/electron.js
"use strict";
/* eslint-disable @typescript-eslint/no-var-requires */
Object.defineProperty(exports, "__esModule", { value: true });

@@ -14,2 +15,3 @@ exports.getStoragePath = exports.getAppVersion = exports.getAppName = void 0;

catch (e2) {
// eslint-disable-next-line no-console
console.log('Could not load @electron/remote', e1.message, e2.message);

@@ -16,0 +18,0 @@ }

14

package.json

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

"homepage": "https://github.com/mongodb-js/compass",
"version": "0.0.0-next-daaf1922c05081858f5dcde674d9ea8cf57724ed",
"version": "0.0.0-next-dad4ed744aa994c3ed97e58b55dbfedcf8e5a9a8",
"repository": {

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

"devDependencies": {
"@mongodb-js/eslint-config-compass": "0.0.0-next-daaf1922c05081858f5dcde674d9ea8cf57724ed",
"@mongodb-js/mocha-config-compass": "0.0.0-next-daaf1922c05081858f5dcde674d9ea8cf57724ed",
"@mongodb-js/prettier-config-compass": "0.0.0-next-daaf1922c05081858f5dcde674d9ea8cf57724ed",
"@mongodb-js/tsconfig-compass": "0.0.0-next-daaf1922c05081858f5dcde674d9ea8cf57724ed",
"@mongodb-js/eslint-config-compass": "0.0.0-next-dad4ed744aa994c3ed97e58b55dbfedcf8e5a9a8",
"@mongodb-js/mocha-config-compass": "0.0.0-next-dad4ed744aa994c3ed97e58b55dbfedcf8e5a9a8",
"@mongodb-js/prettier-config-compass": "0.0.0-next-dad4ed744aa994c3ed97e58b55dbfedcf8e5a9a8",
"@mongodb-js/tsconfig-compass": "0.0.0-next-dad4ed744aa994c3ed97e58b55dbfedcf8e5a9a8",
"@types/chai": "^4.2.21",

@@ -74,5 +74,5 @@ "@types/mocha": "^9.0.0",

"@electron/remote": "^2.1.2",
"electron": "^30.4.0"
"electron": "^32.2.7"
},
"gitHead": "daaf1922c05081858f5dcde674d9ea8cf57724ed"
"gitHead": "dad4ed744aa994c3ed97e58b55dbfedcf8e5a9a8"
}

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