indexeddbshim 15.0.3 → 15.1.0

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.
Files changed (65) hide show
  1. package/dist/CFG.d.ts +3 -36
  2. package/dist/CFG.d.ts.map +1 -1
  3. package/dist/DOMException.d.ts +1 -1
  4. package/dist/DOMException.d.ts.map +1 -1
  5. package/dist/DOMStringList.d.ts +1 -1
  6. package/dist/DOMStringList.d.ts.map +1 -1
  7. package/dist/Event.d.ts.map +1 -1
  8. package/dist/IDBCursor.d.ts +21 -21
  9. package/dist/IDBCursor.d.ts.map +1 -1
  10. package/dist/IDBDatabase.d.ts +13 -11
  11. package/dist/IDBDatabase.d.ts.map +1 -1
  12. package/dist/IDBFactory.d.ts +4 -4
  13. package/dist/IDBFactory.d.ts.map +1 -1
  14. package/dist/IDBIndex.d.ts +17 -17
  15. package/dist/IDBIndex.d.ts.map +1 -1
  16. package/dist/IDBKeyRange.d.ts +7 -7
  17. package/dist/IDBKeyRange.d.ts.map +1 -1
  18. package/dist/IDBObjectStore.d.ts +33 -33
  19. package/dist/IDBObjectStore.d.ts.map +1 -1
  20. package/dist/IDBRequest.d.ts +6 -19
  21. package/dist/IDBRequest.d.ts.map +1 -1
  22. package/dist/IDBTransaction.d.ts +13 -13
  23. package/dist/IDBTransaction.d.ts.map +1 -1
  24. package/dist/Key.d.ts +10 -10
  25. package/dist/Key.d.ts.map +1 -1
  26. package/dist/Sca.d.ts +1 -1
  27. package/dist/Sca.d.ts.map +1 -1
  28. package/dist/UnicodeIdentifiers.d.ts +2 -2
  29. package/dist/UnicodeIdentifiers.d.ts.map +1 -1
  30. package/dist/cmp.d.ts +1 -1
  31. package/dist/indexeddbshim-Key.js +3 -2
  32. package/dist/indexeddbshim-Key.js.map +1 -1
  33. package/dist/indexeddbshim-Key.min.js +1 -1
  34. package/dist/indexeddbshim-Key.min.js.map +1 -1
  35. package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +61 -59
  36. package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
  37. package/dist/indexeddbshim-UnicodeIdentifiers.js +71 -70
  38. package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
  39. package/dist/indexeddbshim-UnicodeIdentifiers.min.js +2 -2
  40. package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
  41. package/dist/indexeddbshim-node.cjs +61 -59
  42. package/dist/indexeddbshim-node.cjs.map +1 -1
  43. package/dist/indexeddbshim-noninvasive.js +71 -70
  44. package/dist/indexeddbshim-noninvasive.js.map +1 -1
  45. package/dist/indexeddbshim-noninvasive.min.js +2 -2
  46. package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
  47. package/dist/indexeddbshim.js +71 -70
  48. package/dist/indexeddbshim.js.map +1 -1
  49. package/dist/indexeddbshim.min.js +2 -2
  50. package/dist/indexeddbshim.min.js.map +1 -1
  51. package/dist/node-UnicodeIdentifiers.d.ts +1 -1
  52. package/dist/node-UnicodeIdentifiers.d.ts.map +1 -1
  53. package/dist/node.d.ts +1 -1
  54. package/dist/node.d.ts.map +1 -1
  55. package/dist/setGlobalVars.d.ts +4 -5
  56. package/dist/setGlobalVars.d.ts.map +1 -1
  57. package/dist/util.d.ts +2 -2
  58. package/dist/util.d.ts.map +1 -1
  59. package/package.json +7 -7
  60. package/src/IDBFactory.js +2 -1
  61. package/src/IDBIndex.js +1 -0
  62. package/src/IDBObjectStore.js +1 -3
  63. package/src/Key.js +2 -1
  64. package/src/setGlobalVars.js +1 -1
  65. package/src/Key.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- /*! indexeddbshim - v15.0.1 - 9/5/2024 */
