浏览代码

improve comments and re-add some excluded operations

d98762625 6 年之前
父节点
当前提交
d2ff2ec9c6

+ 3 - 2
src/node/NodeDish.mjs

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

+ 1 - 1
src/node/NodeRecipe.mjs

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

+ 2 - 6
src/node/config/excludedOperations.mjs

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

+ 1 - 1
src/node/config/scripts/generateNodeIndex.mjs

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