mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 07:46:16 -04:00
Add LZMA Decompress operation
This commit is contained in:
parent
1ec7033d46
commit
d502dd9857
3 changed files with 55 additions and 2 deletions
|
@ -44,8 +44,9 @@ class LZMACompress extends Operation {
|
|||
* @returns {ArrayBuffer}
|
||||
*/
|
||||
run(input, args) {
|
||||
const mode = Number(args[0]);
|
||||
return new Promise((resolve, reject) => {
|
||||
compress(new Uint8Array(input), Number(args[0]), (result, error) => {
|
||||
compress(new Uint8Array(input), mode, (result, error) => {
|
||||
if (error) {
|
||||
reject(new OperationError(`Failed to compress input: ${error.message}`));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue