@basmilius/apple-common 0.0.94 → 0.0.96

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1212,7 +1212,6 @@ class Connection extends EventEmitter {
1212
1212
  reporter.error("Connection timed out.");
1213
1213
  const err = new Error("Connection timed out.");
1214
1214
  this.emit("timeout");
1215
- this.emit("error", err);
1216
1215
  if (this.#state === "connecting") {
1217
1216
  this.#scheduleRetry(err);
1218
1217
  } else {
@@ -1364,9 +1363,9 @@ class AccessoryPair {
1364
1363
  [TLV8.Value.Identifier, this.#pairingId],
1365
1364
  [TLV8.Value.PublicKey, this.#publicKey],
1366
1365
  [TLV8.Value.Signature, Buffer.from(signature)],
1367
- [TLV8.Value.Name, Buffer.from(OPack.encode({
1366
+ [TLV8.Value.Name, OPack.encode({
1368
1367
  name: this.#name
1369
- }))]
1368
+ })]
1370
1369
  ]);
1371
1370
  const { authTag, ciphertext } = exports_chacha20.encrypt(sessionKey, Buffer.from("PS-Msg05"), null, innerTlv);
1372
1371
  const encrypted = Buffer.concat([ciphertext, authTag]);
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.0.94",
4
+ "version": "0.0.96",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -38,7 +38,7 @@
38
38
  }
39
39
  },
40
40
  "dependencies": {
41
- "@basmilius/apple-encoding": "0.0.94",
41
+ "@basmilius/apple-encoding": "0.0.96",
42
42
  "@stablelib/chacha20poly1305": "^2.0.1",
43
43
  "fast-srp-hap": "^2.0.4",
44
44
  "node-dns-sd": "^1.0.1",