libpq
Advanced tools
Comparing version 1.8.8 to 1.8.9
{ | ||
"name": "libpq", | ||
"version": "1.8.8", | ||
"version": "1.8.9", | ||
"description": "Low-level native bindings to PostgreSQL libpq", | ||
@@ -20,11 +20,12 @@ "main": "index.js", | ||
"dependencies": { | ||
"nan": "^2.10.0", | ||
"bindings": "1.2.1" | ||
"bindings": "1.5.0", | ||
"nan": "^2.14.0" | ||
}, | ||
"devDependencies": { | ||
"async": "^0.9.0", | ||
"lodash": "^2.4.1", | ||
"mocha": "^1.21.4", | ||
"okay": "^0.3.0" | ||
"async": "^2.6.2", | ||
"buffer-from": "^1.1.1", | ||
"lodash": "^4.17.11", | ||
"mocha": "5.2.0", | ||
"okay": "^1.0.0" | ||
} | ||
} |
@@ -21,2 +21,4 @@ # node-libpq | ||
> Note: for Node.js equal or greater to version 10.16.0 you need to have at least `OpenSSL 1.1.1` installed. | ||
## use | ||
@@ -23,0 +25,0 @@ |
@@ -19,3 +19,3 @@ var PQ = require('../') | ||
var pq = new PQ(); | ||
var conString ='host=' + (process.env.PGHOST || 'localhost') | ||
var conString ='host=' + (process.env.PGHOST || 'localhost'); | ||
pq.connect(conString, done); | ||
@@ -22,0 +22,0 @@ }); |
var helper = require('./helper'); | ||
var assert = require('assert'); | ||
var bufferFrom = require('buffer-from') | ||
@@ -16,3 +17,3 @@ describe('COPY IN', function() { | ||
var buffer = Buffer("bob\t100\n", 'utf8'); | ||
var buffer = bufferFrom("bob\t100\n", 'utf8'); | ||
var res = this.pq.putCopyData(buffer); | ||
@@ -34,3 +35,3 @@ assert.strictEqual(res, 1); | ||
var buffer = Buffer("bob\t100\n", 'utf8'); | ||
var buffer = bufferFrom("bob\t100\n", 'utf8'); | ||
var res = this.pq.putCopyData(buffer); | ||
@@ -37,0 +38,0 @@ assert.strictEqual(res, 1); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
84112
39
1011
331
5
2
+ Addedbindings@1.5.0(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
- Removedbindings@1.2.1(transitive)
Updatedbindings@1.5.0
Updatednan@^2.14.0