X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2Findex.ts;h=b202225586685306df379e6050cfa6b0a4d58b5f;hb=f0bede86574750d1d894d16a86ef63f83948e7a0;hp=93eae31e58dea8f77ea542e2ce12fb1f0d81bb38;hpb=9bf0ef23c51160abc6866ad8d07eea85e308edb8;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/index.ts b/src/utils/index.ts index 93eae31e..b2022255 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,36 +1,38 @@ -export { ACElectricUtils, DCElectricUtils } from './ElectricUtils'; -export { AsyncLock, AsyncLockType } from './AsyncLock'; +export { ACElectricUtils, DCElectricUtils } from './ElectricUtils.js' +export { AsyncLock, AsyncLockType } from './AsyncLock.js' export { OutputFormat, buildChargingStationAutomaticTransactionGeneratorConfiguration, buildConnectorsStatus, - buildEvsesStatus, -} from './ChargingStationConfigurationUtils'; -export { CircularArray } from './CircularArray'; -export { Configuration } from './Configuration'; -export { Constants } from './Constants'; + buildEvsesStatus +} from './ChargingStationConfigurationUtils.js' +export { CircularArray } from './CircularArray.js' +export { Configuration } from './Configuration.js' +export { Constants } from './Constants.js' export { handleFileException, handleUncaughtException, handleUnhandledRejection, handleSendMessageError, - setDefaultErrorParams, -} from './ErrorUtils'; -export { watchJsonFile } from './FileUtils'; + setDefaultErrorParams +} from './ErrorUtils.js' +export { watchJsonFile } from './FileUtils.js' export { buildPerformanceStatisticsMessage, buildUpdatedMessage, buildStartedMessage, - buildStoppedMessage, -} from './MessageChannelUtils'; + buildStoppedMessage +} from './MessageChannelUtils.js' export { + isAsyncFunction, JSONStringifyWithMapSupport, - cloneObject, + clone, convertToBoolean, convertToDate, convertToFloat, convertToInt, exponentialDelay, + extractTimeSeriesValues, formatDurationMilliSeconds, formatDurationSeconds, generateUUID, @@ -38,19 +40,21 @@ export { getRandomFloatRounded, getRandomInteger, getWebSocketCloseEventStatusString, + isArraySorted, isEmptyArray, isEmptyObject, isEmptyString, isNotEmptyArray, isNotEmptyString, - isNullOrUndefined, - isUndefined, + isValidDate, logPrefix, - promiseWithTimeout, + max, + min, + once, roundTo, secureRandom, sleep, - validateUUID, -} from './Utils'; -export { median, nthPercentile, stdDeviation } from './StatisticUtils'; -export { logger } from './Logger'; + validateUUID +} from './Utils.js' +export { average, median, nthPercentile, stdDeviation } from './StatisticUtils.js' +export { logger } from './Logger.js'