@xuda.io/xuda-event-javascript-module 1.0.21 → 1.0.23

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.
Files changed (2) hide show
  1. package/index.mjs +2 -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 VM.VMScript(
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 VM.NodeVM({
76
+ let vm = new NodeVM({
77
77
  require: {
78
78
  external: true,
79
79
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-event-javascript-module",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "main": "index.mjs",
5
5
  "type": "module",
6
6
  "description": "Auto-generated build for xuda-event-javascript-module.mjs",