@basmilius/apple-companion-link 0.0.89 → 0.0.91
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 +6 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -405,7 +405,12 @@ class CompanionLinkSocket extends EncryptionAwareConnection {
|
|
|
405
405
|
data = Buffer.concat([header, payload]);
|
|
406
406
|
}
|
|
407
407
|
reporter2.raw("Sending data frame...", this.isEncrypted, Buffer.from(data).toString("hex"), obj);
|
|
408
|
-
|
|
408
|
+
try {
|
|
409
|
+
return await this.write(data);
|
|
410
|
+
} catch (err) {
|
|
411
|
+
reporter2.error("Error in Companion Link send()", err);
|
|
412
|
+
this.emit("error", err);
|
|
413
|
+
}
|
|
409
414
|
}
|
|
410
415
|
async onData(buffer) {
|
|
411
416
|
reporter2.raw("Received data frame", buffer.toString("hex"));
|
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.0.
|
|
4
|
+
"version": "0.0.91",
|
|
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.0.
|
|
44
|
-
"@basmilius/apple-encoding": "0.0.
|
|
43
|
+
"@basmilius/apple-common": "0.0.91",
|
|
44
|
+
"@basmilius/apple-encoding": "0.0.91"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@basmilius/tools": "^2.23.0",
|