Socket
Socket
Sign inDemoInstall

pg.js

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg.js - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

24

lib/index.js

@@ -24,14 +24,18 @@ var EventEmitter = require('events').EventEmitter;

var count = keys.length;
keys.forEach(function(key) {
var pool = self.pools.all[key];
delete self.pools.all[key];
pool.drain(function() {
pool.destroyAllNow(function() {
count--;
if(count === 0) {
self.emit('end');
}
if(count === 0) {
self.emit('end');
} else {
keys.forEach(function(key) {
var pool = self.pools.all[key];
delete self.pools.all[key];
pool.drain(function() {
pool.destroyAllNow(function() {
count--;
if(count === 0) {
self.emit('end');
}
});
});
});
});
}
};

@@ -38,0 +42,0 @@

@@ -20,6 +20,6 @@ var EventEmitter = require('events').EventEmitter;

name: name,
max: defaults.poolSize,
idleTimeoutMillis: defaults.poolIdleTimeout,
reapIntervalMillis: defaults.reapIntervalMillis,
log: defaults.poolLog,
max: clientConfig.poolSize || defaults.poolSize,
idleTimeoutMillis: clientConfig.poolIdleTimeout || defaults.poolIdleTimeout,
reapIntervalMillis: clientConfig.reapIntervalMillis || defaults.reapIntervalMillis,
log: clientConfig.poolLog || defaults.poolLog,
create: function(cb) {

@@ -26,0 +26,0 @@ var client = new pools.Client(clientConfig);

@@ -14,3 +14,4 @@ var types = require('pg-types');

this.RowCtor = null;
if(rowMode == "array") {
this.rowAsArray = rowMode == "array";
if(this.rowAsArray) {
this.parseRow = this._parseRowAsArray;

@@ -97,5 +98,7 @@ }

}
this.RowCtor = Function("parsers", "rowData", ctorBody);
if(!this.rowAsArray) {
this.RowCtor = Function("parsers", "rowData", ctorBody);
}
};
module.exports = Result;
{
"name": "pg.js",
"version": "3.1.0",
"version": "3.2.0",
"description": "node-postgres without the bindings",

@@ -5,0 +5,0 @@ "main": "index.js",

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