@xuda.io/runtime-bundle 1.0.929 → 1.0.931
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/js/modules/xuda-api-library.min.mjs +1 -1
- package/js/modules/xuda-api-library.mjs +2 -2
- package/js/modules/xuda-db-adapter-module.min.mjs +1 -1
- package/js/modules/xuda-db-adapter-module.mjs +1 -1
- package/js/modules/xuda-progs-loader-module.min.mjs +1 -1
- package/js/modules/xuda-progs-loader-module.mjs +1 -1
- package/js/modules/xuda-project-loader-module.esm.js +2 -2
- package/js/modules/xuda-project-loader-module.esm.min.js +1 -1
- package/js/modules/xuda-studio-checker.min.mjs +1 -1
- package/js/modules/xuda-studio-checker.mjs +45 -38
- package/js/xuda-runtime-bundle.js +30 -80
- package/js/xuda-runtime-bundle.min.js +4 -4
- package/js/xuda-runtime-mini-bundle.js +1 -1
- package/js/xuda-runtime-mini-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +30 -80
- package/js/xuda-runtime-slim.min.es.js +30 -80
- package/js/xuda-runtime-slim.min.js +4 -4
- package/js/xuda-server-bundle.min.mjs +2 -2
- package/js/xuda-server-bundle.mjs +24 -74
- package/js/xuda-worker-bundle.js +24 -74
- package/js/xuda-worker-bundle.min.js +2 -2
- package/js/xuda_common-bundle.js +4 -4
- package/js/xuda_common-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -24305,9 +24305,9 @@ func.common.get_module = async function (SESSION_ID, module, paramsP = {}) {
|
|
|
24305
24305
|
}
|
|
24306
24306
|
if (_session.worker_type === 'Debug') {
|
|
24307
24307
|
if (typeof IS_DOCKER !== 'undefined' || typeof IS_PROCESS_SERVER !== 'undefined') {
|
|
24308
|
-
ret = await get_ret(func.utils.get_resource_filename(['live_preview', '
|
|
24308
|
+
ret = await get_ret(func.utils.get_resource_filename(['live_preview', 'miniapp'].includes(_session.engine_mode) ? '' : _session?.opt?.app_build_id, `${_conf.xuda_home}root/dist/runtime/js/modules/` + module));
|
|
24309
24309
|
} else {
|
|
24310
|
-
ret = await get_ret(func.common.get_url(SESSION_ID, 'dist', func.utils.get_resource_filename(['live_preview', '
|
|
24310
|
+
ret = await get_ret(func.common.get_url(SESSION_ID, 'dist', func.utils.get_resource_filename(['live_preview', 'miniapp'].includes(_session.engine_mode) ? '' : _session?.opt?.app_build_id, 'runtime/js/modules/' + module)));
|
|
24311
24311
|
}
|
|
24312
24312
|
|
|
24313
24313
|
return ret;
|
|
@@ -24318,9 +24318,9 @@ func.common.get_module = async function (SESSION_ID, module, paramsP = {}) {
|
|
|
24318
24318
|
};
|
|
24319
24319
|
|
|
24320
24320
|
if (typeof IS_DOCKER !== 'undefined' || typeof IS_PROCESS_SERVER !== 'undefined') {
|
|
24321
|
-
ret = await get_ret(func.utils.get_resource_filename(['live_preview', '
|
|
24321
|
+
ret = await get_ret(func.utils.get_resource_filename(['live_preview', 'miniapp'].includes(_session.engine_mode) ? '' : _session?.opt?.app_build_id, `${_conf.xuda_home}root/dist/runtime/js/modules/` + rep()));
|
|
24322
24322
|
} else {
|
|
24323
|
-
ret = await get_ret(func.common.get_url(SESSION_ID, 'dist', func.utils.get_resource_filename(['live_preview', '
|
|
24323
|
+
ret = await get_ret(func.common.get_url(SESSION_ID, 'dist', func.utils.get_resource_filename(['live_preview', 'miniapp'].includes(_session.engine_mode) ? '' : _session?.opt?.app_build_id, 'runtime/js/modules/' + rep())));
|
|
24324
24324
|
}
|
|
24325
24325
|
|
|
24326
24326
|
return ret;
|
|
@@ -25293,7 +25293,7 @@ func.utils.ws_worker.functions = {
|
|
|
25293
25293
|
APP_OBJ[data.app_id] = data.APP_OBJ;
|
|
25294
25294
|
PROJECT_OBJ[data.app_id] = data.PROJECT_OBJ;
|
|
25295
25295
|
|
|
25296
|
-
if (['live_preview', '
|
|
25296
|
+
if (['live_preview', 'miniapp'].includes(data.SESSION_INFO.engine_mode)) {
|
|
25297
25297
|
DOCS_OBJ[data.app_id] = data.DOCS_OBJ;
|
|
25298
25298
|
} else if (typeof IS_DOCKER === 'undefined' && typeof IS_PROCESS_SERVER === 'undefined') {
|
|
25299
25299
|
if (!DOCS_OBJ[data.app_id]) {
|
|
@@ -28071,7 +28071,7 @@ func.datasource.create = async function (
|
|
|
28071
28071
|
|
|
28072
28072
|
var run_at = _prog_obj?.properties?.runAt;
|
|
28073
28073
|
|
|
28074
|
-
if (!['live_preview', '
|
|
28074
|
+
if (!['live_preview', 'miniapp'].includes(_session.engine_mode)) {
|
|
28075
28075
|
if (_session.opt.app_computing_mode === 'main') {
|
|
28076
28076
|
run_at = 'client';
|
|
28077
28077
|
}
|
|
@@ -28247,7 +28247,7 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
28247
28247
|
|
|
28248
28248
|
if (typeof parameters_obj_inP?.[val.data.parameter] !== 'undefined') {
|
|
28249
28249
|
_ds.in_parameters[val.data.parameter].value = parameters_obj_inP[val.data.parameter];
|
|
28250
|
-
} else if (['live_preview', '
|
|
28250
|
+
} else if (['live_preview', 'miniapp'].includes(_session.engine_mode)) {
|
|
28251
28251
|
_ds.in_parameters[val.data.parameter].value = _session?.url_params?.[val.data.parameter];
|
|
28252
28252
|
}
|
|
28253
28253
|
|
|
@@ -28269,7 +28269,7 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
28269
28269
|
_ds.data_system['SYS_GLOBAL_STR_SESSION_ID'] = SESSION_ID;
|
|
28270
28270
|
_ds.data_system['SYS_GLOBAL_STR_LOGIN_USER_ID'] = _session.USR_OBJ._id;
|
|
28271
28271
|
|
|
28272
|
-
if (!['live_preview', '
|
|
28272
|
+
if (!['live_preview', 'miniapp'].includes(_session.engine_mode) && PROJECT_OBJ[_session.app_id].info) {
|
|
28273
28273
|
_ds.data_system['SYS_GLOBAL_OBJ_APP_INFO'] = {
|
|
28274
28274
|
build: PROJECT_OBJ[_session.app_id].info.build_id,
|
|
28275
28275
|
author: PROJECT_OBJ[_session.app_id].info.author,
|
|
@@ -28538,18 +28538,9 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
28538
28538
|
_ds.v.batch_loops = await get_limit();
|
|
28539
28539
|
return false;
|
|
28540
28540
|
}
|
|
28541
|
-
// _ds.v.batch_loops =
|
|
28542
|
-
// (await get_limit()) <= _ds.data_feed?.rows?.length
|
|
28543
|
-
// ? await get_limit()
|
|
28544
|
-
// : _ds?.data_feed?.rows?.length;
|
|
28545
28541
|
|
|
28546
28542
|
_ds.v.batch_loops = (await get_limit()) <= _ds.v.raw_data?.rows?.length ? await get_limit() : _ds.v.raw_data?.rows?.length;
|
|
28547
28543
|
return true;
|
|
28548
|
-
// _ds.v.batch_loops =
|
|
28549
|
-
// (await get_limit()) <= _ds.v?.raw_data?.rows?.length
|
|
28550
|
-
// ? await get_limit()
|
|
28551
|
-
// : _ds.v?.raw_data?.rows?.length;
|
|
28552
|
-
// return true;
|
|
28553
28544
|
};
|
|
28554
28545
|
|
|
28555
28546
|
const render_api_output = async function () {
|
|
@@ -28921,16 +28912,6 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
28921
28912
|
return func.utils.debug_report(SESSION_ID, 'Data source', 'Datasource DB Table must be defined for Set Data operation', 'E');
|
|
28922
28913
|
}
|
|
28923
28914
|
|
|
28924
|
-
// const get_data_from_data_feed = function () {
|
|
28925
|
-
// const rows = _ds?.data_feed?.rows || [];
|
|
28926
|
-
// return rows.map((item) => ({
|
|
28927
|
-
// id: item._ROWID,
|
|
28928
|
-
// value: {
|
|
28929
|
-
// ...item.value,
|
|
28930
|
-
// },
|
|
28931
|
-
// }));
|
|
28932
|
-
// };
|
|
28933
|
-
|
|
28934
28915
|
const find_ROWID_idx_from_raw_data_arr = function (rowId) {
|
|
28935
28916
|
if (!_raw_data_rows) {
|
|
28936
28917
|
throw new Error('_raw_data_rows not found');
|
|
@@ -28945,21 +28926,20 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
28945
28926
|
|
|
28946
28927
|
if (tree_obj.crudMode === 'U') {
|
|
28947
28928
|
_ds.set_mode = 'U';
|
|
28948
|
-
|
|
28929
|
+
|
|
28949
28930
|
_raw_data_rows = _ds?.v.raw_data?.rows || [];
|
|
28950
28931
|
}
|
|
28951
28932
|
|
|
28952
28933
|
if (tree_obj.crudMode === 'D') {
|
|
28953
28934
|
_ds.set_mode = 'D';
|
|
28954
|
-
|
|
28935
|
+
|
|
28955
28936
|
_raw_data_rows = _ds?.v.raw_data?.rows || [];
|
|
28956
28937
|
}
|
|
28957
28938
|
|
|
28958
28939
|
// initiated with Update but no rows found
|
|
28959
|
-
|
|
28940
|
+
|
|
28960
28941
|
if (tree_obj.crudMode === 'U' && tree_obj.allowCreate && !_raw_data_rows?.length) {
|
|
28961
28942
|
_ds.set_mode = 'C';
|
|
28962
|
-
// _raw_data_rows[glb.newRecord] = [{ _ROWID: "newRecord" }];
|
|
28963
28943
|
|
|
28964
28944
|
try {
|
|
28965
28945
|
const row_idx = find_ROWID_idx_from_raw_data_arr('newRecord');
|
|
@@ -28971,7 +28951,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
28971
28951
|
|
|
28972
28952
|
if (tree_obj.crudMode === 'C') {
|
|
28973
28953
|
_ds.set_mode = 'C';
|
|
28974
|
-
|
|
28954
|
+
|
|
28975
28955
|
try {
|
|
28976
28956
|
const row_idx = find_ROWID_idx_from_raw_data_arr('newRecord');
|
|
28977
28957
|
_raw_data_rows[row_idx] = [{ id: 'newRecord', value: {} }];
|
|
@@ -29004,7 +28984,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
29004
28984
|
if (dbMsgP) _ds.currentRecordId = dbMsgP.id;
|
|
29005
28985
|
}
|
|
29006
28986
|
}
|
|
29007
|
-
|
|
28987
|
+
|
|
29008
28988
|
await func.datasource.set_outputField(SESSION_ID, dataSourceSession, _ds?.v?.raw_data?.rows, _ds.args);
|
|
29009
28989
|
break;
|
|
29010
28990
|
}
|
|
@@ -29026,25 +29006,6 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
29026
29006
|
}
|
|
29027
29007
|
|
|
29028
29008
|
const row_not_found = async function () {
|
|
29029
|
-
// if (!prog_obj.progDataSource?.dataSourceType || (tree_obj.rwMode === 'U' && tree_obj.allowCreate)) {
|
|
29030
|
-
// _ds.currentRecordId = 'newRecord';
|
|
29031
|
-
// _ds.set_mode = 'C';
|
|
29032
|
-
// _ds.record_not_found = true;
|
|
29033
|
-
|
|
29034
|
-
// try {
|
|
29035
|
-
// const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
29036
|
-
// } catch (error) {
|
|
29037
|
-
// await func.datasource.render_fields_form(SESSION_ID, dataSourceSession, { id: 'newRecord', value: {} });
|
|
29038
|
-
// }
|
|
29039
|
-
|
|
29040
|
-
// var count = await func.datasource.get_field_init_count(SESSION_ID, dataSourceSession, 'newRecord', false);
|
|
29041
|
-
// if (
|
|
29042
|
-
// count > 0 // was: && !args.dataSourceNoP
|
|
29043
|
-
// ) {
|
|
29044
|
-
// await func.datasource.execute_field_init_events(SESSION_ID, dataSourceSession, 'form', 'newRecord');
|
|
29045
|
-
// }
|
|
29046
|
-
// }
|
|
29047
|
-
|
|
29048
29009
|
if (!prog_obj.progDataSource?.dataSourceType || prog_obj.properties.renderType === 'form' || (tree_obj.rwMode === 'U' && tree_obj.allowCreate)) {
|
|
29049
29010
|
_ds.currentRecordId = 'newRecord';
|
|
29050
29011
|
if (tree_obj.rwMode === 'U' && tree_obj.allowCreate) {
|
|
@@ -29098,15 +29059,6 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
29098
29059
|
await func.datasource.execute_view_events(SESSION_ID, dataSourceSession, 'before_record');
|
|
29099
29060
|
}
|
|
29100
29061
|
|
|
29101
|
-
// await func.datasource.run_rows_form(
|
|
29102
|
-
// SESSION_ID,
|
|
29103
|
-
// dataSourceSession,
|
|
29104
|
-
// idx,
|
|
29105
|
-
// raw_data_row
|
|
29106
|
-
// );
|
|
29107
|
-
|
|
29108
|
-
///////////////////////
|
|
29109
|
-
|
|
29110
29062
|
_ds.currentRecordId = raw_data_row.id; // set temporary to allow expression decoder work
|
|
29111
29063
|
|
|
29112
29064
|
await func.datasource.render_fields_form(SESSION_ID, dataSourceSession, raw_data_row);
|
|
@@ -29121,8 +29073,6 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
29121
29073
|
console.error(err);
|
|
29122
29074
|
}
|
|
29123
29075
|
|
|
29124
|
-
/////////////////////
|
|
29125
|
-
|
|
29126
29076
|
if (await get_after_record_count()) {
|
|
29127
29077
|
await func.datasource.execute_view_events(SESSION_ID, dataSourceSession, 'after_record');
|
|
29128
29078
|
}
|
|
@@ -29438,10 +29388,10 @@ func.datasource.get_field_init_count = async function (SESSION_ID, dataSourceSes
|
|
|
29438
29388
|
for await (const field_obj of _view_obj.progFields) {
|
|
29439
29389
|
var fieldId = field_obj.data.field_id;
|
|
29440
29390
|
|
|
29441
|
-
if (!field_obj?.
|
|
29391
|
+
if (!field_obj?.workflow?.length) {
|
|
29442
29392
|
continue;
|
|
29443
29393
|
}
|
|
29444
|
-
for await (const trigger_obj of field_obj.
|
|
29394
|
+
for await (const trigger_obj of field_obj.workflow) {
|
|
29445
29395
|
if (oninit_triggers_to_runP && !oninit_triggers_to_runP?.includes(trigger_obj.id)) {
|
|
29446
29396
|
continue;
|
|
29447
29397
|
}
|
|
@@ -29532,8 +29482,8 @@ func.datasource.get_view_events_count = async function (SESSION_ID, dataSourceSe
|
|
|
29532
29482
|
}
|
|
29533
29483
|
}
|
|
29534
29484
|
|
|
29535
|
-
if (_.isEmpty(event_obj.
|
|
29536
|
-
for (const trigger_obj of event_obj.
|
|
29485
|
+
if (_.isEmpty(event_obj.workflow)) continue;
|
|
29486
|
+
for (const trigger_obj of event_obj.workflow) {
|
|
29537
29487
|
if (trigger_obj.data.enabled) {
|
|
29538
29488
|
var expression;
|
|
29539
29489
|
if (trigger_obj.props.condition) expression = trigger_obj.props.condition;
|
|
@@ -30759,7 +30709,7 @@ func.datasource.get_field_init_triggers_to_run = function (SESSION_ID, dataSourc
|
|
|
30759
30709
|
if (!_ds) return;
|
|
30760
30710
|
|
|
30761
30711
|
return []; // inactive 021617
|
|
30762
|
-
}; // inactive temporary, design to execute init
|
|
30712
|
+
}; // inactive temporary, design to execute init workflow when querying large datasets
|
|
30763
30713
|
func.datasource.get_pre_init_fields = function (SESSION_ID, dsSessionP, viewRangeExpP, viewSortExpP, viewGroupByExpP, viewLocateExpP) {
|
|
30764
30714
|
var ret = [];
|
|
30765
30715
|
return; // inactive 021617
|
|
@@ -32434,7 +32384,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32434
32384
|
|
|
32435
32385
|
if (val.handler === 'custom') {
|
|
32436
32386
|
// do BL
|
|
32437
|
-
for await (const [key2, val2] of Object.entries(val.
|
|
32387
|
+
for await (const [key2, val2] of Object.entries(val.workflow)) {
|
|
32438
32388
|
// var cond = val2.data.enabled;
|
|
32439
32389
|
// if (val2.data.enabled && val2.props.condition) {
|
|
32440
32390
|
// expCond = await func.expression.get(SESSION_ID, val2.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
|
|
@@ -33183,7 +33133,7 @@ func.UI.screen.execute_screen_ready_events = async function (SESSION_ID, paramsP
|
|
|
33183
33133
|
for await (const event_obj of _prog.progEvents) {
|
|
33184
33134
|
if (event_obj.data.type !== typeP) continue;
|
|
33185
33135
|
|
|
33186
|
-
if (_.isEmpty(event_obj.
|
|
33136
|
+
if (_.isEmpty(event_obj.workflow)) continue;
|
|
33187
33137
|
|
|
33188
33138
|
if (event_obj.data.condition) {
|
|
33189
33139
|
let res = await func.expression.get(SESSION_ID, event_obj.data.condition, paramsP.dsSessionP, 'condition', paramsP.rowIdP, null, null, null, null, event_obj);
|
|
@@ -33192,7 +33142,7 @@ func.UI.screen.execute_screen_ready_events = async function (SESSION_ID, paramsP
|
|
|
33192
33142
|
}
|
|
33193
33143
|
}
|
|
33194
33144
|
|
|
33195
|
-
for await (const trigger_obj of event_obj.
|
|
33145
|
+
for await (const trigger_obj of event_obj.workflow) {
|
|
33196
33146
|
var expression = undefined;
|
|
33197
33147
|
var cond = undefined;
|
|
33198
33148
|
if (!trigger_obj.data.enabled) {
|
|
@@ -35030,7 +34980,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
35030
34980
|
}
|
|
35031
34981
|
if (typeof retP.value !== 'undefined') {
|
|
35032
34982
|
var_Arr[key].type = retP.type;
|
|
35033
|
-
var_Arr[key].value = typeof retP.value === 'string' && !retP.value.includes('<svg xmlns=') && retP.value.indexOf('\\') === -1 ? retP.value.replaceAll('"', '\\"') : retP.value; // new Apr 6 2025 fixing "\"how much?\""
|
|
34983
|
+
var_Arr[key].value = typeof retP.value === 'string' && !retP.value.includes('<svg xmlns=') && retP.value.indexOf('\\') === -1 && source !== 'UI Attr EXP' ? retP.value.replaceAll('"', '\\"') : retP.value; // new Apr 6 2025 fixing "\"how much?\"" // new Jul 29 25 to fix quil extra "\" " source!=="UI Attr EXP"
|
|
35034
34984
|
if ((val.value.indexOf('[') > -1) | (val.value.indexOf('.') > -1)) {
|
|
35035
34985
|
//get values from array '@var==="sss" && @var_B==="sss" && @obj.property===5 && @objA["value"]===123 | @objB["value"].property===1234'
|
|
35036
34986
|
var data = retP.prop;
|
|
@@ -35930,12 +35880,12 @@ func.events.validate = async function (SESSION_ID, triggerP, dsSessionP, eventId
|
|
|
35930
35880
|
};
|
|
35931
35881
|
const add_event = async function () {
|
|
35932
35882
|
const _event = func.common.find_item_by_key_root(_view_obj.progEvents, 'id', val.id);
|
|
35933
|
-
if (_event.
|
|
35883
|
+
if (_event.workflow) {
|
|
35934
35884
|
// check if event property exist
|
|
35935
35885
|
|
|
35936
|
-
if (!_event.
|
|
35886
|
+
if (!_event.workflow || _.isEmpty(_event.workflow)) return;
|
|
35937
35887
|
// check events has rows
|
|
35938
|
-
for (const trigger_obj of _event.
|
|
35888
|
+
for (const trigger_obj of _event.workflow) {
|
|
35939
35889
|
//run events rows
|
|
35940
35890
|
if (!trigger_obj.data.action) continue;
|
|
35941
35891
|
if (!trigger_obj.data.enabled) continue;
|
|
@@ -36647,9 +36597,9 @@ func.events.execute = async function (
|
|
|
36647
36597
|
const _view_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
36648
36598
|
if (callingSourceP === 'grid' || callingSourceP === 'form') {
|
|
36649
36599
|
let _field_obj = func.common.find_item_by_key(_view_obj.progFields, 'field_id', field_elm);
|
|
36650
|
-
var event_name = _field_obj?.
|
|
36600
|
+
var event_name = _field_obj?.workflow?.[eventIdP].name.event;
|
|
36651
36601
|
|
|
36652
|
-
if (_field_obj?.
|
|
36602
|
+
if (_field_obj?.workflow?.[eventIdP].name?.properties['xu-exp:event']) {
|
|
36653
36603
|
event_name = (await func.expression.get(SESSION_ID, props[`xu-exp:event`], dsSession, 'event_name expression')).result;
|
|
36654
36604
|
}
|
|
36655
36605
|
|
|
@@ -38204,7 +38154,7 @@ function xuda(...args) {
|
|
|
38204
38154
|
val = window.location.host;
|
|
38205
38155
|
break;
|
|
38206
38156
|
case 'engine_mode':
|
|
38207
|
-
val = '
|
|
38157
|
+
val = 'miniapp'; //was 'run'
|
|
38208
38158
|
break;
|
|
38209
38159
|
case 'app_id':
|
|
38210
38160
|
val = 'unknown';
|
|
@@ -38987,7 +38937,7 @@ func.index.new_webworker = async function (SESSION_ID, prog_obj, obj) {
|
|
|
38987
38937
|
ver = APP_OBJ[_session.app_id].app_version;
|
|
38988
38938
|
}
|
|
38989
38939
|
|
|
38990
|
-
var build_id = ['live_preview', '
|
|
38940
|
+
var build_id = ['live_preview', 'miniapp'].includes(_session.engine_mode) ? '' : _session.opt.app_build_id;
|
|
38991
38941
|
if (typeof XUDA_BUILD_ID !== 'undefined') {
|
|
38992
38942
|
build_id = XUDA_BUILD_ID;
|
|
38993
38943
|
}
|
|
@@ -39094,7 +39044,7 @@ func.index.new_webworker = async function (SESSION_ID, prog_obj, obj) {
|
|
|
39094
39044
|
return URL.createObjectURL(new Blob([content], { type: 'text/javascript' }));
|
|
39095
39045
|
}
|
|
39096
39046
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
39097
|
-
let blob = getWorkerURL(func.common.get_url(SESSION_ID, 'dist', func.utils.get_resource_filename(['live_preview', '
|
|
39047
|
+
let blob = getWorkerURL(func.common.get_url(SESSION_ID, 'dist', func.utils.get_resource_filename(['live_preview', 'miniapp'].includes(_session.engine_mode) ? '' : _session?.opt?.app_build_id, 'runtime/js/xuda_worker.js')));
|
|
39098
39048
|
WEB_WORKER[SESSION_ID][worker_id] = {
|
|
39099
39049
|
worker: new Worker(blob, {
|
|
39100
39050
|
name: worker_name,
|