Dev (#12)
* health check * Update Dockerfile * simplifying the deployment * Update Bot.js makes the find team command public * test (#9) * Dev (#7) * health check * Update Dockerfile * simplifying the deployment * Dev (#8) * health check * Update Dockerfile * simplifying the deployment * Update Bot.js makes the find team command public * Update PlayerService.js * massive update???? could break stuff * Update Bot.js update
This commit is contained in:
23
node_modules/@discordjs/ws/dist/index.mjs
generated
vendored
23
node_modules/@discordjs/ws/dist/index.mjs
generated
vendored
@@ -3,12 +3,11 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
||||
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
||||
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
||||
}) : x)(function(x) {
|
||||
if (typeof require !== "undefined")
|
||||
return require.apply(this, arguments);
|
||||
if (typeof require !== "undefined") return require.apply(this, arguments);
|
||||
throw Error('Dynamic require of "' + x + '" is not supported');
|
||||
});
|
||||
|
||||
// ../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.0_@types+node@18.17.9__postcss@8.4.38_ts-node@10.9.1_r3lsnbzmufwa2o72aygj6fd66q/node_modules/tsup/assets/esm_shims.js
|
||||
// ../../node_modules/.pnpm/tsup@8.1.0_@microsoft+api-extractor@7.43.0_@types+node@18.17.9__postcss@8.4.38_ts-node@10.9.1_7cuiaqp5aco2ioxr7mdilx3yqy/node_modules/tsup/assets/esm_shims.js
|
||||
import { fileURLToPath } from "url";
|
||||
import path from "path";
|
||||
var getFilename = /* @__PURE__ */ __name(() => fileURLToPath(import.meta.url), "getFilename");
|
||||
@@ -461,7 +460,7 @@ var SimpleIdentifyThrottler = class {
|
||||
await state.queue.wait({ signal });
|
||||
try {
|
||||
const diff = state.resetsAt - Date.now();
|
||||
if (diff <= 5e3) {
|
||||
if (diff > 0 && diff <= 5e3) {
|
||||
const time = diff + Math.random() * 1500;
|
||||
await sleep(time);
|
||||
}
|
||||
@@ -481,14 +480,14 @@ var CompressionMethod = /* @__PURE__ */ ((CompressionMethod2) => {
|
||||
CompressionMethod2["ZlibStream"] = "zlib-stream";
|
||||
return CompressionMethod2;
|
||||
})(CompressionMethod || {});
|
||||
var DefaultDeviceProperty = `@discordjs/ws 1.1.1`;
|
||||
var DefaultDeviceProperty = `@discordjs/ws 1.2.3`;
|
||||
var getDefaultSessionStore = lazy(() => new Collection4());
|
||||
var DefaultWebSocketManagerOptions = {
|
||||
async buildIdentifyThrottler(manager) {
|
||||
const info = await manager.fetchGatewayInformation();
|
||||
return new SimpleIdentifyThrottler(info.session_start_limit.max_concurrency);
|
||||
},
|
||||
buildStrategy: (manager) => new SimpleShardingStrategy(manager),
|
||||
buildStrategy: /* @__PURE__ */ __name((manager) => new SimpleShardingStrategy(manager), "buildStrategy"),
|
||||
shardCount: null,
|
||||
shardIds: null,
|
||||
largeThreshold: null,
|
||||
@@ -529,6 +528,7 @@ function getInitialSendRateLimitState() {
|
||||
};
|
||||
}
|
||||
__name(getInitialSendRateLimitState, "getInitialSendRateLimitState");
|
||||
var KnownNetworkErrorCodes = /* @__PURE__ */ new Set(["ECONNRESET", "ECONNREFUSED", "ETIMEDOUT", "EAI_AGAIN"]);
|
||||
|
||||
// src/ws/WebSocketShard.ts
|
||||
var getZlibSync = lazy2(async () => import("zlib-sync").then((mod) => mod.default).catch(() => null));
|
||||
@@ -577,7 +577,7 @@ var WebSocketShard = class extends AsyncEventEmitter {
|
||||
lastHeartbeatAt = -1;
|
||||
// Indicates whether the shard has already resolved its original connect() call
|
||||
initialConnectResolved = false;
|
||||
// Indicates if we failed to connect to the ws url (ECONNREFUSED/ECONNRESET)
|
||||
// Indicates if we failed to connect to the ws url
|
||||
failedToConnectDueToNetworkError = false;
|
||||
sendQueue = new AsyncQueue2();
|
||||
timeoutAbortControllers = new Collection5();
|
||||
@@ -1025,7 +1025,7 @@ var WebSocketShard = class extends AsyncEventEmitter {
|
||||
}
|
||||
}
|
||||
onError(error) {
|
||||
if ("code" in error && ["ECONNRESET", "ECONNREFUSED"].includes(error.code)) {
|
||||
if ("code" in error && KnownNetworkErrorCodes.has(error.code)) {
|
||||
this.debug(["Failed to connect to the gateway URL specified due to a network error"]);
|
||||
this.failedToConnectDueToNetworkError = true;
|
||||
return;
|
||||
@@ -1125,9 +1125,7 @@ var WebSocketShard = class extends AsyncEventEmitter {
|
||||
}
|
||||
}
|
||||
debug(messages) {
|
||||
const message = `${messages[0]}${messages.length > 1 ? `
|
||||
${messages.slice(1).map((m) => ` ${m}`).join("\n")}` : ""}`;
|
||||
this.emit("debug" /* Debug */, { message });
|
||||
this.emit("debug" /* Debug */, { message: messages.join("\n ") });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1441,7 +1439,7 @@ var WebSocketManager = class extends AsyncEventEmitter2 {
|
||||
};
|
||||
|
||||
// src/index.ts
|
||||
var version = "1.1.1";
|
||||
var version = "1.2.3";
|
||||
export {
|
||||
CloseCodes,
|
||||
CompressionMethod,
|
||||
@@ -1449,6 +1447,7 @@ export {
|
||||
DefaultWebSocketManagerOptions,
|
||||
Encoding,
|
||||
ImportantGatewayOpcodes,
|
||||
KnownNetworkErrorCodes,
|
||||
SimpleContextFetchingStrategy,
|
||||
SimpleIdentifyThrottler,
|
||||
SimpleShardingStrategy,
|
||||
|
||||
Reference in New Issue
Block a user