mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 06:26:26 +00:00
refactor: Revert compress utils deprecation (#29977)
This commit is contained in:
parent
0a7ce18f4b
commit
7868301dee
1 changed files with 0 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue