From 78628b34c8ec1e02431f85ddcffd036d5c0f7070 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Fri, 13 Dec 2024 10:36:49 +0000 Subject: [PATCH] perf: use `node:` prefix to bypass require.cache call for builtins Signed-off-by: Frazer Smith --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index dcac1f2..e41a1a0 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ 'use strict' -const url = require('url') -const http = require('http') -const https = require('https') +const url = require('node:url') +const http = require('node:http') +const https = require('node:https') const { randomBytes, createHash } = require('node:crypto')