Skip to content

Commit 94fbb24

Browse files
committed
Make native client password property consistent with others
i.e. configurable.
1 parent c26caa8 commit 94fbb24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/pg/lib/native/client.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ var Client = module.exports = function (config) {
4646

4747
// "hiding" the password so it doesn't show up in stack traces
4848
// or if the client is console.logged
49-
const hiddenPassword = cp.password
5049
Object.defineProperty(this, 'password', {
50+
configurable: true,
5151
enumerable: false,
5252
writable: true,
53-
value: hiddenPassword
53+
value: cp.password
5454
})
5555
this.database = cp.database
5656
this.host = cp.host

0 commit comments

Comments
 (0)