mirror of
https://github.com/gchq/CyberChef
synced 2025-12-10 05:13:23 +00:00
Imports now specify the file extension to support Node v12
This commit is contained in:
@@ -13,7 +13,7 @@ import colors from "colors";
|
||||
import process from "process";
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import EscapeString from "../../operations/EscapeString";
|
||||
import EscapeString from "../../operations/EscapeString.mjs";
|
||||
|
||||
|
||||
const dir = path.join(process.cwd() + "/src/core/operations/");
|
||||
@@ -130,8 +130,8 @@ prompt.get(schema, (err, result) => {
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
import Operation from "../Operation";
|
||||
import OperationError from "../errors/OperationError";
|
||||
import Operation from "../Operation.mjs";
|
||||
import OperationError from "../errors/OperationError.mjs";
|
||||
|
||||
/**
|
||||
* ${result.opName} operation
|
||||
|
||||
Reference in New Issue
Block a user