From d7bec8cd6c447f6d11138a12a983e071f2f73302 Mon Sep 17 00:00:00 2001 From: ludbek Date: Mon, 12 Nov 2018 16:37:47 +1100 Subject: [PATCH] drop support for NODE_ENV based ssl flag --- lib/index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 048c92f..0d7dbcb 100644 --- a/lib/index.js +++ b/lib/index.js @@ -14,7 +14,7 @@ module.exports.setDatabaseUrl = (url) => databaseUrl = url module.exports.getDatabaseUrl = () => databaseUrl const params = url.parse(databaseUrl); -let ssl = (process.env.NODE_ENV === 'production') || PGSSLMODE === 'require', +let ssl = ( PGSSLMODE === 'require' ), auth = params.auth.split(':'), config = { user: auth[0], diff --git a/package.json b/package.json index 034b242..9469ff4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lib-lequel", - "version": "1.1.1", + "version": "2.0.0", "description": "Simple Database query abstraction library lescapes style", "main": "/lib/", "devDependencies": {