Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pgpass

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pgpass - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

.envrc

12

lib/helper.js

@@ -5,3 +5,3 @@ 'use strict';

, Stream = require('stream').Stream
, Split = require('split')
, split = require('split2')
, util = require('util')

@@ -57,8 +57,8 @@ , defaultPort = 5432

module.exports.getFileName = function(env){
env = env || process.env;
module.exports.getFileName = function(rawEnv){
var env = rawEnv || process.env;
var file = env.PGPASSFILE || (
isWin ?
path.join( env.APPDATA , 'postgresql', 'pgpass.conf' ) :
path.join( env.HOME, '.pgpass' )
path.join( env.APPDATA || './' , 'postgresql', 'pgpass.conf' ) :
path.join( env.HOME || './', '.pgpass' )
);

@@ -112,3 +112,3 @@ return file;

var pass;
var lineStream = stream.pipe(new Split());
var lineStream = stream.pipe(split());

@@ -115,0 +115,0 @@ function onLine(line) {

{
"name": "pgpass",
"version": "1.0.2",
"version": "1.0.3",
"description": "Module for reading .pgpass",

@@ -8,5 +8,6 @@ "main": "lib/index",

"pretest": "chmod 600 ./test/_pgpass",
"test": "npm run hint && mocha --recursive -R list && npm run coverage",
"coverage": "rm -rf -- lib-cov ; jscoverage lib lib-cov && mocha --recursive -R html-cov > coverage.html",
"hint": "jshint --verbose lib test"
"_hint": "jshint --exclude node_modules --verbose lib test",
"_test": "mocha --recursive -R list",
"_covered_test": "nyc --reporter html --reporter text \"$npm_execpath\" run _test",
"test": "\"$npm_execpath\" run _hint && \"$npm_execpath\" run _covered_test"
},

@@ -16,14 +17,14 @@ "author": "Hannes Hörl <hannes.hoerl+pgpass@snowreporter.com>",

"dependencies": {
"split": "^1.0.0"
"split2": "^3.1.1"
},
"devDependencies": {
"jscoverage": "^0.6.0",
"jshint": "^2.9.2",
"mocha": "^2.5.3",
"pg": "^4.5.6",
"jshint": "^2.12.0",
"mocha": "^8.2.0",
"nyc": "^15.1.0",
"pg": "^8.4.1",
"pg-escape": "^0.2.0",
"pg-native": "^1.10.0",
"pg-native": "3.0.0",
"resumer": "0.0.0",
"tmp": "0.0.28",
"which": "^1.2.10"
"tmp": "^0.2.1",
"which": "^2.0.2"
},

@@ -30,0 +31,0 @@ "keywords": [

# pgpass
[![Build Status](https://travis-ci.org/hoegaarden/pgpass.png?branch=master)](https://travis-ci.org/hoegaarden/pgpass)
[![Build Status](https://github.com/hoegaarden/pgpass/workflows/CI/badge.svg?branch=master)](https://github.com/hoegaarden/pgpass/actions?query=workflow%3ACI+branch%3Amaster)

@@ -37,3 +37,3 @@ ## Install

There should be no need to use this module directly; it is already included in `node-postgresq`.
There should be no need to use this module directly; it is already included in `node-postgres`.

@@ -58,3 +58,3 @@ ## Configuration

If you find Bugs or have improvments, please feel free to open a issue on github. If you provide a pull request, I'm more than happy to merge them, just make sure to add tests for your changes.
If you find Bugs or have improvements, please feel free to open a issue on GitHub. If you provide a pull request, I'm more than happy to merge them, just make sure to add tests for your changes.

@@ -76,2 +76,2 @@ ## Links

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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