@basmilius/apple-airplay 0.9.11 → 0.9.12

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.d.mts CHANGED
@@ -10340,6 +10340,7 @@ type EventMap$1 = {
10340
10340
  readonly originClientProperties: [OriginClientPropertiesMessage];
10341
10341
  readonly playerClientProperties: [PlayerClientPropertiesMessage];
10342
10342
  readonly removeClient: [RemoveClientMessage];
10343
+ readonly removePlayer: [RemovePlayerMessage];
10343
10344
  readonly sendCommandResult: [SendCommandResultMessage];
10344
10345
  readonly setArtwork: [SetArtworkMessage];
10345
10346
  readonly setDefaultSupportedCommands: [SetDefaultSupportedCommandsMessage];
package/dist/index.mjs CHANGED
@@ -10886,6 +10886,7 @@ var DataStream = class extends BaseStream {
10886
10886
  this.#handlers[ProtocolMessage_Type.SET_NOW_PLAYING_PLAYER_MESSAGE] = [setNowPlayingPlayerMessage, this.#onSetNowPlayingPlayerMessage.bind(this)];
10887
10887
  this.#handlers[ProtocolMessage_Type.SET_STATE_MESSAGE] = [setStateMessage, this.#onSetStateMessage.bind(this)];
10888
10888
  this.#handlers[ProtocolMessage_Type.REMOVE_CLIENT_MESSAGE] = [removeClientMessage, this.#onRemoveClientMessage.bind(this)];
10889
+ this.#handlers[ProtocolMessage_Type.REMOVE_PLAYER_MESSAGE] = [removePlayerMessage, this.#onRemovePlayerMessage.bind(this)];
10889
10890
  this.#handlers[ProtocolMessage_Type.UPDATE_CLIENT_MESSAGE] = [updateClientMessage, this.#onUpdateClientMessage.bind(this)];
10890
10891
  this.#handlers[ProtocolMessage_Type.UPDATE_CONTENT_ITEM_MESSAGE] = [updateContentItemMessage, this.#onUpdateContentItemMessage.bind(this)];
10891
10892
  this.#handlers[ProtocolMessage_Type.UPDATE_CONTENT_ITEM_ARTWORK_MESSAGE] = [updateContentItemArtworkMessage, this.#onUpdateContentItemArtworkMessage.bind(this)];
@@ -11056,6 +11057,10 @@ var DataStream = class extends BaseStream {
11056
11057
  this.context.logger.info("[data]", "Remove client", message);
11057
11058
  this.emit("removeClient", message);
11058
11059
  }
11060
+ #onRemovePlayerMessage(message) {
11061
+ this.context.logger.info("[data]", "Remove player", message);
11062
+ this.emit("removePlayer", message);
11063
+ }
11059
11064
  #onSendCommandResultMessage(message) {
11060
11065
  this.context.logger.info("[data]", "Send command result", message);
11061
11066
  this.emit("sendCommandResult", message);
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.9.11",
4
+ "version": "0.9.12",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -48,9 +48,9 @@
48
48
  }
49
49
  },
50
50
  "dependencies": {
51
- "@basmilius/apple-common": "0.9.11",
52
- "@basmilius/apple-encoding": "0.9.11",
53
- "@basmilius/apple-encryption": "0.9.11"
51
+ "@basmilius/apple-common": "0.9.12",
52
+ "@basmilius/apple-encoding": "0.9.12",
53
+ "@basmilius/apple-encryption": "0.9.12"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@bufbuild/buf": "^1.66.0",