Socket
Socket
Sign inDemoInstall

libpq

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libpq - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

3

index.js

@@ -34,2 +34,5 @@ var PQ = module.exports = require('bindings')('addon.node').PQ;

assert(cb, 'Must provide a connection callback');
if(process.domain) {
cb = process.domain.bind(cb);
}
this.$connect(paramString, cb);

@@ -36,0 +39,0 @@ };

2

package.json
{
"name": "libpq",
"version": "0.5.0",
"version": "0.5.1",
"description": "Low-level native bindings to PostgreSQL libpq",

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

@@ -27,2 +27,15 @@ var PQ = require('../')

});
it('respects the active domain', function(done) {
var pq = new PQ();
var domain = require('domain').create();
domain.run(function() {
var activeDomain = process.domain;
assert(activeDomain, 'Should have an active domain');
pq.connect(function(err) {
assert.strictEqual(process.domain, activeDomain, 'Active domain is lost');
done();
});
});
});
});

@@ -41,3 +41,3 @@ var Libpq = require('../');

assert.equal(err.sourceFile, "parse_target.c");
assert.equal(err.sourceLine, "510");
assert(parseInt(err.sourceLine));
assert.equal(err.sourceFunction, "transformAssignedExpr");

@@ -44,0 +44,0 @@ });

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