@ibiz-template/runtime 0.7.41-alpha.132 → 0.7.41-alpha.134

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/dist/index.esm.js CHANGED
@@ -22638,7 +22638,7 @@ var ScriptFunction = class {
22638
22638
  */
22639
22639
  formatCode(scriptCode, options) {
22640
22640
  let code = scriptCode;
22641
- if (options.singleRowReturn && !code.includes("return")) {
22641
+ if (options.singleRowReturn) {
22642
22642
  code = "return (".concat(code, ")");
22643
22643
  }
22644
22644
  if (options.isAsync) {
@@ -26973,7 +26973,7 @@ var ViewMsgController = class _ViewMsgController {
26973
26973
  testScriptCode,
26974
26974
  {
26975
26975
  isAsync: false,
26976
- singleRowReturn: true
26976
+ singleRowReturn: !testScriptCode.includes("return")
26977
26977
  }
26978
26978
  );
26979
26979
  return !!result;
@@ -90613,7 +90613,8 @@ var RawJSCodeNode = class extends UILogicNode {
90613
90613
  view: ctx.view,
90614
90614
  context: ctx.context,
90615
90615
  params: ctx.viewParam,
90616
- uiLogic: ctx.params
90616
+ uiLogic: ctx.params,
90617
+ args: ctx.parameters
90617
90618
  },
90618
90619
  this.model.code || ""
90619
90620
  );