hb-nb-tools 2.1.0 → 2.1.2

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.
package/lib/NbClient.js CHANGED
@@ -142,7 +142,7 @@ class NbClient extends HttpClient {
142
142
  }
143
143
 
144
144
  get id () { return this._params.id }
145
- get name () { return this._params.hostname }
145
+ get name () { return this._params.id == null ? this._params.hostname : 'Nuki Bridge ' + this._params.id }
146
146
  get encryption () { return this._params.encryption }
147
147
  get firmware () { return this._params.firmware }
148
148
  get token () { return this._params.token }
@@ -158,7 +158,8 @@ class NbClient extends HttpClient {
158
158
 
159
159
  async info () { return this._get('/info') }
160
160
  async list () { return this._get('/list') }
161
- async log () { return this._get('/log') }
161
+ async getlog () { return this._get('/log') }
162
+ async clearlog () { return this._get('/clearlog') }
162
163
  async reboot () { return this._get('/reboot') }
163
164
  async fwupdate () { return this._get('/fwupdate') }
164
165
 
package/lib/NbTool.js CHANGED
@@ -415,7 +415,7 @@ class NbTool extends CommandLineTool {
415
415
 
416
416
  async getlog (...args) {
417
417
  this.parser.parse(...args)
418
- const response = await this.client.log()
418
+ const response = await this.client.getlog()
419
419
  this.print(this.jsonFormatter.stringify(response.body))
420
420
  }
421
421
 
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "ebaauw"
7
7
  ],
8
8
  "license": "Apache-2.0",
9
- "version": "2.1.0",
9
+ "version": "2.1.2",
10
10
  "type": "module",
11
11
  "exports": {
12
12
  "./*": "./lib/*.js"
@@ -29,7 +29,7 @@
29
29
  "node": "^24||^22"
30
30
  },
31
31
  "dependencies": {
32
- "hb-lib-tools": "~3.0.5",
32
+ "hb-lib-tools": "~3.0.6",
33
33
  "tweetnacl": "~1.0.3"
34
34
  },
35
35
  "scripts": {