prismarine-proxy 1.1.3 → 1.1.4
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/HISTORY.md +4 -0
- package/examples/instant_connect_example.js +3 -2
- package/index.d.ts +2 -2
- package/package.json +3 -2
- package/src/instant_connect_proxy.js +1 -1
package/HISTORY.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface ServerOptions {
|
|
|
10
10
|
serverOptions?: protocolServerOptions;
|
|
11
11
|
clientOptions?: Partial<protocolClientOptions>;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
type ProxyEvents = {
|
|
14
14
|
incoming: (data: any, meta: PacketMeta, toClient: ServerClient, toServer: Client) => void;
|
|
15
15
|
outgoing: (data: any, meta: PacketMeta, toClient: ServerClient, toServer: Client) => void;
|
|
16
16
|
start: (toClient: ServerClient, toServer: Client) => void;
|
|
@@ -27,4 +27,4 @@ declare class InstantConnectProxy extends ProxyHandler_base {
|
|
|
27
27
|
clientIsOnline(client: ServerClient): boolean;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export { InstantConnectProxy }
|
|
30
|
+
export { InstantConnectProxy }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prismarine-proxy",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Provide features to build proxies using Prismarine modules",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"debug": "^4.3.1",
|
|
33
33
|
"minecraft-data": "^3.0.0",
|
|
34
34
|
"minecraft-packets": "^1.5.0",
|
|
35
|
-
"minecraft-protocol": "^1.13.0"
|
|
35
|
+
"minecraft-protocol": "^1.13.0",
|
|
36
|
+
"typed-emitter": "^2.1.0"
|
|
36
37
|
}
|
|
37
38
|
}
|
|
@@ -13,7 +13,7 @@ function getPacket (ver, name, mcData) {
|
|
|
13
13
|
if (name === 'login') {
|
|
14
14
|
packet = packet ?? mcData.loginPacket
|
|
15
15
|
}
|
|
16
|
-
if (!packet) throw new Error(`Packets for version ${ver} aren't stored. This can be fixed by
|
|
16
|
+
if (!packet) throw new Error(`Packets for version ${ver} aren't stored. This can be fixed by adding them to the verMap if similar packets are stored.`)
|
|
17
17
|
return packet
|
|
18
18
|
}
|
|
19
19
|
|