@basmilius/apple-airplay 0.4.2 → 0.5.1
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 +3 -3
- package/dist/protocol.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2069,7 +2069,7 @@ class EventStream extends BaseStream {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
2071
2071
|
// src/protocol.ts
|
|
2072
|
-
import {
|
|
2072
|
+
import { Context, getMacAddress, randomInt64, uuid } from "@basmilius/apple-common";
|
|
2073
2073
|
import { Plist as Plist4 } from "@basmilius/apple-encoding";
|
|
2074
2074
|
|
|
2075
2075
|
// src/pairing.ts
|
|
@@ -2204,8 +2204,8 @@ class Protocol {
|
|
|
2204
2204
|
#dataStream;
|
|
2205
2205
|
#eventStream;
|
|
2206
2206
|
#timingServer;
|
|
2207
|
-
constructor(
|
|
2208
|
-
this.#context = new Context(
|
|
2207
|
+
constructor(discoveryResult) {
|
|
2208
|
+
this.#context = new Context(discoveryResult.id);
|
|
2209
2209
|
this.#discoveryResult = discoveryResult;
|
|
2210
2210
|
this.#sessionUUID = uuid();
|
|
2211
2211
|
this.#controlStream = new ControlStream(this.#context, discoveryResult.address, discoveryResult.service.port);
|
package/dist/protocol.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export default class Protocol {
|
|
|
13
13
|
get pairing(): Pairing;
|
|
14
14
|
get sessionUUID(): string;
|
|
15
15
|
get verify(): Verify;
|
|
16
|
-
constructor(
|
|
16
|
+
constructor(discoveryResult: DiscoveryResult);
|
|
17
17
|
connect(): Promise<void>;
|
|
18
18
|
destroy(): Promise<void>;
|
|
19
19
|
disconnect(): Promise<void>;
|
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.
|
|
4
|
+
"version": "0.5.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@basmilius/apple-common": "0.
|
|
45
|
-
"@basmilius/apple-encoding": "0.
|
|
44
|
+
"@basmilius/apple-common": "0.5.1",
|
|
45
|
+
"@basmilius/apple-encoding": "0.5.1",
|
|
46
46
|
"@bufbuild/protobuf": "^2.11.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|