@xuda.io/xuda-worker-bundle 1.3.2436 → 1.3.2438

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.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2012,9 +2012,12 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2012
2012
  if (_ds?.progDataSource?.dataSourceLimit) {
2013
2013
  const ret_rows_found = await func.db.get_query(SESSION_ID, _ds._dataSourceTableId, _ds.v.couchView, dataSourceSession, _ds.viewSourceDesc, 'datasource table', prog_obj.progDataSource.dataSourceReduce, null, null, true, null, null, null, filterModel, _dataSourceFilterModelType);
2014
2014
  _ds.rows_found = ret_rows_found?.rows?.[0]?.value || 0;
2015
+ _ds.rows_found_opt = ret_rows_found?.opt;
2015
2016
  } else {
2016
2017
  _ds.rows_found = _ds?.v?.raw_data?.rows?.length || 0;
2018
+ _ds.rows_found_opt = _ds?.v?.raw_data?.opt;
2017
2019
  }
2020
+
2018
2021
  break;
2019
2022
  }
2020
2023
  case 'array': {
@@ -4159,6 +4162,7 @@ func.utils.debug.log = async function (SESSION_ID, node_idP, jsonP) {
4159
4162
  const debug_utils = await func.common.get_module(SESSION_ID, 'xuda-debug-utils-module.mjs');
4160
4163
 
4161
4164
  debug_utils.log(SESSION_ID, node_idP, jsonP);
4165
+ console.error(jsonP);
4162
4166
  };
4163
4167
  func.utils.debug.write = async function (SESSION_ID, logP, callbackP) {
4164
4168
  if (!glb.DEBUG_MODE) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle",
3
- "version": "1.3.2436",
3
+ "version": "1.3.2438",
4
4
  "description": "xuda framework",
5
5
  "main": "index.js",
6
6
  "scripts": {