@ethereansos/interfaces-core 0.4.147 → 0.4.150

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -64105,14 +64105,14 @@ function setItem(key, value) {
64105
64105
  query = store.put({
64106
64106
  key: key,
64107
64107
  value: value && _typeof(value).toLowerCase() === 'string' ? value : JSON.stringify(value || null)
64108
- });
64108
+ }, key);
64109
64109
 
64110
64110
  query.onsuccess = function (event) {
64111
64111
  return ok(event.target.result);
64112
64112
  };
64113
64113
 
64114
64114
  query.onerror = function (event) {
64115
- return ko(event.target.errorCode);
64115
+ return ko(event.target.error || event.target.errorCode);
64116
64116
  };
64117
64117
 
64118
64118
  txn.oncomplete = /*#__PURE__*/_asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
@@ -64166,7 +64166,7 @@ function getItem(key) {
64166
64166
  };
64167
64167
 
64168
64168
  query.onerror = function (event) {
64169
- return ko(event.target.errorCode);
64169
+ return ko(event.target.error || event.target.errorCode);
64170
64170
  };
64171
64171
 
64172
64172
  txn.oncomplete = /*#__PURE__*/_asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {