@bbn/bbn 1.0.371 → 1.0.373

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/dist/db.js CHANGED
@@ -113,7 +113,7 @@ var dbObject = function (dbName) {
113
113
  var _a = getStore(table, 'r'), tx = _a[0], store = _a[1];
114
114
  var arch = structure[table];
115
115
  var primary = arch.keys.PRIMARY.columns.length > 1 ? arch.keys.PRIMARY.columns : arch.keys.PRIMARY.columns[0];
116
- var search = bbn.fn.isObject(where) ? Object.keys(where)[0] : (where ? primary : null);
116
+ var search = bbn.fn.isObject(where) ? Object.keys(where)[0] : (bbn.fn.isArray(where) ? null : primary);
117
117
  var results = [];
118
118
  if (search === primary) {
119
119
  if (bbn.fn.isArray(where === null || where === void 0 ? void 0 : where[primary])) {
@@ -145,7 +145,7 @@ var dbObject = function (dbName) {
145
145
  onError(req_1, resolve);
146
146
  }
147
147
  }
148
- else if (search) {
148
+ else {
149
149
  var req = store.openCursor();
150
150
  var i_1 = 0;
151
151
  req.onsuccess = function (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.371",
3
+ "version": "1.0.373",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",