@basmilius/apple-airplay 0.13.1 → 0.13.3

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.mjs +3 -1
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -12930,7 +12930,7 @@ function chacha20Decrypt(state, data) {
12930
12930
  if (offset + 2 > data.length) return false;
12931
12931
  const frameLength = data.readUInt16LE(offset);
12932
12932
  offset += 2;
12933
- if (frameLength === 0 || frameLength > 65535) return false;
12933
+ if (frameLength === 0) throw new Error("Corrupt encrypted frame: zero-length frame");
12934
12934
  const end = offset + frameLength + 16;
12935
12935
  if (end > data.length) return false;
12936
12936
  const ciphertext = data.subarray(offset, offset + frameLength);
@@ -13790,6 +13790,7 @@ var DataStream = class extends BaseStream {
13790
13790
  if (command === "sync") this.reply(parseHeaderSeqno(header));
13791
13791
  }
13792
13792
  } catch (err) {
13793
+ this.#cleanup();
13793
13794
  this.context.logger.error("[data]", "onStreamData()", err);
13794
13795
  this.emit("error", err);
13795
13796
  }
@@ -14872,6 +14873,7 @@ var Protocol = class {
14872
14873
  timescale: 0
14873
14874
  } });
14874
14875
  } catch (err) {
14876
+ this.#stopPlayUrlFeedback();
14875
14877
  try {
14876
14878
  await this.#controlStream.teardown(`/${this.#controlStream.sessionId}`);
14877
14879
  } catch (teardownErr) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@basmilius/apple-airplay",
3
3
  "description": "Implementation of Apple's AirPlay2 in Node.js.",
4
- "version": "0.13.1",
4
+ "version": "0.13.3",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -47,10 +47,10 @@
47
47
  }
48
48
  },
49
49
  "dependencies": {
50
- "@basmilius/apple-common": "0.13.1",
51
- "@basmilius/apple-encoding": "0.13.1",
52
- "@basmilius/apple-encryption": "0.13.1",
53
- "@basmilius/apple-rtsp": "0.13.1"
50
+ "@basmilius/apple-common": "0.13.3",
51
+ "@basmilius/apple-encoding": "0.13.3",
52
+ "@basmilius/apple-encryption": "0.13.3",
53
+ "@basmilius/apple-rtsp": "0.13.3"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@bufbuild/buf": "^1.66.1",