mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Always use mjs imports
This is needed for Node/NPM 16 compat
This commit is contained in:
parent
83c6775038
commit
cfc29ef821
5 changed files with 7 additions and 7 deletions
|
@ -41,7 +41,7 @@ let code = `/**
|
|||
import NodeDish from "./NodeDish.mjs";
|
||||
import { _wrap, help, bake, _explainExcludedFunction } from "./api.mjs";
|
||||
import File from "./File.mjs";
|
||||
import { OperationError, DishError, ExcludedOperationError } from "../core/errors/index";
|
||||
import { OperationError, DishError, ExcludedOperationError } from "../core/errors/index.mjs";
|
||||
import {
|
||||
// import as core_ to avoid name clashes after wrap.
|
||||
`;
|
||||
|
@ -52,7 +52,7 @@ includedOperations.forEach((op) => {
|
|||
});
|
||||
|
||||
code +=`
|
||||
} from "../core/operations/index";
|
||||
} from "../core/operations/index.mjs";
|
||||
|
||||
global.File = File;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue