Skip to content

Commit

Permalink
chore: bump deps (#3778)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Jun 20, 2024
1 parent 7018936 commit 6400732
Show file tree
Hide file tree
Showing 26 changed files with 4,776 additions and 3,648 deletions.
2 changes: 1 addition & 1 deletion api/lib/Gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ export default class Gateway {
node,
node.values[v],
) as string,
)
)
: null
}

Expand Down
18 changes: 9 additions & 9 deletions api/lib/ZwaveClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1394,10 +1394,10 @@ class ZwaveClient extends TypedEventEmitter<ZwaveClientEventCallbacks> {
ScheduleEntryLockScheduleKind.WeekDay,
s,
)
)
)
: await zwaveNode.commandClasses[
'Schedule Entry Lock'
].getWeekDaySchedule(slot)
].getWeekDaySchedule(slot)

pushSchedule(weeklySchedules, slot, schedule, enabled)
}
Expand All @@ -1420,10 +1420,10 @@ class ZwaveClient extends TypedEventEmitter<ZwaveClientEventCallbacks> {
ScheduleEntryLockScheduleKind.YearDay,
s,
)
)
)
: await zwaveNode.commandClasses[
'Schedule Entry Lock'
].getYearDaySchedule(slot)
].getYearDaySchedule(slot)

pushSchedule(yearlySchedules, slot, schedule, enabled)
}
Expand All @@ -1447,10 +1447,10 @@ class ZwaveClient extends TypedEventEmitter<ZwaveClientEventCallbacks> {
ScheduleEntryLockScheduleKind.DailyRepeating,
s,
)
)
)
: await zwaveNode.commandClasses[
'Schedule Entry Lock'
].getDailyRepeatingSchedule(slot)
].getDailyRepeatingSchedule(slot)

pushSchedule(dailySchedules, slot, schedule, enabled)
}
Expand Down Expand Up @@ -1586,7 +1586,7 @@ class ZwaveClient extends TypedEventEmitter<ZwaveClientEventCallbacks> {
...slot,
...schedule,
enabled: true,
}
}

if (isDelete) {
if (slotIndex !== -1) {
Expand Down Expand Up @@ -6157,8 +6157,8 @@ class ZwaveClient extends TypedEventEmitter<ZwaveClientEventCallbacks> {
zwaveValueMeta.type === 'number'
? parseInt(k)
: zwaveValueMeta.type === 'boolean'
? k === 'true'
: k,
? k === 'true'
: k,
})
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion api/lib/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { DeepPartial, joinPath } from './utils'
import * as path from 'path'
import { readdir, stat, unlink } from 'fs/promises'
import { Stats } from 'fs'
import escapeStringRegexp from 'escape-string-regexp'
import escapeStringRegexp from '@esm2cjs/escape-string-regexp'

const { format, transports, addColors } = winston
const { combine, timestamp, label, printf, colorize, splat } = format
Expand Down
4 changes: 2 additions & 2 deletions api/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export type DeepPartial<T> = {
[P in keyof T]?: T[P] extends Array<infer U>
? Array<DeepPartial<U>>
: T[P] extends ReadonlyArray<infer U>
? ReadonlyArray<DeepPartial<U>>
: DeepPartial<T[P]>
? ReadonlyArray<DeepPartial<U>>
: DeepPartial<T[P]>
}

export interface ErrnoException extends Error {
Expand Down
2 changes: 1 addition & 1 deletion genereteDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function printMethodDeclaration(method: MethodDeclaration): string {
method.getDecorators().forEach((d) => d.remove())
const start = method.getStart()
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const end = method.getBody()!.getStart()
const end = method.getBody().getStart()
let ret = method
.getText()
.substring(0, end - start)
Expand Down
Loading

0 comments on commit 6400732

Please sign in to comment.