From 611f332449b79471e08ab10ba5b566d79229d192 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 24 Aug 2024 14:56:30 +0800 Subject: [PATCH] feat: getting ftp-srv.js match ftp-srv.d.ts Signed-off-by: Yonggang Luo --- ftp-srv.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ftp-srv.js b/ftp-srv.js index b7008586..7393db2c 100644 --- a/ftp-srv.js +++ b/ftp-srv.js @@ -1,8 +1,14 @@ -const FtpSrv = require('./src'); +const FtpServer = require('./src'); +const FtpConnection = require('./src/connection'); const FileSystem = require('./src/fs'); const errors = require('./src/errors'); -module.exports = FtpSrv; -module.exports.FtpSrv = FtpSrv; +module.exports = FtpServer; +module.exports.FtpSrv = FtpServer; +module.exports.FtpServer = FtpServer; module.exports.FileSystem = FileSystem; -module.exports.ftpErrors = errors; +module.exports.GeneralError = errors.GeneralError; +module.exports.SocketError = errors.SocketError; +module.exports.FileSystemError = errors.FileSystemError; +module.exports.ConnectorError = errors.ConnectorError; +module.exports.FtpConnection = FtpConnection;