mirror of
https://github.com/gchq/CyberChef
synced 2025-01-07 18:18:47 +00: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 += `];
|
code += `];
|
||||||
|
|
||||||
chef.bake = bake(operations);
|
const prebaked = bake(operations);
|
||||||
|
chef.bake = prebaked;
|
||||||
export default chef;
|
export default chef;
|
||||||
|
|
||||||
// Operations as top level exports.
|
// Operations as top level exports.
|
||||||
|
@ -120,7 +121,9 @@ Object.keys(operations).forEach((op) => {
|
||||||
code += ` ${decapitalise(op)},\n`;
|
code += ` ${decapitalise(op)},\n`;
|
||||||
});
|
});
|
||||||
|
|
||||||
code += " SyncDish as Dish\n";
|
code += " SyncDish as Dish,\n";
|
||||||
|
code += " prebaked as bake,\n";
|
||||||
|
code += " help,\n";
|
||||||
code += "};\n";
|
code += "};\n";
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1044,7 +1044,8 @@ const operations = [
|
||||||
zlibInflate,
|
zlibInflate,
|
||||||
];
|
];
|
||||||
|
|
||||||
chef.bake = bake(operations);
|
const prebaked = bake(operations);
|
||||||
|
chef.bake = prebaked
|
||||||
export default chef;
|
export default chef;
|
||||||
|
|
||||||
// Operations as top level exports.
|
// Operations as top level exports.
|
||||||
|
@ -1302,5 +1303,7 @@ export {
|
||||||
zip,
|
zip,
|
||||||
zlibDeflate,
|
zlibDeflate,
|
||||||
zlibInflate,
|
zlibInflate,
|
||||||
SyncDish as Dish
|
SyncDish as Dish,
|
||||||
|
prebaked as bake,
|
||||||
|
help,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue