@ekhein/sekiro-node-client 2.1.2 → 2.1.3
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/main.d.ts +4 -1
- package/dist/main.js +3 -2
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -11,5 +11,8 @@ export declare class SekiroClient extends WebSocket {
|
|
|
11
11
|
private onClose;
|
|
12
12
|
private onError;
|
|
13
13
|
private onData;
|
|
14
|
-
registerAction(action:
|
|
14
|
+
registerAction(action: {
|
|
15
|
+
name: string;
|
|
16
|
+
handler: Function;
|
|
17
|
+
}): Promise<this>;
|
|
15
18
|
}
|
package/dist/main.js
CHANGED
|
@@ -61,8 +61,9 @@ class SekiroClient extends partysocket_1.WebSocket {
|
|
|
61
61
|
this.send(pack);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
async registerAction(action
|
|
65
|
-
this.handlers.set(action, handler);
|
|
64
|
+
async registerAction(action) {
|
|
65
|
+
this.handlers.set(action.name, action.handler);
|
|
66
|
+
return this;
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
exports.SekiroClient = SekiroClient;
|