From 3039f1da7749dc2611a2dbc2dbddc7ef7611937e Mon Sep 17 00:00:00 2001 From: Charmander <~@charmander.me> Date: Tue, 23 May 2023 01:34:03 -0700 Subject: [PATCH] Revert "Update utils.js (#2981)" This reverts commit 522e2dcb76f92d0096177b10204bdc385375020d. --- packages/pg/lib/crypto/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pg/lib/crypto/utils.js b/packages/pg/lib/crypto/utils.js index 5c7bf55bd..ca2b821c6 100644 --- a/packages/pg/lib/crypto/utils.js +++ b/packages/pg/lib/crypto/utils.js @@ -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.