File: tsc-update.patch

package info (click to toggle)
node-postgres 8.16.3%2B~cs35.24.27-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,788 kB
  • sloc: javascript: 15,879; python: 79; makefile: 57
file content (23 lines) | stat: -rw-r--r-- 635 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
@@ -49,6 +50,7 @@
     // eslint-disable-next-line no-empty
     while (this.buffer[end++] !== 0) {}
     this.offset = end
+// @ts-ignore
     return this.buffer.toString(this.encoding, start, end - 1)
   }