@bbn/bbn 1.0.381 → 1.0.382

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,10 +113,10 @@ var dbObject = function (dbName) {
113
113
  throw new Error(_("No primary key in the data"));
114
114
  }
115
115
  var req = store.put(newData);
116
+ onError(req, resolve);
116
117
  req.onsuccess = function () {
117
118
  res++;
118
119
  };
119
- onError(req, resolve);
120
120
  }
121
121
  tx.oncomplete = function () {
122
122
  resolve(res);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.381",
3
+ "version": "1.0.382",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",