1
+ /*! indexeddbshim - v15.0.4 - 9/11/2024 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -4044,6 +4044,7 @@
4044
4044
  continue;
4045
4045
  }
4046
4046
  if (key.length === 1) {
4047
+ // eslint-disable-next-line sonarjs/updated-loop-counter -- Convenient
4047
4048
  key = key[0];
4048
4049
  } else {
4049
4050
  var nested = findMultiEntryMatches(key, range);
@@ -4270,7 +4271,7 @@
4270
4271
  *
4271
4272
  * @param {SQLTransaction} tx
4272
4273
  * @param {import('./IDBObjectStore.js').IDBObjectStoreFull} store
4273
- * @param {import('./Key.js').Key} key
4274
+ * @param {Key} key
4274
4275
  * @param {(num?: Integer) => void} successCb
4275
4276
  * @param {SQLFailureCallback} sqlFailCb
4276
4277
  * @returns {void}
@@ -5892,8 +5893,8 @@
5892
5893
  p = [],
5893
5894
  d = [],
5894
5895
  v = !("cyclic" in u) || u.cyclic,
5895
- b = u.encapsulateObserver,
5896
- h = function finish(e) {
5896
+ m = u.encapsulateObserver,
5897
+ b = function finish(e) {
5897
5898
  var t = Object.values(f);
5898
5899
  if (u.iterateNone) return t.length ? t[0] : getJSONType(e);
5899
5900
  if (t.length) {
@@ -5918,7 +5919,7 @@
5918
5919
  });
5919
5920
  return !u.returnTypeNames && e;
5920
5921
  },
5921
- m = _async(function (t, r) {
5922
+ h = _async(function (t, r) {
5922
5923
  return _await(Promise.all(r.map(function (e) {
5923
5924
  return e[1].p;
5924
5925
  })), function (n) {
@@ -5941,11 +5942,11 @@
5941
5942
  }(function () {
5942
5943
  if (s && v) return _await(d.p, function (e) {
5943
5944
  f[y] = e;
5944
- var r = m(t, o);
5945
+ var r = h(t, o);
5945
5946
  return a = !0, r;
5946
5947
  });
5947
5948
  }, function (e) {
5948
- return a ? e : (s ? f[y] = d : t = v ? d.p : d, m(t, o));
5949
+ return a ? e : (s ? f[y] = d : t = v ? d.p : d, h(t, o));
5949
5950
  });
5950
5951
  }))), function () {
5951
5952
  return t;
@@ -5963,13 +5964,13 @@
5963
5964
  });
5964
5965
  },
5965
5966
  O = function _encapsulate(t, r, i, c, l, d, v) {
5966
- var h,
5967
- m = {},
5967
+ var b,
5968
+ h = {},
5968
5969
  O = _typeof(r),
5969
- _ = b ? function (n) {
5970
+ _ = m ? function (n) {
5970
5971
  var a,
5971
5972
  o = null !== (a = null != v ? v : c.type) && void 0 !== a ? a : getJSONType(r);
5972
- b(Object.assign(null != n ? n : m, {
5973
+ m(Object.assign(null != n ? n : h, {
5973
5974
  keypath: t,
5974
5975
  value: r,
5975
5976
  cyclic: i,
@@ -5981,9 +5982,9 @@
5981
5982
  type: o
5982
5983
  }));
5983
5984
  } : null;
5984
- if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (h = c.replaced ? r : w(t, r, c, l, !1, d, _)) !== r && (m = {
5985
- replaced: h
5986
- }) : h = r, _ && _(), h;
5985
+ if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (b = c.replaced ? r : w(t, r, c, l, !1, d, _)) !== r && (h = {
5986
+ replaced: b
5987
+ }) : b = r, _ && _(), b;
5987
5988
  if (null === r) return _ && _(), r;
5988
5989
  if (i && !c.iterateIn && !c.iterateUnsetNumeric && r && "object" === _typeof(r)) {
5989
5990
  var A = y.indexOf(r);
@@ -5997,14 +5998,14 @@
5997
5998
  T = isPlainObject(r),
5998
5999
  I = o(r),
5999
6000
  N = (T || I) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : w(t, r, c, l, T || I, null, _);
6000
- if (N !== r ? (h = N, m = {
6001
+ if (N !== r ? (b = N, h = {
6001
6002
  replaced: N
6002
- }) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]), h = r) : I && "object" !== c.iterateIn || "array" === c.iterateIn ? (S = new Array(r.length), m = {
6003
+ }) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]), b = r) : I && "object" !== c.iterateIn || "array" === c.iterateIn ? (S = new Array(r.length), h = {
6003
6004
  clone: S
6004
- }) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ? h = r : (S = {}, c.addLength && (S.length = r.length), m = {
6005
+ }) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ? b = r : (S = {}, c.addLength && (S.length = r.length), h = {
6005
6006
  clone: S
6006
- }), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j : h;
6007
- if (!S) return h;
6007
+ }), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j : b;
6008
+ if (!S) return b;
6008
6009
  if (c.iterateIn) {
6009
6010
  var P = function _loop(n) {
6010
6011
  var o = {
@@ -6070,12 +6071,12 @@
6070
6071
  i && i({
6071
6072
  replacing: !0
6072
6073
  });
6073
- var b = void 0;
6074
+ var m = void 0;
6074
6075
  if (l || !y.replaceAsync) {
6075
6076
  if (void 0 === y.replace) throw new TypeError("Missing replacer");
6076
- b = y.replace(t, r);
6077
- } else b = y.replaceAsync(t, r);
6078
- return O(e, b, v && "readonly", r, n, o, p);
6077
+ m = y.replace(t, r);
6078
+ } else m = y.replaceAsync(t, r);
6079
+ return O(e, m, v && "readonly", r, n, o, p);
6079
6080
  }
6080
6081
  }
6081
6082
  return t;
@@ -6083,9 +6084,9 @@
6083
6084
  _ = O("", t, v, null != r ? r : {}, d);
6084
6085
  if (d.length) return l && u.throwOnBadSyncType ? function () {
6085
6086
  throw new TypeError("Sync method requested but async result obtained");
6086
- }() : Promise.resolve(m(_, d)).then(h);
6087
+ }() : Promise.resolve(h(_, d)).then(b);
6087
6088
  if (!l && u.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
6088
- return u.stringification && l ? [h(_)] : l ? h(_) : Promise.resolve(h(_));
6089
+ return u.stringification && l ? [b(_)] : l ? b(_) : Promise.resolve(b(_));
6089
6090
  }
6090
6091
  }, {
6091
6092
  key: "encapsulateSync",
@@ -6140,7 +6141,7 @@
6140
6141
  return hasConstructorOf(e, s) ? void 0 : e;
6141
6142
  }
6142
6143
  var v,
6143
- b = function revivePlainObjects() {
6144
+ m = function revivePlainObjects() {
6144
6145
  var r = [];
6145
6146
  if (!u) throw new Error("Found bad `types`");
6146
6147
  if (Object.entries(u).forEach(function (e) {
@@ -6172,29 +6173,29 @@
6172
6173
  c === i && (t = c);
6173
6174
  }, void 0);
6174
6175
  }();
6175
- return hasConstructorOf(b, e) ? v = b.then(function () {
6176
+ return hasConstructorOf(m, e) ? v = m.then(function () {
6176
6177
  return t;
6177
6178
  }) : (v = function _revive(t, r, a, i, c) {
6178
6179
  if (!y || "$types" !== t) {
6179
6180
  var f = u[t],
6180
6181
  v = o(r);
6181
6182
  if (v || isPlainObject(r)) {
6182
- var b = v ? new Array(r.length) : {};
6183
+ var m = v ? new Array(r.length) : {};
6183
6184
  for (n(r).forEach(function (n) {
6184
- var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a : b, b, n),
6185
+ var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a : m, m, n),
6185
6186
  i = function set(e) {
6186
- return hasConstructorOf(e, s) ? b[n] = void 0 : void 0 !== e && (b[n] = e), e;
6187
+ return hasConstructorOf(e, s) ? m[n] = void 0 : void 0 !== e && (m[n] = e), e;
6187
6188
  };
6188
6189
  hasConstructorOf(o, e) ? d.push(o.then(function (e) {
6189
6190
  return i(e);
6190
6191
  })) : i(o);
6191
- }), r = b; l.length;) {
6192
- var h = _slicedToArray(l[0], 4),
6193
- m = h[0],
6194
- g = h[1],
6195
- O = h[2],
6196
- w = h[3],
6197
- _ = getByKeyPath(m, g);
6192
+ }), r = m; l.length;) {
6193
+ var b = _slicedToArray(l[0], 4),
6194
+ h = b[0],
6195
+ g = b[1],
6196
+ O = b[2],
6197
+ w = b[3],
6198
+ _ = getByKeyPath(h, g);
6198
6199
  if (void 0 === _) break;
6199
6200
  O[w] = _, l.splice(0, 1);
6200
6201
  }
@@ -6348,7 +6349,7 @@
6348
6349
  }
6349
6350
  }
6350
6351
  },
6351
- b = {
6352
+ m = {
6352
6353
  bigintObject: {
6353
6354
  test: function test(e) {
6354
6355
  return "object" == _typeof$2(e) && hasConstructorOf(e, BigInt);
@@ -6359,7 +6360,7 @@
6359
6360
  }
6360
6361
  }
6361
6362
  },
6362
- h = {
6363
+ b = {
6363
6364
  bigint: {
6364
6365
  test: function test(e) {
6365
6366
  return "bigint" == typeof e;
@@ -6380,7 +6381,7 @@
6380
6381
  for (var _r = 0; _r < e.length; _r++) t[_r] = e.charCodeAt(_r);
6381
6382
  return t.buffer;
6382
6383
  }
6383
- var m = {
6384
+ var h = {
6384
6385
  blob: {
6385
6386
  test: function test(e) {
6386
6387
  return "Blob" === toStringTag(e);
@@ -6950,7 +6951,7 @@
6950
6951
  }
6951
6952
  }
6952
6953
  },
6953
- q = {
6954
+ Y = {
6954
6955
  regexp: {
6955
6956
  test: function test(e) {
6956
6957
  return "RegExp" === toStringTag(e);
@@ -6961,14 +6962,14 @@
6961
6962
  flags: (e.global ? "g" : "") + (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.sticky ? "y" : "") + (e.unicode ? "u" : "")
6962
6963
  };
6963
6964
  },
6964
- revive: function revive(_ref11) {
6965
- var e = _ref11.source,
6966
- t = _ref11.flags;
6965
+ revive: function revive(_ref12) {
6966
+ var e = _ref12.source,
6967
+ t = _ref12.flags;
6967
6968
  return new RegExp(e, t);
6968
6969
  }
6969
6970
  }
6970
6971
  },
6971
- G = {
6972
+ H = {
6972
6973
  set: {
6973
6974
  test: function test(e) {
6974
6975
  return "Set" === toStringTag(e);
@@ -6981,11 +6982,11 @@
6981
6982
  }
6982
6983
  }
6983
6984
  },
6984
- H = {};
6985
+ Q = {};
6985
6986
  "function" == typeof Int8Array && [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].concat(_toConsumableArray("function" == typeof BigInt64Array ? [BigInt64Array, BigUint64Array] : [])).forEach(function (e) {
6986
6987
  return function create$1(e) {
6987
6988
  var t = e.name;
6988
- H[t.toLowerCase()] = {
6989
+ Q[t.toLowerCase()] = {
6989
6990
  test: function test(e) {
6990
6991
  return toStringTag(e) === t;
6991
6992
  },
@@ -6998,18 +6999,18 @@
6998
6999
  };
6999
7000
  }(e);
7000
7001
  });
7001
- var z = {};
7002
+ var X = {};
7002
7003
  "function" == typeof Int8Array && [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].concat(_toConsumableArray("function" == typeof BigInt64Array ? [BigInt64Array, BigUint64Array] : [])).forEach(function (e) {
7003
7004
  return function create(e) {
7004
7005
  var t = e.name;
7005
- z[t.toLowerCase()] = {
7006
+ X[t.toLowerCase()] = {
7006
7007
  test: function test(e) {
7007
7008
  return toStringTag(e) === t;
7008
7009
  },
7009
- replace: function replace(_ref12, n) {
7010
- var e = _ref12.buffer,
7011
- t = _ref12.byteOffset,
7012
- r = _ref12.length;
7010
+ replace: function replace(_ref13, n) {
7011
+ var e = _ref13.buffer,
7012
+ t = _ref13.byteOffset,
7013
+ r = _ref13.length;
7013
7014
  n.buffers || (n.buffers = []);
7014
7015
  var a = n.buffers.indexOf(e);
7015
7016
  return a > -1 ? {
@@ -7038,7 +7039,7 @@
7038
7039
  };
7039
7040
  }(e);
7040
7041
  });
7041
- var Q = {
7042
+ var Z = {
7042
7043
  undef: {
7043
7044
  test: function test(e, t) {
7044
7045
  return void 0 === e && (t.ownKeys || !("ownKeys" in t));
@@ -7051,7 +7052,7 @@
7051
7052
  }
7052
7053
  }
7053
7054
  },
7054
- X = {
7055
+ ee = {
7055
7056
  userObject: {
7056
7057
  test: function test(e) {
7057
7058
  return isUserObject(e);
@@ -7064,7 +7065,7 @@
7064
7065
  }
7065
7066
  }
7066
7067
  },
7067
- Z = [{
7068
+ te = [{
7068
7069
  arrayNonindexKeys: {
7069
7070
  testPlainObjects: !0,
7070
7071
  test: function test(e, t) {
@@ -7078,10 +7079,10 @@
7078
7079
  revive: function revive(e) {
7079
7080
  if (Array.isArray(e)) return e;
7080
7081
  var t = [];
7081
- return Object.entries(e).forEach(function (_ref13) {
7082
- var _ref14 = _slicedToArray$1(_ref13, 2),
7083
- e = _ref14[0],
7084
- r = _ref14[1];
7082
+ return Object.entries(e).forEach(function (_ref14) {
7083
+ var _ref15 = _slicedToArray$1(_ref14, 2),
7084
+ e = _ref15[0],
7085
+ r = _ref15[1];
7085
7086
  t[e] = r;
7086
7087
  }), t;
7087
7088
  }
@@ -7097,9 +7098,9 @@
7097
7098
  revive: function revive() {}
7098
7099
  }
7099
7100
  }],
7100
- ee = [K, U, F, $],
7101
- oe = [X, Q, Z, V, ee, A, q, k, B, E, C, m, P, x].concat("function" == typeof Map ? D : [], "function" == typeof Set ? G : [], "function" == typeof ArrayBuffer ? v : [], "function" == typeof Uint8Array ? z : [], "function" == typeof DataView ? _ : [], "undefined" != typeof crypto ? w : [], "undefined" != typeof BigInt ? [h, b] : [], "undefined" != typeof DOMException ? S : [], "undefined" != typeof DOMRect ? N : [], "undefined" != typeof DOMPoint ? T : [], "undefined" != typeof DOMQuad ? I : [], "undefined" != typeof DOMMatrix ? j : []),
7102
- ie = oe.concat({
7101
+ re = [K, U, F, $],
7102
+ ce = [ee, Z, te, V, re, A, Y, k, B, E, C, h, P, x].concat("function" == typeof Map ? D : [], "function" == typeof Set ? H : [], "function" == typeof ArrayBuffer ? v : [], "function" == typeof Uint8Array ? X : [], "function" == typeof DataView ? _ : [], "undefined" != typeof crypto ? w : [], "undefined" != typeof BigInt ? [b, m] : [], "undefined" != typeof DOMException ? S : [], "undefined" != typeof DOMRect ? N : [], "undefined" != typeof DOMPoint ? T : [], "undefined" != typeof DOMQuad ? I : [], "undefined" != typeof DOMMatrix ? j : []),
7103
+ se = ce.concat({
7103
7104
  checkDataCloneException: {
7104
7105
  test: function test(e) {
7105
7106
  var t = {}.toString.call(e).slice(8, -1);
@@ -7111,7 +7112,7 @@
7111
7112
 
7112
7113
  // See: http://stackoverflow.com/questions/42170826/categories-for-rejection-by-the-structured-cloning-algorithm
7113
7114
 
7114
- var typeson = new c().register(ie);
7115
+ var typeson = new c().register(se);
7115
7116
 
7116
7117
  /**
7117
7118
  * @param {(preset: import('typeson-registry').Preset) =>
@@ -7119,7 +7120,7 @@
7119
7120
  * @returns {void}
7120
7121
  */
