mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Revert "Update utils.js (#2981)"
This reverts commit 522e2dcb76f92d0096177b10204bdc385375020d.
This commit is contained in:
parent
522e2dcb76
commit
3039f1da77
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user