Skip to content

Commit f95d494

Browse files
authored
perf: use node: prefix to bypass require.cache call for builtins (#1470)
1 parent 727e070 commit f95d494

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/vuln_valid/vulnValidate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
22

33
const Joi = require('joi')
4-
const path = require('path');
5-
const fs = require('fs');
4+
const path = require('node:path');
5+
const fs = require('node:fs');
66

77
const coreModel = Joi.object({
88
cve: Joi

vuln/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const path = require('path');
3+
const path = require('node:path');
44

55
module.exports = {
66
paths: {

0 commit comments

Comments
 (0)