File: update-compat-with-node-18.patch

package info (click to toggle)
node-globby 13.1.3%2B~cs16.25.40-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,608 kB
  • sloc: javascript: 3,628; makefile: 3
file content (35 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download | duplicates (2)
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
Description: fix TS decalrations with Node.js >= 18
Author: Yadd <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/1058547
Forwarded: not-needed
Last-Update: 2024-03-21

--- a/fast-glob/src/utils/fs.ts
+++ b/fast-glob/src/utils/fs.ts
@@ -10,6 +10,8 @@
 	public isFile: fs.Stats['isFile'];
 	public isSocket: fs.Stats['isSocket'];
 	public isSymbolicLink: fs.Stats['isSymbolicLink'];
+	public path: '';
+  public parentPath: '';
 
 	constructor(public name: string, stats: fs.Stats) {
 		this.isBlockDevice = stats.isBlockDevice.bind(stats);
@@ -19,6 +21,8 @@
 		this.isFile = stats.isFile.bind(stats);
 		this.isSocket = stats.isSocket.bind(stats);
 		this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
+		this.path = '';
+    this.parentPath = '';
 	}
 }
 
--- a/nodelib-fs-macchiato/out/dirent.d.ts
+++ b/nodelib-fs-macchiato/out/dirent.d.ts
@@ -12,4 +12,6 @@
     isSymbolicLink(): boolean;
     isFIFO(): boolean;
     isSocket(): boolean;
+    path:  string;
+    parentPath: string;
 }