@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 +2 -2
- package/dist/index.system.min.js +1 -1
- package/out/controller/utils/view-msg/view-msg-controller.js +1 -1
- package/out/utils/script/script-function.js +2 -2
- package/package.json +2 -2
- package/src/controller/utils/view-msg/view-msg-controller.ts +1 -1
- package/src/utils/script/script-function.ts +2 -2
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
|
|
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:
|
|
26976
|
+
singleRowReturn: !testScriptCode.includes("return")
|
|
26977
26977
|
}
|
|
26978
26978
|
);
|
|
26979
26979
|
return !!result;
|