From 43ee4373fc8c85473b7d5c192da79f6d53d6c8ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 17 Jan 2023 23:37:19 +0100 Subject: [PATCH] Silence rollup warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- rollup.config.mjs | 2 +- src/charging-station/ChargingStation.ts | 2 +- src/charging-station/ChargingStationUtils.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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'; -- 2.34.1