@basmilius/apple-companion-link 0.5.3 → 0.5.4
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/LICENSE +1 -1
- package/dist/index.js +4 -2
- package/package.json +4 -3
package/LICENSE
CHANGED
package/dist/index.js
CHANGED
|
@@ -83,7 +83,8 @@ var PairFrameTypes = [
|
|
|
83
83
|
];
|
|
84
84
|
|
|
85
85
|
// src/pairing.ts
|
|
86
|
-
import { AccessoryPair, AccessoryVerify
|
|
86
|
+
import { AccessoryPair, AccessoryVerify } from "@basmilius/apple-common";
|
|
87
|
+
import { hkdf } from "@basmilius/apple-encryption";
|
|
87
88
|
class Pairing {
|
|
88
89
|
get internal() {
|
|
89
90
|
return this.#internal;
|
|
@@ -186,8 +187,9 @@ function convertAttentionState(state) {
|
|
|
186
187
|
|
|
187
188
|
// src/stream.ts
|
|
188
189
|
import { randomInt } from "node:crypto";
|
|
189
|
-
import {
|
|
190
|
+
import { ENCRYPTION, EncryptionAwareConnection } from "@basmilius/apple-common";
|
|
190
191
|
import { OPack } from "@basmilius/apple-encoding";
|
|
192
|
+
import { Chacha20 } from "@basmilius/apple-encryption";
|
|
191
193
|
var HEADER_SIZE = 4;
|
|
192
194
|
var PAIRING_QUEUE_IDENTIFIER = -1;
|
|
193
195
|
|
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.5.
|
|
4
|
+
"version": "0.5.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -40,8 +40,9 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@basmilius/apple-common": "0.5.
|
|
44
|
-
"@basmilius/apple-encoding": "0.5.
|
|
43
|
+
"@basmilius/apple-common": "0.5.4",
|
|
44
|
+
"@basmilius/apple-encoding": "0.5.4",
|
|
45
|
+
"@basmilius/apple-encryption": "0.5.4"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@basmilius/tools": "^2.23.0",
|