improve comments and re-add some excluded operations

This commit is contained in:
d98762625 2019-07-05 10:22:14 +01:00
parent 1c24c05647
commit d2ff2ec9c6
4 changed files with 7 additions and 10 deletions

View File

@ -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 {

View File

@ -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);
}

View File

@ -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",
];

View File

@ -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
*/