indexeddbshim 17.4.0 → 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.
- package/dist/IDBFactory.d.ts +4 -4
- package/dist/IDBFactory.d.ts.map +1 -1
- package/dist/indexeddbshim-Key.js +1 -1
- package/dist/indexeddbshim-Key.min.js +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +10 -14
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +8 -12
- package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
- package/dist/indexeddbshim-node.cjs +10 -14
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +8 -12
- package/dist/indexeddbshim-noninvasive.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.min.js +1 -1
- package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
- package/dist/indexeddbshim.js +8 -12
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +1 -1
- package/dist/indexeddbshim.min.js.map +1 -1
- package/dist/node-UnicodeIdentifiers.d.ts +3 -3
- package/dist/node-UnicodeIdentifiers.d.ts.map +1 -1
- package/dist/node.d.ts +3 -3
- package/dist/node.d.ts.map +1 -1
- package/dist/setGlobalVars.d.ts +4 -4
- package/dist/setGlobalVars.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/IDBFactory.js +2 -2
- package/src/node-UnicodeIdentifiers.js +2 -2
- package/src/node.js +2 -2
- package/src/setGlobalVars.js +5 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim - v17.4.
|
|
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() :
|
|
@@ -12182,8 +12182,8 @@
|
|
|
12182
12182
|
* @see https://github.com/w3c/IndexedDB/pull/240/files
|
|
12183
12183
|
* @this {IDBFactoryFull}
|
|
12184
12184
|
* @returns {Promise<{
|
|
12185
|
-
* name
|
|
12186
|
-
* version
|
|
12185
|
+
* name?: string,
|
|
12186
|
+
* version?: Integer
|
|
12187
12187
|
* }[]>}
|
|
12188
12188
|
*/
|
|
12189
12189
|
IDBFactory.prototype.databases = function () {
|
|
@@ -13762,7 +13762,7 @@
|
|
|
13762
13762
|
*/
|
|
13763
13763
|
|
|
13764
13764
|
/**
|
|
13765
|
-
* @typedef {(typeof globalThis|
|
|
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 {
|
|
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 =
|
|
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);
|