@basmilius/apple-common 0.5.2 → 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 +1 -3
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -857,11 +857,9 @@ class Discovery {
|
|
|
857
857
|
console.log(devices.map((d) => ` ● ${d.id}`).join(`
|
|
858
858
|
`));
|
|
859
859
|
tries--;
|
|
860
|
-
if (tries === 0) {
|
|
861
|
-
throw new Error("Device not found after serveral tries, aborting.");
|
|
862
|
-
}
|
|
863
860
|
await waitFor(timeout);
|
|
864
861
|
}
|
|
862
|
+
throw new Error("Device not found after serveral tries, aborting.");
|
|
865
863
|
}
|
|
866
864
|
static airplay() {
|
|
867
865
|
return new Discovery(AIRPLAY_SERVICE);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basmilius/apple-common",
|
|
3
3
|
"description": "Common features shared across various apple protocol packages.",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"provenance": true
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
|
-
"build": "tsc && bun -b build.ts"
|
|
28
|
+
"build": "tsc && bun -b build.ts",
|
|
29
|
+
"test:discovery": "bun --watch test-discovery.ts"
|
|
29
30
|
},
|
|
30
31
|
"main": "./dist/index.js",
|
|
31
32
|
"types": "./dist/index.d.ts",
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
}
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@basmilius/apple-encoding": "0.5.
|
|
42
|
+
"@basmilius/apple-encoding": "0.5.3",
|
|
42
43
|
"@stablelib/chacha20poly1305": "^2.0.1",
|
|
43
44
|
"fast-srp-hap": "^2.0.4",
|
|
44
45
|
"node-dns-sd": "^1.0.1",
|