Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
thoukydides committed Apr 27, 2024
1 parent cc4b84f commit 9cdc044
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 91 deletions.
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"ext": "ts",
"ignore": [],
"exec": "npm run checkers && tsc && homebridge -D -I -P ..",
"exec": "npm run checkers && tsc && homebridge -D -I -P .. --strict-plugin-resolution",
"signal": "SIGTERM",
"env": {
"NODE_OPTIONS": "--trace-warnings"
Expand Down
160 changes: 80 additions & 80 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,29 @@
},
"engines": {
"node": ">=22.0.0 || ^20.12.2 || ^18.20.2",
"homebridge": ">=1.7.0"
"homebridge": ">=1.8.0"
},
"dependencies": {
"node-persist": "^4.0.1",
"semver": "^7.6.0",
"ts-interface-checker": "^1.0.2",
"undici": "^6.11.1"
"undici": "^6.14.1"
},
"devDependencies": {
"@tsconfig/node18": "^18.2.4",
"@types/node": "^18.19.30",
"@types/node": "^18.19.31",
"@types/node-persist": "^3.1.8",
"@types/semver": "^7.5.8",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"eslint": "^8.57.0",
"homebridge": "^1.7.0",
"homebridge-config-ui-x": "^4.56.1",
"nodemon": "^3.1.0",
"rimraf": "^5.0.5",
"ts-interface-builder": "^0.3.3",
"ts-node": "^10.9.2",
"typescript": "^5.4.4"
"typescript": "^5.4.5"
},
"scripts": {
"lint": "npm run checkers && eslint src/**.ts --max-warnings=0",
Expand Down
9 changes: 5 additions & 4 deletions src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ export class PrefixLogger {
) {}

// Wrappers around the standard Logger methods
info(message: string): void { this.log(LogLevel.INFO, message); }
warn(message: string): void { this.log(LogLevel.WARN, message); }
error(message: string): void { this.log(LogLevel.ERROR, message); }
debug(message: string): void { this.log(LogLevel.DEBUG, message); }
info(message: string): void { this.log(LogLevel.INFO, message); }
success(message: string): void { this.log(LogLevel.SUCCESS, message); }

Check failure on line 20 in src/logger.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Property 'SUCCESS' does not exist on type 'typeof LogLevel'.

Check failure on line 20 in src/logger.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Property 'SUCCESS' does not exist on type 'typeof LogLevel'.
warn(message: string): void { this.log(LogLevel.WARN, message); }
error(message: string): void { this.log(LogLevel.ERROR, message); }
debug(message: string): void { this.log(LogLevel.DEBUG, message); }
log(level: LogLevel, message: string): void {
// Allow debug messages to be logged as a different level
if (level === LogLevel.DEBUG) level = this.debugLevel;
Expand Down

0 comments on commit 9cdc044

Please sign in to comment.