We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa1d44a commit 410b89bCopy full SHA for 410b89b
packages/pg-pool/index.js
@@ -61,14 +61,13 @@ class Pool extends EventEmitter {
61
super()
62
this.options = Object.assign({}, options)
63
64
- if ('password' in this.options) {
65
- const password = this.options.password
+ if (options != null && 'password' in options) {
66
// "hiding" the password so it doesn't show up in stack traces
67
// or if the client is console.logged
68
Object.defineProperty(this.options, 'password', {
69
configurable: true,
70
enumerable: false,
71
- value: password,
+ value: options.password,
72
writable: true
73
})
74
}
0 commit comments