hb-nb-tools 2.1.1 → 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 +2 -1
- package/lib/NbTool.js +1 -1
- package/package.json +2 -2
package/lib/NbClient.js
CHANGED
|
@@ -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
|
|
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.
|
|
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.
|
|
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.
|
|
32
|
+
"hb-lib-tools": "~3.0.6",
|
|
33
33
|
"tweetnacl": "~1.0.3"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|