7121
7122
  function register(func) {
7122
- typeson = new c().register(func(ie));
7123
+ typeson = new c().register(func(se));
7123
7124
  }
7124
7125
 
7125
7126
  /**
@@ -7571,6 +7572,7 @@
7571
7572
  IDBIndex.__updateIndexList = function (store, tx, success, failure) {
7572
7573
  /** @type {IndexList} **/
7573
7574
  var indexList = {};
7575
+ // eslint-disable-next-line sonarjs/prefer-for-of -- Implement iterability?
7574
7576
  for (var i = 0; i < store.indexNames.length; i++) {
7575
7577
  var idx = store.__indexes[store.indexNames[i]];
7576
7578
  indexList[idx.name] = {
@@ -8464,7 +8466,6 @@
8464
8466
  if (me.autoIncrement) {
8465
8467
  // If auto-increment and no valid primaryKey found on the keyPath, get and set the new value, and use
8466
8468
  if (key === undefined) {
8467
- // @ts-expect-error Due to re-exporting `Key.d.ts` file (needed for `node_modules` imports)
8468
8469
  generateKeyForStore(tx, me, function (failure, key, oldCn) {
8469
8470
  if (failure) {
8470
8471
  failCb(createDOMException('ConstraintError', 'The key generator\'s current number has reached the maximum safe integer limit'));
@@ -8478,7 +8479,6 @@
8478
8479
  success(key, oldCn);
8479
8480
  }, failCb);
8480
8481
  } else {
8481
- // @ts-expect-error Due to re-exporting `Key.d.ts` file (needed for `node_modules` imports)
8482
8482
  possiblyUpdateKeyGenerator(tx, me, key, keyCloneThenSuccess, failCb);
8483
8483
  }
8484
8484
  // Not auto-increment
@@ -8613,6 +8613,7 @@
8613
8613
  return false;
8614
8614
  });
8615
8615
  return undefined;
8616
+ // eslint-disable-next-line sonarjs/no-invariant-returns -- Convenient
8616
8617
  })["catch"](function (err) {
8617
8618
  /**
8618
8619
  * @returns {void}
@@ -8623,7 +8624,6 @@
8623
8624
  error(err);
8624
8625
  }
8625
8626
  if (typeof oldCn === 'number') {
8626
- // @ts-expect-error Due to re-exporting `Key.d.ts` file (needed for `node_modules` imports)
8627
8627
  assignCurrentNumber(tx, me, oldCn, fail, fail);
8628
8628
  return null;
8629
8629
  }
@@ -9743,6 +9743,7 @@
9743
9743
  }
9744
9744
  req.addEventListener('success', removeFromQueue);
9745
9745
  req.addEventListener('error', removeFromQueue);
9746
+ req.addEventListener('blocked', removeFromQueue);
9746
9747
  cb(req);
9747
9748
  }
9748
9749
 
@@ -10559,7 +10560,7 @@
10559
10560
  * @param {import('./Key.js').Key} key1
10560
10561
  * @param {import('./Key.js').Key} key2
10561
10562
  * @throws {TypeError}
10562
- * @returns {0|1|-1}
10563
+ * @returns {number}
10563
10564
  */
10564
10565
  IDBFactory.prototype.cmp = function (key1, key2) {
10565
10566
  if (!(this instanceof IDBFactory)) {
@@ -11606,7 +11607,7 @@
11606
11607
  /**
11607
11608
  * @typedef {(
11608
11609
  * prop: import('./CFG.js').KeyofConfigValues
11609
- * ) => import('../src/CFG.js').ConfigValue} GetConfig
11610
+ * ) => import('./CFG.js').ConfigValue} GetConfig
11610
11611
  */
11611
11612
 
11612
11613
  /**