Socket
Socket
Sign inDemoInstall

libpq

Package Overview
Dependencies
14
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.8.7 to 1.8.8

4

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

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

"dependencies": {
"nan": "^2.3.0",
"nan": "^2.10.0",
"bindings": "1.2.1"

@@ -23,0 +23,0 @@ },

@@ -9,3 +9,3 @@ var PQ = require('../')

pq.connect(function(err) {
assert.ifError(err);
assert(!err);
pq.exec('SELECT NOW()');

@@ -12,0 +12,0 @@ assert.equal(pq.connected, true, 'should have connected set to true');

@@ -32,3 +32,3 @@ var LibPQ = require('../')

consume(pq, function() {
assert.ifError(pq.errorMessage());
assert(!pq.errorMessage());
assert(pq.getResult());

@@ -49,3 +49,3 @@ assert.strictEqual(pq.getResult(), false);

consume(pq, function() {
assert.ifError(pq.errorMessage());
assert(!pq.errorMessage());
assert(pq.getResult());

@@ -66,3 +66,3 @@ assert.strictEqual(pq.getResult(), false);

consume(pq, function() {
assert.ifError(pq.errorMessage());
assert(!pq.errorMessage());

@@ -85,3 +85,3 @@ //first time there should be a result

consume(pq, function() {
assert.ifError(pq.errorMessage());
assert(!pq.errorMessage());

@@ -88,0 +88,0 @@ //consume the result of the query execution

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

pq.connect(function(err) {
assert.ifError(err);
assert(!err);
count++;

@@ -35,0 +35,0 @@ pq.startReader();

@@ -13,3 +13,3 @@ var assert = require('assert');

this.pq.prepare(statementName, 'SELECT $1::text as name', 1);
assert.ifError(this.pq.resultErrorMessage());
assert(!this.pq.resultErrorMessage());
assert.equal(this.pq.resultStatus(), 'PGRES_COMMAND_OK');

@@ -22,3 +22,3 @@ });

this.pq.execPrepared(statementName, ['Brian']);
assert.ifError(this.pq.resultErrorMessage());
assert(!this.pq.resultErrorMessage());
assert.strictEqual(this.pq.ntuples(), 1)

@@ -25,0 +25,0 @@ assert.strictEqual(this.pq.nfields(), 1);

Sorry, the diff of this file is not supported yet

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