mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01:00
improve comments and re-add some excluded operations
This commit is contained in:
parent
1c24c05647
commit
d2ff2ec9c6
@ -8,8 +8,9 @@ import util from "util";
|
||||
import Dish from "../core/Dish";
|
||||
|
||||
/**
|
||||
* Subclass of Dish where `get` and `_translate` are synchronous.
|
||||
* Also define functions to improve coercion behaviour.
|
||||
* Subclass of Dish for use in the Node.js environment.
|
||||
*
|
||||
* Adds some helper functions and improves coercion for Node.js logging.
|
||||
*/
|
||||
class NodeDish extends Dish {
|
||||
|
||||
|
@ -78,7 +78,7 @@ class NodeRecipe {
|
||||
*/
|
||||
execute(dish) {
|
||||
return this.opList.reduce((prev, curr) => {
|
||||
// CASE where opLis item is op and args
|
||||
// CASE where opList item is op and args
|
||||
if (curr.hasOwnProperty("op") && curr.hasOwnProperty("args")) {
|
||||
return curr.op(prev, curr.args);
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
export default [
|
||||
// This functionality can be done more easily using JavaScript
|
||||
"Fork",
|
||||
"Merge",
|
||||
"Jump",
|
||||
@ -18,11 +19,6 @@ export default [
|
||||
"JavaScriptMinify",
|
||||
"JavaScriptParser",
|
||||
|
||||
// Relies on state of recipe.
|
||||
// "Magic",
|
||||
|
||||
"RenderImage",
|
||||
// Irrelevant in Node console
|
||||
"SyntaxHighlighter",
|
||||
|
||||
"DetectFileType",
|
||||
];
|
||||
|
@ -31,7 +31,7 @@ let code = `/**
|
||||
* THIS FILE IS AUTOMATICALLY GENERATED BY src/node/config/scripts/generateNodeIndex.mjs
|
||||
*
|
||||
* @author d98762625 [d98762625@gmail.com]
|
||||
* @copyright Crown Copyright ${new Date().getUTCFullYear()}
|
||||
* @copyright Crown Copyright 2019
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user