moons-ta-client 1.1.14 → 1.2.1
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/client.d.ts +1 -1
- package/dist/client.js +1 -16
- package/dist/constants.d.ts +3 -2
- package/dist/constants.js +3 -2
- package/dist/index.d.ts +351 -202
- package/dist/index.esm.js +1289 -678
- package/dist/models/commands.d.ts +42 -37
- package/dist/models/commands.js +55 -51
- package/dist/models/models.d.ts +52 -34
- package/dist/models/models.js +125 -68
- package/dist/models/packets.d.ts +6 -0
- package/dist/models/packets.js +10 -0
- package/dist/models/pushes.d.ts +8 -0
- package/dist/models/pushes.js +16 -2
- package/dist/models/requests.d.ts +200 -77
- package/dist/models/requests.js +433 -178
- package/dist/models/responses.d.ts +12 -34
- package/dist/models/responses.js +38 -89
- package/dist/tournament-assistant-client.d.ts +26 -18
- package/dist/tournament-assistant-client.js +234 -75
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
package/dist/client.js
CHANGED
|
@@ -54,24 +54,9 @@ export class Client extends CustomEventEmitter {
|
|
|
54
54
|
setToken(token) {
|
|
55
55
|
this.token = token;
|
|
56
56
|
}
|
|
57
|
-
send(packet
|
|
57
|
+
send(packet) {
|
|
58
58
|
let toSend = packet;
|
|
59
59
|
toSend.token = this.token;
|
|
60
|
-
if (ids) {
|
|
61
|
-
const toForward = {
|
|
62
|
-
packet,
|
|
63
|
-
forwardTo: ids,
|
|
64
|
-
};
|
|
65
|
-
toSend = {
|
|
66
|
-
token: this.token,
|
|
67
|
-
from: packet.from,
|
|
68
|
-
id: packet.id,
|
|
69
|
-
packet: {
|
|
70
|
-
oneofKind: "forwardingPacket",
|
|
71
|
-
forwardingPacket: toForward,
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
60
|
this.websocket?.send(Packet.toBinary(toSend));
|
|
76
61
|
}
|
|
77
62
|
}
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const masterAddress = "server.tournamentassistant.net";
|
|
2
2
|
export declare const masterPort = "8676";
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
3
|
+
export declare const masterApiPort = "8678";
|
|
4
|
+
export declare const version = "1.2.1";
|
|
5
|
+
export declare const versionCode = 1210;
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export const masterAddress = "server.tournamentassistant.net";
|
|
2
2
|
export const masterPort = "8676";
|
|
3
|
-
export const
|
|
4
|
-
export const
|
|
3
|
+
export const masterApiPort = "8678";
|
|
4
|
+
export const version = "1.2.1";
|
|
5
|
+
export const versionCode = 1210;
|