mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Make native client password property consistent with others
i.e. configurable.
This commit is contained in:
parent
c26caa80d2
commit
94fbb24f94
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user