Skip to content

Commit b18bd1a

Browse files
authored
perf(plugins/custom/scrypt): bypass require.cache call (#63)
Signed-off-by: Frazer Smith <[email protected]>
1 parent d006888 commit b18bd1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/custom/scrypt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import fp from 'fastify-plugin'
2-
import { scrypt, timingSafeEqual, randomBytes } from 'crypto'
2+
import { scrypt, timingSafeEqual, randomBytes } from 'node:crypto'
33

44
declare module 'fastify' {
55
export interface FastifyInstance {

0 commit comments

Comments
 (0)