@basmilius/apple-encoding 0.5.1 → 0.5.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.
package/dist/index.js CHANGED
@@ -462,12 +462,16 @@ __export(exports_rtsp, {
462
462
  makeRequest: () => makeRequest,
463
463
  makeHeader: () => makeHeader
464
464
  });
465
- function makeHeader(method, path, headers, cseq) {
465
+ function makeHeader(method, path, headers, cseq, activeRemote, dacpId, sessionId) {
466
466
  const lines = [];
467
467
  lines.push(`${method} ${path} RTSP/1.0`);
468
468
  lines.push(`CSeq: ${cseq}`);
469
+ lines.push(`Active-Remote: ${activeRemote}`);
470
+ lines.push(`Client-Instance: ${dacpId}`);
471
+ lines.push(`DACP-ID: ${dacpId}`);
469
472
  lines.push("User-Agent: AirPlay/320.20");
470
473
  lines.push("X-Apple-ProtocolVersion: 1");
474
+ lines.push(`X-Apple-Session-ID: ${sessionId}`);
471
475
  lines.push("X-ProtocolVersion: 1");
472
476
  for (const [name, value] of Object.entries(headers)) {
473
477
  lines.push(`${name}: ${value}`);
package/dist/rtsp.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export type Method = "GET" | "OPTIONS" | "POST" | "PUT" | "GET_PARAMETER" | "SET_PARAMETER" | "ANNOUNCE" | "RECORD" | "SETUP" | "TEARDOWN";
2
- export declare function makeHeader(method: Method, path: string, headers: HeadersInit, cseq: number): string;
2
+ export declare function makeHeader(method: Method, path: string, headers: HeadersInit, cseq: number, activeRemote: string, dacpId: string, sessionId: string): string;
3
3
  export declare function makeRequest(buffer: Buffer): HttpRequest | null;
4
4
  export declare function makeResponse(buffer: Buffer): HttpResponse | null;
5
5
  type HttpRequest = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@basmilius/apple-encoding",
3
3
  "description": "Common encoding utilities for Apple Protocols.",
4
- "version": "0.5.1",
4
+ "version": "0.5.3",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": {