Skip to content
Snippets Groups Projects
Unverified Commit 7868301d authored by Sergei Zharinov's avatar Sergei Zharinov Committed by GitHub
Browse files

refactor: Revert compress utils deprecation (#29977)

parent 0a7ce18f
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,6 @@ import zlib, { constants } from 'node:zlib';
const brotliCompress = promisify(zlib.brotliCompress);
const brotliDecompress = promisify(zlib.brotliDecompress);
/**
* @deprecated
*/
export async function compressToBase64(input: string): Promise<string> {
const buf = await brotliCompress(input, {
params: {
......@@ -17,9 +14,6 @@ export async function compressToBase64(input: string): Promise<string> {
return buf.toString('base64');
}
/**
* @deprecated
*/
export async function decompressFromBase64(input: string): Promise<string> {
const buf = Buffer.from(input, 'base64');
const str = await brotliDecompress(buf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment