@xuda.io/runtime-bundle 1.0.1367 → 1.0.1369
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/xuda-runtime-bundle.js +35 -36
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +35 -36
- package/js/xuda-runtime-slim.min.es.js +35 -36
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +35 -36
- package/js/xuda-worker-bundle.js +35 -36
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -5558,44 +5558,43 @@ func.datasource.interval = function (session_id, dsSessionP, typeP) {
|
|
|
5558
5558
|
};
|
|
5559
5559
|
return fx;
|
|
5560
5560
|
};
|
|
5561
|
-
func.datasource.server_cron = function (session_id) {
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
// var ds = SESSION_OBJ[SESSION_ID].DS_GLB[0];
|
|
5565
|
-
// var v = ds.v;
|
|
5566
|
-
var arr = func.datasource.get_event_interval_arr(SESSION_ID, 0, 'server_cron');
|
|
5567
|
-
const schedule = require('node-schedule');
|
|
5561
|
+
// func.datasource.server_cron = function (session_id) {
|
|
5562
|
+
// var SESSION_ID = session_id;
|
|
5563
|
+
// var jobs = [];
|
|
5568
5564
|
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
}
|
|
5572
|
-
for (let val of arr) {
|
|
5573
|
-
var event_id = val[0];
|
|
5574
|
-
var cron_prop = val[1];
|
|
5575
|
-
var condition = val[2];
|
|
5576
|
-
|
|
5577
|
-
jobs.push(
|
|
5578
|
-
schedule.scheduleJob(cron_prop, async function () {
|
|
5579
|
-
if (!SESSION_OBJ[SESSION_ID]) return;
|
|
5580
|
-
var event_count = await func.datasource.get_view_events_count(SESSION_ID, 0, 'server_cron', event_id);
|
|
5581
|
-
if (!event_count) {
|
|
5582
|
-
fx.clear();
|
|
5583
|
-
return;
|
|
5584
|
-
}
|
|
5585
|
-
var event_condition = await func.expression.get(SESSION_ID, condition, 0, 'condition'); // execute condition;
|
|
5586
|
-
if (condition && !event_condition.result) return;
|
|
5587
|
-
if (event_count) {
|
|
5588
|
-
const e = await func.datasource.execute_view_events(SESSION_ID, 0, 'server_cron', event_id);
|
|
5589
|
-
// for (const [key, val] of Object.entries(e)) {
|
|
5590
|
-
// val.done = false;
|
|
5591
|
-
// }
|
|
5592
|
-
}
|
|
5593
|
-
}),
|
|
5594
|
-
);
|
|
5595
|
-
}
|
|
5565
|
+
// var arr = func.datasource.get_event_interval_arr(SESSION_ID, 0, 'server_cron');
|
|
5566
|
+
// const schedule = require('node-schedule');
|
|
5596
5567
|
|
|
5597
|
-
|
|
5598
|
-
|
|
5568
|
+
// if (!arr.length) {
|
|
5569
|
+
// return jobs;
|
|
5570
|
+
// }
|
|
5571
|
+
// for (let val of arr) {
|
|
5572
|
+
// var event_id = val[0];
|
|
5573
|
+
// var cron_prop = val[1];
|
|
5574
|
+
// var condition = val[2];
|
|
5575
|
+
|
|
5576
|
+
// jobs.push(
|
|
5577
|
+
// schedule.scheduleJob(cron_prop, async function () {
|
|
5578
|
+
// if (!SESSION_OBJ[SESSION_ID]) return;
|
|
5579
|
+
// var event_count = await func.datasource.get_view_events_count(SESSION_ID, 0, 'server_cron', event_id);
|
|
5580
|
+
// if (!event_count) {
|
|
5581
|
+
// fx.clear();
|
|
5582
|
+
// return;
|
|
5583
|
+
// }
|
|
5584
|
+
// var event_condition = await func.expression.get(SESSION_ID, condition, 0, 'condition'); // execute condition;
|
|
5585
|
+
// if (condition && !event_condition.result) return;
|
|
5586
|
+
// if (event_count) {
|
|
5587
|
+
// const e = await func.datasource.execute_view_events(SESSION_ID, 0, 'server_cron', event_id);
|
|
5588
|
+
// // for (const [key, val] of Object.entries(e)) {
|
|
5589
|
+
// // val.done = false;
|
|
5590
|
+
// // }
|
|
5591
|
+
// }
|
|
5592
|
+
// }),
|
|
5593
|
+
// );
|
|
5594
|
+
// }
|
|
5595
|
+
|
|
5596
|
+
// return jobs;
|
|
5597
|
+
// };
|
|
5599
5598
|
func.datasource.get_viewLoops = async function (SESSION_ID, dataSourceSession, data, batch_source, default_limit) {
|
|
5600
5599
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[dataSourceSession];
|
|
5601
5600
|
var args = _ds.args;
|
|
@@ -5559,44 +5559,43 @@ func.datasource.interval = function (session_id, dsSessionP, typeP) {
|
|
|
5559
5559
|
};
|
|
5560
5560
|
return fx;
|
|
5561
5561
|
};
|
|
5562
|
-
func.datasource.server_cron = function (session_id) {
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
// var ds = SESSION_OBJ[SESSION_ID].DS_GLB[0];
|
|
5566
|
-
// var v = ds.v;
|
|
5567
|
-
var arr = func.datasource.get_event_interval_arr(SESSION_ID, 0, 'server_cron');
|
|
5568
|
-
const schedule = require('node-schedule');
|
|
5562
|
+
// func.datasource.server_cron = function (session_id) {
|
|
5563
|
+
// var SESSION_ID = session_id;
|
|
5564
|
+
// var jobs = [];
|
|
5569
5565
|
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
}
|
|
5573
|
-
for (let val of arr) {
|
|
5574
|
-
var event_id = val[0];
|
|
5575
|
-
var cron_prop = val[1];
|
|
5576
|
-
var condition = val[2];
|
|
5577
|
-
|
|
5578
|
-
jobs.push(
|
|
5579
|
-
schedule.scheduleJob(cron_prop, async function () {
|
|
5580
|
-
if (!SESSION_OBJ[SESSION_ID]) return;
|
|
5581
|
-
var event_count = await func.datasource.get_view_events_count(SESSION_ID, 0, 'server_cron', event_id);
|
|
5582
|
-
if (!event_count) {
|
|
5583
|
-
fx.clear();
|
|
5584
|
-
return;
|
|
5585
|
-
}
|
|
5586
|
-
var event_condition = await func.expression.get(SESSION_ID, condition, 0, 'condition'); // execute condition;
|
|
5587
|
-
if (condition && !event_condition.result) return;
|
|
5588
|
-
if (event_count) {
|
|
5589
|
-
const e = await func.datasource.execute_view_events(SESSION_ID, 0, 'server_cron', event_id);
|
|
5590
|
-
// for (const [key, val] of Object.entries(e)) {
|
|
5591
|
-
// val.done = false;
|
|
5592
|
-
// }
|
|
5593
|
-
}
|
|
5594
|
-
}),
|
|
5595
|
-
);
|
|
5596
|
-
}
|
|
5566
|
+
// var arr = func.datasource.get_event_interval_arr(SESSION_ID, 0, 'server_cron');
|
|
5567
|
+
// const schedule = require('node-schedule');
|
|
5597
5568
|
|
|
5598
|
-
|
|
5599
|
-
|
|
5569
|
+
// if (!arr.length) {
|
|
5570
|
+
// return jobs;
|
|
5571
|
+
// }
|
|
5572
|
+
// for (let val of arr) {
|
|
5573
|
+
// var event_id = val[0];
|
|
5574
|
+
// var cron_prop = val[1];
|
|
5575
|
+
// var condition = val[2];
|
|
5576
|
+
|
|
5577
|
+
// jobs.push(
|
|
5578
|
+
// schedule.scheduleJob(cron_prop, async function () {
|
|
5579
|
+
// if (!SESSION_OBJ[SESSION_ID]) return;
|
|
5580
|
+
// var event_count = await func.datasource.get_view_events_count(SESSION_ID, 0, 'server_cron', event_id);
|
|
5581
|
+
// if (!event_count) {
|
|
5582
|
+
// fx.clear();
|
|
5583
|
+
// return;
|
|
5584
|
+
// }
|
|
5585
|
+
// var event_condition = await func.expression.get(SESSION_ID, condition, 0, 'condition'); // execute condition;
|
|
5586
|
+
// if (condition && !event_condition.result) return;
|
|
5587
|
+
// if (event_count) {
|
|
5588
|
+
// const e = await func.datasource.execute_view_events(SESSION_ID, 0, 'server_cron', event_id);
|
|
5589
|
+
// // for (const [key, val] of Object.entries(e)) {
|
|
5590
|
+
// // val.done = false;
|
|
5591
|
+
// // }
|
|
5592
|
+
// }
|
|
5593
|
+
// }),
|
|
5594
|
+
// );
|
|
5595
|
+
// }
|
|
5596
|
+
|
|
5597
|
+
// return jobs;
|
|
5598
|
+
// };
|
|
5600
5599
|
func.datasource.get_viewLoops = async function (SESSION_ID, dataSourceSession, data, batch_source, default_limit) {
|
|
5601
5600
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[dataSourceSession];
|
|
5602
5601
|
var args = _ds.args;
|