@xuda.io/xuda-worker-bundle-min 1.3.1119 → 1.3.1121
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/index.js +11 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2671,7 +2671,7 @@ func.datasource.execute = async function (
|
|
|
2671
2671
|
);
|
|
2672
2672
|
}
|
|
2673
2673
|
}
|
|
2674
|
-
await func.datasource.set_outputField(SESSION_ID, dataSourceSession, _ds?.v?.raw_data?.rows);
|
|
2674
|
+
await func.datasource.set_outputField(SESSION_ID, dataSourceSession, _ds?.v?.raw_data?.rows, _ds.args);
|
|
2675
2675
|
break;
|
|
2676
2676
|
}
|
|
2677
2677
|
|
|
@@ -2697,7 +2697,7 @@ func.datasource.execute = async function (
|
|
|
2697
2697
|
"after_record"
|
|
2698
2698
|
);
|
|
2699
2699
|
}
|
|
2700
|
-
await func.datasource.set_outputField(SESSION_ID, dataSourceSession, _ds?.v?.raw_data?.rows);
|
|
2700
|
+
await func.datasource.set_outputField(SESSION_ID, dataSourceSession, _ds?.v?.raw_data?.rows, _ds.args);
|
|
2701
2701
|
break;
|
|
2702
2702
|
|
|
2703
2703
|
case "set_data":
|
|
@@ -2816,7 +2816,7 @@ func.datasource.execute = async function (
|
|
|
2816
2816
|
}
|
|
2817
2817
|
}
|
|
2818
2818
|
// ret = await callback_datasource();
|
|
2819
|
-
await func.datasource.set_outputField(SESSION_ID, dataSourceSession, _ds?.v?.raw_data?.rows);
|
|
2819
|
+
await func.datasource.set_outputField(SESSION_ID, dataSourceSession, _ds?.v?.raw_data?.rows, _ds.args);
|
|
2820
2820
|
break;
|
|
2821
2821
|
|
|
2822
2822
|
case "component":
|
|
@@ -5097,12 +5097,12 @@ func.datasource.update_changes_for_out_parameter = async function (
|
|
|
5097
5097
|
}
|
|
5098
5098
|
};
|
|
5099
5099
|
|
|
5100
|
-
func.datasource.set_outputField = async function (SESSION_ID, dsSessionP, result) {
|
|
5100
|
+
func.datasource.set_outputField = async function (SESSION_ID, dsSessionP, result, args) {
|
|
5101
5101
|
var _session = SESSION_OBJ[SESSION_ID];
|
|
5102
|
-
let _ds = _session.DS_GLB[dsSessionP];
|
|
5102
|
+
// let _ds = _session.DS_GLB[dsSessionP];
|
|
5103
5103
|
|
|
5104
5104
|
|
|
5105
|
-
const output_field = await func.datasource.get_args_property_value(SESSION_ID, dsSessionP,
|
|
5105
|
+
const output_field = await func.datasource.get_args_property_value(SESSION_ID, dsSessionP, args, "outputField")
|
|
5106
5106
|
|
|
5107
5107
|
|
|
5108
5108
|
if (output_field) {
|
|
@@ -8439,6 +8439,7 @@ func.events.execute = async function (
|
|
|
8439
8439
|
refIdP,
|
|
8440
8440
|
dsSession
|
|
8441
8441
|
);
|
|
8442
|
+
await func.datasource.set_outputField(SESSION_ID, dsSessionP, result, args);
|
|
8442
8443
|
return result
|
|
8443
8444
|
},
|
|
8444
8445
|
call_evaluate_javascript: async function () {
|
|
@@ -8453,6 +8454,7 @@ func.events.execute = async function (
|
|
|
8453
8454
|
dsSession,
|
|
8454
8455
|
true
|
|
8455
8456
|
);
|
|
8457
|
+
await func.datasource.set_outputField(SESSION_ID, dsSessionP, result, args);
|
|
8456
8458
|
return result
|
|
8457
8459
|
},
|
|
8458
8460
|
execute_native_javascript: async function () {
|
|
@@ -8469,6 +8471,7 @@ func.events.execute = async function (
|
|
|
8469
8471
|
${refIdP.value}
|
|
8470
8472
|
})(document.querySelector(\`[xu-ui-id=${elementP}]\`))`
|
|
8471
8473
|
);
|
|
8474
|
+
await func.datasource.set_outputField(SESSION_ID, dsSessionP, result, args);
|
|
8472
8475
|
return result
|
|
8473
8476
|
},
|
|
8474
8477
|
execute_evaluate_javascript: async function () {
|
|
@@ -8486,6 +8489,7 @@ func.events.execute = async function (
|
|
|
8486
8489
|
})(document.querySelector(\`[xu-ui-id=${elementP}]\`))`,
|
|
8487
8490
|
true
|
|
8488
8491
|
);
|
|
8492
|
+
await func.datasource.set_outputField(SESSION_ID, dsSessionP, result, args);
|
|
8489
8493
|
return result
|
|
8490
8494
|
},
|
|
8491
8495
|
loader_on: async function () {
|
|
@@ -8866,7 +8870,7 @@ func.events.execute = async function (
|
|
|
8866
8870
|
|
|
8867
8871
|
const api_ret = await func.api.call_project_api(_prog_id, params_obj);
|
|
8868
8872
|
|
|
8869
|
-
await func.datasource.set_outputField(SESSION_ID, dsSessionP, api_ret);
|
|
8873
|
+
await func.datasource.set_outputField(SESSION_ID, dsSessionP, api_ret, args);
|
|
8870
8874
|
|
|
8871
8875
|
// if (output_field) {
|
|
8872
8876
|
// let datasource_changes = {};
|