indexeddbshim 17.4.2 → 17.5.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.
- package/dist/IDBFactory.d.ts +1 -3
- 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 +15 -2011
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +6 -8
- 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 +15 -2011
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +6 -8
- 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 +6 -8
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +2 -2
- package/dist/indexeddbshim.min.js.map +1 -1
- package/dist/node-UnicodeIdentifiers.d.ts +2 -2
- package/dist/node-UnicodeIdentifiers.d.ts.map +1 -1
- package/dist/node.d.ts +2 -2
- package/dist/node.d.ts.map +1 -1
- package/dist/nodeWebSQL.d.ts +1 -1
- package/dist/nodeWebSQL.d.ts.map +1 -1
- package/package.json +4 -8
- package/src/IDBFactory.js +5 -7
- package/src/node-UnicodeIdentifiers.js +1 -1
- package/src/node.js +1 -1
- package/src/nodeWebSQL.js +5 -5
- package/dist/nodeSQLiteDatabase.d.ts +0 -64
- package/dist/nodeSQLiteDatabase.d.ts.map +0 -1
- package/src/nodeSQLiteDatabase.js +0 -314
package/dist/indexeddbshim.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim - v17.
|
|
1
|
+
/*! indexeddbshim - v17.5.0 - 8/30/2026 */
|
|
2
2
|
|
|
3
3
|
(function (factory) {
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -11254,9 +11254,7 @@
|
|
|
11254
11254
|
/**
|
|
11255
11255
|
* @typedef {import('websql-configurable/lib/websql/WebSQLDatabase.js').default & {
|
|
11256
11256
|
* _db: {
|
|
11257
|
-
*
|
|
11258
|
-
* close: (errBack: (err: Error) => void) => void
|
|
11259
|
-
* }
|
|
11257
|
+
* close: (errBack: (err: Error) => void) => void
|
|
11260
11258
|
* }
|
|
11261
11259
|
* }} DatabaseFull
|
|
11262
11260
|
*/
|
|
@@ -11334,7 +11332,7 @@
|
|
|
11334
11332
|
return;
|
|
11335
11333
|
}
|
|
11336
11334
|
dbs.forEach(function (db) {
|
|
11337
|
-
var sqliteDB = db._db
|
|
11335
|
+
var sqliteDB = db._db;
|
|
11338
11336
|
if (!sqliteDB || !sqliteDB.close) {
|
|
11339
11337
|
remaining--;
|
|
11340
11338
|
if (remaining === 0) {
|
|
@@ -11376,9 +11374,9 @@
|
|
|
11376
11374
|
databaseDeleted();
|
|
11377
11375
|
return;
|
|
11378
11376
|
}
|
|
11379
|
-
var _sqliteDB = latestSQLiteDBCached._db
|
|
11377
|
+
var _sqliteDB = latestSQLiteDBCached._db;
|
|
11380
11378
|
if (!_sqliteDB || !_sqliteDB.close) {
|
|
11381
|
-
console.error('The `openDatabase` implementation does not have the expected `._db.
|
|
11379
|
+
console.error('The `openDatabase` implementation does not have the expected `._db.close` method for closing the database');
|
|
11382
11380
|
return;
|
|
11383
11381
|
}
|
|
11384
11382
|
_sqliteDB.close(
|
|
@@ -12183,7 +12181,7 @@
|
|
|
12183
12181
|
var calledDbCreateError = false;
|
|
12184
12182
|
// Snapshotted *now*, synchronously, at call time -- not read later
|
|
12185
12183
|
// from inside the SQL query's callback below, which runs on a
|
|
12186
|
-
// deferred macrotask (see `
|
|
12184
|
+
// deferred macrotask (see `websql-configurable`'s `SQLiteDatabase#exec`) and so
|
|
12187
12185
|
// could otherwise race against (and lose to) an in-flight upgrade's
|
|
12188
12186
|
// own commit/abort handler clearing its `pendingVersionChanges`
|
|
12189
12187
|
// entry in the meantime -- which would make this method incorrectly
|