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 (factory) {
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -12187,8 +12187,8 @@
|
|
|
12187
12187
|
* @see https://github.com/w3c/IndexedDB/pull/240/files
|
|
12188
12188
|
* @this {IDBFactoryFull}
|
|
12189
12189
|
* @returns {Promise<{
|
|
12190
|
-
* name
|
|
12191
|
-
* version
|
|
12190
|
+
* name?: string,
|
|
12191
|
+
* version?: Integer
|
|
12192
12192
|
* }[]>}
|
|
12193
12193
|
*/
|
|
12194
12194
|
IDBFactory.prototype.databases = function () {
|
|
@@ -13767,7 +13767,7 @@
|
|
|
13767
13767
|
*/
|
|
13768
13768
|
|
|
13769
13769
|
/**
|
|
13770
|
-
* @typedef {(typeof globalThis|
|
|
13770
|
+
* @typedef {(typeof globalThis|Record<string, unknown>) & {
|
|
13771
13771
|
* indexedDB?: Partial<IDBFactory>,
|
|
13772
13772
|
* IDBFactory: typeof IDBFactory,
|
|
13773
13773
|
* IDBOpenDBRequest: typeof IDBOpenDBRequest,
|
|
@@ -13783,12 +13783,13 @@
|
|
|
13783
13783
|
|
|
13784
13784
|
/**
|
|
13785
13785
|
*
|
|
13786
|
-
* @param {
|
|
13786
|
+
* @param {typeof globalThis | Record<string, unknown>} [idb]
|
|
13787
13787
|
* @param {Partial<import('./CFG.js').ConfigValues>} [initialConfig]
|
|
13788
13788
|
* @returns {ShimmedObject}
|
|
13789
13789
|
*/
|
|
13790
13790
|
function setGlobalVars(idb, initialConfig) {
|
|
13791
|
-
var IDB =
|
|
13791
|
+
var IDB = /** @type {ShimmedObject & {[key: string]: unknown}} */
|
|
13792
|
+
/** @type {unknown} */globalThis || {};
|
|
13792
13793
|
/**
|
|
13793
13794
|
* @typedef {any} AnyClass
|
|
13794
13795
|
*/
|
|
@@ -13810,15 +13811,12 @@
|
|
|
13810
13811
|
if (!propDesc || !Object.defineProperty) {
|
|
13811
13812
|
try {
|
|
13812
13813
|
// Try setting the property. This will fail if the property is read-only.
|
|
13813
|
-
// @ts-expect-error It's ok
|
|
13814
13814
|
IDB[name] = value;
|
|
13815
13815
|
} catch (e) {
|
|
13816
13816
|
console.log(e);
|
|
13817
13817
|
}
|
|
13818
13818
|
}
|
|
13819
|
-
if (
|
|
13820
|
-
// @ts-expect-error It's ok
|
|
13821
|
-
IDB[name] !== value && Object.defineProperty) {
|
|
13819
|
+
if (IDB[name] !== value && Object.defineProperty) {
|
|
13822
13820
|
// Setting a read-only property failed, so try re-defining the property
|
|
13823
13821
|
try {
|
|
13824
13822
|
var desc = propDesc || {};
|
|
@@ -13843,8 +13841,6 @@
|
|
|
13843
13841
|
// get here since no WebSQL to use for shimming)
|
|
13844
13842
|
}
|
|
13845
13843
|
}
|
|
13846
|
-
|
|
13847
|
-
// @ts-expect-error It's ok
|
|
13848
13844
|
if (IDB[name] !== value) {
|
|
13849
13845
|
if (typeof console !== 'undefined' && console.warn) {
|
|
13850
13846
|
console.warn('Unable to shim ' + name);
|