dexie 3.2.1-beta.2 → 4.0.0-alpha.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/README.md +2 -2
- package/dist/dexie.d.ts +189 -143
- package/dist/dexie.js +98 -51
- package/dist/dexie.js.map +1 -1
- package/dist/dexie.min.js +1 -1
- package/dist/dexie.min.js.map +1 -1
- package/dist/dexie.mjs +97 -52
- package/dist/dexie.mjs.map +1 -1
- package/dist/modern/dexie.min.mjs +1 -1
- package/dist/modern/dexie.min.mjs.map +1 -1
- package/dist/modern/dexie.mjs +57 -32
- package/dist/modern/dexie.mjs.map +1 -1
- package/package.json +1 -1
package/dist/dexie.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* By David Fahlander, david.fahlander@gmail.com
|
|
6
6
|
*
|
|
7
|
-
* Version
|
|
7
|
+
* Version 4.0.0-alpha.2, Sun Apr 10 2022
|
|
8
8
|
*
|
|
9
9
|
* https://dexie.org
|
|
10
10
|
*
|
|
@@ -29,6 +29,19 @@
|
|
|
29
29
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
30
30
|
PERFORMANCE OF THIS SOFTWARE.
|
|
31
31
|
***************************************************************************** */
|
|
32
|
+
var extendStatics = function(d, b) {
|
|
33
|
+
extendStatics = Object.setPrototypeOf ||
|
|
34
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
35
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
36
|
+
return extendStatics(d, b);
|
|
37
|
+
};
|
|
38
|
+
function __extends(d, b) {
|
|
39
|
+
if (typeof b !== "function" && b !== null)
|
|
40
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
41
|
+
extendStatics(d, b);
|
|
42
|
+
function __() { this.constructor = d; }
|
|
43
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
44
|
+
}
|
|
32
45
|
var __assign = function() {
|
|
33
46
|
__assign = Object.assign || function __assign(t) {
|
|
34
47
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -427,11 +440,11 @@
|
|
|
427
440
|
this.inner = null;
|
|
428
441
|
}
|
|
429
442
|
else if (typeof msgOrInner === 'string') {
|
|
430
|
-
this.message = ""
|
|
443
|
+
this.message = "".concat(msgOrInner).concat(!inner ? '' : '\n ' + inner);
|
|
431
444
|
this.inner = inner || null;
|
|
432
445
|
}
|
|
433
446
|
else if (typeof msgOrInner === 'object') {
|
|
434
|
-
this.message = msgOrInner.name
|
|
447
|
+
this.message = "".concat(msgOrInner.name, " ").concat(msgOrInner.message);
|
|
435
448
|
this.inner = msgOrInner;
|
|
436
449
|
}
|
|
437
450
|
}
|
|
@@ -1243,7 +1256,7 @@
|
|
|
1243
1256
|
catch (_) { }
|
|
1244
1257
|
}
|
|
1245
1258
|
if (debug && event && !event.defaultPrevented) {
|
|
1246
|
-
console.warn("Unhandled rejection: "
|
|
1259
|
+
console.warn("Unhandled rejection: ".concat(err.stack || err));
|
|
1247
1260
|
}
|
|
1248
1261
|
}
|
|
1249
1262
|
catch (e) { }
|
|
@@ -1287,7 +1300,7 @@
|
|
|
1287
1300
|
}
|
|
1288
1301
|
}
|
|
1289
1302
|
|
|
1290
|
-
var DEXIE_VERSION = '
|
|
1303
|
+
var DEXIE_VERSION = '4.0.0-alpha.2';
|
|
1291
1304
|
var maxString = String.fromCharCode(65535);
|
|
1292
1305
|
var minKey = -Infinity;
|
|
1293
1306
|
var INVALID_KEY_ARGUMENT = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.";
|
|
@@ -1329,6 +1342,10 @@
|
|
|
1329
1342
|
: function (obj) { return obj; };
|
|
1330
1343
|
}
|
|
1331
1344
|
|
|
1345
|
+
function Entity() {
|
|
1346
|
+
throw exceptions.Type();
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1332
1349
|
var Table = (function () {
|
|
1333
1350
|
function Table() {
|
|
1334
1351
|
}
|
|
@@ -1366,7 +1383,7 @@
|
|
|
1366
1383
|
if (typeof indexOrCrit === 'string')
|
|
1367
1384
|
return new this.db.WhereClause(this, indexOrCrit);
|
|
1368
1385
|
if (isArray(indexOrCrit))
|
|
1369
|
-
return new this.db.WhereClause(this, "["
|
|
1386
|
+
return new this.db.WhereClause(this, "[".concat(indexOrCrit.join('+'), "]"));
|
|
1370
1387
|
var keyPaths = keys(indexOrCrit);
|
|
1371
1388
|
if (keyPaths.length === 1)
|
|
1372
1389
|
return this
|
|
@@ -1382,8 +1399,8 @@
|
|
|
1382
1399
|
.where(compoundIndex.name)
|
|
1383
1400
|
.equals(compoundIndex.keyPath.map(function (kp) { return indexOrCrit[kp]; }));
|
|
1384
1401
|
if (!compoundIndex && debug)
|
|
1385
|
-
console.warn("The query "
|
|
1386
|
-
|
|
1402
|
+
console.warn("The query ".concat(JSON.stringify(indexOrCrit), " on ").concat(this.name, " would benefit of a ") +
|
|
1403
|
+
"compound index [".concat(keyPaths.join('+'), "]"));
|
|
1387
1404
|
var idxByName = this.schema.idxByName;
|
|
1388
1405
|
var idb = this.db._deps.indexedDB;
|
|
1389
1406
|
function equals(a, b) {
|
|
@@ -1439,20 +1456,40 @@
|
|
|
1439
1456
|
};
|
|
1440
1457
|
Table.prototype.orderBy = function (index) {
|
|
1441
1458
|
return new this.db.Collection(new this.db.WhereClause(this, isArray(index) ?
|
|
1442
|
-
"["
|
|
1459
|
+
"[".concat(index.join('+'), "]") :
|
|
1443
1460
|
index));
|
|
1444
1461
|
};
|
|
1445
1462
|
Table.prototype.reverse = function () {
|
|
1446
1463
|
return this.toCollection().reverse();
|
|
1447
1464
|
};
|
|
1448
1465
|
Table.prototype.mapToClass = function (constructor) {
|
|
1466
|
+
var _a = this, db = _a.db, tableName = _a.name;
|
|
1449
1467
|
this.schema.mappedClass = constructor;
|
|
1468
|
+
if (constructor.prototype instanceof Entity) {
|
|
1469
|
+
constructor = (function (_super) {
|
|
1470
|
+
__extends(class_1, _super);
|
|
1471
|
+
function class_1() {
|
|
1472
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1473
|
+
}
|
|
1474
|
+
Object.defineProperty(class_1.prototype, "db", {
|
|
1475
|
+
get: function () { return db; },
|
|
1476
|
+
enumerable: false,
|
|
1477
|
+
configurable: true
|
|
1478
|
+
});
|
|
1479
|
+
class_1.prototype.table = function () { return tableName; };
|
|
1480
|
+
return class_1;
|
|
1481
|
+
}(constructor));
|
|
1482
|
+
}
|
|
1483
|
+
var inheritedProps = new Set();
|
|
1484
|
+
for (var proto = constructor.prototype; proto; proto = getProto(proto)) {
|
|
1485
|
+
Object.getOwnPropertyNames(proto).forEach(function (propName) { return inheritedProps.add(propName); });
|
|
1486
|
+
}
|
|
1450
1487
|
var readHook = function (obj) {
|
|
1451
1488
|
if (!obj)
|
|
1452
1489
|
return obj;
|
|
1453
1490
|
var res = Object.create(constructor.prototype);
|
|
1454
1491
|
for (var m in obj)
|
|
1455
|
-
if (
|
|
1492
|
+
if (!inheritedProps.has(m))
|
|
1456
1493
|
try {
|
|
1457
1494
|
res[m] = obj[m];
|
|
1458
1495
|
}
|
|
@@ -1574,7 +1611,7 @@
|
|
|
1574
1611
|
var result = wantResults ? results : lastResult;
|
|
1575
1612
|
if (numFailures === 0)
|
|
1576
1613
|
return result;
|
|
1577
|
-
throw new BulkError(_this.name
|
|
1614
|
+
throw new BulkError("".concat(_this.name, ".bulkAdd(): ").concat(numFailures, " of ").concat(numObjects, " operations failed"), failures);
|
|
1578
1615
|
});
|
|
1579
1616
|
});
|
|
1580
1617
|
};
|
|
@@ -1599,7 +1636,7 @@
|
|
|
1599
1636
|
var result = wantResults ? results : lastResult;
|
|
1600
1637
|
if (numFailures === 0)
|
|
1601
1638
|
return result;
|
|
1602
|
-
throw new BulkError(_this.name
|
|
1639
|
+
throw new BulkError("".concat(_this.name, ".bulkPut(): ").concat(numFailures, " of ").concat(numObjects, " operations failed"), failures);
|
|
1603
1640
|
});
|
|
1604
1641
|
});
|
|
1605
1642
|
};
|
|
@@ -1612,7 +1649,7 @@
|
|
|
1612
1649
|
var numFailures = _a.numFailures, lastResult = _a.lastResult, failures = _a.failures;
|
|
1613
1650
|
if (numFailures === 0)
|
|
1614
1651
|
return lastResult;
|
|
1615
|
-
throw new BulkError(_this.name
|
|
1652
|
+
throw new BulkError("".concat(_this.name, ".bulkDelete(): ").concat(numFailures, " of ").concat(numKeys, " operations failed"), failures);
|
|
1616
1653
|
});
|
|
1617
1654
|
};
|
|
1618
1655
|
return Table;
|
|
@@ -2946,7 +2983,7 @@
|
|
|
2946
2983
|
":id" :
|
|
2947
2984
|
typeof keyPath === 'string' ?
|
|
2948
2985
|
keyPath :
|
|
2949
|
-
"["
|
|
2986
|
+
"[".concat(keyPath.join('+'), "]");
|
|
2950
2987
|
}
|
|
2951
2988
|
function createDBCore(db, IdbKeyRange, tmpTrans) {
|
|
2952
2989
|
function extractSchema(db, trans) {
|
|
@@ -3280,7 +3317,7 @@
|
|
|
3280
3317
|
table: function (name) {
|
|
3281
3318
|
var result = tableMap[name];
|
|
3282
3319
|
if (!result)
|
|
3283
|
-
throw new Error("Table '"
|
|
3320
|
+
throw new Error("Table '".concat(name, "' not found"));
|
|
3284
3321
|
return tableMap[name];
|
|
3285
3322
|
},
|
|
3286
3323
|
MIN_KEY: -Infinity,
|
|
@@ -3312,20 +3349,19 @@
|
|
|
3312
3349
|
if (db.core.schema.tables.some(function (tbl) { return tbl.name === tableName; })) {
|
|
3313
3350
|
table.core = db.core.table(tableName);
|
|
3314
3351
|
if (db[tableName] instanceof db.Table) {
|
|
3315
|
-
db[tableName].core = table.core;
|
|
3352
|
+
db[tableName].core = db.vip[tableName].core = table.core;
|
|
3316
3353
|
}
|
|
3317
3354
|
}
|
|
3318
3355
|
});
|
|
3319
3356
|
}
|
|
3320
3357
|
|
|
3321
|
-
function setApiOnPlace(
|
|
3322
|
-
var db = _a._novip;
|
|
3358
|
+
function setApiOnPlace(objs, tableNames, dbschema) {
|
|
3323
3359
|
tableNames.forEach(function (tableName) {
|
|
3324
3360
|
var schema = dbschema[tableName];
|
|
3325
3361
|
objs.forEach(function (obj) {
|
|
3326
3362
|
var propDesc = getPropertyDescriptor(obj, tableName);
|
|
3327
|
-
if (!propDesc || ("value" in propDesc && propDesc.value === undefined)) {
|
|
3328
|
-
if (obj
|
|
3363
|
+
if (!propDesc || ("value" in propDesc && (propDesc.value === undefined || propDesc.value instanceof Table))) {
|
|
3364
|
+
if (obj instanceof Transaction) {
|
|
3329
3365
|
setProp(obj, tableName, {
|
|
3330
3366
|
get: function () { return this.table(tableName); },
|
|
3331
3367
|
set: function (value) {
|
|
@@ -3333,20 +3369,22 @@
|
|
|
3333
3369
|
}
|
|
3334
3370
|
});
|
|
3335
3371
|
}
|
|
3336
|
-
else {
|
|
3337
|
-
obj[tableName] = new
|
|
3372
|
+
else if (obj instanceof Dexie$1) {
|
|
3373
|
+
obj._allTables[tableName] = obj[tableName] = new obj.Table(tableName, schema);
|
|
3338
3374
|
}
|
|
3339
3375
|
}
|
|
3340
3376
|
});
|
|
3341
3377
|
});
|
|
3342
3378
|
}
|
|
3343
|
-
function removeTablesApi(
|
|
3344
|
-
var db = _a._novip;
|
|
3379
|
+
function removeTablesApi(objs) {
|
|
3345
3380
|
objs.forEach(function (obj) {
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3381
|
+
(obj instanceof Dexie$1 ? [obj, obj._allTables] : [obj]).forEach(function (obj) {
|
|
3382
|
+
for (var key in obj) {
|
|
3383
|
+
if (obj[key] instanceof Table) {
|
|
3384
|
+
delete obj[key];
|
|
3385
|
+
}
|
|
3386
|
+
}
|
|
3387
|
+
});
|
|
3350
3388
|
});
|
|
3351
3389
|
}
|
|
3352
3390
|
function lowerVersionFirst(a, b) {
|
|
@@ -3414,8 +3452,8 @@
|
|
|
3414
3452
|
diff.del.forEach(function (table) {
|
|
3415
3453
|
upgradeSchema_1[table] = oldSchema[table];
|
|
3416
3454
|
});
|
|
3417
|
-
removeTablesApi(
|
|
3418
|
-
setApiOnPlace(
|
|
3455
|
+
removeTablesApi([db.Transaction.prototype]);
|
|
3456
|
+
setApiOnPlace([db.Transaction.prototype], keys(upgradeSchema_1), upgradeSchema_1);
|
|
3419
3457
|
trans.schema = upgradeSchema_1;
|
|
3420
3458
|
var contentUpgradeIsAsync_1 = isAsyncFunction(contentUpgrade);
|
|
3421
3459
|
if (contentUpgradeIsAsync_1) {
|
|
@@ -3440,8 +3478,8 @@
|
|
|
3440
3478
|
var newSchema = version._cfg.dbschema;
|
|
3441
3479
|
deleteRemovedTables(newSchema, idbtrans);
|
|
3442
3480
|
}
|
|
3443
|
-
removeTablesApi(
|
|
3444
|
-
setApiOnPlace(
|
|
3481
|
+
removeTablesApi([db.Transaction.prototype]);
|
|
3482
|
+
setApiOnPlace([db.Transaction.prototype], db._storeNames, db._dbSchema);
|
|
3445
3483
|
trans.schema = db._dbSchema;
|
|
3446
3484
|
});
|
|
3447
3485
|
});
|
|
@@ -3553,7 +3591,7 @@
|
|
|
3553
3591
|
db.verno = idbdb.version / 10;
|
|
3554
3592
|
var globalSchema = db._dbSchema = buildGlobalSchema(db, idbdb, tmpTrans);
|
|
3555
3593
|
db._storeNames = slice(idbdb.objectStoreNames, 0);
|
|
3556
|
-
setApiOnPlace(db,
|
|
3594
|
+
setApiOnPlace([db, db.vip], keys(globalSchema), globalSchema);
|
|
3557
3595
|
}
|
|
3558
3596
|
function verifyInstalledSchema(db, tmpTrans) {
|
|
3559
3597
|
var installedSchema = buildGlobalSchema(db, db.idbdb, tmpTrans);
|
|
@@ -3618,7 +3656,7 @@
|
|
|
3618
3656
|
});
|
|
3619
3657
|
};
|
|
3620
3658
|
Version.prototype.stores = function (stores) {
|
|
3621
|
-
var db = this.db;
|
|
3659
|
+
var db = this.db._novip;
|
|
3622
3660
|
this._cfg.storesSource = this._cfg.storesSource ?
|
|
3623
3661
|
extend(this._cfg.storesSource, stores) :
|
|
3624
3662
|
stores;
|
|
@@ -3631,8 +3669,8 @@
|
|
|
3631
3669
|
version._parseStoresSpec(storesSpec, dbschema);
|
|
3632
3670
|
});
|
|
3633
3671
|
db._dbSchema = dbschema;
|
|
3634
|
-
removeTablesApi(db,
|
|
3635
|
-
setApiOnPlace(db,
|
|
3672
|
+
removeTablesApi([db, db.vip, db.Transaction.prototype]);
|
|
3673
|
+
setApiOnPlace([db, db.vip, db.Transaction.prototype], keys(dbschema), dbschema);
|
|
3636
3674
|
db._storeNames = keys(dbschema);
|
|
3637
3675
|
return this;
|
|
3638
3676
|
};
|
|
@@ -3650,7 +3688,6 @@
|
|
|
3650
3688
|
version: versionNumber,
|
|
3651
3689
|
storesSource: null,
|
|
3652
3690
|
dbschema: {},
|
|
3653
|
-
tables: {},
|
|
3654
3691
|
contentUpgrade: null
|
|
3655
3692
|
};
|
|
3656
3693
|
});
|
|
@@ -3753,7 +3790,7 @@
|
|
|
3753
3790
|
req.result.close();
|
|
3754
3791
|
var delreq = indexedDB.deleteDatabase(dbName);
|
|
3755
3792
|
delreq.onsuccess = delreq.onerror = wrap(function () {
|
|
3756
|
-
reject(new exceptions.NoSuchDatabase("Database "
|
|
3793
|
+
reject(new exceptions.NoSuchDatabase("Database ".concat(dbName, " doesnt exist")));
|
|
3757
3794
|
});
|
|
3758
3795
|
}
|
|
3759
3796
|
else {
|
|
@@ -4419,7 +4456,7 @@
|
|
|
4419
4456
|
var trans = req.trans;
|
|
4420
4457
|
var mutatedParts = trans.mutatedParts || (trans.mutatedParts = {});
|
|
4421
4458
|
var getRangeSet = function (indexName) {
|
|
4422
|
-
var part = "idb://"
|
|
4459
|
+
var part = "idb://".concat(dbName, "/").concat(tableName, "/").concat(indexName);
|
|
4423
4460
|
return (mutatedParts[part] ||
|
|
4424
4461
|
(mutatedParts[part] = new RangeSet()));
|
|
4425
4462
|
};
|
|
@@ -4480,7 +4517,7 @@
|
|
|
4480
4517
|
var subscr = PSD.subscr;
|
|
4481
4518
|
if (subscr) {
|
|
4482
4519
|
var getRangeSet = function (indexName) {
|
|
4483
|
-
var part = "idb://"
|
|
4520
|
+
var part = "idb://".concat(dbName, "/").concat(tableName, "/").concat(indexName);
|
|
4484
4521
|
return (subscr[part] ||
|
|
4485
4522
|
(subscr[part] = new RangeSet()));
|
|
4486
4523
|
};
|
|
@@ -4652,16 +4689,16 @@
|
|
|
4652
4689
|
this.WhereClause = createWhereClauseConstructor(this);
|
|
4653
4690
|
this.on("versionchange", function (ev) {
|
|
4654
4691
|
if (ev.newVersion > 0)
|
|
4655
|
-
console.warn("Another connection wants to upgrade database '"
|
|
4692
|
+
console.warn("Another connection wants to upgrade database '".concat(_this.name, "'. Closing db now to resume the upgrade."));
|
|
4656
4693
|
else
|
|
4657
|
-
console.warn("Another connection wants to delete database '"
|
|
4694
|
+
console.warn("Another connection wants to delete database '".concat(_this.name, "'. Closing db now to resume the delete request."));
|
|
4658
4695
|
_this.close();
|
|
4659
4696
|
});
|
|
4660
4697
|
this.on("blocked", function (ev) {
|
|
4661
4698
|
if (!ev.newVersion || ev.newVersion < ev.oldVersion)
|
|
4662
|
-
console.warn("Dexie.delete('"
|
|
4699
|
+
console.warn("Dexie.delete('".concat(_this.name, "') was blocked"));
|
|
4663
4700
|
else
|
|
4664
|
-
console.warn("Upgrade '"
|
|
4701
|
+
console.warn("Upgrade '".concat(_this.name, "' blocked by other connection holding version ").concat(ev.oldVersion / 10));
|
|
4665
4702
|
});
|
|
4666
4703
|
this._maxKey = getMaxKey(options.IDBKeyRange);
|
|
4667
4704
|
this._createTransaction = function (mode, storeNames, dbschema, parentTransaction) { return new _this.Transaction(mode, storeNames, dbschema, _this._options.chromeTransactionDurability, parentTransaction); };
|
|
@@ -4675,7 +4712,11 @@
|
|
|
4675
4712
|
this.use(hooksMiddleware);
|
|
4676
4713
|
this.use(observabilityMiddleware);
|
|
4677
4714
|
this.use(cacheExistingValuesMiddleware);
|
|
4678
|
-
|
|
4715
|
+
var vipDexie = Object.create(this);
|
|
4716
|
+
vipDexie._vip = true;
|
|
4717
|
+
vipDexie.Table = createTableConstructor(vipDexie);
|
|
4718
|
+
vipDexie._allTables = {};
|
|
4719
|
+
this.vip = vipDexie;
|
|
4679
4720
|
addons.forEach(function (addon) { return addon(_this); });
|
|
4680
4721
|
}
|
|
4681
4722
|
Dexie.prototype.version = function (versionNumber) {
|
|
@@ -4875,7 +4916,7 @@
|
|
|
4875
4916
|
};
|
|
4876
4917
|
Dexie.prototype.table = function (tableName) {
|
|
4877
4918
|
if (!hasOwn(this._allTables, tableName)) {
|
|
4878
|
-
throw new exceptions.InvalidTable("Table "
|
|
4919
|
+
throw new exceptions.InvalidTable("Table ".concat(tableName, " does not exist"));
|
|
4879
4920
|
}
|
|
4880
4921
|
return this._allTables[tableName];
|
|
4881
4922
|
};
|
|
@@ -4949,8 +4990,9 @@
|
|
|
4949
4990
|
}
|
|
4950
4991
|
};
|
|
4951
4992
|
var doQuery = function () {
|
|
4952
|
-
if (querying || closed)
|
|
4993
|
+
if (querying || closed) {
|
|
4953
4994
|
return;
|
|
4995
|
+
}
|
|
4954
4996
|
accumMuts = {};
|
|
4955
4997
|
var subscr = {};
|
|
4956
4998
|
var ret = execute(subscr);
|
|
@@ -4961,8 +5003,9 @@
|
|
|
4961
5003
|
querying = true;
|
|
4962
5004
|
Promise.resolve(ret).then(function (result) {
|
|
4963
5005
|
querying = false;
|
|
4964
|
-
if (closed)
|
|
5006
|
+
if (closed) {
|
|
4965
5007
|
return;
|
|
5008
|
+
}
|
|
4966
5009
|
if (shouldNotify()) {
|
|
4967
5010
|
doQuery();
|
|
4968
5011
|
}
|
|
@@ -4972,9 +5015,11 @@
|
|
|
4972
5015
|
observer.next && observer.next(result);
|
|
4973
5016
|
}
|
|
4974
5017
|
}, function (err) {
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
5018
|
+
if (!['DatabaseClosedError', 'AbortError'].includes(err === null || err === void 0 ? void 0 : err.name)) {
|
|
5019
|
+
querying = false;
|
|
5020
|
+
observer.error && observer.error(err);
|
|
5021
|
+
subscription.unsubscribe();
|
|
5022
|
+
}
|
|
4978
5023
|
});
|
|
4979
5024
|
};
|
|
4980
5025
|
doQuery();
|
|
@@ -5173,6 +5218,8 @@
|
|
|
5173
5218
|
__proto__: null,
|
|
5174
5219
|
Dexie: Dexie$1,
|
|
5175
5220
|
liveQuery: liveQuery,
|
|
5221
|
+
Entity: Entity,
|
|
5222
|
+
cmp: cmp,
|
|
5176
5223
|
'default': Dexie$1,
|
|
5177
5224
|
RangeSet: RangeSet,
|
|
5178
5225
|
mergeRanges: mergeRanges,
|