Socket
Socket
Sign inDemoInstall

slonik

Package Overview
Dependencies
Maintainers
1
Versions
395
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slonik - npm Package Compare versions

Comparing version 5.7.0 to 5.8.0

4

dist/index.js

@@ -407,3 +407,3 @@ "use strict";

const createConnection = async (connectionConfiguration, clientConfiguration = {}) => {
const pool = new _pg.default.Pool(typeof connectionConfiguration === 'string' ? (0, _pgConnectionString.parse)(connectionConfiguration) : connectionConfiguration);
const pool = new _pg.default.native.Pool(typeof connectionConfiguration === 'string' ? (0, _pgConnectionString.parse)(connectionConfiguration) : connectionConfiguration);
const connection = await pool.connect();

@@ -440,3 +440,3 @@ let ended = false;

const createPool = (connectionConfiguration, clientConfiguration = {}) => {
const pool = new _pg.default.Pool(typeof connectionConfiguration === 'string' ? (0, _pgConnectionString.parse)(connectionConfiguration) : connectionConfiguration);
const pool = new _pg.default.native.Pool(typeof connectionConfiguration === 'string' ? (0, _pgConnectionString.parse)(connectionConfiguration) : connectionConfiguration);

@@ -443,0 +443,0 @@ const connect = async () => {

@@ -20,2 +20,3 @@ {

"pg-connection-string": "^2.0.0",
"pg-native": "^3.0.0",
"pretty-hrtime": "^1.0.3",

@@ -87,3 +88,3 @@ "roarr": "^2.3.0",

},
"version": "5.7.0"
"version": "5.8.0"
}

@@ -417,3 +417,3 @@ // @flow

): Promise<DatabaseSingleConnectionType> => {
const pool = new pg.Pool(typeof connectionConfiguration === 'string' ? parseConnectionString(connectionConfiguration) : connectionConfiguration);
const pool = new pg.native.Pool(typeof connectionConfiguration === 'string' ? parseConnectionString(connectionConfiguration) : connectionConfiguration);

@@ -457,3 +457,3 @@ const connection = await pool.connect();

): DatabasePoolType => {
const pool = new pg.Pool(typeof connectionConfiguration === 'string' ? parseConnectionString(connectionConfiguration) : connectionConfiguration);
const pool = new pg.native.Pool(typeof connectionConfiguration === 'string' ? parseConnectionString(connectionConfiguration) : connectionConfiguration);

@@ -460,0 +460,0 @@ const connect = async () => {

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc