Skip to content

Commit

Permalink
perf: use node: prefix to bypass require.cache call for builtins (f…
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Sep 10, 2023
1 parent eb447cd commit cf8b6cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { randomBytes } = require('crypto')
const { randomBytes } = require('node:crypto')
const fp = require('fastify-plugin')
const helmet = require('helmet')

Expand Down
2 changes: 1 addition & 1 deletion test/global.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const stream = require('stream')
const stream = require('node:stream')
const { test } = require('tap')
const fp = require('fastify-plugin')
const Fastify = require('fastify')
Expand Down

0 comments on commit cf8b6cd

Please sign in to comment.