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";
|
import Dish from "../core/Dish";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Subclass of Dish where `get` and `_translate` are synchronous.
|
* Subclass of Dish for use in the Node.js environment.
|
||||||
* Also define functions to improve coercion behaviour.
|
*
|
||||||
|
* Adds some helper functions and improves coercion for Node.js logging.
|
||||||
*/
|
*/
|
||||||
class NodeDish extends Dish {
|
class NodeDish extends Dish {
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ class NodeRecipe {
|
|||||||
*/
|
*/
|
||||||
execute(dish) {
|
execute(dish) {
|
||||||
return this.opList.reduce((prev, curr) => {
|
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")) {
|
if (curr.hasOwnProperty("op") && curr.hasOwnProperty("args")) {
|
||||||
return curr.op(prev, curr.args);
|
return curr.op(prev, curr.args);
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
export default [
|
export default [
|
||||||
|
// This functionality can be done more easily using JavaScript
|
||||||
"Fork",
|
"Fork",
|
||||||
"Merge",
|
"Merge",
|
||||||
"Jump",
|
"Jump",
|
||||||
@ -18,11 +19,6 @@ export default [
|
|||||||
"JavaScriptMinify",
|
"JavaScriptMinify",
|
||||||
"JavaScriptParser",
|
"JavaScriptParser",
|
||||||
|
|
||||||
// Relies on state of recipe.
|
// Irrelevant in Node console
|
||||||
// "Magic",
|
|
||||||
|
|
||||||
"RenderImage",
|
|
||||||
"SyntaxHighlighter",
|
"SyntaxHighlighter",
|
||||||
|
|
||||||
"DetectFileType",
|
|
||||||
];
|
];
|
||||||
|
@ -31,7 +31,7 @@ let code = `/**
|
|||||||
* THIS FILE IS AUTOMATICALLY GENERATED BY src/node/config/scripts/generateNodeIndex.mjs
|
* THIS FILE IS AUTOMATICALLY GENERATED BY src/node/config/scripts/generateNodeIndex.mjs
|
||||||
*
|
*
|
||||||
* @author d98762625 [d98762625@gmail.com]
|
* @author d98762625 [d98762625@gmail.com]
|
||||||
* @copyright Crown Copyright ${new Date().getUTCFullYear()}
|
* @copyright Crown Copyright 2019
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user