'@mikro-orm/reflection',
'ajv',
'ajv-formats',
- 'async_hooks',
'basic-ftp',
'chalk',
- 'http',
'http-status-codes',
'just-clone',
'just-merge',
'mnemonist/lru-map-with-delete',
'moment',
'mongodb',
+ 'node:async_hooks',
'node:crypto',
'node:fs',
+ 'node:http',
'node:path',
+ 'node:perf_hooks',
'node:url',
'node:util',
- 'perf_hooks',
+ 'node:worker_threads',
'poolifier',
'proper-lockfile',
'tar',
'winston',
'winston-daily-rotate-file',
'winston/lib/winston/transports',
- 'worker_threads',
'ws',
],
plugins: [
// Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
-import { AsyncResource } from 'async_hooks';
+import { AsyncResource } from 'node:async_hooks';
import { type ChargingStation, ChargingStationUtils } from './internal';
import { BaseError } from '../exception';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
-import { type Worker, isMainThread } from 'worker_threads';
+import { type Worker, isMainThread } from 'node:worker_threads';
import chalk from 'chalk';
import fs from 'node:fs';
import path from 'node:path';
import { URL } from 'node:url';
-import { parentPort } from 'worker_threads';
+import { parentPort } from 'node:worker_threads';
import merge from 'just-merge';
import WebSocket, { type RawData } from 'ws';
// Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
-import { parentPort, workerData } from 'worker_threads';
+import { parentPort, workerData } from 'node:worker_threads';
import { ThreadWorker } from 'poolifier';
-import { BroadcastChannel } from 'worker_threads';
+import { BroadcastChannel } from 'node:worker_threads';
import type {
BroadcastChannelRequest,
-import { AsyncResource } from 'async_hooks';
+import { AsyncResource } from 'node:async_hooks';
import Ajv, { type JSONSchemaType } from 'ajv';
import ajvFormats from 'ajv-formats';
export {
- OCPP20ResponseService,
- OCPP20RequestService,
OCPP20IncomingRequestService,
+ OCPP20RequestService,
+ OCPP20ResponseService,
+ OCPP16IncomingRequestService,
+ OCPP16RequestService,
+ OCPP16ResponseService,
// FIXME: shall not be exported
OCPP16ServiceUtils,
OCPPIncomingRequestService,
- OCPP16ResponseService,
OCPPRequestService,
OCPPServiceUtils,
- OCPP16IncomingRequestService,
- OCPP16RequestService,
} from './internal';
-import { type IncomingMessage, Server, type ServerResponse } from 'http';
+import { type IncomingMessage, Server, type ServerResponse } from 'node:http';
import type { WebSocket } from 'ws';
-import type { IncomingMessage, RequestListener, ServerResponse } from 'http';
+import type { IncomingMessage, RequestListener, ServerResponse } from 'node:http';
import { StatusCodes } from 'http-status-codes';
-import type { IncomingMessage } from 'http';
+import type { IncomingMessage } from 'node:http';
import { Protocol, ProtocolVersion } from '../../types';
import { Utils, logger } from '../../utils';
-import type { IncomingMessage } from 'http';
-import type { Duplex } from 'stream';
+import type { IncomingMessage } from 'node:http';
+import type { Duplex } from 'node:stream';
import { StatusCodes } from 'http-status-codes';
import WebSocket, { type RawData, WebSocketServer } from 'ws';
// Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
+import { type PerformanceEntry, PerformanceObserver, performance } from 'node:perf_hooks';
import type { URL } from 'node:url';
-import { PerformanceEntry, PerformanceObserver, performance } from 'perf_hooks';
-import { parentPort } from 'worker_threads';
+import { parentPort } from 'node:worker_threads';
import { MessageChannelUtils } from '../charging-station';
import {
export {
- Constants,
- FileUtils,
+ ACElectricUtils,
CircularArray,
Configuration,
- ACElectricUtils,
+ Constants,
DCElectricUtils,
- logger,
+ FileUtils,
Utils,
+ logger,
} from './internal';
-import type { Worker } from 'worker_threads';
+import type { Worker } from 'node:worker_threads';
import { DynamicThreadPool, type ErrorHandler, type ExitHandler } from 'poolifier';
-import { type Worker, isMainThread } from 'worker_threads';
+import { type Worker, isMainThread } from 'node:worker_threads';
import type { PoolOptions } from 'poolifier';
// Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
-import { Worker } from 'worker_threads';
+import { Worker } from 'node:worker_threads';
import { WorkerAbstract } from './WorkerAbstract';
import {
-import type { Worker } from 'worker_threads';
+import type { Worker } from 'node:worker_threads';
import { type ErrorHandler, type ExitHandler, FixedThreadPool } from 'poolifier';
-import type { Worker } from 'worker_threads';
+import type { Worker } from 'node:worker_threads';
import type { PoolOptions } from 'poolifier';
export { WorkerConstants } from './WorkerConstants';
export { WorkerFactory } from './WorkerFactory';
export {
- WorkerProcessType,
+ type MessageHandler,
type WorkerData,
type WorkerMessage,
WorkerMessageEvents,
- type MessageHandler,
+ WorkerProcessType,
} from './WorkerTypes';