@basmilius/apple-common 0.0.102 → 0.0.104
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/connection.d.ts +1 -0
- package/dist/index.js +3 -0
- package/package.json +2 -2
package/dist/connection.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare class Connection<TEventMap extends EventMap> extends EventEmitter
|
|
|
16
16
|
get state(): ConnectionState;
|
|
17
17
|
constructor(address: string, port: number);
|
|
18
18
|
connect(): Promise<void>;
|
|
19
|
+
destroy(): Promise<void>;
|
|
19
20
|
disconnect(): Promise<void>;
|
|
20
21
|
debug(enabled: boolean): this;
|
|
21
22
|
retry(attempts: number, interval?: number): this;
|
package/dist/index.js
CHANGED
|
@@ -1078,6 +1078,9 @@ class Connection extends EventEmitter {
|
|
|
1078
1078
|
this.#retryAttempt = 0;
|
|
1079
1079
|
return this.#attemptConnect();
|
|
1080
1080
|
}
|
|
1081
|
+
async destroy() {
|
|
1082
|
+
this.#socket.destroy();
|
|
1083
|
+
}
|
|
1081
1084
|
async disconnect() {
|
|
1082
1085
|
if (this.#retryTimeout) {
|
|
1083
1086
|
clearTimeout(this.#retryTimeout);
|
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.104",
|
|
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.104",
|
|
42
42
|
"@stablelib/chacha20poly1305": "^2.0.1",
|
|
43
43
|
"fast-srp-hap": "^2.0.4",
|
|
44
44
|
"node-dns-sd": "^1.0.1",
|