@basmilius/apple-devices 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1624,7 +1624,7 @@ class device_default extends EventEmitter2 {
1624
1624
  this.#feedbackInterval = setInterval(async () => await this.#feedback(), FEEDBACK_INTERVAL);
1625
1625
  await this.#protocol.dataStream.exchange(DataStreamMessage3.setConnectionState(Proto5.SetConnectionStateMessage_ConnectionState.Connecting));
1626
1626
  await waitFor2(500);
1627
- const gid = this.#discoveryResult.packet.additionals.find((a) => ("rdata" in a) && typeof a["rdata"] === "object" && ("gid" in a["rdata"]))?.["rdata"]["gid"];
1627
+ const gid = this.#discoveryResult.txt.gid;
1628
1628
  if (gid) {
1629
1629
  await this.#protocol.dataStream.exchange(DataStreamMessage3.configureConnection(gid));
1630
1630
  }
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.5.0",
4
+ "version": "0.5.2",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -43,10 +43,10 @@
43
43
  }
44
44
  },
45
45
  "dependencies": {
46
- "@basmilius/apple-airplay": "0.5.0",
47
- "@basmilius/apple-common": "0.5.0",
48
- "@basmilius/apple-companion-link": "0.5.0",
49
- "@basmilius/apple-encoding": "0.5.0"
46
+ "@basmilius/apple-airplay": "0.5.2",
47
+ "@basmilius/apple-common": "0.5.2",
48
+ "@basmilius/apple-companion-link": "0.5.2",
49
+ "@basmilius/apple-encoding": "0.5.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@basmilius/tools": "^2.23.0",