Skip to content

Commit

Permalink
Make native client password property consistent with others
Browse files Browse the repository at this point in the history
i.e. configurable.
  • Loading branch information
charmander committed Jan 30, 2020
1 parent c26caa8 commit 94fbb24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pg/lib/native/client.js
Expand Up @@ -46,11 +46,11 @@ var Client = module.exports = function (config) {

// "hiding" the password so it doesn't show up in stack traces
// or if the client is console.logged
const hiddenPassword = cp.password
Object.defineProperty(this, 'password', {
configurable: true,
enumerable: false,
writable: true,
value: hiddenPassword
value: cp.password
})
this.database = cp.database
this.host = cp.host
Expand Down

0 comments on commit 94fbb24

Please sign in to comment.