mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 22:21:01 +01:00
add help, bake to top level export so theyre in the expected place in ES5 chef
This commit is contained in:
parent
b36e3adf7c
commit
3466f4e452
@ -108,7 +108,8 @@ Object.keys(operations).forEach((op) => {
|
||||
|
||||
code += `];
|
||||
|
||||
chef.bake = bake(operations);
|
||||
const prebaked = bake(operations);
|
||||
chef.bake = prebaked;
|
||||
export default chef;
|
||||
|
||||
// Operations as top level exports.
|
||||
@ -120,7 +121,9 @@ Object.keys(operations).forEach((op) => {
|
||||
code += ` ${decapitalise(op)},\n`;
|
||||
});
|
||||
|
||||
code += " SyncDish as Dish\n";
|
||||
code += " SyncDish as Dish,\n";
|
||||
code += " prebaked as bake,\n";
|
||||
code += " help,\n";
|
||||
code += "};\n";
|
||||
|
||||
|
||||
|
@ -1044,7 +1044,8 @@ const operations = [
|
||||
zlibInflate,
|
||||
];
|
||||
|
||||
chef.bake = bake(operations);
|
||||
const prebaked = bake(operations);
|
||||
chef.bake = prebaked
|
||||
export default chef;
|
||||
|
||||
// Operations as top level exports.
|
||||
@ -1302,5 +1303,7 @@ export {
|
||||
zip,
|
||||
zlibDeflate,
|
||||
zlibInflate,
|
||||
SyncDish as Dish
|
||||
SyncDish as Dish,
|
||||
prebaked as bake,
|
||||
help,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user