Socket
Socket
Sign inDemoInstall

mina-postgres-manager

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mina-postgres-manager - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

16

instant-connect.js

@@ -23,2 +23,3 @@ (function() {

this.query = bind(this.query, this);
this.error = bind(this.error, this);
this.client = new PG.Client(config);

@@ -28,5 +29,18 @@ this.client.connect();

this._batch = [];
this.client.on('error', this.error);
this.drain();
}
InstantConnect.prototype.error = function(err) {
var batch, i, len, ref;
LOGGER.log('Connection Error ' + err.message);
ref = this._batch;
for (i = 0, len = ref.length; i < len; i++) {
batch = ref[i];
batch.fail(err);
}
this.drain();
return this.client.emit('drain');
};
InstantConnect.prototype.query = function(queryString, successFn, failFn) {

@@ -87,3 +101,3 @@ return this.client.query(queryString).then((function(_this) {

module.imports = InstantConnect;
module.exports = InstantConnect;

@@ -90,0 +104,0 @@ }).call(this);

2

package.json
{
"name": "mina-postgres-manager",
"version": "0.0.1",
"version": "0.0.2",
"description": "PostgresSQL Management Solution to wrap pg for mina etl",

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