@sanctumterra/raknet 1.3.80 → 1.4.0
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/README.md +1 -1
- package/dist/client/client.d.ts +19 -20
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +139 -184
- package/dist/client/types/client-events.d.ts +5 -20
- package/dist/client/types/client-events.d.ts.map +1 -1
- package/dist/client/types/client-options.d.ts +7 -8
- package/dist/client/types/client-options.d.ts.map +1 -1
- package/dist/client/types/client-options.js +9 -9
- package/dist/client/types/index.d.ts +1 -1
- package/dist/client/types/index.d.ts.map +1 -1
- package/dist/client/types/index.js +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/server/connection.d.ts +20 -59
- package/dist/server/connection.d.ts.map +1 -1
- package/dist/server/connection.js +53 -365
- package/dist/server/index.d.ts +2 -3
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +2 -3
- package/dist/server/server.d.ts +11 -18
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/server.js +98 -137
- package/dist/{proto → server}/types/advertisement.d.ts +1 -1
- package/dist/server/types/advertisement.d.ts.map +1 -0
- package/dist/{proto → server}/types/advertisement.js +14 -10
- package/dist/server/types/connection-events.d.ts +4 -0
- package/dist/server/types/connection-events.d.ts.map +1 -0
- package/dist/server/types/index.d.ts +5 -0
- package/dist/server/types/index.d.ts.map +1 -0
- package/dist/{proto → server}/types/index.js +3 -1
- package/dist/server/types/server-events.d.ts +7 -0
- package/dist/server/types/server-events.d.ts.map +1 -0
- package/dist/server/types/server-options.d.ts +12 -0
- package/dist/server/types/server-options.d.ts.map +1 -0
- package/dist/server/types/server-options.js +14 -0
- package/dist/shared/emitter.d.ts +28 -0
- package/dist/shared/emitter.d.ts.map +1 -0
- package/dist/shared/emitter.js +71 -0
- package/dist/shared/index.d.ts +5 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/{proto/decorators → shared}/index.js +4 -2
- package/dist/{utils/Logger.d.ts → shared/logger.d.ts} +1 -1
- package/dist/shared/logger.d.ts.map +1 -0
- package/dist/shared/network_session.d.ts +34 -0
- package/dist/shared/network_session.d.ts.map +1 -0
- package/dist/shared/network_session.js +247 -0
- package/dist/shared/proto/enums/connectionStatus.d.ts +8 -0
- package/dist/shared/proto/enums/connectionStatus.d.ts.map +1 -0
- package/dist/shared/proto/enums/connectionStatus.js +11 -0
- package/dist/shared/proto/enums/index.d.ts +5 -0
- package/dist/shared/proto/enums/index.d.ts.map +1 -0
- package/dist/{proto → shared/proto}/enums/index.js +2 -3
- package/dist/shared/proto/enums/packets.d.ts +19 -0
- package/dist/shared/proto/enums/packets.d.ts.map +1 -0
- package/dist/shared/proto/enums/packets.js +23 -0
- package/dist/shared/proto/enums/priority.d.ts +6 -0
- package/dist/shared/proto/enums/priority.d.ts.map +1 -0
- package/dist/shared/proto/enums/priority.js +4 -0
- package/dist/shared/proto/enums/reliability.d.ts.map +1 -0
- package/dist/shared/proto/index.d.ts +5 -0
- package/dist/shared/proto/index.d.ts.map +1 -0
- package/dist/{proto → shared/proto}/index.js +3 -3
- package/dist/shared/proto/offline/index.d.ts +7 -0
- package/dist/shared/proto/offline/index.d.ts.map +1 -0
- package/dist/shared/proto/offline/index.js +22 -0
- package/dist/shared/proto/offline/open-connection-reply-one.d.ts +9 -0
- package/dist/shared/proto/offline/open-connection-reply-one.d.ts.map +1 -0
- package/dist/shared/proto/offline/open-connection-reply-one.js +28 -0
- package/dist/shared/proto/offline/open-connection-reply-two.d.ts +11 -0
- package/dist/shared/proto/offline/open-connection-reply-two.d.ts.map +1 -0
- package/dist/shared/proto/offline/open-connection-reply-two.js +31 -0
- package/dist/shared/proto/offline/open-connection-request-one.d.ts +8 -0
- package/dist/shared/proto/offline/open-connection-request-one.d.ts.map +1 -0
- package/dist/shared/proto/offline/open-connection-request-one.js +25 -0
- package/dist/shared/proto/offline/open-connection-request-two.d.ts +10 -0
- package/dist/shared/proto/offline/open-connection-request-two.d.ts.map +1 -0
- package/dist/shared/proto/offline/open-connection-request-two.js +28 -0
- package/dist/shared/proto/offline/unconnected-ping.d.ts +8 -0
- package/dist/shared/proto/offline/unconnected-ping.d.ts.map +1 -0
- package/dist/shared/proto/offline/unconnected-ping.js +25 -0
- package/dist/shared/proto/offline/unconnected-pong.d.ts +9 -0
- package/dist/shared/proto/offline/unconnected-pong.d.ts.map +1 -0
- package/dist/shared/proto/offline/unconnected-pong.js +28 -0
- package/dist/shared/proto/online/ack.d.ts +7 -0
- package/dist/shared/proto/online/ack.d.ts.map +1 -0
- package/dist/{proto/packets → shared/proto/online}/ack.js +16 -31
- package/dist/shared/proto/online/connected-ping.d.ts +7 -0
- package/dist/shared/proto/online/connected-ping.d.ts.map +1 -0
- package/dist/shared/proto/online/connected-ping.js +19 -0
- package/dist/shared/proto/online/connected-pong.d.ts +8 -0
- package/dist/shared/proto/online/connected-pong.d.ts.map +1 -0
- package/dist/shared/proto/online/connected-pong.js +22 -0
- package/dist/shared/proto/online/connection-request-accepted.d.ts +12 -0
- package/dist/shared/proto/online/connection-request-accepted.d.ts.map +1 -0
- package/dist/shared/proto/online/connection-request-accepted.js +37 -0
- package/dist/shared/proto/online/connection-request.d.ts +9 -0
- package/dist/shared/proto/online/connection-request.d.ts.map +1 -0
- package/dist/shared/proto/online/connection-request.js +25 -0
- package/dist/shared/proto/online/disconnect-message.d.ts +6 -0
- package/dist/shared/proto/online/disconnect-message.d.ts.map +1 -0
- package/dist/shared/proto/online/disconnect-message.js +15 -0
- package/dist/shared/proto/online/frame-set.d.ts +9 -0
- package/dist/shared/proto/online/frame-set.d.ts.map +1 -0
- package/dist/shared/proto/online/frame-set.js +23 -0
- package/dist/shared/proto/online/index.d.ts +9 -0
- package/dist/shared/proto/online/index.d.ts.map +1 -0
- package/dist/shared/proto/online/index.js +24 -0
- package/dist/shared/proto/online/new-incomming-connection.d.ts +11 -0
- package/dist/shared/proto/online/new-incomming-connection.d.ts.map +1 -0
- package/dist/shared/proto/online/new-incomming-connection.js +33 -0
- package/dist/shared/proto/types/address.d.ts +12 -0
- package/dist/shared/proto/types/address.d.ts.map +1 -0
- package/dist/shared/proto/types/address.js +61 -0
- package/dist/shared/proto/types/frame.d.ts +23 -0
- package/dist/shared/proto/types/frame.d.ts.map +1 -0
- package/dist/shared/proto/types/frame.js +119 -0
- package/dist/{proto/packets → shared/proto}/types/index.d.ts +0 -2
- package/dist/shared/proto/types/index.d.ts.map +1 -0
- package/dist/{proto/packets → shared/proto}/types/index.js +0 -2
- package/dist/shared/proto/types/magic.d.ts +7 -0
- package/dist/shared/proto/types/magic.d.ts.map +1 -0
- package/dist/shared/proto/types/magic.js +15 -0
- package/dist/shared/proto/types/mtu.d.ts +7 -0
- package/dist/shared/proto/types/mtu.d.ts.map +1 -0
- package/dist/shared/proto/types/mtu.js +13 -0
- package/dist/tests/client-connect.d.ts +2 -0
- package/dist/tests/client-connect.d.ts.map +1 -0
- package/dist/tests/client-connect.js +32 -0
- package/dist/tests/client-once.d.ts +2 -0
- package/dist/tests/client-once.d.ts.map +1 -0
- package/dist/tests/client-once.js +11 -0
- package/dist/tests/server-listen.d.ts +2 -0
- package/dist/tests/server-listen.d.ts.map +1 -0
- package/dist/tests/server-listen.js +5 -0
- package/package.json +6 -6
- package/bun.lock +0 -67
- package/dist/client/framer.d.ts +0 -55
- package/dist/client/framer.d.ts.map +0 -1
- package/dist/client/framer.js +0 -458
- package/dist/proto/decorators/create.d.ts +0 -8
- package/dist/proto/decorators/create.d.ts.map +0 -1
- package/dist/proto/decorators/create.js +0 -77
- package/dist/proto/decorators/index.d.ts +0 -3
- package/dist/proto/decorators/index.d.ts.map +0 -1
- package/dist/proto/decorators/serialize.d.ts +0 -4
- package/dist/proto/decorators/serialize.d.ts.map +0 -1
- package/dist/proto/decorators/serialize.js +0 -12
- package/dist/proto/enums/flags.d.ts +0 -7
- package/dist/proto/enums/flags.d.ts.map +0 -1
- package/dist/proto/enums/flags.js +0 -10
- package/dist/proto/enums/index.d.ts +0 -6
- package/dist/proto/enums/index.d.ts.map +0 -1
- package/dist/proto/enums/packet.d.ts +0 -122
- package/dist/proto/enums/packet.d.ts.map +0 -1
- package/dist/proto/enums/packet.js +0 -125
- package/dist/proto/enums/priority.d.ts +0 -5
- package/dist/proto/enums/priority.d.ts.map +0 -1
- package/dist/proto/enums/priority.js +0 -8
- package/dist/proto/enums/reliability.d.ts.map +0 -1
- package/dist/proto/enums/status.d.ts +0 -7
- package/dist/proto/enums/status.d.ts.map +0 -1
- package/dist/proto/enums/status.js +0 -10
- package/dist/proto/index.d.ts +0 -5
- package/dist/proto/index.d.ts.map +0 -1
- package/dist/proto/packets/ack.d.ts +0 -10
- package/dist/proto/packets/ack.d.ts.map +0 -1
- package/dist/proto/packets/base-packet.d.ts +0 -26
- package/dist/proto/packets/base-packet.d.ts.map +0 -1
- package/dist/proto/packets/base-packet.js +0 -37
- package/dist/proto/packets/connected-ping.d.ts +0 -5
- package/dist/proto/packets/connected-ping.d.ts.map +0 -1
- package/dist/proto/packets/connected-ping.js +0 -27
- package/dist/proto/packets/connected-pong.d.ts +0 -6
- package/dist/proto/packets/connected-pong.d.ts.map +0 -1
- package/dist/proto/packets/connected-pong.js +0 -32
- package/dist/proto/packets/connection-request-accepted.d.ts +0 -10
- package/dist/proto/packets/connection-request-accepted.d.ts.map +0 -1
- package/dist/proto/packets/connection-request-accepted.js +0 -48
- package/dist/proto/packets/connection-request.d.ts +0 -7
- package/dist/proto/packets/connection-request.d.ts.map +0 -1
- package/dist/proto/packets/connection-request.js +0 -37
- package/dist/proto/packets/disconnect.d.ts +0 -5
- package/dist/proto/packets/disconnect.d.ts.map +0 -1
- package/dist/proto/packets/disconnect.js +0 -17
- package/dist/proto/packets/frame.d.ts +0 -1
- package/dist/proto/packets/frame.d.ts.map +0 -1
- package/dist/proto/packets/frame.js +0 -1
- package/dist/proto/packets/frameset.d.ts +0 -11
- package/dist/proto/packets/frameset.d.ts.map +0 -1
- package/dist/proto/packets/frameset.js +0 -37
- package/dist/proto/packets/incompatible-protocol-version.d.ts +0 -8
- package/dist/proto/packets/incompatible-protocol-version.d.ts.map +0 -1
- package/dist/proto/packets/incompatible-protocol-version.js +0 -38
- package/dist/proto/packets/index.d.ts +0 -19
- package/dist/proto/packets/index.d.ts.map +0 -1
- package/dist/proto/packets/index.js +0 -34
- package/dist/proto/packets/nack.d.ts +0 -8
- package/dist/proto/packets/nack.d.ts.map +0 -1
- package/dist/proto/packets/nack.js +0 -88
- package/dist/proto/packets/new-incoming-connection.d.ts +0 -9
- package/dist/proto/packets/new-incoming-connection.d.ts.map +0 -1
- package/dist/proto/packets/new-incoming-connection.js +0 -43
- package/dist/proto/packets/open-connection-reply-one.d.ts +0 -8
- package/dist/proto/packets/open-connection-reply-one.d.ts.map +0 -1
- package/dist/proto/packets/open-connection-reply-one.js +0 -43
- package/dist/proto/packets/open-connection-reply-two.d.ts +0 -10
- package/dist/proto/packets/open-connection-reply-two.d.ts.map +0 -1
- package/dist/proto/packets/open-connection-reply-two.js +0 -48
- package/dist/proto/packets/open-connection-request-one.d.ts +0 -7
- package/dist/proto/packets/open-connection-request-one.d.ts.map +0 -1
- package/dist/proto/packets/open-connection-request-one.js +0 -38
- package/dist/proto/packets/open-connection-request-two.d.ts +0 -9
- package/dist/proto/packets/open-connection-request-two.d.ts.map +0 -1
- package/dist/proto/packets/open-connection-request-two.js +0 -43
- package/dist/proto/packets/types/address.d.ts +0 -48
- package/dist/proto/packets/types/address.d.ts.map +0 -1
- package/dist/proto/packets/types/address.js +0 -99
- package/dist/proto/packets/types/data-type.d.ts +0 -21
- package/dist/proto/packets/types/data-type.d.ts.map +0 -1
- package/dist/proto/packets/types/data-type.js +0 -29
- package/dist/proto/packets/types/frame.d.ts +0 -23
- package/dist/proto/packets/types/frame.d.ts.map +0 -1
- package/dist/proto/packets/types/frame.js +0 -94
- package/dist/proto/packets/types/index.d.ts.map +0 -1
- package/dist/proto/packets/types/magic.d.ts +0 -7
- package/dist/proto/packets/types/magic.d.ts.map +0 -1
- package/dist/proto/packets/types/magic.js +0 -14
- package/dist/proto/packets/types/mtu.d.ts +0 -9
- package/dist/proto/packets/types/mtu.d.ts.map +0 -1
- package/dist/proto/packets/types/mtu.js +0 -18
- package/dist/proto/packets/types/sys-address.d.ts +0 -11
- package/dist/proto/packets/types/sys-address.d.ts.map +0 -1
- package/dist/proto/packets/types/sys-address.js +0 -32
- package/dist/proto/packets/unconnected-ping.d.ts +0 -7
- package/dist/proto/packets/unconnected-ping.d.ts.map +0 -1
- package/dist/proto/packets/unconnected-ping.js +0 -38
- package/dist/proto/packets/unconnected-pong.d.ts +0 -8
- package/dist/proto/packets/unconnected-pong.d.ts.map +0 -1
- package/dist/proto/packets/unconnected-pong.js +0 -43
- package/dist/proto/types/advertisement.d.ts.map +0 -1
- package/dist/proto/types/index.d.ts +0 -3
- package/dist/proto/types/index.d.ts.map +0 -1
- package/dist/proto/types/valid.d.ts +0 -4
- package/dist/proto/types/valid.d.ts.map +0 -1
- package/dist/server/server-events.d.ts +0 -9
- package/dist/server/server-events.d.ts.map +0 -1
- package/dist/server/server-options.d.ts +0 -26
- package/dist/server/server-options.d.ts.map +0 -1
- package/dist/server/server-options.js +0 -20
- package/dist/tests/client.d.ts +0 -2
- package/dist/tests/client.d.ts.map +0 -1
- package/dist/tests/client.js +0 -15
- package/dist/tests/localhost.d.ts +0 -2
- package/dist/tests/localhost.d.ts.map +0 -1
- package/dist/tests/localhost.js +0 -34
- package/dist/tests/server.d.ts +0 -2
- package/dist/tests/server.d.ts.map +0 -1
- package/dist/tests/server.js +0 -32
- package/dist/tests/test.d.ts +0 -2
- package/dist/tests/test.d.ts.map +0 -1
- package/dist/tests/test.js +0 -49
- package/dist/utils/Logger.d.ts.map +0 -1
- package/dist/utils/decorators.d.ts +0 -2
- package/dist/utils/decorators.d.ts.map +0 -1
- package/dist/utils/decorators.js +0 -17
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -18
- /package/dist/{proto/types/valid.js → server/types/connection-events.js} +0 -0
- /package/dist/server/{server-events.js → types/server-events.js} +0 -0
- /package/dist/{utils/Logger.js → shared/logger.js} +0 -0
- /package/dist/{proto → shared/proto}/enums/reliability.d.ts +0 -0
- /package/dist/{proto → shared/proto}/enums/reliability.js +0 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Frame = exports.SplitFlag = void 0;
|
|
4
|
+
const binarystream_1 = require("@serenityjs/binarystream");
|
|
5
|
+
const enums_1 = require("../enums");
|
|
6
|
+
exports.SplitFlag = 0x10;
|
|
7
|
+
class Frame {
|
|
8
|
+
reliability;
|
|
9
|
+
reliableFrameIndex;
|
|
10
|
+
sequenceFrameIndex;
|
|
11
|
+
orderedFrameIndex;
|
|
12
|
+
orderChannel;
|
|
13
|
+
splitFrameIndex;
|
|
14
|
+
splitSize;
|
|
15
|
+
splitId;
|
|
16
|
+
payload;
|
|
17
|
+
static write(stream, frames) {
|
|
18
|
+
for (const frame of frames) {
|
|
19
|
+
const isReliable = frame.isReliable();
|
|
20
|
+
const isSequenced = frame.isSequenced();
|
|
21
|
+
const isOrdered = frame.isOrdered();
|
|
22
|
+
const isSplit = frame.isSplit();
|
|
23
|
+
const reliability = (frame.reliability << 5) | (isSplit ? exports.SplitFlag : 0);
|
|
24
|
+
const little = { endian: binarystream_1.Endianness.Little };
|
|
25
|
+
binarystream_1.Uint8.write(stream, reliability);
|
|
26
|
+
binarystream_1.Uint16.write(stream, frame.payload.byteLength << 3);
|
|
27
|
+
if (isReliable)
|
|
28
|
+
binarystream_1.Uint24.write(stream, frame.reliableFrameIndex, little);
|
|
29
|
+
if (isSequenced)
|
|
30
|
+
binarystream_1.Uint24.write(stream, frame.sequenceFrameIndex, little);
|
|
31
|
+
if (isOrdered) {
|
|
32
|
+
binarystream_1.Uint24.write(stream, frame.orderedFrameIndex, little);
|
|
33
|
+
binarystream_1.Uint8.write(stream, frame.orderChannel);
|
|
34
|
+
}
|
|
35
|
+
if (isSplit) {
|
|
36
|
+
binarystream_1.Uint32.write(stream, frame.splitSize);
|
|
37
|
+
binarystream_1.Uint16.write(stream, frame.splitId);
|
|
38
|
+
binarystream_1.Uint32.write(stream, frame.splitFrameIndex);
|
|
39
|
+
}
|
|
40
|
+
stream.write(frame.payload);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
static read(stream) {
|
|
44
|
+
const frames = [];
|
|
45
|
+
while (!stream.feof()) {
|
|
46
|
+
const frame = new Frame();
|
|
47
|
+
const header = binarystream_1.Uint8.read(stream);
|
|
48
|
+
const reliability = (header & 0xe0) >> 5;
|
|
49
|
+
const split = (header & exports.SplitFlag) !== 0;
|
|
50
|
+
const length = Math.ceil(binarystream_1.Uint16.read(stream) / 8);
|
|
51
|
+
frame.reliability = reliability;
|
|
52
|
+
const little = { endian: binarystream_1.Endianness.Little };
|
|
53
|
+
const isReliable = frame.isReliable();
|
|
54
|
+
const isSequenced = frame.isSequenced();
|
|
55
|
+
const isOrdered = frame.isOrdered();
|
|
56
|
+
if (isReliable)
|
|
57
|
+
frame.reliableFrameIndex = binarystream_1.Uint24.read(stream, little);
|
|
58
|
+
if (isSequenced)
|
|
59
|
+
frame.sequenceFrameIndex = binarystream_1.Uint24.read(stream, little);
|
|
60
|
+
if (isOrdered) {
|
|
61
|
+
frame.orderedFrameIndex = binarystream_1.Uint24.read(stream, little);
|
|
62
|
+
frame.orderChannel = binarystream_1.Uint8.read(stream);
|
|
63
|
+
}
|
|
64
|
+
if (split) {
|
|
65
|
+
frame.splitSize = binarystream_1.Uint32.read(stream);
|
|
66
|
+
frame.splitId = binarystream_1.Uint16.read(stream);
|
|
67
|
+
frame.splitFrameIndex = binarystream_1.Uint32.read(stream);
|
|
68
|
+
}
|
|
69
|
+
frame.payload = stream.read(length);
|
|
70
|
+
frames.push(frame);
|
|
71
|
+
}
|
|
72
|
+
return frames;
|
|
73
|
+
}
|
|
74
|
+
isSplit() {
|
|
75
|
+
return this.splitSize > 0;
|
|
76
|
+
}
|
|
77
|
+
isReliable() {
|
|
78
|
+
const values = [
|
|
79
|
+
enums_1.Reliability.Reliable,
|
|
80
|
+
enums_1.Reliability.ReliableOrdered,
|
|
81
|
+
enums_1.Reliability.ReliableSequenced,
|
|
82
|
+
enums_1.Reliability.ReliableWithAckReceipt,
|
|
83
|
+
enums_1.Reliability.ReliableOrderedWithAckReceipt,
|
|
84
|
+
];
|
|
85
|
+
return values.includes(this.reliability);
|
|
86
|
+
}
|
|
87
|
+
isSequenced() {
|
|
88
|
+
const values = [
|
|
89
|
+
enums_1.Reliability.ReliableSequenced,
|
|
90
|
+
enums_1.Reliability.UnreliableSequenced,
|
|
91
|
+
];
|
|
92
|
+
return values.includes(this.reliability);
|
|
93
|
+
}
|
|
94
|
+
isOrdered() {
|
|
95
|
+
const values = [
|
|
96
|
+
enums_1.Reliability.UnreliableSequenced,
|
|
97
|
+
enums_1.Reliability.ReliableOrdered,
|
|
98
|
+
enums_1.Reliability.ReliableSequenced,
|
|
99
|
+
enums_1.Reliability.ReliableOrderedWithAckReceipt,
|
|
100
|
+
];
|
|
101
|
+
return values.includes(this.reliability);
|
|
102
|
+
}
|
|
103
|
+
isOrderExclusive() {
|
|
104
|
+
const values = [
|
|
105
|
+
enums_1.Reliability.ReliableOrdered,
|
|
106
|
+
enums_1.Reliability.ReliableOrderedWithAckReceipt,
|
|
107
|
+
];
|
|
108
|
+
return values.includes(this.reliability);
|
|
109
|
+
}
|
|
110
|
+
getByteLength() {
|
|
111
|
+
return (3 +
|
|
112
|
+
this.payload.byteLength +
|
|
113
|
+
(this.isReliable() ? 3 : 0) +
|
|
114
|
+
(this.isSequenced() ? 3 : 0) +
|
|
115
|
+
(this.isOrdered() ? 4 : 0) +
|
|
116
|
+
(this.isSplit() ? 10 : 0));
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
exports.Frame = Frame;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/proto/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
|
@@ -14,9 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./data-type"), exports);
|
|
18
17
|
__exportStar(require("./magic"), exports);
|
|
19
18
|
__exportStar(require("./mtu"), exports);
|
|
20
19
|
__exportStar(require("./address"), exports);
|
|
21
20
|
__exportStar(require("./frame"), exports);
|
|
22
|
-
__exportStar(require("./sys-address"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BinaryStream } from "@serenityjs/binarystream";
|
|
2
|
+
export declare class Magic {
|
|
3
|
+
static write(stream: BinaryStream): void;
|
|
4
|
+
static read(stream: BinaryStream): Buffer;
|
|
5
|
+
nothingItJustIgnoresANoStaticClassLint(): void;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=magic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magic.d.ts","sourceRoot":"","sources":["../../../../src/shared/proto/types/magic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,qBAAa,KAAK;IACjB,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,YAAY;IAIjC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM;IAKzC,sCAAsC;CACtC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Magic = void 0;
|
|
4
|
+
const magic = Buffer.from("00ffff00fefefefefdfdfdfd12345678", "hex");
|
|
5
|
+
class Magic {
|
|
6
|
+
static write(stream) {
|
|
7
|
+
stream.write(magic);
|
|
8
|
+
}
|
|
9
|
+
static read(stream) {
|
|
10
|
+
const readMagic = stream.read(16);
|
|
11
|
+
return readMagic;
|
|
12
|
+
}
|
|
13
|
+
nothingItJustIgnoresANoStaticClassLint() { }
|
|
14
|
+
}
|
|
15
|
+
exports.Magic = Magic;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BinaryStream } from "@serenityjs/binarystream";
|
|
2
|
+
export declare class MTU {
|
|
3
|
+
static write(stream: BinaryStream, mtu: number): void;
|
|
4
|
+
static read(stream: BinaryStream): number;
|
|
5
|
+
nothingItJustIgnoresANoStaticClassLint(): void;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=mtu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mtu.d.ts","sourceRoot":"","sources":["../../../../src/shared/proto/types/mtu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,qBAAa,GAAG;IACf,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM;IAI9C,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM;IAIzC,sCAAsC;CACtC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MTU = void 0;
|
|
4
|
+
class MTU {
|
|
5
|
+
static write(stream, mtu) {
|
|
6
|
+
stream.write(Buffer.alloc(mtu - stream.getBuffer().length));
|
|
7
|
+
}
|
|
8
|
+
static read(stream) {
|
|
9
|
+
return stream.buffer.byteLength;
|
|
10
|
+
}
|
|
11
|
+
nothingItJustIgnoresANoStaticClassLint() { }
|
|
12
|
+
}
|
|
13
|
+
exports.MTU = MTU;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-connect.d.ts","sourceRoot":"","sources":["../../src/tests/client-connect.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const client_1 = require("../client");
|
|
4
|
+
const logger_1 = require("../shared/logger");
|
|
5
|
+
async function runBenchmark(iterations) {
|
|
6
|
+
logger_1.Logger.info(`§bStarting connection benchmark for ${iterations} iterations...§r`);
|
|
7
|
+
const connectionTimes = [];
|
|
8
|
+
for (let i = 0; i < iterations; i++) {
|
|
9
|
+
const time = Date.now();
|
|
10
|
+
const client = new client_1.Client({});
|
|
11
|
+
client.on("unconnectedPong", (packet) => {
|
|
12
|
+
logger_1.Logger.debug("unconnectedPong packet:", packet);
|
|
13
|
+
});
|
|
14
|
+
const connectionPromise = new Promise((resolve) => {
|
|
15
|
+
client.on("connect", () => {
|
|
16
|
+
const time2 = Date.now();
|
|
17
|
+
const timeDiff = time2 - time;
|
|
18
|
+
logger_1.Logger.info(`§aConnection attempt ${i + 1}/${iterations}: Connected in ${timeDiff}ms§r`);
|
|
19
|
+
resolve(timeDiff);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
client.connect();
|
|
23
|
+
const connectionTime = await connectionPromise;
|
|
24
|
+
connectionTimes.push(connectionTime);
|
|
25
|
+
}
|
|
26
|
+
logger_1.Logger.warn("\n§e--- Benchmark Results ---§r");
|
|
27
|
+
logger_1.Logger.info("All Connection Times:", connectionTimes);
|
|
28
|
+
const totalTime = connectionTimes.reduce((sum, time) => sum + time, 0);
|
|
29
|
+
const averageTime = totalTime / iterations;
|
|
30
|
+
logger_1.Logger.info(`Average connection time over ${iterations} attempts: §d${averageTime.toFixed(2)}ms§r`);
|
|
31
|
+
}
|
|
32
|
+
runBenchmark(10);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-once.d.ts","sourceRoot":"","sources":["../../src/tests/client-once.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const client_1 = require("../client");
|
|
4
|
+
const client = new client_1.Client();
|
|
5
|
+
client.on("unconnectedPong", (packet) => {
|
|
6
|
+
console.log(packet);
|
|
7
|
+
});
|
|
8
|
+
const time = Date.now();
|
|
9
|
+
client.connect().then(() => {
|
|
10
|
+
console.log(`Time taked ${Date.now() - time}ms`);
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-listen.d.ts","sourceRoot":"","sources":["../../src/tests/server-listen.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanctumterra/raknet",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "commonjs",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"author": "",
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@
|
|
20
|
-
"@serenityjs/
|
|
21
|
-
"@serenityjs/protocol": "^0.6.4",
|
|
22
|
-
"reflect-metadata": "^0.2.2"
|
|
19
|
+
"@sanctumterra/raknet": ".",
|
|
20
|
+
"@serenityjs/binarystream": "^3.0.10"
|
|
23
21
|
},
|
|
24
22
|
"devDependencies": {
|
|
23
|
+
"@types/bun": "^1.2.21",
|
|
24
|
+
"typescript": "^5.9.2",
|
|
25
25
|
"@biomejs/biome": "^1.9.4",
|
|
26
|
-
"@types/node": "^
|
|
26
|
+
"@types/node": "^24.3.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/bun.lock
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lockfileVersion": 1,
|
|
3
|
-
"workspaces": {
|
|
4
|
-
"": {
|
|
5
|
-
"name": "@sanctumterra/raknet",
|
|
6
|
-
"dependencies": {
|
|
7
|
-
"@serenityjs/binarystream": "^2.6.6",
|
|
8
|
-
"@serenityjs/emitter": "^0.5.2",
|
|
9
|
-
"@serenityjs/protocol": "^0.6.4",
|
|
10
|
-
"reflect-metadata": "^0.2.2",
|
|
11
|
-
},
|
|
12
|
-
"devDependencies": {
|
|
13
|
-
"@biomejs/biome": "^1.9.4",
|
|
14
|
-
"@types/node": "^22.8.0",
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
"packages": {
|
|
19
|
-
"@biomejs/biome": ["@biomejs/biome@1.9.4", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "1.9.4", "@biomejs/cli-darwin-x64": "1.9.4", "@biomejs/cli-linux-arm64": "1.9.4", "@biomejs/cli-linux-arm64-musl": "1.9.4", "@biomejs/cli-linux-x64": "1.9.4", "@biomejs/cli-linux-x64-musl": "1.9.4", "@biomejs/cli-win32-arm64": "1.9.4", "@biomejs/cli-win32-x64": "1.9.4" }, "bin": { "biome": "bin/biome" } }, "sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog=="],
|
|
20
|
-
|
|
21
|
-
"@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@1.9.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw=="],
|
|
22
|
-
|
|
23
|
-
"@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@1.9.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg=="],
|
|
24
|
-
|
|
25
|
-
"@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@1.9.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g=="],
|
|
26
|
-
|
|
27
|
-
"@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@1.9.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA=="],
|
|
28
|
-
|
|
29
|
-
"@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@1.9.4", "", { "os": "linux", "cpu": "x64" }, "sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg=="],
|
|
30
|
-
|
|
31
|
-
"@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@1.9.4", "", { "os": "linux", "cpu": "x64" }, "sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg=="],
|
|
32
|
-
|
|
33
|
-
"@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@1.9.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg=="],
|
|
34
|
-
|
|
35
|
-
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@1.9.4", "", { "os": "win32", "cpu": "x64" }, "sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA=="],
|
|
36
|
-
|
|
37
|
-
"@serenityjs/binarystream": ["@serenityjs/binarystream@2.7.0", "", { "optionalDependencies": { "@serenityjs/binarystream-darwin-arm64": "2.7.0", "@serenityjs/binarystream-darwin-x64": "2.7.0", "@serenityjs/binarystream-linux-x64-gnu": "2.7.0", "@serenityjs/binarystream-win32-x64-msvc": "2.7.0" } }, "sha512-aIWTRqy3Z5mf9qbLiE7sjM96+PKXsJqs4tURe5VlnI5fauNlFIwUUBXGyrR2PiqBSOp8DSjmP1XfO49GP4hdEg=="],
|
|
38
|
-
|
|
39
|
-
"@serenityjs/binarystream-darwin-arm64": ["@serenityjs/binarystream-darwin-arm64@2.7.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-i1MUyRLT6zNWSTOIb5eALFnSxEFmbM+nc/yw5ooqzAOM4qtr/jBrolHyEm157AU8+7ngnkBn9T94Z4zVYJGBhg=="],
|
|
40
|
-
|
|
41
|
-
"@serenityjs/binarystream-darwin-x64": ["@serenityjs/binarystream-darwin-x64@2.7.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-hm2G3dlR4meGp2MqCmdWWPqTZxcsGdT4P/cg1i5Y74BdG9F9CYojvHPN9jaq8fY+ViqBz0hzPvrKPIPEMwBDHQ=="],
|
|
42
|
-
|
|
43
|
-
"@serenityjs/binarystream-linux-x64-gnu": ["@serenityjs/binarystream-linux-x64-gnu@2.7.0", "", { "os": "linux", "cpu": "x64" }, "sha512-C2HgD+coQtlpIxnkpRObE38+rU2xVqsvRRZPcSxpkAzdPaiyVehkF7VZx0cWAZPiLZEZifNDTQV3tQlgfp4USg=="],
|
|
44
|
-
|
|
45
|
-
"@serenityjs/binarystream-win32-x64-msvc": ["@serenityjs/binarystream-win32-x64-msvc@2.7.0", "", { "os": "win32", "cpu": "x64" }, "sha512-VozM9uyBdQQJXl5Cz9zdn2dA6jOpkgzWJHjgop63FSpVAllykMKbd2WU2ZpEbLy0dTScmND2suXcqiPeU5Jrwg=="],
|
|
46
|
-
|
|
47
|
-
"@serenityjs/emitter": ["@serenityjs/emitter@0.5.2", "", {}, "sha512-x+tYqmCbOzSI0wo/0t6Scj5OU883RtTUZ6b0jfhymO0E5GEF1RkWI/4eEGcHUWMtuFDbPtb2pQynPNbt4R4XCQ=="],
|
|
48
|
-
|
|
49
|
-
"@serenityjs/logger": ["@serenityjs/logger@0.8.0", "", { "dependencies": { "colorette": "2.0.20", "moment": "2.30.1" } }, "sha512-GSCbCNYmeSIAPAX0W+TKyB7zTtd9BSg+s/hxqK6JMpMMq679YPKkvv7pmQKme2Da/c2czIvNvbh4x7HGx15grQ=="],
|
|
50
|
-
|
|
51
|
-
"@serenityjs/nbt": ["@serenityjs/nbt@0.8.0", "", { "dependencies": { "@serenityjs/binarystream": "^2.7.0" } }, "sha512-+4l3xwR33+UHTo5+cJD1q+Q/jTIvhbvgsGr5uUaojYaUfpf7UnHcew3LsiSXhzTtCC7VR90lv2XUvq9lDhAhJA=="],
|
|
52
|
-
|
|
53
|
-
"@serenityjs/protocol": ["@serenityjs/protocol@0.6.4", "", { "dependencies": { "@serenityjs/binarystream": "2.7.0", "@serenityjs/nbt": "*", "@serenityjs/raknet": "*" } }, "sha512-tTeB2LmVxbQOOOadUetomjhJS3TO8GzqXBwdHDnrkhivhF8fJR27bUEYL4ZNvKB9nyuXpKxQJiXaatkHq6UroA=="],
|
|
54
|
-
|
|
55
|
-
"@serenityjs/raknet": ["@serenityjs/raknet@0.8.0", "", { "dependencies": { "@serenityjs/binarystream": "^2.7.0", "@serenityjs/emitter": "*", "@serenityjs/logger": "*", "@serenityjs/nbt": "*", "reflect-metadata": "0.2.2" } }, "sha512-A7xOF6nhOljUD/yUrvNfXVAJhdVV+SC4rzBclexcDaLaxn5EqNQP4BFytKSsTb/v15wvlfY+600eBF4/qm9G+Q=="],
|
|
56
|
-
|
|
57
|
-
"@types/node": ["@types/node@22.15.13", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-mkmz+UBGCF/ssSObTp1McwQEvIjO2hUnVvZzck61l0su7btUill8OSvzA4N62+AtkJgMhiniyD+wEL5kocZaEA=="],
|
|
58
|
-
|
|
59
|
-
"colorette": ["colorette@2.0.20", "", {}, "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w=="],
|
|
60
|
-
|
|
61
|
-
"moment": ["moment@2.30.1", "", {}, "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how=="],
|
|
62
|
-
|
|
63
|
-
"reflect-metadata": ["reflect-metadata@0.2.2", "", {}, "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q=="],
|
|
64
|
-
|
|
65
|
-
"undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
|
|
66
|
-
}
|
|
67
|
-
}
|
package/dist/client/framer.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { RemoteInfo } from "node:dgram";
|
|
2
|
-
import { Frame, Frameset, Priority } from "../proto";
|
|
3
|
-
import type { Client } from "./client";
|
|
4
|
-
interface QueuedFrame {
|
|
5
|
-
frame: Frame;
|
|
6
|
-
timestamp: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class Framer {
|
|
9
|
-
private client;
|
|
10
|
-
private lastInputSequence;
|
|
11
|
-
private receivedFrameSequences;
|
|
12
|
-
private lostFrameSequences;
|
|
13
|
-
private inputHighestSequenceIndex;
|
|
14
|
-
private inputOrderIndex;
|
|
15
|
-
protected inputOrderingQueue: Array<Map<number, QueuedFrame>>;
|
|
16
|
-
protected readonly fragmentsQueue: Map<number, {
|
|
17
|
-
fragments: Map<number, Frame>;
|
|
18
|
-
timestamp: number;
|
|
19
|
-
}>;
|
|
20
|
-
outputOrderIndex: number[];
|
|
21
|
-
outputSequenceIndex: number[];
|
|
22
|
-
outputFrameQueue: Frameset;
|
|
23
|
-
protected outputSequence: number;
|
|
24
|
-
protected outputSplitIndex: number;
|
|
25
|
-
protected outputReliableIndex: number;
|
|
26
|
-
outputFrames: Frame[];
|
|
27
|
-
private outputFramesByteLength;
|
|
28
|
-
outputBackup: Map<number, Frame[]>;
|
|
29
|
-
_tickCount: number;
|
|
30
|
-
private mtuDiff;
|
|
31
|
-
private readonly BATCH_SIZE;
|
|
32
|
-
private readonly MAX_BATCH_INTERVAL;
|
|
33
|
-
private lastBatchTime;
|
|
34
|
-
private readonly ORDERING_QUEUE_TIMEOUT;
|
|
35
|
-
constructor(client: Client);
|
|
36
|
-
tick(): void;
|
|
37
|
-
private processBatchedAcksAndNacks;
|
|
38
|
-
private processBatchedOrderedFrames;
|
|
39
|
-
incomingMessage(payload: Buffer, rinfo: RemoteInfo): void;
|
|
40
|
-
private processFrame;
|
|
41
|
-
handle(frameSet: Frameset): void;
|
|
42
|
-
private handleFrame;
|
|
43
|
-
private handleOrdered;
|
|
44
|
-
private processOrderedFrames;
|
|
45
|
-
private handleSequenced;
|
|
46
|
-
private handleSplit;
|
|
47
|
-
private reassembleAndProcessFragment;
|
|
48
|
-
frameAndSend(payload: Buffer, priority?: Priority): void;
|
|
49
|
-
sendFrame(frame: Frame, priority: Priority): void;
|
|
50
|
-
private createSplitFrame;
|
|
51
|
-
private queueFrame;
|
|
52
|
-
sendQueue(): void;
|
|
53
|
-
}
|
|
54
|
-
export {};
|
|
55
|
-
//# sourceMappingURL=framer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"framer.d.ts","sourceRoot":"","sources":["../../src/client/framer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAMN,KAAK,EACL,QAAQ,EAOR,QAAQ,EAIR,MAAM,UAAU,CAAC;AAGlB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASvC,UAAU,WAAW;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,MAAM;IAClB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,iBAAiB,CAAM;IAC/B,OAAO,CAAC,sBAAsB,CAA0B;IACxD,OAAO,CAAC,kBAAkB,CAA0B;IACpD,OAAO,CAAC,yBAAyB,CAAmC;IACpE,OAAO,CAAC,eAAe,CAAmC;IAC1D,SAAS,CAAC,kBAAkB,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAG3D;IACF,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,GAAG,CACrC,MAAM,EACN;QAAE,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CACpD,CAAa;IAEP,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,gBAAgB,EAAE,QAAQ,CAAC;IAClC,SAAS,CAAC,cAAc,SAAK;IAC7B,SAAS,CAAC,gBAAgB,SAAK;IAC/B,SAAS,CAAC,mBAAmB,SAAK;IAC3B,YAAY,EAAE,KAAK,EAAE,CAAM;IAClC,OAAO,CAAC,sBAAsB,CAAK;IAC5B,YAAY,uBAA8B;IAC1C,UAAU,SAAK;IAEtB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAM;IACjC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAM;IACzC,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAO;gBAElC,MAAM,EAAE,MAAM;IASnB,IAAI;IA+BX,OAAO,CAAC,0BAA0B;IAkBlC,OAAO,CAAC,2BAA2B;IAiC5B,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU;IAqEzD,OAAO,CAAC,YAAY;IA2Eb,MAAM,CAAC,QAAQ,EAAE,QAAQ;IAyDhC,OAAO,CAAC,WAAW;IAYnB,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,oBAAoB;IAqB5B,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,WAAW;IAenB,OAAO,CAAC,4BAA4B;IA2B7B,YAAY,CAClB,OAAO,EAAE,MAAM,EACf,QAAQ,GAAE,QAA0B,GAClC,IAAI;IAOA,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAiCxD,OAAO,CAAC,gBAAgB;IAsBxB,OAAO,CAAC,UAAU;IAqBX,SAAS,IAAI,IAAI;CA0BxB"}
|