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)
}
|