hb-nb-tools 1.0.1 → 1.1.1
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/README.md +2 -0
- package/cli/nb.js +2 -1
- package/lib/NbClient.js +1 -1
- package/lib/NbTool.js +1 -2
- package/package.json +3 -3
package/README.md
CHANGED
package/cli/nb.js
CHANGED
package/lib/NbClient.js
CHANGED
package/lib/NbTool.js
CHANGED
|
@@ -9,7 +9,6 @@ const NbClient = require('./NbClient')
|
|
|
9
9
|
const NbDiscovery = require('./NbDiscovery')
|
|
10
10
|
const NbListener = require('./NbListener')
|
|
11
11
|
const hbLibTools = require('hb-lib-tools')
|
|
12
|
-
const packageJson = require('../package.json')
|
|
13
12
|
|
|
14
13
|
const { CommandLineParser, CommandLineTool, JsonFormatter, OptionParser } = hbLibTools
|
|
15
14
|
const { b, u } = CommandLineTool
|
|
@@ -416,7 +415,7 @@ class NbTool extends CommandLineTool {
|
|
|
416
415
|
}
|
|
417
416
|
this.name = 'nb ' + clargs.command
|
|
418
417
|
this.usage = `${b('nb')} ${usage[clargs.command]}`
|
|
419
|
-
this.parser = new CommandLineParser(
|
|
418
|
+
this.parser = new CommandLineParser(this.pkgJson)
|
|
420
419
|
this.parser.help('h', 'help', help[clargs.command])
|
|
421
420
|
await this[clargs.command](clargs.args)
|
|
422
421
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hb-nb-tools",
|
|
3
|
-
"description": "Homebridge NB
|
|
3
|
+
"description": "Homebridge NB Tools",
|
|
4
4
|
"author": "Erik Baauw",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.1.1",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"nuki",
|
|
9
9
|
"smart-lock",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"node": "^18.16.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"hb-lib-tools": "~1.0.
|
|
20
|
+
"hb-lib-tools": "~1.0.9"
|
|
21
21
|
},
|
|
22
22
|
"optionalDependencies": {
|
|
23
23
|
"sodium-plus": "~0.9.0"
|