hb-nb-tools 2.0.6 → 2.0.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.
Files changed (2) hide show
  1. package/lib/NbTool.js +4 -4
  2. package/package.json +2 -2
package/lib/NbTool.js CHANGED
@@ -517,7 +517,7 @@ class NbTool extends CommandLineTool {
517
517
  nukiId = OptionParser.toInt('nukiId', value, 0, Infinity, true)
518
518
  })
519
519
  .parameter('deviceType', (value) => {
520
- deviceType = OptionParser.toInt('deviceType', value, 0, 2, true)
520
+ deviceType = OptionParser.toInt('deviceType', value, 0, 4, true)
521
521
  })
522
522
  .parse(...args)
523
523
  const response = await this.client.lockState(nukiId, deviceType)
@@ -532,7 +532,7 @@ class NbTool extends CommandLineTool {
532
532
  nukiId = OptionParser.toInt('nukiId', value, 0, Infinity, true)
533
533
  })
534
534
  .parameter('deviceType', (value) => {
535
- deviceType = OptionParser.toInt('deviceType', value, 0, 2, true)
535
+ deviceType = OptionParser.toInt('deviceType', value, 0, 4, true)
536
536
  })
537
537
  .parse(...args)
538
538
  const response = await this.client.lock(nukiId, deviceType)
@@ -547,7 +547,7 @@ class NbTool extends CommandLineTool {
547
547
  nukiId = OptionParser.toInt('nukiId', value, 0, Infinity, true)
548
548
  })
549
549
  .parameter('deviceType', (value) => {
550
- deviceType = OptionParser.toInt('deviceType', value, 0, 2, true)
550
+ deviceType = OptionParser.toInt('deviceType', value, 0, 4, true)
551
551
  })
552
552
  .parse(...args)
553
553
  const response = await this.client.unlock(nukiId, deviceType)
@@ -563,7 +563,7 @@ class NbTool extends CommandLineTool {
563
563
  nukiId = OptionParser.toInt('nukiId', value, 0, Infinity, true)
564
564
  })
565
565
  .parameter('deviceType', (value) => {
566
- deviceType = OptionParser.toInt('deviceType', value, 0, 2, true)
566
+ deviceType = OptionParser.toInt('deviceType', value, 0, 4, true)
567
567
  })
568
568
  .parameter('action', (value) => {
569
569
  action = OptionParser.toInt('action', value, 1, 5, true)
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "ebaauw"
7
7
  ],
8
8
  "license": "Apache-2.0",
9
- "version": "2.0.6",
9
+ "version": "2.0.7",
10
10
  "type": "module",
11
11
  "exports": {
12
12
  "./*": "./lib/*.js"
@@ -24,7 +24,7 @@
24
24
  "node": "^22||^20||^18"
25
25
  },
26
26
  "dependencies": {
27
- "hb-lib-tools": "~2.0.6",
27
+ "hb-lib-tools": "~2.1.2",
28
28
  "tweetnacl": "~1.0.3"
29
29
  },
30
30
  "scripts": {