File: tsc-workaround.patch

package info (click to toggle)
node-ytdl-core 4.11.5%2Bdfsg%2B~cs4.10.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,768 kB
  • sloc: javascript: 2,156; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 1,072 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Description: tsc workarounds
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Bug-Debian: https://bugs.debian.org/1106431
 https://bugs.debian.org/1101244
 https://bugs.debian.org/1058542
Last-Update: 2025-05-25

--- a/m3u8stream/src/index.ts
+++ b/m3u8stream/src/index.ts
@@ -208,9 +208,11 @@
     ended = true;
     streamQueue.die();
     requestQueue.die();
+// @ts-ignore
     clearTimeout(refreshTimeout);
     currPlaylist?.destroy();
     currSegment?.destroy();
+// @ts-ignore
     PassThrough.prototype.end.call(stream, null);
     return stream;
   };
--- a/miniget/src/index.ts
+++ b/miniget/src/index.ts
@@ -82,7 +82,9 @@
   let downloaded = 0;
 
   // Check if this is a ranged request.
+// @ts-ignore
   if (opts.headers?.Range) {
+// @ts-ignore
     let r = /bytes=(\d+)-(\d+)?/.exec(`${opts.headers.Range}`);
     if (r) {
       rangeStart = parseInt(r[1], 10);
@@ -307,6 +309,7 @@
     activeRequest.destroy(err);
     activeDecodedStream?.unpipe(stream);
     activeDecodedStream?.destroy();
+// @ts-ignore
     clearTimeout(retryTimeout);
   };