homebridge-lib 5.1.15 → 5.1.16
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/HttpClient.js +6 -1
- package/package.json +2 -2
package/lib/HttpClient.js
CHANGED
|
@@ -39,7 +39,11 @@ class HttpError extends Error {
|
|
|
39
39
|
* @memberof HttpClient
|
|
40
40
|
*/
|
|
41
41
|
class HttpRequest {
|
|
42
|
-
constuctor (id, method, resource, headers, body, url) {
|
|
42
|
+
constuctor (name, id, method, resource, headers, body, url) {
|
|
43
|
+
/** @member {string} - The server name.
|
|
44
|
+
*/
|
|
45
|
+
this.name = name
|
|
46
|
+
|
|
43
47
|
/** @member {integer} - The request ID.
|
|
44
48
|
*/
|
|
45
49
|
this.id = id
|
|
@@ -349,6 +353,7 @@ class HttpClient extends events.EventEmitter {
|
|
|
349
353
|
this.__params.suffix + suffix
|
|
350
354
|
const options = Object.assign({ method: method }, this.__options)
|
|
351
355
|
const requestInfo = Object.assign({
|
|
356
|
+
name: this.name,
|
|
352
357
|
id: requestId,
|
|
353
358
|
method: method,
|
|
354
359
|
resource: resource,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Library for homebridge plugins",
|
|
4
4
|
"author": "Erik Baauw",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"version": "5.1.
|
|
6
|
+
"version": "5.1.16",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"homekit",
|
|
9
9
|
"homebridge"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
23
|
"homebridge": "^1.3.5",
|
|
24
|
-
"node": "^
|
|
24
|
+
"node": "^16.13.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"bonjour-hap": "^3.6.3",
|