indexeddbshim 17.4.1 → 17.4.2

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.
@@ -1,4 +1,4 @@
1
- /*! indexeddbshim - v17.4.1 - 8/29/2026 */
1
+ /*! indexeddbshim - v17.4.2 - 8/29/2026 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -13762,7 +13762,7 @@
13762
13762
  */
13763
13763
 
13764
13764
  /**
13765
- * @typedef {(typeof globalThis|object) & {
13765
+ * @typedef {(typeof globalThis|Record<string, unknown>) & {
13766
13766
  * indexedDB?: Partial<IDBFactory>,
13767
13767
  * IDBFactory: typeof IDBFactory,
13768
13768
  * IDBOpenDBRequest: typeof IDBOpenDBRequest,
@@ -13778,7 +13778,7 @@
13778
13778
 
13779
13779
  /**
13780
13780
  *
13781
- * @param {ShimmedObject} [idb]
13781
+ * @param {typeof globalThis | Record<string, unknown>} [idb]
13782
13782
  * @param {Partial<import('./CFG.js').ConfigValues>} [initialConfig]
13783
13783
  * @returns {ShimmedObject}
13784
13784
  */
@@ -13786,7 +13786,8 @@
13786
13786
  if (initialConfig) {
13787
13787
  setConfig(initialConfig);
13788
13788
  }
13789
- var IDB = idb || globalThis || {};
13789
+ var IDB = /** @type {ShimmedObject & {[key: string]: unknown}} */
13790
+ /** @type {unknown} */idb || globalThis || {};
13790
13791
  /**
13791
13792
  * @typedef {any} AnyClass
13792
13793
  */
@@ -13808,15 +13809,12 @@
13808
13809
  if (!propDesc || !Object.defineProperty) {
13809
13810
  try {
13810
13811
  // Try setting the property. This will fail if the property is read-only.
13811
- // @ts-expect-error It's ok
13812
13812
  IDB[name] = value;
13813
13813
  } catch (e) {
13814
13814
  console.log(e);
13815
13815
  }
13816
13816
  }
13817
- if (
13818
- // @ts-expect-error It's ok
13819
- IDB[name] !== value && Object.defineProperty) {
13817
+ if (IDB[name] !== value && Object.defineProperty) {
13820
13818
  // Setting a read-only property failed, so try re-defining the property
13821
13819
  try {
13822
13820
  var desc = propDesc || {};
@@ -13841,8 +13839,6 @@
13841
13839
  // get here since no WebSQL to use for shimming)
13842
13840
  }
13843
13841
  }
13844
-
13845
- // @ts-expect-error It's ok
13846
13842
  if (IDB[name] !== value) {
13847
13843
  if (typeof console !== 'undefined' && console.warn) {
13848
13844
  console.warn('Unable to shim ' + name);