74 lines
5.4 KiB
JSON
74 lines
5.4 KiB
JSON
{
|
|
"bareEngineMinimum": ">=1.24.0",
|
|
"bareEngineRelaxTargets": [
|
|
"node_modules/bare-performance/package.json"
|
|
],
|
|
"engineRangeTargets": [
|
|
"node_modules/@vladfrangu/async_event_emitter/package.json",
|
|
"node_modules/@sapphire/async-queue/package.json",
|
|
"node_modules/@sapphire/snowflake/package.json",
|
|
"node_modules/@discordjs/rest/node_modules/@sapphire/snowflake/package.json",
|
|
"node_modules/@sapphire/shapeshift/package.json"
|
|
],
|
|
"replaceRules": [
|
|
{
|
|
"file": "node_modules/undici/lib/dispatcher/client.js",
|
|
"findRegex": "const connectH2 = require\\(['\\\"]\\./client-h2\\.js['\\\"]\\)",
|
|
"replaceWith": "let connectH2 = null\\ntry {\\n connectH2 = require('./client-h2.js')\\n} catch {\\n connectH2 = null\\n}"
|
|
},
|
|
{
|
|
"file": "node_modules/discord.js/src/util/Util.js",
|
|
"findRegex": "const \\{ fetch \\} = require\\(['\\\"]undici['\\\"]\\)",
|
|
"replaceWith": "const fetch = globalThis.fetch"
|
|
},
|
|
{
|
|
"file": "node_modules/discord.js/src/util/DataResolver.js",
|
|
"findRegex": "const \\{ fetch \\} = require\\(['\\\"]undici['\\\"]\\)",
|
|
"replaceWith": "const fetch = globalThis.fetch"
|
|
},
|
|
{
|
|
"file": "node_modules/undici/lib/dispatcher/client.js",
|
|
"findRegex": "client\\[kHTTPContext\\] = socket\\.alpnProtocol === 'h2'\\n\\s*\\? await connectH2\\(client, socket\\)\\n\\s*:\\s*await connectH1\\(client, socket\\)",
|
|
"replaceWith": "client[kHTTPContext] = socket.alpnProtocol === 'h2'\\n ? await (connectH2 ? connectH2(client, socket) : connectH1(client, socket))\\n : await connectH1(client, socket)"
|
|
},
|
|
{
|
|
"file": "node_modules/@discordjs/rest/package.json",
|
|
"findRegex": "\"node\":\\s*\\{\\s*\"require\":\\s*\\{\\s*\"types\":\\s*\"\\.\\/dist\\/index\\.d\\.ts\",\\s*\"default\":\\s*\"\\.\\/dist\\/index\\.js\"\\s*\\},\\s*\"import\":\\s*\\{\\s*\"types\":\\s*\"\\.\\/dist\\/index\\.d\\.mts\",\\s*\"default\":\\s*\"\\.\\/dist\\/index\\.mjs\"\\s*\\}\\s*\\}",
|
|
"flags": "m",
|
|
"replaceWith": "\"node\": {\\n \"require\": {\\n \"types\": \"./dist/web.d.ts\",\\n \"default\": \"./dist/web.js\"\\n },\\n \"import\": {\\n \"types\": \"./dist/web.d.mts\",\\n \"default\": \"./dist/web.mjs\"\\n }\\n }"
|
|
},
|
|
{
|
|
"file": "node_modules/@discordjs/ws/dist/index.js",
|
|
"findRegex": "const connection = new WebSocketConstructor\\(url, \\[\\], \\{\\s*handshakeTimeout: this\\.strategy\\.options\\.handshakeTimeout \\?\\? void 0(?:,\\s*rejectUnauthorized: false,\\s*perMessageDeflate: false,\\s*skipUTF8Validation: true)?\\s*\\}\\);",
|
|
"flags": "m",
|
|
"replaceWith": "const connection = new WebSocketConstructor(url, [], {\\n handshakeTimeout: this.strategy.options.handshakeTimeout ?? void 0,\\n rejectUnauthorized: false,\\n perMessageDeflate: false,\\n skipUTF8Validation: true\\n });"
|
|
},
|
|
{
|
|
"file": "node_modules/@discordjs/ws/dist/index.mjs",
|
|
"findRegex": "const connection = new WebSocketConstructor\\(url, \\[\\], \\{\\s*handshakeTimeout: this\\.strategy\\.options\\.handshakeTimeout \\?\\? void 0(?:,\\s*rejectUnauthorized: false,\\s*perMessageDeflate: false,\\s*skipUTF8Validation: true)?\\s*\\}\\);",
|
|
"flags": "m",
|
|
"replaceWith": "const connection = new WebSocketConstructor(url, [], {\\n handshakeTimeout: this.strategy.options.handshakeTimeout ?? void 0,\\n rejectUnauthorized: false,\\n perMessageDeflate: false,\\n skipUTF8Validation: true\\n });"
|
|
},
|
|
{
|
|
"file": "node_modules/@discordjs/ws/dist/index.js",
|
|
"findRegex": "const \\{ ok \\} = await this\\.waitForEvent\\(\"hello\" /\\* Hello \\*/ , this\\.strategy\\.options\\.helloTimeout\\);\\n if \\(!ok\\) \\{\\n return;\\n \\}\\n if \\(session",
|
|
"replaceWith": "const { ok } = await this.waitForEvent(\"hello\" /* Hello */, this.strategy.options.helloTimeout);\\n if (!ok) {\\n return;\\n }\\n this.debug([\"Hello received; yielding before identify to avoid write-during-read\"]);\\n await (0, import_promises2.setTimeout)(25);\\n if (session"
|
|
},
|
|
{
|
|
"file": "node_modules/discord.js/src/client/websocket/WebSocketManager.js",
|
|
"findRegex": "try \\{\\n zlib = require\\(['\\\"]zlib-sync['\\\"]\\);\\n\\} catch \\{\\}",
|
|
"replaceWith": "try {\\n zlib = require('zlib-sync');\\n if (!zlib || typeof zlib.Inflate !== 'function') zlib = null;\\n} catch {}"
|
|
},
|
|
{
|
|
"file": "node_modules/@discordjs/ws/dist/index.js",
|
|
"findRegex": "var getZlibSync = \\(0, import_util2\\.lazy\\)\\(async \\(\\) => import\\([\"']zlib-sync[\"']\\)\\.then\\(\\(mod\\) => mod\\.default\\)\\.catch\\(\\(\\) => null\\)\\);",
|
|
"replaceWith": "var getZlibSync = (0, import_util2.lazy)(async () => import(\"zlib-sync\").then((mod) => {\\n const z = mod && (mod.default !== undefined ? mod.default : mod);\\n return z && typeof z.Inflate === \"function\" ? z : null;\\n}).catch(() => null));"
|
|
},
|
|
{
|
|
"file": "node_modules/@discordjs/ws/dist/index.mjs",
|
|
"findRegex": "var getZlibSync = lazy2\\(async \\(\\) => import\\([\"']zlib-sync[\"']\\)\\.then\\(\\(mod\\) => mod\\.default\\)\\.catch\\(\\(\\) => null\\)\\);",
|
|
"replaceWith": "const getZlibSync = lazy(async () => import(\"zlib-sync\").then((mod) => {\\n const z = mod && (mod.default !== undefined ? mod.default : mod);\\n return z && typeof z.Inflate === \"function\" ? z : null;\\n}).catch(() => null));"
|
|
}
|
|
]
|
|
}
|