@xuda.io/xuda-event-javascript-module 1.0.21 → 1.0.22
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.mjs +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -66,14 +66,14 @@ export const run_javascript = async function (SESSION_ID, jobNoP, dsSession, scr
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
try {
|
|
69
|
-
const script = new
|
|
69
|
+
const script = new VMScript(
|
|
70
70
|
`
|
|
71
71
|
const index_mjs = await import(${index_mjs});
|
|
72
72
|
|
|
73
73
|
try{index_mjs.default(req,params,setup_doc,resolve,reject);}catch(e){ console.error(e); }`,
|
|
74
74
|
{ filename: dist, dirname: dist },
|
|
75
75
|
);
|
|
76
|
-
let vm = new
|
|
76
|
+
let vm = new NodeVM({
|
|
77
77
|
require: {
|
|
78
78
|
external: true,
|
|
79
79
|
},
|