Skip to content

Commit

Permalink
perf: use node: prefix for builtins (#250)
Browse files Browse the repository at this point in the history
* use node:

* nit
  • Loading branch information
gurgunday authored Sep 8, 2023
1 parent 468973d commit 63bd16f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion signer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// The MIT License
// Copyright (c) 2012–2022 LearnBoost <[email protected]> and other contributors;

const crypto = require('crypto')
const crypto = require('node:crypto')

const base64PaddingRE = /=/g

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

const tap = require('tap')
const test = tap.test
const { test } = require('tap')
const Fastify = require('fastify')
const sinon = require('sinon')
const { sign, unsign } = require('../signer')
Expand Down
2 changes: 1 addition & 1 deletion test/signer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { test } = require('tap')
const sinon = require('sinon')
const crypto = require('crypto')
const crypto = require('node:crypto')
const { Signer, sign, unsign } = require('../signer')

test('default', t => {
Expand Down

0 comments on commit 63bd16f

Please sign in to comment.