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 CHANGED
@@ -1,5 +1,9 @@
1
1
  ## History
2
2
 
3
+ ### 1.1.4
4
+
5
+ - Fix typescript types
6
+
3
7
  ### 1.1.3
4
8
 
5
9
  - Use minecraft-data's login packet if one is not in minecraft-packets
@@ -6,10 +6,11 @@ const proxy = new InstantConnectProxy({
6
6
  },
7
7
  clientOptions: {
8
8
  host: 'localhost',
9
- version: '1.8.9'
9
+ version: '1.18.2'
10
10
  },
11
11
  serverOptions: {
12
- version: '1.8.9'
12
+ version: '1.18.2',
13
+ port: 25566
13
14
  }
14
15
  })
15
16
 
package/index.d.ts CHANGED
@@ -10,7 +10,7 @@ interface ServerOptions {
10
10
  serverOptions?: protocolServerOptions;
11
11
  clientOptions?: Partial<protocolClientOptions>;
12
12
  }
13
- interface ProxyEvents {
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",
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 dumping them adding them to the verMap if similar packets are stored.`)
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