ts-postgres
Advanced tools
Comparing version
@@ -357,2 +357,4 @@ "use strict"; | ||
mtype = buffer.readInt8(frame); | ||
const c = String.fromCharCode(mtype); | ||
console.log(`Mtype: ${c}`); | ||
if (mtype !== 68 /* RowData */) | ||
@@ -359,0 +361,0 @@ break; |
{ | ||
"name": "ts-postgres", | ||
"version": "1.0.0-rc1", | ||
"version": "1.0.0-rc2", | ||
"description": "PostgreSQL client in TypeScript", | ||
@@ -48,3 +48,4 @@ "declaration": true, | ||
"/node_modules/", | ||
"/test/" | ||
"/test/", | ||
"/src/logging.ts" | ||
], | ||
@@ -51,0 +52,0 @@ "coverageThreshold": { |
@@ -556,4 +556,9 @@ import { ECONNRESET } from 'constants'; | ||
const value = buffer.slice(offset + 1, next).toString(); | ||
switch (buffer[offset]) { | ||
case 0x53: { | ||
if (level === null) { | ||
level = value as DatabaseError['level']; | ||
} | ||
break; | ||
} | ||
case 0x56: { | ||
@@ -560,0 +565,0 @@ level = value as DatabaseError['level']; |
Sorry, the diff of this file is not supported yet
308842
0.14%5806
0.14%