mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
remove legacy async api from NodeRecipe
This commit is contained in:
parent
b48c16b4db
commit
6d219ade2d
2 changed files with 15 additions and 4 deletions
|
@ -30,6 +30,17 @@ class NodeDish extends Dish {
|
|||
super(inputOrDish, type);
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply the inputted operation to the dish.
|
||||
*
|
||||
* @param {WrappedOperation} operation the operation to perform
|
||||
* @param {*} args - any arguments for the operation
|
||||
* @returns {Dish} a new dish with the result of the operation.
|
||||
*/
|
||||
apply(operation, args=null) {
|
||||
return operation(this.value, args);
|
||||
}
|
||||
|
||||
/**
|
||||
* alias for get
|
||||
* @param args see get args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue