mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-29 15:00:07 +00:00
* Add zlib-stream transport-compression support
* remove external buffer, add the url param
this also fixes the CI Deno error
* use a queue and promises
instead of calling handleDiscordPacket from the callback of inflate.on('data')
* Add zstd support
* Re-add payload compression, set fzstd as optional, refactor
* add comment for decompressionPromisesQueue
* fix comment for isCompressed
* Don't create a new Uint8Array if the input is a Buffer
* Use a Uint8Array buffer instead of parsing incomplete JSON chunks
* remove old commented code
* Change ts expect error message
* use type import for ShardGatewayConfig
* Apply suggestions from code review
Co-authored-by: LTS (Link) <lts20050703@gmail.com>
---------
Co-authored-by: LTS (Link) <lts20050703@gmail.com>
29 lines
1.3 KiB
JSON
29 lines
1.3 KiB
JSON
{
|
|
"imports": {
|
|
"node:buffer": "https://deno.land/std@0.176.0/node/buffer.ts",
|
|
"node:fs": "https://deno.land/std@0.176.0/node/fs.ts",
|
|
"node:fs/promises": "https://deno.land/std@0.176.0/node/fs/promises.ts",
|
|
"node:events": "https://deno.land/std@0.176.0/node/events.ts",
|
|
"tweetnacl": "npm:tweetnacl",
|
|
"ws": "npm:ws",
|
|
"fzstd": "npm:fzstd",
|
|
"mocha": "https://deno.land/std@0.168.0/testing/bdd.ts",
|
|
"chai": "https://cdn.skypack.dev/chai@4.3.4?dts",
|
|
"sinon": "https://cdn.skypack.dev/sinon@15.0.0?dts",
|
|
"find-up": "npm:find-up",
|
|
"typescript": "npm:typescript",
|
|
"chai-as-promised": "npm:chai-as-promised",
|
|
"benchmark": "npm:benchmark",
|
|
"dotenv": "npm:dotenv",
|
|
"node:zlib": "https://deno.land/std@0.176.0/node/zlib.ts",
|
|
"node:assert": "https://deno.land/std@0.176.0/node/assert.ts",
|
|
"node:path": "https://deno.land/std@0.176.0/node/path.ts",
|
|
"node:url": "https://deno.land/std@0.176.0/node/url.ts",
|
|
"@discordeno/utils": "./packages/utils/dist/esm/index.js",
|
|
"@discordeno/types": "./packages/types/dist/esm/index.js",
|
|
"@discordeno/rest": "./packages/rest/dist/esm/index.js",
|
|
"@discordeno/gateway": "./packages/gateway/dist/esm/index.js",
|
|
"@discordeno/bot": "./packages/bot/dist/esm/index.js"
|
|
}
|
|
}
|