mirror of
https://github.com/gchq/CyberChef
synced 2025-12-23 03:33:24 +00:00
incorporate ArrayBuffer base Dish type. Add global file shim to node index. Fix Buffer -> ArrayBuffer transformation
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user