mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-26 09:46:17 -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,4 +1,4 @@
|
|||
var Utils = require("./Utils.js");
|
||||
import Utils from "./Utils.js";
|
||||
|
||||
|
||||
/**
|
||||
|
@ -11,7 +11,7 @@ var Utils = require("./Utils.js");
|
|||
* @class
|
||||
* @param {Object} ingredientConfig
|
||||
*/
|
||||
var Ingredient = module.exports = function(ingredientConfig) {
|
||||
var Ingredient = function(ingredientConfig) {
|
||||
this.name = "";
|
||||
this.type = "";
|
||||
this.value = null;
|
||||
|
@ -86,3 +86,5 @@ Ingredient.prepare = function(data, type) {
|
|||
return data;
|
||||
}
|
||||
};
|
||||
|
||||
export default Ingredient;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue