@basmilius/apple-companion-link 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/protocol.ts
|
|
2
2
|
import { randomInt as randomInt2 } from "node:crypto";
|
|
3
|
-
import {
|
|
3
|
+
import { Context, waitFor } from "@basmilius/apple-common";
|
|
4
4
|
import { OPack as OPack2, Plist } from "@basmilius/apple-encoding";
|
|
5
5
|
|
|
6
6
|
// src/const.ts
|
|
@@ -349,8 +349,8 @@ class Protocol {
|
|
|
349
349
|
#pairing;
|
|
350
350
|
#stream;
|
|
351
351
|
#verify;
|
|
352
|
-
constructor(
|
|
353
|
-
this.#context = new Context(
|
|
352
|
+
constructor(discoveryResult) {
|
|
353
|
+
this.#context = new Context(discoveryResult.id);
|
|
354
354
|
this.#discoveryResult = discoveryResult;
|
|
355
355
|
this.#stream = new Stream(this.#context, discoveryResult.address, discoveryResult.service.port);
|
|
356
356
|
this.#pairing = new Pairing(this);
|
package/dist/protocol.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export default class Protocol {
|
|
|
10
10
|
get pairing(): Pairing;
|
|
11
11
|
get stream(): Stream;
|
|
12
12
|
get verify(): Verify;
|
|
13
|
-
constructor(
|
|
13
|
+
constructor(discoveryResult: DiscoveryResult);
|
|
14
14
|
connect(): Promise<void>;
|
|
15
15
|
destroy(): Promise<void>;
|
|
16
16
|
disconnect(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basmilius/apple-companion-link",
|
|
3
3
|
"description": "Implementation of Apple's Companion Link in Node.js.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@basmilius/apple-common": "0.
|
|
44
|
-
"@basmilius/apple-encoding": "0.
|
|
43
|
+
"@basmilius/apple-common": "0.5.1",
|
|
44
|
+
"@basmilius/apple-encoding": "0.5.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@basmilius/tools": "^2.23.0",
|