From 516dee136cf113684286054f85481d66c7961b49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 19 May 2023 18:06:11 +0200 Subject: [PATCH] refactor: revert internal exports in utils MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/Configuration.ts | 1 - src/utils/FileUtils.ts | 1 - src/utils/Logger.ts | 1 - src/utils/Utils.ts | 1 - src/utils/index.ts | 20 ++++++++------------ src/utils/internal.ts | 8 -------- 6 files changed, 8 insertions(+), 24 deletions(-) delete mode 100644 src/utils/internal.ts diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 6423e34c..47c5e160 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -6,7 +6,6 @@ import chalk from 'chalk'; import merge from 'just-merge'; import { WorkerChoiceStrategies } from 'poolifier'; -// import { Constants, FileUtils, Utils } from './internal'; import { Constants } from './Constants'; import { FileUtils } from './FileUtils'; import { Utils } from './Utils'; diff --git a/src/utils/FileUtils.ts b/src/utils/FileUtils.ts index 328687b2..9b7f62e0 100644 --- a/src/utils/FileUtils.ts +++ b/src/utils/FileUtils.ts @@ -2,7 +2,6 @@ import fs from 'node:fs'; import chalk from 'chalk'; -// import { Utils, logger } from './internal'; import { logger } from './Logger'; import { Utils } from './Utils'; import type { EmptyObject, FileType, HandleErrorParams, JsonType } from '../types'; diff --git a/src/utils/Logger.ts b/src/utils/Logger.ts index d48659f4..9bb195a3 100644 --- a/src/utils/Logger.ts +++ b/src/utils/Logger.ts @@ -3,7 +3,6 @@ import { type Logger, createLogger, format, type transport } from 'winston'; import TransportType from 'winston/lib/winston/transports/index.js'; import DailyRotateFile from 'winston-daily-rotate-file'; -// import { Configuration, Utils } from './internal'; import { Configuration } from './Configuration'; import { Utils } from './Utils'; diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index 2724f03f..3d8c73bd 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -3,7 +3,6 @@ import util from 'node:util'; import clone from 'just-clone'; -// import { Constants } from './internal'; import { Constants } from './Constants'; import { WebSocketCloseEventStatusString } from '../types'; diff --git a/src/utils/index.ts b/src/utils/index.ts index 6cb58d83..6a68f64f 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,12 +1,8 @@ -export { - ACElectricUtils, - AsyncLock, - AsyncLockType, - CircularArray, - Configuration, - Constants, - DCElectricUtils, - FileUtils, - Utils, - logger, -} from './internal'; +export { ACElectricUtils, DCElectricUtils } from './ElectricUtils'; +export { AsyncLock, AsyncLockType } from './AsyncLock'; +export { CircularArray } from './CircularArray'; +export { Configuration } from './Configuration'; +export { Constants } from './Constants'; +export { FileUtils } from './FileUtils'; +export { Utils } from './Utils'; +export { logger } from './Logger'; diff --git a/src/utils/internal.ts b/src/utils/internal.ts deleted file mode 100644 index f727257b..00000000 --- a/src/utils/internal.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from './AsyncLock'; -export * from './CircularArray'; -export * from './Constants'; -export * from './ElectricUtils'; -export * from './FileUtils'; -export * from './Utils'; -export * from './Logger'; -export * from './Configuration'; -- 2.34.1