@bbn/bbn 1.0.380 → 1.0.381
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/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/db.js +3 -1
- package/package.json +1 -1
package/dist/db.js
CHANGED
|
@@ -13,6 +13,7 @@ import iterate from './fn/loop/iterate.js';
|
|
|
13
13
|
import log from './fn/browser/log.js';
|
|
14
14
|
import isObject from './fn/type/isObject.js';
|
|
15
15
|
import isArray from './fn/type/isArray.js';
|
|
16
|
+
import extend from './fn/object/extend.js';
|
|
16
17
|
var idb = window['indexedDB'] || window['webkitIndexedDB'] || window['mozIndexedDB'] || window['OIndexedDB'] || window['msIndexedDB'];
|
|
17
18
|
var transformResult = function (obj, fields) {
|
|
18
19
|
if (fields === null || fields === void 0 ? void 0 : fields.length) {
|
|
@@ -106,7 +107,8 @@ var dbObject = function (dbName) {
|
|
|
106
107
|
var rows = _this.selectAll(table, [], where);
|
|
107
108
|
var res = 0;
|
|
108
109
|
for (var i = 0; i < rows.length; i++) {
|
|
109
|
-
var newData =
|
|
110
|
+
var newData = extend({}, rows[i], data);
|
|
111
|
+
log("UPDATING FROM BBN-JS", newData);
|
|
110
112
|
if (!newData[primary]) {
|
|
111
113
|
throw new Error(_("No primary key in the data"));
|
|
112
114
|
}
|