diff --git a/index.js b/index.js index cd4f718..b9db876 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ 'use strict' -const { randomBytes } = require('crypto') +const { randomBytes } = require('node:crypto') const fp = require('fastify-plugin') const helmet = require('helmet') diff --git a/test/global.test.js b/test/global.test.js index 4a58ebf..901cd18 100644 --- a/test/global.test.js +++ b/test/global.test.js @@ -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')