X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2Findex.ts;h=f3feeb66d2bfd842d8fad04f9379fce44904f85f;hb=d116b9b5f418a020bc6f971580a23a04cdf8497a;hp=b034c9a28f26b93b1ae5c6fa94a07213023ee1af;hpb=179ed3677e63ff8cc9c49acb55b5d6330ee3802b;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/index.ts b/src/utils/index.ts index b034c9a2..f3feeb66 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -9,8 +9,54 @@ export { export { CircularArray } from './CircularArray'; export { Configuration } from './Configuration'; export { Constants } from './Constants'; -export { ErrorUtils } from './ErrorUtils'; -export { FileUtils } from './FileUtils'; -export { MessageChannelUtils } from './MessageChannelUtils'; -export { Utils } from './Utils'; +export { + handleFileException, + handleUncaughtException, + handleUnhandledRejection, + handleSendMessageError, + setDefaultErrorParams, +} from './ErrorUtils'; +export { watchJsonFile } from './FileUtils'; +export { + buildPerformanceStatisticsMessage, + buildUpdatedMessage, + buildStartedMessage, + buildStoppedMessage, +} from './MessageChannelUtils'; +export { + JSONStringifyWithMapSupport, + cloneObject, + convertToBoolean, + convertToDate, + convertToFloat, + convertToInt, + exponentialDelay, + extractTimeSeriesValues, + formatDurationMilliSeconds, + formatDurationSeconds, + generateUUID, + getRandomFloatFluctuatedRounded, + getRandomFloatRounded, + getRandomInteger, + getWebSocketCloseEventStatusString, + isArraySorted, + isEmptyArray, + isEmptyObject, + isEmptyString, + isNotEmptyArray, + isNotEmptyString, + isNullOrUndefined, + isUndefined, + isValidTime, + logPrefix, + max, + min, + once, + promiseWithTimeout, + roundTo, + secureRandom, + sleep, + validateUUID, +} from './Utils'; +export { average, median, nthPercentile, stdDeviation } from './StatisticUtils'; export { logger } from './Logger';