diff --git a/cf_list_create.js b/cf_list_create.js index bce748b..c9cbaa4 100644 --- a/cf_list_create.js +++ b/cf_list_create.js @@ -1,5 +1,5 @@ -import { existsSync } from "fs"; -import { resolve } from "path"; +import { existsSync } from "node:fs"; +import { resolve } from "node:path"; import { createZeroTrustListsAtOnce, diff --git a/download_lists.js b/download_lists.js index db61951..a43283d 100644 --- a/download_lists.js +++ b/download_lists.js @@ -1,6 +1,6 @@ -import { existsSync } from "fs"; -import { unlink } from "fs/promises"; -import { resolve } from "path"; +import { existsSync } from "node:fs"; +import { unlink } from "node:fs/promises"; +import { resolve } from "node:path"; import { LIST_TYPE, diff --git a/lib/utils.js b/lib/utils.js index f6b8f86..e9ded8a 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -1,8 +1,8 @@ -import { once } from "events"; -import { createReadStream, createWriteStream } from "fs"; -import { basename } from "path"; -import { createInterface } from "readline"; -import { pipeline } from "stream/promises"; +import { once } from "node:events"; +import { createReadStream, createWriteStream } from "node:fs"; +import { basename } from "node:path"; +import { createInterface } from "node:readline"; +import { pipeline } from "node:stream/promises"; if (!globalThis.fetch) { globalThis.fetch = (await import("node-fetch")).default;