@xuda.io/xuda-datasource-db-adapter-module 1.0.125 → 1.0.127

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.mjs +4 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -293,12 +293,12 @@ export const find_fieldId_in_index = function (SESSION_ID, dataSourceSession, fi
293
293
  var v = _ds.v;
294
294
  var ret;
295
295
 
296
- _.forEach(v.viewIndex, function (val, key) {
296
+ for (const [key, val] of Object.entries(v.viewIndex)) {
297
297
  if (val.data[0] === fieldId) {
298
298
  ret = key;
299
- return false;
299
+ break;
300
300
  }
301
- });
301
+ }
302
302
  return ret;
303
303
  };
304
304
 
@@ -323,7 +323,7 @@ export const dataset_save_before_exit = async function (SESSION_ID, dataSourceSe
323
323
  if (exit_event_count) {
324
324
  await _this.func.datasource.execute_view_events(SESSION_ID, dataSourceSession, 'on_exit');
325
325
 
326
- if (v?.screenInfo?.properties?.menuType === 'set_data' && _.size(v.jsonP.rows)) {
326
+ if (v?.screenInfo?.properties?.menuType === 'set_data' && v.jsonP.rows.length) {
327
327
  return await _this.func.db.save_data(SESSION_ID, dataSourceSession);
328
328
  }
329
329
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-datasource-db-adapter-module",
3
- "version": "1.0.125",
3
+ "version": "1.0.127",
4
4
  "main": "index.mjs",
5
5
  "type": "module",
6
6
  "description": "Auto-generated build for xuda-datasource-db-adapter-module.mjs",