@xuda.io/xuda-worker-bundle 1.3.2699 → 1.3.2700

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.js +13 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -9167,8 +9167,18 @@ func.utils.get_plugin_resource = function (SESSION_ID, plugin_name, plugin_resou
9167
9167
  const plugin_resource_res = await import(`${get_path(plugin_resource)}`);
9168
9168
  resolve(plugin_resource_res);
9169
9169
  } catch (err) {
9170
- console.error(err);
9171
- reject();
9170
+ await func.utils.report_issue(SESSION_ID, {
9171
+ code: 'RUN_MSG_GUI_020',
9172
+ source: 'func.utils.get_plugin_resource',
9173
+ message: 'plugin setup import failed',
9174
+ err,
9175
+ details: {
9176
+ plugin_name,
9177
+ plugin_resource,
9178
+ plugin_path: get_path(plugin_resource),
9179
+ },
9180
+ });
9181
+ reject(err);
9172
9182
  }
9173
9183
  });
9174
9184
  };
@@ -11424,7 +11434,7 @@ func.expression.get_property = async function (valP) {
11424
11434
  });
11425
11435
  return await vm.run(val);
11426
11436
  } catch (err) {
11427
- throw '';
11437
+ throw err;
11428
11438
  }
11429
11439
  }
11430
11440
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle",
3
- "version": "1.3.2699",
3
+ "version": "1.3.2700",
4
4
  "description": "xuda framework",
5
5
  "main": "index.js",
6
6
  "scripts": {