hb-rpi-tools 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/RpiTool.js +1 -8
  2. package/package.json +3 -3
package/lib/RpiTool.js CHANGED
@@ -403,14 +403,7 @@ class RpiTool extends CommandLineTool {
403
403
  const { SystemInfo } = await import('hb-lib-tools/SystemInfo')
404
404
  let info
405
405
  if (['localhost', '127.0.0.1'].includes(this._clargs.options.host)) {
406
- const systemInfo = new SystemInfo()
407
- systemInfo
408
- .on('readFile', (fileName) => {
409
- this.debug('read file %s', fileName)
410
- })
411
- .on('exec', (cmd) => {
412
- this.debug('exec %s', cmd)
413
- })
406
+ const systemInfo = new SystemInfo({ logger: this })
414
407
  await systemInfo.init()
415
408
  if (!systemInfo.hwInfo.isRpi) {
416
409
  throw new Error('localhost: not a Rapsberry Pi')
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "hb-rpi-tools",
3
3
  "description": "Homebridge RPi Tools",
4
4
  "license": "Apache-2.0",
5
- "version": "1.0.2",
5
+ "version": "1.0.4",
6
6
  "keywords": [
7
7
  "raspberrypi",
8
8
  "raspberry",
@@ -25,10 +25,10 @@
25
25
  "rpi": "cli/rpi.js"
26
26
  },
27
27
  "engines": {
28
- "node": "^24||^22||^20"
28
+ "node": "^24||^22"
29
29
  },
30
30
  "dependencies": {
31
- "hb-lib-tools": "~3.0.0"
31
+ "hb-lib-tools": "~3.0.5"
32
32
  },
33
33
  "scripts": {
34
34
  "prepare": "standard && rm -rf out && jsdoc -c jsdoc.json",