mirror of
https://github.com/gchq/CyberChef
synced 2026-01-03 09:03:37 +00:00
Do not mangle names on minification for Node prod build - property names are used for search in bake
This commit is contained in:
@@ -7,9 +7,7 @@
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
import { operations } from "./index";
|
||||
import chef from "./index";
|
||||
import { decapitalise } from "./apiUtils";
|
||||
import repl from "repl";
|
||||
import "babel-polyfill";
|
||||
|
||||
@@ -28,10 +26,9 @@ const replServer = repl.start({
|
||||
prompt: "chef > ",
|
||||
});
|
||||
|
||||
operations.forEach((op) => {
|
||||
replServer.context[decapitalise(op.opName)] = op;
|
||||
Object.keys(chef).forEach((key) => {
|
||||
if (key !== "operations") {
|
||||
replServer.context[key] = chef[key];
|
||||
}
|
||||
});
|
||||
|
||||
replServer.context.help = chef.help;
|
||||
replServer.context.bake = chef.bake;
|
||||
replServer.context.Dish = chef.Dish;
|
||||
|
||||
Reference in New Issue
Block a user