mirror of
https://github.com/gchq/CyberChef
synced 2026-01-09 03:53:24 +00:00
remove legacy async api from NodeRecipe
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user