Skip to content

Commit

Permalink
updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Nov 22, 2024
1 parent 1c19925 commit f6caae9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/eventedHttpClient/httpParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ httpMessageParser._isBuffer = function (item: any) {
return ((httpMessageParser._isNodeBufferSupported()
&& typeof globalThis === 'object'
&& globalThis.Buffer.isBuffer(item))
|| (item instanceof Object
|| (item instanceof Object
&& item._isBuffer))
}

Expand Down
4 changes: 2 additions & 2 deletions src/monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class HapMonitor extends EventEmitter {
if (message.statusCode === 401) {
if (this.logger) {
this.debug(`[HapClient] [${instance.ipAddress}:${instance.port} (${instance.username})] `
+ `${message.statusCode} ${message.statusMessage} - make sure Homebridge pin for this instance is set to ${this.pin}.`)
+ `${message.statusCode} ${message.statusMessage} - make sure Homebridge pin for this instance is set to ${this.pin}.`)
}
}

Expand All @@ -51,7 +51,7 @@ export class HapMonitor extends EventEmitter {
const body = JSON.parse(message.body)
if (body.characteristics && body.characteristics.length) {
this.debug(`[HapClient] [${instance.ipAddress}:${instance.port} (${instance.username})] `
+ `Got Event: ${JSON.stringify(body.characteristics)}`)
+ `Got Event: ${JSON.stringify(body.characteristics)}`)

const response = body.characteristics.map((c: CharacteristicType) => { // eslint-disable-line array-callback-return
// find the matching service for each characteristic
Expand Down

0 comments on commit f6caae9

Please sign in to comment.