@xuda.io/xuda-worker-bundle-min 1.3.847 → 1.3.848

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 +5 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -52,6 +52,11 @@ func.common.find_ROWID_idx = function (_ds, rowId) {
52
52
 
53
53
  // Find the index of the object with the given _ROWID
54
54
  const index = _ds.data_feed.rows.findIndex((item) => item._ROWID === rowId);
55
+ // }
56
+ // If the index is -1, the ROWID was not found, so throw an error
57
+ if (index === -1) {
58
+ throw new Error(`ROWID "${rowId}" not found`);
59
+ }
55
60
 
56
61
  // Return the found index
57
62
  return index;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.847",
3
+ "version": "1.3.848",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {