mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 00:36:16 -04:00
incorporate ArrayBuffer base Dish type. Add global file shim to node index. Fix Buffer -> ArrayBuffer transformation
This commit is contained in:
parent
e4ee0fc397
commit
af504891e4
6 changed files with 13 additions and 17 deletions
|
@ -41,6 +41,7 @@ let code = `/**
|
|||
import "babel-polyfill";
|
||||
import NodeDish from "./NodeDish";
|
||||
import { _wrap, help, bake, _explainExludedFunction } from "./api";
|
||||
import File from "./File";
|
||||
import {
|
||||
// import as core_ to avoid name clashes after wrap.
|
||||
`;
|
||||
|
@ -53,6 +54,8 @@ includedOperations.forEach((op) => {
|
|||
code +=`
|
||||
} from "../core/operations/index";
|
||||
|
||||
global.File = File;
|
||||
|
||||
// Define global environment functions
|
||||
global.ENVIRONMENT_IS_WORKER = function() {
|
||||
return typeof importScripts === "function";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue