mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 00:06:17 -04:00
housekeeping & add repl command to package
This commit is contained in:
parent
cc840c050b
commit
431f1d4be0
5 changed files with 3 additions and 5 deletions
|
@ -50,7 +50,6 @@ class Dish {
|
|||
*/
|
||||
static typeEnum(typeStr) {
|
||||
switch (typeStr.toLowerCase()) {
|
||||
case "array":
|
||||
case "bytearray":
|
||||
case "byte array":
|
||||
return Dish.BYTE_ARRAY;
|
||||
|
|
|
@ -38,7 +38,7 @@ class NodeRecipe {
|
|||
throw new TypeError(`Couldn't find an operation with name '${ing}'.`);
|
||||
}
|
||||
} else if (typeof ing === "function") {
|
||||
if (operations.findIndex(o => o === ing) > -1) {
|
||||
if (operations.includes(ing)) {
|
||||
return ing;
|
||||
} else {
|
||||
throw new TypeError("Inputted function not a Chef operation.");
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
* @author d98762625 [d98762625@gmail.com]
|
||||
* @copyright Crown Copyright 2018
|
||||
* @license Apache-2.0
|
||||
* @module node
|
||||
*/
|
||||
|
||||
import util from "util";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue