mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 00:36:16 -04:00
Build chef.bake.
This commit is contained in:
parent
2480dca473
commit
9abaadf1b6
6 changed files with 448 additions and 139 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue