mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 08:46:19 -04:00
ESM: Added Zlib ops and created a Zlib library.
This commit is contained in:
parent
fbb3a02315
commit
083d2d1cc4
16 changed files with 913 additions and 350 deletions
30
src/core/config/modules/Compression.mjs
Normal file
30
src/core/config/modules/Compression.mjs
Normal file
|
@ -0,0 +1,30 @@
|
|||
/**
|
||||
* THIS FILE IS AUTOMATICALLY GENERATED BY src/core/config/scripts/generateConfig.mjs
|
||||
*
|
||||
* @author n1474335 [n1474335@gmail.com]
|
||||
* @copyright Crown Copyright 2018
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
import Gunzip from "../../operations/Gunzip";
|
||||
import Gzip from "../../operations/Gzip";
|
||||
import RawDeflate from "../../operations/RawDeflate";
|
||||
import RawInflate from "../../operations/RawInflate";
|
||||
import Unzip from "../../operations/Unzip";
|
||||
import Zip from "../../operations/Zip";
|
||||
import ZlibDeflate from "../../operations/ZlibDeflate";
|
||||
import ZlibInflate from "../../operations/ZlibInflate";
|
||||
|
||||
const OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||
|
||||
OpModules.Compression = {
|
||||
"Gunzip": Gunzip,
|
||||
"Gzip": Gzip,
|
||||
"Raw Deflate": RawDeflate,
|
||||
"Raw Inflate": RawInflate,
|
||||
"Unzip": Unzip,
|
||||
"Zip": Zip,
|
||||
"Zlib Deflate": ZlibDeflate,
|
||||
"Zlib Inflate": ZlibInflate,
|
||||
};
|
||||
|
||||
export default OpModules;
|
|
@ -8,12 +8,14 @@
|
|||
* @license Apache-2.0
|
||||
*/
|
||||
import DefaultModule from "./Default";
|
||||
import CompressionModule from "./Compression";
|
||||
|
||||
const OpModules = {};
|
||||
|
||||
Object.assign(
|
||||
OpModules,
|
||||
DefaultModule,
|
||||
CompressionModule,
|
||||
);
|
||||
|
||||
export default OpModules;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue