Files
discordeno/denoImportMap.json
Fleny 7303a20d7a feat(gateway): Add transport compression support (#3815)
* 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>
2024-10-05 19:48:05 +02:00

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"
}
}