mirror of
https://github.com/gchq/CyberChef
synced 2025-12-23 03:33:24 +00:00
Expose Dish (SyncDish) in API and make it composable.
This commit is contained in:
@@ -39,6 +39,7 @@ let code = `/**
|
||||
|
||||
|
||||
import "babel-polyfill";
|
||||
import SyncDish from "./SyncDish";
|
||||
import { wrap, help, bake } from "./api";
|
||||
import {
|
||||
`;
|
||||
@@ -80,6 +81,7 @@ code += ` };
|
||||
|
||||
const chef = generateChef();
|
||||
chef.help = help;
|
||||
chef.dish = SyncDish;
|
||||
`;
|
||||
|
||||
includedOperations.forEach((op) => {
|
||||
@@ -106,7 +108,7 @@ includedOperations.forEach((op) => {
|
||||
code += ` ${decapitalise(op)},\n`;
|
||||
});
|
||||
|
||||
|
||||
code += " SyncDish as Dish\n";
|
||||
code += "};\n";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user