Socket
Socket
Sign inDemoInstall

pg-pool

Package Overview
Dependencies
34
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.6.1 to 3.6.2

6

index.js

@@ -42,7 +42,7 @@ 'use strict'

rej = reject
}).catch(err => {
}).catch((err) => {
// replace the stack trace that leads to `TCP.onStreamRead` with one that leads back to the
// application that created the query
Error.captureStackTrace(err);
throw err;
Error.captureStackTrace(err)
throw err
})

@@ -49,0 +49,0 @@ return { callback: cb, result: result }

{
"name": "pg-pool",
"version": "3.6.1",
"version": "3.6.2",
"description": "Connection pool for node-postgres",

@@ -40,3 +40,3 @@ "main": "index.js",

},
"gitHead": "eaafac36dc8f4a13f1fecc9e3420d35559fd8e2b"
"gitHead": "b03c071d2d15af259e1e008e9628191c865e58fa"
}

@@ -168,3 +168,3 @@ # pg-pool

if (err) {
return console.error('query error', e.message, e.stack)
return console.error('query error', err.message, err.stack)
}

@@ -171,0 +171,0 @@ console.log('hello from', res.rows[0].name)

@@ -6,3 +6,7 @@ // This test is meant to be spawned from idle-timeout.js

const pool = new Pool({ maxLifetimeSeconds: 2, idleTimeoutMillis: 200, ...(allowExitOnIdle ? { allowExitOnIdle: true } : {}) })
const pool = new Pool({
maxLifetimeSeconds: 2,
idleTimeoutMillis: 200,
...(allowExitOnIdle ? { allowExitOnIdle: true } : {}),
})
pool.query('SELECT NOW()', (err, res) => console.log('completed first'))

@@ -9,0 +13,0 @@ pool.on('remove', () => {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc