@basmilius/apple-common 0.0.85 → 0.0.87
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 +2 -2
package/dist/index.js
CHANGED
|
@@ -1006,6 +1006,11 @@ import { Socket as Socket2 } from "node:net";
|
|
|
1006
1006
|
var ENCRYPTION = Symbol();
|
|
1007
1007
|
|
|
1008
1008
|
// src/connection.ts
|
|
1009
|
+
var NOOP_PROMISE_HANDLER = {
|
|
1010
|
+
resolve: () => {},
|
|
1011
|
+
reject: (_) => {}
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1009
1014
|
class Connection extends EventEmitter {
|
|
1010
1015
|
get address() {
|
|
1011
1016
|
return this.#address;
|
|
@@ -1129,7 +1134,7 @@ class Connection extends EventEmitter {
|
|
|
1129
1134
|
}
|
|
1130
1135
|
this.#retryAttempt++;
|
|
1131
1136
|
reporter.net(`Retry attempt ${this.#retryAttempt} / ${this.#retryAttempts} in ${this.#retryInterval}ms...`);
|
|
1132
|
-
const { resolve, reject } = this.#connectPromise;
|
|
1137
|
+
const { resolve, reject } = this.#connectPromise ?? NOOP_PROMISE_HANDLER;
|
|
1133
1138
|
this.#cleanup();
|
|
1134
1139
|
this.#retryTimeout = setTimeout(async () => {
|
|
1135
1140
|
this.#retryTimeout = undefined;
|
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.
|
|
4
|
+
"version": "0.0.87",
|
|
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.
|
|
41
|
+
"@basmilius/apple-encoding": "0.0.87",
|
|
42
42
|
"@stablelib/chacha20poly1305": "^2.0.1",
|
|
43
43
|
"fast-srp-hap": "^2.0.4",
|
|
44
44
|
"node-dns-sd": "^1.0.1",
|