diff --git a/packages/pg/lib/crypto/utils.js b/packages/pg/lib/crypto/utils.js index ca2b821c6..5c7bf55bd 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.