Skip to content

Commit

Permalink
Revert "Update utils.js (#2981)"
Browse files Browse the repository at this point in the history
This reverts commit 522e2dc.
  • Loading branch information
charmander committed May 23, 2023
1 parent 522e2dc commit 3039f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pg/lib/crypto/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict'
const { TextEncoder, TextDecoder } = require('util');

const useLegacyCrypto = parseInt(process.versions && process.versions.node && process.versions.node.split('.')[0]) < 15
if (useLegacyCrypto) {
// We are on an old version of Node.js that requires legacy crypto utilities.
Expand Down

0 comments on commit 3039f1d

Please sign in to comment.