We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 040b77e commit 26e3a75Copy full SHA for 26e3a75
packages/pg/lib/native/client.js
@@ -46,15 +46,11 @@ var Client = module.exports = function (config) {
46
47
// "hiding" the password so it doesn't show up in stack traces
48
// or if the client is console.logged
49
- let hiddenPassword = cp.password
+ const hiddenPassword = cp.password
50
Object.defineProperty(this, 'password', {
51
enumerable: false,
52
- get() {
53
- return hiddenPassword
54
- },
55
- set(value) {
56
- hiddenPassword = value
57
- }
+ writable: true,
+ value: hiddenPassword
58
})
59
this.database = cp.database
60
this.host = cp.host
0 commit comments