postgresql-client
Advanced tools
Comparing version 2.10.0 to 2.10.1
@@ -0,1 +1,8 @@ | ||
# v2.10.1 | ||
[2023-11-09] | ||
### Changes | ||
* Fixed: Some times server response invalid message to prepare statement message. ([`bb7a0c8`](https://github.com/panates/postgresql-client/commit/bb7a0c8e2074120a2062e585183480b52677756e)) | ||
# v2.10.0 | ||
@@ -2,0 +9,0 @@ [2023-11-09] |
@@ -47,11 +47,5 @@ "use strict"; | ||
await socket.capture(async (code, msg, done) => { | ||
switch (code) { | ||
case protocol_js_1.Protocol.BackendMessageCode.NoticeResponse: | ||
break; | ||
case protocol_js_1.Protocol.BackendMessageCode.ParseComplete: | ||
done(); | ||
break; | ||
default: | ||
done(new Error(`Server returned unexpected response message (0x${code.toString(16)})`)); | ||
} | ||
if (code === protocol_js_1.Protocol.BackendMessageCode.ParseComplete) | ||
done(); | ||
// May be Protocol.BackendMessageCode.NoticeResponse | ||
}); | ||
@@ -62,11 +56,5 @@ } | ||
await socket.capture(async (code, msg, done) => { | ||
switch (code) { | ||
case protocol_js_1.Protocol.BackendMessageCode.NoticeResponse: | ||
break; | ||
case protocol_js_1.Protocol.BackendMessageCode.ReadyForQuery: | ||
done(); | ||
break; | ||
default: | ||
done(new Error(`Server returned unexpected response message (0x${code.toString(16)})`)); | ||
} | ||
if (code === protocol_js_1.Protocol.BackendMessageCode.ReadyForQuery) | ||
done(); | ||
// May be Protocol.BackendMessageCode.NoticeResponse | ||
}); | ||
@@ -73,0 +61,0 @@ } |
@@ -44,11 +44,5 @@ import { coerceToBoolean } from 'putil-varhelpers'; | ||
await socket.capture(async (code, msg, done) => { | ||
switch (code) { | ||
case Protocol.BackendMessageCode.NoticeResponse: | ||
break; | ||
case Protocol.BackendMessageCode.ParseComplete: | ||
done(); | ||
break; | ||
default: | ||
done(new Error(`Server returned unexpected response message (0x${code.toString(16)})`)); | ||
} | ||
if (code === Protocol.BackendMessageCode.ParseComplete) | ||
done(); | ||
// May be Protocol.BackendMessageCode.NoticeResponse | ||
}); | ||
@@ -59,11 +53,5 @@ } | ||
await socket.capture(async (code, msg, done) => { | ||
switch (code) { | ||
case Protocol.BackendMessageCode.NoticeResponse: | ||
break; | ||
case Protocol.BackendMessageCode.ReadyForQuery: | ||
done(); | ||
break; | ||
default: | ||
done(new Error(`Server returned unexpected response message (0x${code.toString(16)})`)); | ||
} | ||
if (code === Protocol.BackendMessageCode.ReadyForQuery) | ||
done(); | ||
// May be Protocol.BackendMessageCode.NoticeResponse | ||
}); | ||
@@ -70,0 +58,0 @@ } |
{ | ||
"name": "postgresql-client", | ||
"description": "Enterprise level PostgreSQL client for JavaScript", | ||
"version": "2.10.0", | ||
"version": "2.10.1", | ||
"author": "Panates", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
414069
10084