Socket
Socket
Sign inDemoInstall

slonik

Package Overview
Dependencies
55
Maintainers
1
Versions
392
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 40.1.2 to 40.1.3

11

dist/factories/createConnectionPool.js

@@ -54,14 +54,9 @@ "use strict";

const onRelease = () => {
if (!waitingClients.length) {
const waitingClient = waitingClients.shift();
if (!waitingClient) {
return;
}
if (connection.state() !== 'IDLE') {
// TODO throw an error if this happens.
// The connection was used by another client.
return;
throw new Error('Connection is not idle.');
}
const waitingClient = waitingClients.shift();
if (!waitingClient) {
return;
}
connection.acquire();

@@ -68,0 +63,0 @@ waitingClient.resolve(connection);

@@ -97,3 +97,3 @@ {

"types": "./dist/index.d.ts",
"version": "40.1.2"
"version": "40.1.3"
}

@@ -125,3 +125,5 @@ import { Logger } from '../Logger';

const onRelease = () => {
if (!waitingClients.length) {
const waitingClient = waitingClients.shift();
if (!waitingClient) {
return;

@@ -131,13 +133,5 @@ }

if (connection.state() !== 'IDLE') {
// TODO throw an error if this happens.
// The connection was used by another client.
return;
throw new Error('Connection is not idle.');
}
const waitingClient = waitingClients.shift();
if (!waitingClient) {
return;
}
connection.acquire();

@@ -144,0 +138,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc