mirror of
https://github.com/gchq/CyberChef
synced 2025-12-23 03:33:24 +00:00
Build chef.bake.
This commit is contained in:
@@ -39,7 +39,7 @@ let code = `/**
|
||||
|
||||
|
||||
import "babel-polyfill";
|
||||
import { wrap, help } from "./apiUtils";
|
||||
import { wrap, help, bake } from "./api";
|
||||
import {
|
||||
`;
|
||||
|
||||
@@ -88,8 +88,18 @@ includedOperations.forEach((op) => {
|
||||
|
||||
code +=`
|
||||
|
||||
const operations = [\n`;
|
||||
|
||||
includedOperations.forEach((op) => {
|
||||
code += ` ${decapitalise(op)},\n`;
|
||||
});
|
||||
|
||||
code += `];
|
||||
|
||||
chef.bake = bake(operations);
|
||||
export default chef;
|
||||
export {
|
||||
operations,
|
||||
`;
|
||||
|
||||
includedOperations.forEach((op) => {
|
||||
|
||||
Reference in New Issue
Block a user