@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/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
- return this.insert(target, rows);
322
+ const res = yield this.insert(target, rows);
323
+ connection.close();
324
+ return res;
322
325
  });
323
326
  }
324
327
  deleteTable(table) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.231",
3
+ "version": "2.0.232",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",