@ibiz-template/runtime 0.7.41-alpha.133 → 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;