indexeddbshim 17.2.0 → 17.2.1
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.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 -3
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +10 -3
- package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js +2 -2
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
- package/dist/indexeddbshim-node.cjs +10 -3
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +10 -3
- package/dist/indexeddbshim-noninvasive.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.min.js +2 -2
- package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
- package/dist/indexeddbshim.js +10 -3
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +2 -2
- package/dist/indexeddbshim.min.js.map +1 -1
- package/package.json +3 -4
- package/src/IDBFactory.js +9 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim - v17.2.
|
|
1
|
+
/*! indexeddbshim - v17.2.1 - 8/18/2026 */
|
|
2
2
|
|
|
3
3
|
(function (factory) {
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -10446,9 +10446,17 @@
|
|
|
10446
10446
|
* @returns {boolean}
|
|
10447
10447
|
*/
|
|
10448
10448
|
function dbError(tx, err) {
|
|
10449
|
-
if (calledDBError
|
|
10449
|
+
if (calledDBError) {
|
|
10450
10450
|
return false;
|
|
10451
10451
|
}
|
|
10452
|
+
// Must be set synchronously (not inside the `sysdbFinishedCbDelete` callback below) to
|
|
10453
|
+
// guard against reentrancy: `sysdbFinishedCbDelete` -> `rollback`/`commit` -> websql-configurable's
|
|
10454
|
+
// `done()` -> `currentTask.errorCallback(er)`, which is this very `dbError`, calling back into
|
|
10455
|
+
// us before the first invocation has finished. Without this, a second rollback/commit gets
|
|
10456
|
+
// issued on the shared `sysdb` connection after it has already moved on to the next queued
|
|
10457
|
+
// transaction, corrupting that connection's task queue (see issue with unrelated `open()` calls
|
|
10458
|
+
// failing/crashing after a `deleteDatabase` file-removal error).
|
|
10459
|
+
calledDBError = true;
|
|
10452
10460
|
var er = webSQLErrback(/** @type {SQLError} */err || tx);
|
|
10453
10461
|
sysdbFinishedCbDelete(true, function () {
|
|
10454
10462
|
req.__done = true;
|
|
@@ -10460,7 +10468,6 @@
|
|
|
10460
10468
|
cancelable: true
|
|
10461
10469
|
});
|
|
10462
10470
|
req.dispatchEvent(e);
|
|
10463
|
-
calledDBError = true;
|
|
10464
10471
|
});
|
|
10465
10472
|
return false;
|
|
10466
10473
|
}
|