mirror of
https://github.com/gchq/CyberChef
synced 2026-01-20 09:23:25 +00:00
ESM: Added remaining Base64 ops and created a Base64 library. Added the prefer-const eslint rule.
This commit is contained in:
@@ -5,14 +5,20 @@
|
||||
* @copyright Crown Copyright 2018
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
import ToBase64 from "../../operations/ToBase64";
|
||||
import FromBase32 from "../../operations/FromBase32";
|
||||
import FromBase64 from "../../operations/FromBase64";
|
||||
import ShowBase64Offsets from "../../operations/ShowBase64Offsets";
|
||||
import ToBase32 from "../../operations/ToBase32";
|
||||
import ToBase64 from "../../operations/ToBase64";
|
||||
|
||||
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||
const OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||
|
||||
OpModules.Default = {
|
||||
"To Base64": ToBase64,
|
||||
"From Base32": FromBase32,
|
||||
"From Base64": FromBase64,
|
||||
"Show Base64 offsets": ShowBase64Offsets,
|
||||
"To Base32": ToBase32,
|
||||
"To Base64": ToBase64,
|
||||
};
|
||||
|
||||
export default OpModules;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
import DefaultModule from "./Default";
|
||||
|
||||
let OpModules = {};
|
||||
const OpModules = {};
|
||||
|
||||
Object.assign(
|
||||
OpModules,
|
||||
|
||||
Reference in New Issue
Block a user