hb-nb-tools 1.1.4 → 1.1.6

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.
@@ -0,0 +1,13 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [ebaauw]
4
+ patreon: # Replace with a single Patreon username
5
+ open_collective: # Replace with a single Open Collective username
6
+ ko_fi: # Replace with a single Ko-fi username
7
+ tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ liberapay: # Replace with a single Liberapay username
10
+ issuehunt: # Replace with a single IssueHunt username
11
+ otechie: # Replace with a single Otechie username
12
+ lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13
+ custom: ["https://www.paypal.me/ebaauw/EUR"]
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.toString(16).toUpperCase()
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.4",
6
+ "version": "1.1.6",
7
7
  "keywords": [
8
8
  "nuki",
9
9
  "smart-lock",
@@ -14,10 +14,10 @@
14
14
  "nb": "cli/nb.js"
15
15
  },
16
16
  "engines": {
17
- "node": "18.17.0||^18||^16"
17
+ "node": "18.17.1||^18||^16"
18
18
  },
19
19
  "dependencies": {
20
- "hb-lib-tools": "~1.0.11",
20
+ "hb-lib-tools": "~1.0.12",
21
21
  "tweetnacl": "~1.0.3"
22
22
  },
23
23
  "scripts": {