@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024-2025 Bas Milius
3
+ Copyright (c) 2024-present Bas Milius
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.js CHANGED
@@ -83,7 +83,8 @@ var PairFrameTypes = [
83
83
  ];
84
84
 
85
85
  // src/pairing.ts
86
- import { AccessoryPair, AccessoryVerify, hkdf } from "@basmilius/apple-common";
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 { Chacha20, ENCRYPTION, EncryptionAwareConnection } from "@basmilius/apple-common";
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.3",
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.3",
44
- "@basmilius/apple-encoding": "0.5.3"
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",