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": {