stream: add semicolons to imports

This commit is contained in:
wukko 2024-04-27 18:51:12 +06:00
parent d09e6a3110
commit 656c0a3495
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
2 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
import { request } from 'undici' import { request } from 'undici';
import { Readable } from 'node:stream' import { Readable } from 'node:stream';
import { assert } from 'console' import { assert } from 'console';
import { getHeaders } from './shared.js' import { getHeaders } from './shared.js';
const CHUNK_SIZE = BigInt(8e6); // 8 MB const CHUNK_SIZE = BigInt(8e6); // 8 MB
const min = (a, b) => a < b ? a : b; const min = (a, b) => a < b ? a : b;

View file

@ -1,5 +1,5 @@
import { streamAudioOnly, streamDefault, streamLiveRender, streamVideoOnly, convertToGif } from "./types.js"; 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) { export default async function(res, streamInfo) {
try { try {
@ -24,7 +24,7 @@ export default async function(res, streamInfo) {
await streamDefault(streamInfo, res); await streamDefault(streamInfo, res);
break; break;
} }
} catch (e) { } catch {
res.status(500).json({ status: "error", text: "Internal Server Error" }); res.status(500).json({ status: "error", text: "Internal Server Error" });
} }
} }