@homebridge/hap-client 1.10.3-beta.0 → 1.10.3-beta.2
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/CHANGELOG.md +1 -0
- package/dist/eventedHttpClient/httpParser.d.ts +0 -1
- package/dist/eventedHttpClient/index.d.ts +0 -1
- package/dist/eventedHttpClient/index.js +2 -2
- package/dist/eventedHttpClient/index.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/interfaces.d.ts +0 -1
- package/dist/monitor.d.ts +0 -1
- package/dist/uuid.js +2 -3
- package/dist/uuid.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.parseMessage = void 0;
|
|
4
|
+
exports.createConnection = createConnection;
|
|
4
5
|
const node_net_1 = require("node:net");
|
|
5
6
|
const node_url_1 = require("node:url");
|
|
6
7
|
const httpParser_1 = require("./httpParser");
|
|
@@ -23,7 +24,6 @@ function createConnection(instance, pin, body) {
|
|
|
23
24
|
}));
|
|
24
25
|
return client;
|
|
25
26
|
}
|
|
26
|
-
exports.createConnection = createConnection;
|
|
27
27
|
function _headersToString(headers) {
|
|
28
28
|
let response = '';
|
|
29
29
|
for (const header of Object.keys(headers)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eventedHttpClient/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eventedHttpClient/index.ts"],"names":[],"mappings":";;;AAYA,4CAmBC;AA1BD,uCAAmE;AACnE,uCAAiC;AAEjC,6CAA6C;AAEhC,QAAA,YAAY,GAAG,oBAAiB,CAAC;AAE9C,SAAgB,gBAAgB,CAAC,QAAQ,EAAE,GAAW,EAAE,IAAI;IAC1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AM,GAAG,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACtG,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;QACjB,OAAO,GAAG,OAAO,GAAG,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,IAAI,GAAG,UAAU,CAAC;IACxG,CAAC;SAAM,CAAC;QACN,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;IACjC,CAAC;IAED,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/interfaces.d.ts
CHANGED
package/dist/monitor.d.ts
CHANGED
package/dist/uuid.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isValid = isValid;
|
|
4
|
+
exports.toLongFormUUID = toLongFormUUID;
|
|
4
5
|
const VALID_UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
5
6
|
function isValid(UUID) {
|
|
6
7
|
return VALID_UUID_REGEX.test(UUID);
|
|
7
8
|
}
|
|
8
|
-
exports.isValid = isValid;
|
|
9
9
|
const VALID_SHORT_REGEX = /^[0-9a-f]{1,8}$/i;
|
|
10
10
|
function toLongFormUUID(uuid, base = '-0000-1000-8000-0026BB765291') {
|
|
11
11
|
if (isValid(uuid)) {
|
|
@@ -19,5 +19,4 @@ function toLongFormUUID(uuid, base = '-0000-1000-8000-0026BB765291') {
|
|
|
19
19
|
}
|
|
20
20
|
return (('00000000' + uuid).substr(-8) + base).toUpperCase();
|
|
21
21
|
}
|
|
22
|
-
exports.toLongFormUUID = toLongFormUUID;
|
|
23
22
|
//# sourceMappingURL=uuid.js.map
|
package/dist/uuid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../src/uuid.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../src/uuid.ts"],"names":[],"mappings":";;AAIA,0BAEC;AAGD,wCAYC;AAnBD,MAAM,gBAAgB,GAAG,iEAAiE,CAAC;AAE3F,SAAgB,OAAO,CAAC,IAAY;IAClC,OAAO,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrC,CAAC;AACD,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAE7C,SAAgB,cAAc,CAAC,IAAY,EAAE,IAAI,GAAG,8BAA8B;IAChF,IAAI,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC5B,CAAC;IACD,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,SAAS,CAAC,8CAA8C,CAAC,CAAC;IACtE,CAAC;IACD,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,SAAS,CAAC,gCAAgC,CAAC,CAAC;IACxD,CAAC;IAED,OAAO,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;AAC/D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homebridge/hap-client",
|
|
3
|
-
"version": "1.10.3-beta.
|
|
3
|
+
"version": "1.10.3-beta.2",
|
|
4
4
|
"description": "A client for HAP-NodeJS.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -38,21 +38,21 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://github.com/homebridge/hap-client/blob/latest#readme",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"axios": "1.
|
|
41
|
+
"axios": "1.7.2",
|
|
42
42
|
"bonjour-service": "1.2.1",
|
|
43
43
|
"decamelize": "5.0.1",
|
|
44
44
|
"inflection": "3.0.0",
|
|
45
45
|
"source-map-support": "0.5.21"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@types/node": "^20.
|
|
48
|
+
"@types/node": "^20.14.8",
|
|
49
49
|
"@types/source-map-support": "^0.5.10",
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
51
|
-
"@typescript-eslint/parser": "^7.
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
|
51
|
+
"@typescript-eslint/parser": "^7.13.1",
|
|
52
52
|
"eslint": "^8.57.0",
|
|
53
|
-
"eslint-plugin-jest": "^28.
|
|
54
|
-
"hap-nodejs": "^0.12.
|
|
53
|
+
"eslint-plugin-jest": "^28.6.0",
|
|
54
|
+
"hap-nodejs": "^0.12.3-beta.2",
|
|
55
55
|
"ts-node": "^10.9.2",
|
|
56
|
-
"typescript": "^5.
|
|
56
|
+
"typescript": "^5.5.2"
|
|
57
57
|
}
|
|
58
58
|
}
|