File: tsc-update.patch

package info (click to toggle)
node-postgres 8.14.1%2B~cs35.17.33-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 3,540 kB
  • sloc: javascript: 15,883; python: 79; makefile: 53
file content (23 lines) | stat: -rw-r--r-- 614 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
Description: ix for recent @types/node
Author: Yadd <yadd@debian.org>
Forwarded: no
Last-Update: 2022-09-18

--- a/packages/pg-protocol/src/buffer-reader.ts
+++ b/packages/pg-protocol/src/buffer-reader.ts
@@ -38,6 +38,7 @@
   }
 
   public string(length: number): string {
+// @ts-ignore
     const result = this.buffer.toString(this.encoding, this.offset, this.offset + length)
     this.offset += length
     return result
@@ -48,6 +49,7 @@
     let end = start
     while (this.buffer[end++] !== 0) {}
     this.offset = end
+// @ts-ignore
     return this.buffer.toString(this.encoding, start, end - 1)
   }