@xuda.io/xuda-worker-bundle-min 1.3.963 → 1.3.965
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +0 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -9810,9 +9810,6 @@ func.expression.secure_eval = async function (
|
|
|
9810
9810
|
let vm = new VM.NodeVM({
|
|
9811
9811
|
require: {
|
|
9812
9812
|
external: true,
|
|
9813
|
-
// import: ["axios", "form-data"],
|
|
9814
|
-
// import: ["fs", "dir"],
|
|
9815
|
-
// root: dir,
|
|
9816
9813
|
},
|
|
9817
9814
|
sandbox: {
|
|
9818
9815
|
func,
|
|
@@ -9859,10 +9856,7 @@ func.expression.secure_eval = async function (
|
|
|
9859
9856
|
ret = await vm.run(val);
|
|
9860
9857
|
}
|
|
9861
9858
|
return ret;
|
|
9862
|
-
// return vm.run(val);
|
|
9863
9859
|
} catch (err) {
|
|
9864
|
-
// console.warn("Failed to execute VM script:", val, err);
|
|
9865
|
-
// return val;
|
|
9866
9860
|
throw "";
|
|
9867
9861
|
}
|
|
9868
9862
|
} catch (err) {
|