From: Jérôme Benoit Date: Tue, 17 Jan 2023 22:37:19 +0000 (+0100) Subject: Silence rollup warnings X-Git-Tag: v1.1.91~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=43ee4373fc8c85473b7d5c192da79f6d53d6c8ee;p=e-mobility-charging-stations-simulator.git Silence rollup warnings Signed-off-by: Jérôme Benoit --- diff --git a/rollup.config.mjs b/rollup.config.mjs index 890bc33a..95215c2c 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -39,7 +39,7 @@ export default { 'async_hooks', 'basic-ftp', 'chalk', - 'crypto', + 'node:crypto', 'fs', 'http', 'http-status-codes', diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 84930a5f..a87ef6f2 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1,7 +1,7 @@ // Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved. -import crypto from 'crypto'; import fs from 'fs'; +import crypto from 'node:crypto'; import path from 'path'; import { URL } from 'url'; import { parentPort } from 'worker_threads'; diff --git a/src/charging-station/ChargingStationUtils.ts b/src/charging-station/ChargingStationUtils.ts index aa021663..ed12aa4a 100644 --- a/src/charging-station/ChargingStationUtils.ts +++ b/src/charging-station/ChargingStationUtils.ts @@ -1,4 +1,4 @@ -import crypto from 'crypto'; +import crypto from 'node:crypto'; import path from 'path'; import { fileURLToPath } from 'url';