File: workaround-tsc-update.patch

package info (click to toggle)
node-recast 0.21.1-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,284 kB
  • sloc: javascript: 938; sh: 22; makefile: 4
file content (62 lines) | stat: -rw-r--r-- 1,700 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Description: workaround tsc update
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2021-12-07

--- node-recast.orig/lib/printer.ts
+++ node-recast/lib/printer.ts
@@ -3055,6 +3055,7 @@
     | types.namedTypes.StringLiteral
     | types.namedTypes.RegExpLiteral
     | types.namedTypes.BigIntLiteral
+// @ts-ignore
     | types.namedTypes.DecimalLiteral,
 ): string | void {
   const value = types.getFieldValue(node, "value");
--- node-recast.orig/test/ecmascript.ts
+++ node-recast/test/ecmascript.ts
@@ -144,6 +144,7 @@
           "Parsing should have failed: " + JSON.stringify(source),
         );
       } catch (err) {
+	//@ts-ignore
         assert.strictEqual(err.message, "Line 1: " + expectedMessage);
       }
     }
--- node-recast.orig/test/printer.ts
+++ node-recast/test/printer.ts
@@ -2241,6 +2241,7 @@
     assert.strictEqual(pretty, code);
 
     types.visit(ast, {
+// @ts-ignore
       visitStaticBlock(path) {
         assert.strictEqual(path.get("body", "length").value, 2);
         while (path.get("body").shift()) {}
@@ -2306,7 +2307,9 @@
     assert.strictEqual(pretty, expectedPretty);
 
     types.visit(ast, {
+// @ts-ignore
       visitImportAttribute(path) {
+// @ts-ignore
         this.traverse(path);
         const valuePath = path.get("value");
         const strLit = valuePath.value;
--- node-recast.orig/test/typescript.ts
+++ node-recast/test/typescript.ts
@@ -436,12 +436,14 @@
           .toString(),
       );
     } catch (e2: any) {
+      //@ts-ignore
       if (e2.code !== "ENOENT") {
         console.error(e2);
       }
       throw e1;
     }
 
+    //@ts-ignore
     if (options.throws === e1.message) {
       return null;
     }