@basmilius/apple-devices 0.0.104 → 0.1.1
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/dist/index.js +4 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1589,6 +1589,7 @@ class device_default extends EventEmitter2 {
|
|
|
1589
1589
|
async#feedback() {
|
|
1590
1590
|
try {
|
|
1591
1591
|
await this.#protocol.feedback();
|
|
1592
|
+
await this.#protocol.dataStream.exchange(DataStreamMessage3.setConnectionState(Proto5.SetConnectionStateMessage_ConnectionState.Connected));
|
|
1592
1593
|
} catch (err) {
|
|
1593
1594
|
reporter2.error("Feedback error", err);
|
|
1594
1595
|
}
|
|
@@ -1770,10 +1771,11 @@ class device_default2 extends EventEmitter3 {
|
|
|
1770
1771
|
const keys = this.#keys;
|
|
1771
1772
|
await this.#protocol.socket.enableEncryption(keys.accessoryToControllerKey, keys.controllerToAccessoryKey);
|
|
1772
1773
|
await this.#protocol._systemInfo(this.#credentials.pairingId);
|
|
1773
|
-
await this.#protocol._touchStart();
|
|
1774
1774
|
await this.#protocol._sessionStart();
|
|
1775
1775
|
await this.#protocol._tvrcSessionStart();
|
|
1776
|
-
await this.#protocol.
|
|
1776
|
+
await this.#protocol._touchStart();
|
|
1777
|
+
await this.#protocol._tiStart();
|
|
1778
|
+
await this.#protocol._subscribe("_iMC", (evt) => reporter3.info("iMC", evt));
|
|
1777
1779
|
this.#heartbeatInterval = setInterval(async () => await this.#heartbeat(), 15000);
|
|
1778
1780
|
await this.#subscribe();
|
|
1779
1781
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basmilius/apple-devices",
|
|
3
3
|
"description": "Exposes various Apple devices to connect with either AirPlay or Companion Link.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@basmilius/apple-airplay": "0.
|
|
47
|
-
"@basmilius/apple-common": "0.
|
|
48
|
-
"@basmilius/apple-companion-link": "0.
|
|
49
|
-
"@basmilius/apple-encoding": "0.
|
|
46
|
+
"@basmilius/apple-airplay": "0.1.1",
|
|
47
|
+
"@basmilius/apple-common": "0.1.1",
|
|
48
|
+
"@basmilius/apple-companion-link": "0.1.1",
|
|
49
|
+
"@basmilius/apple-encoding": "0.1.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@basmilius/tools": "^2.23.0",
|
|
53
|
-
"@types/bun": "^1.3.
|
|
53
|
+
"@types/bun": "^1.3.8",
|
|
54
54
|
"@types/lodash-es": "^4.17.12",
|
|
55
|
-
"lodash-es": "^4.17.
|
|
55
|
+
"lodash-es": "^4.17.23"
|
|
56
56
|
}
|
|
57
57
|
}
|