diff --git a/lib/create-common-client.js b/lib/create-common-client.js index 328a21d..5a7d530 100644 --- a/lib/create-common-client.js +++ b/lib/create-common-client.js @@ -68,7 +68,7 @@ module.exports = function (config) { } else if (config.driver === 'pg' || config.driver === 'pg.js') { - commonClient.dbDriver = require('pg.js'); + commonClient.dbDriver = require('pg'); // for backward compatibility, allows to specify port within host if (config.port) { diff --git a/package.json b/package.json index 3c16bf7..39a6c52 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "mssql": "2.x.x", "mysql": "2.x.x", "newline": "0.0.3", - "pg.js": "4.x.x" + "pg": "^4.5.5" }, "repository": { "type": "git",