mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
Converted all modules from CommonJS to ES6
This commit is contained in:
parent
0f2a5014be
commit
131b3a83c1
75 changed files with 395 additions and 282 deletions
|
@ -1,5 +1,5 @@
|
|||
var Dish = require("./Dish.js"),
|
||||
Ingredient = require("./Ingredient.js");
|
||||
import Dish from "./Dish.js";
|
||||
import Ingredient from "./Ingredient.js";
|
||||
|
||||
|
||||
/**
|
||||
|
@ -13,7 +13,7 @@ var Dish = require("./Dish.js"),
|
|||
* @param {string} operationName
|
||||
* @param {Object} operationConfig
|
||||
*/
|
||||
var Operation = module.exports = function(operationName, operationConfig) {
|
||||
var Operation = function(operationName, operationConfig) {
|
||||
this.name = operationName;
|
||||
this.description = "";
|
||||
this.inputType = -1;
|
||||
|
@ -159,3 +159,5 @@ Operation.prototype.isDisabled = function() {
|
|||
Operation.prototype.isFlowControl = function() {
|
||||
return this.flowControl;
|
||||
};
|
||||
|
||||
export default Operation;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue