@bbn/bbn 2.0.231 → 2.0.232
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/bbn.sw.js +1 -1
- package/dist/bbn.sw.js.map +1 -1
- package/dist/db.js +4 -1
- package/package.json +1 -1
package/dist/db.js
CHANGED
|
@@ -308,6 +308,7 @@ class DbObject {
|
|
|
308
308
|
}
|
|
309
309
|
let connection = yield this.getConnection();
|
|
310
310
|
if (!connection.objectStoreNames.contains(target)) {
|
|
311
|
+
connection.close();
|
|
311
312
|
yield db.add(this.dbName, target, this.structure[table]);
|
|
312
313
|
connection = yield this.getConnection();
|
|
313
314
|
}
|
|
@@ -318,7 +319,9 @@ class DbObject {
|
|
|
318
319
|
if (!rows.length) {
|
|
319
320
|
return 0;
|
|
320
321
|
}
|
|
321
|
-
|
|
322
|
+
const res = yield this.insert(target, rows);
|
|
323
|
+
connection.close();
|
|
324
|
+
return res;
|
|
322
325
|
});
|
|
323
326
|
}
|
|
324
327
|
deleteTable(table) {
|