Merge pull request #666 from ldapjs/dependabot/npm_and_yarn/standard-15.0.0

Bump standard from 14.3.4 to 15.0.0
This commit is contained in:
James Sumners 2020-10-24 19:30:11 -04:00 committed by GitHub
commit 6a904855f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View File

@ -128,7 +128,8 @@ function Client (options) {
if (options.reconnect) {
// Fall back to defaults if options.reconnect === true
var rOpts = (typeof (options.reconnect) === 'object')
? options.reconnect : {}
? options.reconnect
: {}
this.reconnect = {
initialDelay: parseInt(rOpts.initialDelay || 100, 10),
maxDelay: parseInt(rOpts.maxDelay || 10000, 10),
@ -859,7 +860,8 @@ Client.prototype.connect = function connect () {
if (typeof (socket.setKeepAlive) !== 'function') {
socket.setKeepAlive = function setKeepAlive (enable, delay) {
return socket.socket
? socket.socket.setKeepAlive(enable, delay) : false
? socket.socket.setKeepAlive(enable, delay)
: false
}
}

View File

@ -106,7 +106,8 @@ ExtendedRequest.prototype._json = function (j) {
j.requestName = this.requestName
j.requestValue = (Buffer.isBuffer(this.requestValue))
? this.requestValue.toString('hex') : this.requestValue
? this.requestValue.toString('hex')
: this.requestValue
return j
}

View File

@ -30,7 +30,7 @@
"get-port": "^5.1.1",
"husky": "^4.2.5",
"snazzy": "^8.0.0",
"standard": "^14.0.2",
"standard": "^15.0.0",
"tap": "14.10.8"
},
"scripts": {