yolkbot 1.4.4 → 1.4.6
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/browser/build/global.js +1 -1
- package/browser/build/module.js +1 -1
- package/dist/api.js +200 -1
- package/dist/bot/GamePlayer.js +74 -1
- package/dist/bot.js +1679 -1
- package/dist/comm/CommIn.js +79 -1
- package/dist/comm/CommOut.js +60 -1
- package/dist/comm/index.js +11 -1
- package/dist/constants/CloseCode.js +27 -1
- package/dist/constants/CommCode.js +53 -1
- package/dist/constants/challenges.js +1821 -1
- package/dist/constants/findItemById.js +2 -3
- package/dist/constants/guns.js +277 -1
- package/dist/constants/index.js +139 -1
- package/dist/constants/items.js +45042 -1
- package/dist/constants/maps.js +1263 -1
- package/dist/constants/regions.js +30 -1
- package/dist/dispatches/BanPlayerDispatch.js +32 -1
- package/dist/dispatches/BootPlayerDispatch.js +21 -1
- package/dist/dispatches/ChatDispatch.js +32 -1
- package/dist/dispatches/FireDispatch.js +15 -1
- package/dist/dispatches/GameOptionsDispatch.js +66 -1
- package/dist/dispatches/GoToAmmoDispatch.js +38 -1
- package/dist/dispatches/GoToCoopDispatch.js +38 -1
- package/dist/dispatches/GoToGrenadeDispatch.js +38 -1
- package/dist/dispatches/GoToPlayerDispatch.js +39 -1
- package/dist/dispatches/GoToSpatulaDispatch.js +26 -1
- package/dist/dispatches/LookAtDispatch.js +35 -1
- package/dist/dispatches/LookAtPosDispatch.js +29 -1
- package/dist/dispatches/MeleeDispatch.js +26 -1
- package/dist/dispatches/MovementDispatch.js +26 -1
- package/dist/dispatches/PauseDispatch.js +18 -1
- package/dist/dispatches/ReloadDispatch.js +28 -1
- package/dist/dispatches/ReportPlayerDispatch.js +42 -1
- package/dist/dispatches/ResetGameDispatch.js +19 -1
- package/dist/dispatches/SaveLoadoutDispatch.js +105 -1
- package/dist/dispatches/SpawnDispatch.js +22 -1
- package/dist/dispatches/SwapWeaponDispatch.js +25 -1
- package/dist/dispatches/SwitchTeamDispatch.js +33 -1
- package/dist/dispatches/ThrowGrenadeDispatch.js +21 -1
- package/dist/dispatches/index.js +74 -1
- package/dist/env/fetch.js +97 -10
- package/dist/env/globals.js +15 -1
- package/dist/index.js +14 -2
- package/dist/matchmaker.js +141 -1
- package/dist/pathing/astar.js +55 -1
- package/dist/pathing/binaryheap.js +79 -1
- package/dist/pathing/mapnode.js +179 -1
- package/dist/socket.js +97 -1
- package/dist/util.js +68 -1
- package/dist/wasm/bytes.js +8 -1
- package/dist/wasm/direct.js +84 -1
- package/dist/wasm/legacy.js +170 -1
- package/dist/wasm/util.js +19 -1
- package/package.json +38 -39
- /package/dist/{types/api.d.ts → api.d.ts} +0 -0
- /package/dist/{types/bot → bot}/GamePlayer.d.ts +0 -0
- /package/dist/{types/bot.d.ts → bot.d.ts} +0 -0
- /package/dist/{types/comm → comm}/CommIn.d.ts +0 -0
- /package/dist/{types/comm → comm}/CommOut.d.ts +0 -0
- /package/dist/{types/comm → comm}/index.d.ts +0 -0
- /package/dist/{types/constants → constants}/CloseCode.d.ts +0 -0
- /package/dist/{types/constants → constants}/CommCode.d.ts +0 -0
- /package/dist/{types/constants → constants}/challenges.d.ts +0 -0
- /package/dist/{types/constants → constants}/changelog.d.ts +0 -0
- /package/dist/{types/constants → constants}/findItemById.d.ts +0 -0
- /package/dist/{types/constants → constants}/guns.d.ts +0 -0
- /package/dist/{types/constants → constants}/housePromo.d.ts +0 -0
- /package/dist/{types/constants → constants}/index.d.ts +0 -0
- /package/dist/{types/constants → constants}/items.d.ts +0 -0
- /package/dist/{types/constants → constants}/language.d.ts +0 -0
- /package/dist/{types/constants → constants}/maps.d.ts +0 -0
- /package/dist/{types/constants → constants}/notices.d.ts +0 -0
- /package/dist/{types/constants → constants}/regions.d.ts +0 -0
- /package/dist/{types/constants → constants}/shellNews.d.ts +0 -0
- /package/dist/{types/constants → constants}/shellYoutube.d.ts +0 -0
- /package/dist/{types/constants → constants}/shopItems.d.ts +0 -0
- /package/dist/{types/constants → constants}/sounds.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/BanPlayerDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/BootPlayerDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/ChatDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/FireDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/GameOptionsDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/GoToAmmoDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/GoToCoopDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/GoToGrenadeDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/GoToPlayerDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/GoToSpatulaDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/LookAtDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/LookAtPosDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/MeleeDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/MovementDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/PauseDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/ReloadDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/ReportPlayerDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/ResetGameDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/SaveLoadoutDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/SpawnDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/SwapWeaponDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/SwitchTeamDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/ThrowGrenadeDispatch.d.ts +0 -0
- /package/dist/{types/dispatches → dispatches}/index.d.ts +0 -0
- /package/dist/{types/matchmaker.d.ts → matchmaker.d.ts} +0 -0
- /package/dist/{types/pathing → pathing}/astar.d.ts +0 -0
- /package/dist/{types/pathing → pathing}/binaryheap.d.ts +0 -0
- /package/dist/{types/pathing → pathing}/mapnode.d.ts +0 -0
- /package/dist/{types/socket.d.ts → socket.d.ts} +0 -0
- /package/dist/{types/util.d.ts → util.d.ts} +0 -0
- /package/dist/{types/wasm → wasm}/bytes.d.ts +0 -0
- /package/dist/{types/wasm → wasm}/direct.d.ts +0 -0
- /package/dist/{types/wasm → wasm}/legacy.d.ts +0 -0
- /package/dist/{types/wasm → wasm}/util.d.ts +0 -0
package/dist/wasm/legacy.js
CHANGED
|
@@ -1 +1,170 @@
|
|
|
1
|
-
import{wasmBytes
|
|
1
|
+
import { wasmBytes } from "./bytes.js";
|
|
2
|
+
import { calculateMovements } from "./util.js";
|
|
3
|
+
|
|
4
|
+
export class WASM {
|
|
5
|
+
wasm;
|
|
6
|
+
debug = false;
|
|
7
|
+
canvasListeners = {};
|
|
8
|
+
mockElement = { textContent: "" };
|
|
9
|
+
processDate = null;
|
|
10
|
+
processListeners = [];
|
|
11
|
+
async initWasm() {
|
|
12
|
+
const wasmInstantiated = await WebAssembly.instantiate(wasmBytes, this.getImports());
|
|
13
|
+
this.wasm = wasmInstantiated.instance.exports;
|
|
14
|
+
this.wasm.start();
|
|
15
|
+
const [ptr, len] = this.passStringToWasm([...Array(14)].map(() => Math.random().toString(36)[2]).join(""));
|
|
16
|
+
this.wasm.set_mouse_params(50, 1, 1, false, ptr, len);
|
|
17
|
+
const movementX = Math.floor(Math.random() * 10) + 1;
|
|
18
|
+
const movementY = Math.floor(Math.random() * 10) + 1;
|
|
19
|
+
this.canvasListeners.pointermove({ movementX, movementY });
|
|
20
|
+
}
|
|
21
|
+
getStringFromWasm = (ptr, len) => {
|
|
22
|
+
if (!this.wasm)
|
|
23
|
+
return "";
|
|
24
|
+
ptr >>>= 0;
|
|
25
|
+
return new TextDecoder().decode(new Uint8Array(this.wasm.memory.buffer).subarray(ptr, ptr + len));
|
|
26
|
+
};
|
|
27
|
+
passStringToWasm = (str) => {
|
|
28
|
+
if (!this.wasm)
|
|
29
|
+
return;
|
|
30
|
+
const buf = new TextEncoder().encode(str);
|
|
31
|
+
const ptr = this.wasm.__wbindgen_malloc(buf.length, 1) >>> 0;
|
|
32
|
+
new Uint8Array(this.wasm.memory.buffer).subarray(ptr, ptr + buf.length).set(buf);
|
|
33
|
+
return [ptr, buf.length];
|
|
34
|
+
};
|
|
35
|
+
addToExternrefTable = (obj) => {
|
|
36
|
+
if (!this.wasm)
|
|
37
|
+
return;
|
|
38
|
+
const idx = this.wasm.__externref_table_alloc();
|
|
39
|
+
this.wasm.__wbindgen_export_2.set(idx, obj);
|
|
40
|
+
return idx;
|
|
41
|
+
};
|
|
42
|
+
getImports() {
|
|
43
|
+
const CLOSURE_DTORS = new FinalizationRegistry((state) => {
|
|
44
|
+
this.wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
|
|
45
|
+
});
|
|
46
|
+
const makeMutClosure = (arg0, arg1, dtor, f) => {
|
|
47
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
48
|
+
const real = (...args) => {
|
|
49
|
+
state.cnt++;
|
|
50
|
+
const a = state.a;
|
|
51
|
+
state.a = 0;
|
|
52
|
+
try {
|
|
53
|
+
return f(a, state.b, ...args);
|
|
54
|
+
} finally {
|
|
55
|
+
if (--state.cnt === 0) {
|
|
56
|
+
this.wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
|
|
57
|
+
CLOSURE_DTORS.unregister(state);
|
|
58
|
+
} else
|
|
59
|
+
state.a = a;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
real.original = state;
|
|
63
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
64
|
+
return real;
|
|
65
|
+
};
|
|
66
|
+
const __wbg_adapter_6 = (arg0, arg1, arg2) => this.wasm.closure9_externref_shim(arg0, arg1, arg2);
|
|
67
|
+
return {
|
|
68
|
+
wbg: {
|
|
69
|
+
__wbg_addEventListener_775911544ac9d643: (_t, arg1, arg2, callback) => this.canvasListeners[this.getStringFromWasm(arg1, arg2)] = callback,
|
|
70
|
+
__wbg_appendChild_87a6cc0aeb132c06: () => {},
|
|
71
|
+
__wbg_axes_57e916a6e0ffb3e4: () => {},
|
|
72
|
+
__wbg_body_8822ca55cb3730d2: () => this.addToExternrefTable(null),
|
|
73
|
+
__wbg_call_13410aac570ffff7: () => {},
|
|
74
|
+
__wbg_createElement_4909dfa2011f2abe: () => this.mockElement,
|
|
75
|
+
__wbg_document_7d29d139bd619045: () => this.addToExternrefTable({}),
|
|
76
|
+
__wbg_from_88bc52ce20ba6318: (...args) => Array.from(args[0]),
|
|
77
|
+
__wbg_getGamepads_c373aed0f1e5e4a6: (...args) => args[0].getGamepads(),
|
|
78
|
+
__wbg_get_458e874b43b18b25: (...args) => Reflect.get(args[0], args[1]),
|
|
79
|
+
__wbg_get_0da715ceaecea5c8: (...args) => args[0][args[1] >>> 0],
|
|
80
|
+
__wbg_has_b89e451f638123e3: () => true,
|
|
81
|
+
__wbg_instanceof_Gamepad_2987f05b50f4775a: () => true,
|
|
82
|
+
__wbg_instanceof_Window_12d20d558ef92592: () => true,
|
|
83
|
+
__wbg_isTrusted_04e871d8dde8ea8a: () => true,
|
|
84
|
+
__wbg_length_186546c51cd61acd: (...args) => args[0].length,
|
|
85
|
+
__wbg_movementX_0ef0e79f7b9168fc: (...args) => args[0].movementX,
|
|
86
|
+
__wbg_movementY_875c2fc2aabd99bf: (...args) => args[0].movementY,
|
|
87
|
+
__wbg_navigator_65d5ad763926b868: (...args) => args[0].navigator,
|
|
88
|
+
__wbg_new_19c25a3f2fa63a02: () => new Object,
|
|
89
|
+
__wbg_newnoargs_254190557c45b4ec: () => {},
|
|
90
|
+
__wbg_now_1e80617bcee43265: () => this.processDate || Date.now(),
|
|
91
|
+
__wbg_set_453345bcda80b89a: (...args) => Reflect.set(args[0], args[1], args[2]),
|
|
92
|
+
__wbg_settextContent_b55fe2f5f1399466: async (...args) => {
|
|
93
|
+
this.mockElement.textContent = this.getStringFromWasm(args[1], args[2]);
|
|
94
|
+
this.processListeners.forEach((listener) => listener(this.mockElement.textContent));
|
|
95
|
+
},
|
|
96
|
+
__wbg_static_accessor_GLOBAL_8921f820c2ce3f12: () => {},
|
|
97
|
+
__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184: () => {},
|
|
98
|
+
__wbg_static_accessor_SELF_995b214ae681ff99: () => this.addToExternrefTable({}),
|
|
99
|
+
__wbg_static_accessor_WINDOW_cde3890479c675ea: () => {},
|
|
100
|
+
__wbg_wbindgenbooleanget_3fe6f642c7d97746: (arg0) => {
|
|
101
|
+
if (typeof arg0 === "boolean")
|
|
102
|
+
return arg0 ? 1 : 0;
|
|
103
|
+
return null;
|
|
104
|
+
},
|
|
105
|
+
__wbg_wbindgendebugstring_99ef257a3ddda34d: (arg0, arg1) => {
|
|
106
|
+
const str = this.getStringFromWasm(arg0, arg1);
|
|
107
|
+
const [ptr, len] = this.passStringToWasm(str);
|
|
108
|
+
const dv = new DataView(this.wasm.memory.buffer);
|
|
109
|
+
dv.setInt32(arg0 + 4 * 1, len, true);
|
|
110
|
+
dv.setInt32(arg0 + 4 * 0, ptr, true);
|
|
111
|
+
},
|
|
112
|
+
__wbg_wbindgenisnull_f3037694abe4d97a: (arg0) => arg0 === null ? 1 : 0,
|
|
113
|
+
__wbg_wbindgenisundefined_c4b71d073b92f3c5: (arg0) => typeof arg0 === "undefined" ? 1 : 0,
|
|
114
|
+
__wbg_wbindgennumberget_f74b4c7525ac05cb: (arg0, arg1) => {
|
|
115
|
+
const obj = arg1;
|
|
116
|
+
const ret = typeof obj === "number" ? obj : null;
|
|
117
|
+
const dv = new DataView(this.wasm.memory.buffer);
|
|
118
|
+
dv.setFloat64(arg0 + 8 * 1, ret, true);
|
|
119
|
+
dv.setInt32(arg0 + 4 * 0, 1, true);
|
|
120
|
+
},
|
|
121
|
+
__wbg_wbindgenthrow_451ec1a8469d7eb6: (a, b) => this.debug && console.log("call 31", a, b),
|
|
122
|
+
__wbindgen_cast_01559742fdcca8af: (arg0, arg1) => makeMutClosure(arg0, arg1, 8, __wbg_adapter_6),
|
|
123
|
+
__wbindgen_cast_2241b6af4c4b2941: (arg0, arg1) => this.getStringFromWasm(arg0, arg1),
|
|
124
|
+
__wbindgen_cast_2495c10526b24646: (arg0, arg1) => makeMutClosure(arg0, arg1, 8, __wbg_adapter_6),
|
|
125
|
+
__wbindgen_cast_d6cd19b81560fd6e: (arg0) => arg0,
|
|
126
|
+
__wbindgen_init_externref_table: () => {
|
|
127
|
+
const table = this.wasm.__wbindgen_export_2;
|
|
128
|
+
const offset = table.grow(4);
|
|
129
|
+
table.set(0, null);
|
|
130
|
+
table.set(offset + 0, null);
|
|
131
|
+
table.set(offset + 1, null);
|
|
132
|
+
table.set(offset + 2, true);
|
|
133
|
+
table.set(offset + 3, false);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
async process(str, date) {
|
|
139
|
+
if (date)
|
|
140
|
+
this.processDate = date;
|
|
141
|
+
const promise = new Promise((resolve) => this.processListeners.push(resolve));
|
|
142
|
+
const [ptr, len] = this.passStringToWasm(str);
|
|
143
|
+
this.wasm.process(ptr, len);
|
|
144
|
+
return promise;
|
|
145
|
+
}
|
|
146
|
+
validate(input) {
|
|
147
|
+
let retPtr;
|
|
148
|
+
let retLen;
|
|
149
|
+
try {
|
|
150
|
+
const [ptr, len] = this.passStringToWasm(input);
|
|
151
|
+
const ret = this.wasm.validate(ptr, len);
|
|
152
|
+
retPtr = ret[0];
|
|
153
|
+
retLen = ret[1];
|
|
154
|
+
return this.getStringFromWasm(retPtr, retLen);
|
|
155
|
+
} finally {
|
|
156
|
+
this.wasm.__wbindgen_free(retPtr, retLen, 1);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
getYawPitch = () => this.wasm.get_yaw_pitch();
|
|
160
|
+
resetYawPitch = () => this.wasm.reset_yaw_pitch();
|
|
161
|
+
coords(yaw, pitch) {
|
|
162
|
+
this.wasm.reset_yaw_pitch();
|
|
163
|
+
const currentYP = this.wasm.get_yaw_pitch();
|
|
164
|
+
const { movementX, movementY } = calculateMovements(currentYP.yaw, currentYP.pitch, yaw, pitch);
|
|
165
|
+
this.canvasListeners.pointermove({ movementX, movementY });
|
|
166
|
+
const newYawPitch = this.wasm.get_yaw_pitch();
|
|
167
|
+
return newYawPitch.coords;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
export default WASM;
|
package/dist/wasm/util.js
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
-
export const sensitivity
|
|
1
|
+
export const sensitivity = 0.0025;
|
|
2
|
+
export const normalizeYaw = (yaw) => {
|
|
3
|
+
while (yaw < 0)
|
|
4
|
+
yaw += 2 * Math.PI;
|
|
5
|
+
while (yaw >= 2 * Math.PI)
|
|
6
|
+
yaw -= 2 * Math.PI;
|
|
7
|
+
return yaw;
|
|
8
|
+
};
|
|
9
|
+
export const calculateMovements = (currentYaw, currentPitch, targetYaw, targetPitch) => {
|
|
10
|
+
const normalizedCurrentYaw = normalizeYaw(currentYaw);
|
|
11
|
+
const normalizedTargetYaw = normalizeYaw(targetYaw);
|
|
12
|
+
let yawDiff = normalizedTargetYaw - normalizedCurrentYaw;
|
|
13
|
+
if (Math.abs(yawDiff) > Math.PI)
|
|
14
|
+
yawDiff = yawDiff > 0 ? yawDiff - 2 * Math.PI : yawDiff + 2 * Math.PI;
|
|
15
|
+
const pitchDiff = targetPitch - currentPitch;
|
|
16
|
+
const movementX = Math.round(-yawDiff / sensitivity);
|
|
17
|
+
const movementY = Math.round(-pitchDiff / sensitivity);
|
|
18
|
+
return { movementX, movementY };
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yolkbot",
|
|
3
3
|
"description": "create a shell shockers bot in under 10 lines.",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.6",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shell shockers",
|
|
7
7
|
"shellshock.io",
|
|
@@ -30,106 +30,106 @@
|
|
|
30
30
|
".": "./dist/index.js",
|
|
31
31
|
"./api": {
|
|
32
32
|
"import": "./dist/api.js",
|
|
33
|
-
"types": "./dist/
|
|
33
|
+
"types": "./dist/api.d.ts"
|
|
34
34
|
},
|
|
35
35
|
"./browser": "./browser/build/module.js",
|
|
36
36
|
"./browser/*": "./browser/build/*.js",
|
|
37
37
|
"./browser/*.js": "./browser/build/*.js",
|
|
38
38
|
"./comm": {
|
|
39
39
|
"import": "./dist/comm/index.js",
|
|
40
|
-
"types": "./dist/
|
|
40
|
+
"types": "./dist/comm/index.d.ts"
|
|
41
41
|
},
|
|
42
42
|
"./matchmaker": {
|
|
43
43
|
"import": "./dist/matchmaker.js",
|
|
44
|
-
"types": "./dist/
|
|
44
|
+
"types": "./dist/matchmaker.d.ts"
|
|
45
45
|
},
|
|
46
46
|
"./util": {
|
|
47
47
|
"import": "./dist/util.js",
|
|
48
|
-
"types": "./dist/
|
|
48
|
+
"types": "./dist/util.d.ts"
|
|
49
49
|
},
|
|
50
50
|
"./pathing/*": "./dist/pathing/*.js",
|
|
51
51
|
"./pathing/*.js": "./dist/pathing/*.js",
|
|
52
52
|
"./bot": {
|
|
53
53
|
"import": "./dist/bot.js",
|
|
54
|
-
"types": "./dist/
|
|
54
|
+
"types": "./dist/bot.d.ts"
|
|
55
55
|
},
|
|
56
56
|
"./bot/*": {
|
|
57
57
|
"import": "./dist/bot/*.js",
|
|
58
|
-
"types": "./dist/
|
|
58
|
+
"types": "./dist/bot/*.d.ts"
|
|
59
59
|
},
|
|
60
60
|
"./bot/*.js": {
|
|
61
61
|
"import": "./dist/bot/*.js",
|
|
62
|
-
"types": "./dist/
|
|
62
|
+
"types": "./dist/bot/*.d.ts"
|
|
63
63
|
},
|
|
64
64
|
"./constants": {
|
|
65
65
|
"import": "./dist/constants/index.js",
|
|
66
|
-
"types": "./dist/
|
|
66
|
+
"types": "./dist/constants/index.d.ts"
|
|
67
67
|
},
|
|
68
68
|
"./constants/*": {
|
|
69
69
|
"import": "./dist/constants/*.js",
|
|
70
|
-
"types": "./dist/
|
|
70
|
+
"types": "./dist/constants/*.d.ts"
|
|
71
71
|
},
|
|
72
72
|
"./constants/*.js": {
|
|
73
73
|
"import": "./dist/constants/*.js",
|
|
74
|
-
"types": "./dist/
|
|
74
|
+
"types": "./dist/constants/*.d.ts"
|
|
75
75
|
},
|
|
76
76
|
"./dispatch": {
|
|
77
77
|
"import": "./dist/dispatches/index.js",
|
|
78
|
-
"types": "./dist/
|
|
78
|
+
"types": "./dist/dispatches.d.ts"
|
|
79
79
|
},
|
|
80
80
|
"./dispatch/*": {
|
|
81
81
|
"import": "./dist/dispatches/*.js",
|
|
82
|
-
"types": "./dist/
|
|
82
|
+
"types": "./dist/dispatches/*.d.ts"
|
|
83
83
|
},
|
|
84
84
|
"./dispatch/*.js": {
|
|
85
85
|
"import": "./dist/dispatches/*.js",
|
|
86
|
-
"types": "./dist/
|
|
86
|
+
"types": "./dist/dispatches/*.d.ts"
|
|
87
87
|
},
|
|
88
88
|
"./dispatches": {
|
|
89
89
|
"import": "./dist/dispatches/index.js",
|
|
90
|
-
"types": "./dist/
|
|
90
|
+
"types": "./dist/dispatches.d.ts"
|
|
91
91
|
},
|
|
92
92
|
"./dispatches/*": {
|
|
93
93
|
"import": "./dist/dispatches/*.js",
|
|
94
|
-
"types": "./dist/
|
|
94
|
+
"types": "./dist/dispatches/*.d.ts"
|
|
95
95
|
},
|
|
96
96
|
"./dispatches/*.js": {
|
|
97
97
|
"import": "./dist/dispatches/*.js",
|
|
98
|
-
"types": "./dist/
|
|
98
|
+
"types": "./dist/dispatches/*.d.ts"
|
|
99
99
|
},
|
|
100
100
|
"./socket": {
|
|
101
101
|
"import": "./dist/socket.js",
|
|
102
|
-
"types": "./dist/
|
|
102
|
+
"types": "./dist/socket.d.ts"
|
|
103
103
|
},
|
|
104
104
|
"./wasm": {
|
|
105
105
|
"import": "./dist/wasm/direct.js",
|
|
106
|
-
"types": "./dist/
|
|
106
|
+
"types": "./dist/wasm/direct.d.ts"
|
|
107
107
|
},
|
|
108
108
|
"./wasm/*": {
|
|
109
109
|
"import": "./dist/wasm/*.js",
|
|
110
|
-
"types": "./dist/
|
|
110
|
+
"types": "./dist/wasm/*.d.ts"
|
|
111
111
|
},
|
|
112
112
|
"./wasm/*.js": {
|
|
113
113
|
"import": "./dist/wasm/*.js",
|
|
114
|
-
"types": "./dist/
|
|
114
|
+
"types": "./dist/wasm/*.d.ts"
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
"typesVersions": {
|
|
118
118
|
"*": {
|
|
119
|
-
"api": ["dist/
|
|
120
|
-
"comm": ["dist/
|
|
121
|
-
"matchmaker": ["dist/
|
|
122
|
-
"util": ["dist/
|
|
123
|
-
"bot": ["dist/
|
|
124
|
-
"bot/*": ["dist/
|
|
125
|
-
"constants": ["dist/
|
|
126
|
-
"constants/*": ["dist/
|
|
127
|
-
"dispatch": ["dist/
|
|
128
|
-
"dispatch/*": ["dist/
|
|
129
|
-
"dispatches": ["dist/
|
|
130
|
-
"dispatches/*": ["dist/
|
|
131
|
-
"wasm": ["dist/
|
|
132
|
-
"wasm/*": ["dist/
|
|
119
|
+
"api": ["dist/api.d.ts"],
|
|
120
|
+
"comm": ["dist/comm/index.d.ts"],
|
|
121
|
+
"matchmaker": ["dist/matchmaker.d.ts"],
|
|
122
|
+
"util": ["dist/util.d.ts"],
|
|
123
|
+
"bot": ["dist/bot/*.d.ts"],
|
|
124
|
+
"bot/*": ["dist/bot/*.d.ts"],
|
|
125
|
+
"constants": ["dist/constants/*.d.ts"],
|
|
126
|
+
"constants/*": ["dist/constants/*.d.ts"],
|
|
127
|
+
"dispatch": ["dist/dispatches.d.ts"],
|
|
128
|
+
"dispatch/*": ["dist/dispatches/*.d.ts"],
|
|
129
|
+
"dispatches": ["dist/dispatches.d.ts"],
|
|
130
|
+
"dispatches/*": ["dist/dispatches/*.d.ts"],
|
|
131
|
+
"wasm": ["dist/wasm/direct.d.ts"],
|
|
132
|
+
"wasm/*": ["dist/wasm/*.d.ts"]
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
"dependencies": {
|
|
@@ -137,11 +137,10 @@
|
|
|
137
137
|
},
|
|
138
138
|
"devDependencies": {
|
|
139
139
|
"@stylistic/eslint-plugin": "^4.4.1",
|
|
140
|
-
"@types/bun": "^1.3.
|
|
141
|
-
"eslint": "^9.39.
|
|
140
|
+
"@types/bun": "^1.3.5",
|
|
141
|
+
"eslint": "^9.39.2"
|
|
142
142
|
},
|
|
143
143
|
"scripts": {
|
|
144
|
-
"lint": "bunx --bun eslint . --fix"
|
|
145
|
-
"b": "bun cli/build"
|
|
144
|
+
"lint": "bunx --bun eslint . --fix"
|
|
146
145
|
}
|
|
147
146
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|