@corewire/companion-link 1.0.0-next.1 → 1.0.0-next.2
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/README.md +1 -1
- package/dist/index.mjs +1 -0
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Part of [CoreWire](https://corewire.dev). To control a device without handling s
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
npm install @corewire/companion-link
|
|
10
|
+
npm install @corewire/companion-link@next
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Requires Node.js 18.17 or later (20.3 or later on the 20 line).
|
package/dist/index.mjs
CHANGED
|
@@ -987,6 +987,7 @@ async function verifyPairing(stream, context, credentials) {
|
|
|
987
987
|
* @throws {ConnectionClosedError} When the signal aborts first.
|
|
988
988
|
*/
|
|
989
989
|
async function pair(target, options = {}) {
|
|
990
|
+
if (options.signal?.aborted) throw new ConnectionClosedError("Pairing was interrupted.");
|
|
990
991
|
const context = options.context ?? new Context(target.id ?? target.address, options.identity);
|
|
991
992
|
const stream = new Stream(context, target.address, target.port);
|
|
992
993
|
const interrupt = () => stream.destroy();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corewire/companion-link",
|
|
3
3
|
"description": "Companion Link client for Node.js, for remote control, text input, apps, accounts and power of an Apple TV.",
|
|
4
|
-
"version": "1.0.0-next.
|
|
4
|
+
"version": "1.0.0-next.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -11,9 +11,13 @@
|
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "https://github.com/basmilius/
|
|
14
|
+
"url": "https://github.com/basmilius/corewire",
|
|
15
15
|
"directory": "packages/companion-link"
|
|
16
16
|
},
|
|
17
|
+
"homepage": "https://corewire.dev",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/basmilius/corewire/issues"
|
|
20
|
+
},
|
|
17
21
|
"keywords": [
|
|
18
22
|
"apple",
|
|
19
23
|
"companion link",
|
|
@@ -46,7 +50,7 @@
|
|
|
46
50
|
}
|
|
47
51
|
},
|
|
48
52
|
"dependencies": {
|
|
49
|
-
"@corewire/core": "1.0.0-next.
|
|
53
|
+
"@corewire/core": "1.0.0-next.2"
|
|
50
54
|
},
|
|
51
55
|
"devDependencies": {
|
|
52
56
|
"@types/bun": "^1.3.14",
|