@basmilius/apple-airplay 0.0.65 → 0.0.67

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.
@@ -1,6 +1,6 @@
1
- import * as Proto from "../proto";
2
- import AirPlayDataStreamMessages from "./dataStreamMessages";
3
- import AirPlayStream from "./stream";
1
+ import * as Proto from "./proto";
2
+ import DataStreamMessages from "./dataStreamMessages";
3
+ import Stream from "./stream";
4
4
  type EventMap = {
5
5
  readonly deviceInfo: [Proto.DeviceInfoMessage];
6
6
  readonly originClientProperties: [Proto.OriginClientPropertiesMessage];
@@ -20,9 +20,9 @@ type EventMap = {
20
20
  readonly volumeControlCapabilitiesDidChange: [Proto.VolumeControlCapabilitiesDidChangeMessage];
21
21
  readonly volumeDidChange: [Proto.VolumeDidChangeMessage];
22
22
  };
23
- export default class AirPlayDataStream extends AirPlayStream<EventMap> {
23
+ export default class AirPlayDataStream extends Stream<EventMap> {
24
24
  #private;
25
- get messages(): AirPlayDataStreamMessages;
25
+ get messages(): DataStreamMessages;
26
26
  constructor(address: string, port: number);
27
27
  exchange(message: Proto.ProtocolMessage): Promise<Proto.ProtocolMessage>;
28
28
  reply(seqno: bigint): Promise<void>;
@@ -1,4 +1,4 @@
1
- import * as Proto from "../proto";
1
+ import * as Proto from "./proto";
2
2
  export default class {
3
3
  clientUpdatesConfig(): Proto.ProtocolMessage;
4
4
  configureConnection(groupId: string): Proto.ProtocolMessage;
@@ -1,5 +1,5 @@
1
- import AirPlayStream from "./stream";
2
- export default class AirPlayEventStream extends AirPlayStream<never> {
1
+ import Stream from "./stream";
2
+ export default class AirPlayEventStream extends Stream<never> {
3
3
  #private;
4
4
  respond(response: Response): Promise<void>;
5
5
  setup(sharedSecret: Buffer): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,8 @@
1
- export type { AirPlayDataStream, AirPlayDataStreamMessages, AirPlayPairing, AirPlayRTSP, AirPlayStream, AirPlayVerify } from "./protocol";
2
- export { AirPlay } from "./protocol";
1
+ export type { default as AirPlayDataStream } from "./dataStream";
2
+ export type { default as AirPlayDataStreamMessages } from "./dataStreamMessages";
3
+ export type { default as AirPlayPairing } from "./pairing";
4
+ export type { default as AirPlayRTSP } from "./rtsp";
5
+ export type { default as AirPlayStream } from "./stream";
6
+ export type { default as AirPlayVerify } from "./verify";
3
7
  export * as Proto from "./proto";
8
+ export { default as AirPlay } from "./protocol";