wip: code cleanup, added axios shim to quick js vm (#2851)

* wip: code cleanup, added axios, nanoid shims for quickjs vm
* wip: test fn fix
* wip: scrip exec fix
* wip: added node-fetch & uuid shims
This commit is contained in:
lohit
2024-08-19 10:30:19 +05:30
committed by GitHub
parent a42689a717
commit 126c648d7d
13 changed files with 316 additions and 135 deletions

View File

@@ -96,14 +96,14 @@ class ScriptRuntime {
modules: {},
scriptType: 'jsScript'
});
}
return {
request,
envVariables: cleanJson(envVariables),
runtimeVariables: cleanJson(runtimeVariables),
nextRequestName: bru.nextRequest
};
return {
request,
envVariables: cleanJson(envVariables),
runtimeVariables: cleanJson(runtimeVariables),
nextRequestName: bru.nextRequest
};
}
// default runtime is vm2
const vm = new NodeVM({