From e5ebce235ad015aeff7e7485fa5a4bf830990650 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Fri, 9 Feb 2024 13:14:58 +0000 Subject: [PATCH] feat: add SUPPORTED_* constants to module exports --- lib/index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/index.js b/lib/index.js index 82c2c936..8096a48c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -19,12 +19,26 @@ const { STATUS_CODE, stringToFlags, } = require('./protocol/SFTP.js'); +const { + SUPPORTED_KEX, + SUPPORTED_SERVER_HOST_KEY, + SUPPORTED_CIPHER, + SUPPORTED_MAC, + SUPPORTED_COMPRESSION, +} = require('./protocol/constants'); module.exports = { AgentProtocol, BaseAgent, createAgent, Client: require('./client.js'), + constants: { + SUPPORTED_KEX, + SUPPORTED_SERVER_HOST_KEY, + SUPPORTED_CIPHER, + SUPPORTED_MAC, + SUPPORTED_COMPRESSION, + }, CygwinAgent, HTTPAgent, HTTPSAgent,