best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
stream: add semicolons to imports
wukko656c0a34955a
diff --git a/src/modules/stream/internal.js b/src/modules/stream/internal.jsindex 75e18ece..412ba546 100644--- a/src/modules/stream/internal.js+++ b/src/modules/stream/internal.js@@ -1,7 +1,7 @@-import { request } from 'undici'-import { Readable } from 'node:stream'-import { assert } from 'console'-import { getHeaders } from './shared.js'+import { request } from 'undici';+import { Readable } from 'node:stream';+import { assert } from 'console';+import { getHeaders } from './shared.js';const CHUNK_SIZE = BigInt(8e6); // 8 MBconst min = (a, b) => a < b ? a : b;diff --git a/src/modules/stream/stream.js b/src/modules/stream/stream.jsindex 0b9ba42c..3de1cb3e 100644--- a/src/modules/stream/stream.js+++ b/src/modules/stream/stream.js@@ -1,5 +1,5 @@import { streamAudioOnly, streamDefault, streamLiveRender, streamVideoOnly, convertToGif } from "./types.js";-import { internalStream } from './internal.js'+import { internalStream } from './internal.js';export default async function(res, streamInfo) {try {@@ -24,7 +24,7 @@ export default async function(res, streamInfo) {await streamDefault(streamInfo, res);break;}- } catch (e) {+ } catch {res.status(500).json({ status: "error", text: "Internal Server Error" });}}