mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 16:56:15 -04: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
2 changed files with 10 additions and 4 deletions
|
@ -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";
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue