Skip to content

Commit

Permalink
perf: use node: prefix to bypass require.cache call for builtins (#399
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Fdawgs authored Dec 13, 2024
1 parent 953e7a4 commit 1cd416c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/exponential-backoff.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'
const { test } = require('node:test')
const assert = require('assert')
const assert = require('node:assert')
const Fastify = require('fastify')
const rateLimit = require('../index')

Expand Down
2 changes: 1 addition & 1 deletion test/group-rate-limit.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'
const { test } = require('node:test')
const assert = require('assert')
const assert = require('node:assert')
const Fastify = require('fastify')
const rateLimit = require('../index')

Expand Down
2 changes: 1 addition & 1 deletion types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import fastify, {
RouteOptions
} from 'fastify'
import * as http2 from 'http2'
import { default as IORedis } from 'ioredis'
import IORedis from 'ioredis'
import pino from 'pino'
import fastifyRateLimit, {
errorResponseBuilderContext,
Expand Down

0 comments on commit 1cd416c

Please sign in to comment.