hb-nb-tools 1.1.5 → 1.1.7
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 -2
- package/package.json +2 -2
package/lib/NbClient.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
'use strict'
|
|
7
7
|
|
|
8
8
|
const crypto = require('crypto')
|
|
9
|
-
const { HttpClient, JsonFormatter, OptionParser } = require('hb-lib-tools')
|
|
9
|
+
const { HttpClient, JsonFormatter, OptionParser, toHexString } = require('hb-lib-tools')
|
|
10
10
|
const { secretbox, randomBytes } = require('tweetnacl')
|
|
11
11
|
|
|
12
12
|
class NbClient extends HttpClient {
|
|
@@ -167,7 +167,7 @@ class NbClient extends HttpClient {
|
|
|
167
167
|
|
|
168
168
|
async init () {
|
|
169
169
|
const response = await this.info()
|
|
170
|
-
this._params.id = response.body.ids.serverId
|
|
170
|
+
this._params.id = toHexString(response.body.ids.serverId)
|
|
171
171
|
this._params.firmware = response.body.versions.firmwareVersion
|
|
172
172
|
}
|
|
173
173
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Homebridge NB Tools",
|
|
4
4
|
"author": "Erik Baauw",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"version": "1.1.
|
|
6
|
+
"version": "1.1.7",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"nuki",
|
|
9
9
|
"smart-lock",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"node": "18.17.1||^18||^16"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"hb-lib-tools": "~1.0
|
|
20
|
+
"hb-lib-tools": "~1.1.0",
|
|
21
21
|
"tweetnacl": "~1.0.3"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|