Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postgresql-client

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postgresql-client - npm Package Compare versions

Comparing version 2.10.0 to 2.10.1

7

CHANGELOG.md

@@ -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]

24

cjs/connection/prepared-statement.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc