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

@mongodb-js/ssh-tunnel

Package Overview
Dependencies
Maintainers
30
Versions
432
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongodb-js/ssh-tunnel - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

14

lib/index.js

@@ -90,8 +90,12 @@ "use strict";

const serverClose = util_1.promisify(this.server.close.bind(this.server));
try {
await serverClose();
const [maybeError] = await Promise.all([
// If we catch anything, just return the error instead of throwing, we
// want to await on closing the connections before re-throwing server
// close error
serverClose().catch((e) => e),
this.closeOpenConnections(),
]);
if (maybeError) {
throw maybeError;
}
finally {
await this.closeOpenConnections();
}
}

@@ -98,0 +102,0 @@ async closeOpenConnections() {

{
"name": "@mongodb-js/ssh-tunnel",
"version": "1.0.2",
"version": "1.1.0",
"description": "Yet another ssh tunnel based on ssh2",

@@ -41,2 +41,3 @@ "main": "lib/index.js",

"jest": "^26.6.3",
"prettier": "^2.2.1",
"ts-jest": "^26.5.1",

@@ -43,0 +44,0 @@ "typescript": "^4.1.5"

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