dexie-cloud-addon 4.0.1-beta.33 → 4.0.1-beta.34
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/modern/dexie-cloud-addon.js +11 -9
- package/dist/modern/dexie-cloud-addon.js.map +1 -1
- package/dist/modern/dexie-cloud-addon.min.js +1 -1
- package/dist/modern/dexie-cloud-addon.min.js.map +1 -1
- package/dist/modern/service-worker.js +10 -8
- package/dist/modern/service-worker.js.map +1 -1
- package/dist/modern/service-worker.min.js +1 -1
- package/dist/modern/service-worker.min.js.map +1 -1
- package/dist/module-es5/dexie-cloud-addon.js +13 -11
- package/dist/module-es5/dexie-cloud-addon.js.map +1 -1
- package/dist/module-es5/dexie-cloud-addon.min.js +1 -1
- package/dist/module-es5/dexie-cloud-addon.min.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.js +13 -11
- package/dist/umd/dexie-cloud-addon.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.min.js +1 -1
- package/dist/umd/dexie-cloud-addon.min.js.map +1 -1
- package/dist/umd/service-worker.js +10 -8
- package/dist/umd/service-worker.js.map +1 -1
- package/dist/umd/service-worker.min.js +1 -1
- package/dist/umd/service-worker.min.js.map +1 -1
- package/dist/umd-modern/dexie-cloud-addon.js +8 -6
- package/dist/umd-modern/dexie-cloud-addon.js.map +1 -1
- package/dist/umd-modern/dexie-cloud-addon.min.js +1 -1
- package/dist/umd-modern/dexie-cloud-addon.min.js.map +1 -1
- package/package.json +4 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Dexie, { cmp, liveQuery } from 'dexie';
|
|
2
2
|
import { Observable as Observable$1, BehaviorSubject, Subject, fromEvent, of, merge, Subscription as Subscription$1, from as from$1, throwError, combineLatest, map as map$1, share, timer as timer$1 } from 'rxjs';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
/*! *****************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
6
6
|
|
|
7
7
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -106,7 +106,7 @@ function __spreadArray(to, from, pack) {
|
|
|
106
106
|
ar[i] = from[i];
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
return to.concat(ar ||
|
|
109
|
+
return to.concat(ar || from);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
function __await(v) {
|
|
@@ -1089,6 +1089,7 @@ var AsyncAction = (function (_super) {
|
|
|
1089
1089
|
return _this;
|
|
1090
1090
|
}
|
|
1091
1091
|
AsyncAction.prototype.schedule = function (state, delay) {
|
|
1092
|
+
var _a;
|
|
1092
1093
|
if (delay === void 0) { delay = 0; }
|
|
1093
1094
|
if (this.closed) {
|
|
1094
1095
|
return this;
|
|
@@ -1101,7 +1102,7 @@ var AsyncAction = (function (_super) {
|
|
|
1101
1102
|
}
|
|
1102
1103
|
this.pending = true;
|
|
1103
1104
|
this.delay = delay;
|
|
1104
|
-
this.id = this.id
|
|
1105
|
+
this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);
|
|
1105
1106
|
return this;
|
|
1106
1107
|
};
|
|
1107
1108
|
AsyncAction.prototype.requestAsyncId = function (scheduler, _id, delay) {
|
|
@@ -1113,7 +1114,9 @@ var AsyncAction = (function (_super) {
|
|
|
1113
1114
|
if (delay != null && this.delay === delay && this.pending === false) {
|
|
1114
1115
|
return id;
|
|
1115
1116
|
}
|
|
1116
|
-
|
|
1117
|
+
if (id != null) {
|
|
1118
|
+
intervalProvider.clearInterval(id);
|
|
1119
|
+
}
|
|
1117
1120
|
return undefined;
|
|
1118
1121
|
};
|
|
1119
1122
|
AsyncAction.prototype.execute = function (state, delay) {
|
|
@@ -1189,7 +1192,6 @@ var AsyncScheduler = (function (_super) {
|
|
|
1189
1192
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
1190
1193
|
_this.actions = [];
|
|
1191
1194
|
_this._active = false;
|
|
1192
|
-
_this._scheduled = undefined;
|
|
1193
1195
|
return _this;
|
|
1194
1196
|
}
|
|
1195
1197
|
AsyncScheduler.prototype.flush = function (action) {
|
|
@@ -1599,7 +1601,7 @@ function delayWhen(delayDurationSelector, subscriptionDelay) {
|
|
|
1599
1601
|
return concat$1(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
|
|
1600
1602
|
};
|
|
1601
1603
|
}
|
|
1602
|
-
return mergeMap(function (value, index) { return delayDurationSelector(value, index).pipe(take(1), mapTo(value)); });
|
|
1604
|
+
return mergeMap(function (value, index) { return innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)); });
|
|
1603
1605
|
}
|
|
1604
1606
|
|
|
1605
1607
|
function delay(due, scheduler) {
|
|
@@ -5937,7 +5939,7 @@ function dexieCloud(dexie) {
|
|
|
5937
5939
|
currentUserEmitter.next(UNAUTHORIZED_USER);
|
|
5938
5940
|
});
|
|
5939
5941
|
dexie.cloud = {
|
|
5940
|
-
version: '4.0.1-beta.
|
|
5942
|
+
version: '4.0.1-beta.34',
|
|
5941
5943
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
5942
5944
|
schema: null,
|
|
5943
5945
|
get currentUserId() {
|
|
@@ -6192,7 +6194,7 @@ function dexieCloud(dexie) {
|
|
|
6192
6194
|
});
|
|
6193
6195
|
}
|
|
6194
6196
|
}
|
|
6195
|
-
dexieCloud.version = '4.0.1-beta.
|
|
6197
|
+
dexieCloud.version = '4.0.1-beta.34';
|
|
6196
6198
|
Dexie.Cloud = dexieCloud;
|
|
6197
6199
|
|
|
6198
6200
|
// In case the SW lives for a while, let it reuse already opened connections:
|