Update src/utils.js

Co-authored-by: Joshua Lochner <admin@xenova.com>
This commit is contained in:
Eric Kolve 2023-04-06 15:05:10 -07:00 committed by GitHub
parent 05bfddba74
commit f611db0917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ const fs = require('fs');
const { env } = require('./env.js');
if (global.ReadableStream === undefined && typeof process !== 'undefined') {
if (global.ReadableStream === undefined && typeof process !== 'undefined') {
try {
global.ReadableStream = require('node:stream/web').ReadableStream; // ReadableStream is not a global with Node 16
} catch(err) {