Revert "Update utils.js (#2981)"

This reverts commit 522e2dcb76f92d0096177b10204bdc385375020d.
This commit is contained in:
Charmander 2023-05-23 01:34:03 -07:00
parent 522e2dcb76
commit 3039f1da77

View File

@ -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.