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.
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * ==========================================================================
10
10
  *
11
- * Version 4.0.1-beta.33, Sat Mar 11 2023
11
+ * Version 4.0.1-beta.34, Mon Mar 27 2023
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -19,7 +19,7 @@
19
19
  import Dexie, { cmp, liveQuery } from 'dexie';
20
20
  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';
21
21
 
22
- /******************************************************************************
22
+ /*! *****************************************************************************
23
23
  Copyright (c) Microsoft Corporation.
24
24
 
25
25
  Permission to use, copy, modify, and/or distribute this software for any
@@ -124,7 +124,7 @@ function __spreadArray(to, from, pack) {
124
124
  ar[i] = from[i];
125
125
  }
126
126
  }
127
- return to.concat(ar || Array.prototype.slice.call(from));
127
+ return to.concat(ar || from);
128
128
  }
129
129
 
130
130
  function __await(v) {
@@ -1299,6 +1299,7 @@ var AsyncAction = (function (_super) {
1299
1299
  return _this;
1300
1300
  }
1301
1301
  AsyncAction.prototype.schedule = function (state, delay) {
1302
+ var _a;
1302
1303
  if (delay === void 0) { delay = 0; }
1303
1304
  if (this.closed) {
1304
1305
  return this;
@@ -1311,7 +1312,7 @@ var AsyncAction = (function (_super) {
1311
1312
  }
1312
1313
  this.pending = true;
1313
1314
  this.delay = delay;
1314
- this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
1315
+ this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);
1315
1316
  return this;
1316
1317
  };
1317
1318
  AsyncAction.prototype.requestAsyncId = function (scheduler, _id, delay) {
@@ -1323,7 +1324,9 @@ var AsyncAction = (function (_super) {
1323
1324
  if (delay != null && this.delay === delay && this.pending === false) {
1324
1325
  return id;
1325
1326
  }
1326
- intervalProvider.clearInterval(id);
1327
+ if (id != null) {
1328
+ intervalProvider.clearInterval(id);
1329
+ }
1327
1330
  return undefined;
1328
1331
  };
1329
1332
  AsyncAction.prototype.execute = function (state, delay) {
@@ -1399,7 +1402,6 @@ var AsyncScheduler = (function (_super) {
1399
1402
  var _this = _super.call(this, SchedulerAction, now) || this;
1400
1403
  _this.actions = [];
1401
1404
  _this._active = false;
1402
- _this._scheduled = undefined;
1403
1405
  return _this;
1404
1406
  }
1405
1407
  AsyncScheduler.prototype.flush = function (action) {
@@ -1809,7 +1811,7 @@ function delayWhen(delayDurationSelector, subscriptionDelay) {
1809
1811
  return concat$1(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
1810
1812
  };
1811
1813
  }
1812
- return mergeMap(function (value, index) { return delayDurationSelector(value, index).pipe(take(1), mapTo(value)); });
1814
+ return mergeMap(function (value, index) { return innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)); });
1813
1815
  }
1814
1816
 
1815
1817
  function delay(due, scheduler) {
@@ -5962,7 +5964,7 @@ function dexieCloud(dexie) {
5962
5964
  currentUserEmitter.next(UNAUTHORIZED_USER);
5963
5965
  });
5964
5966
  dexie.cloud = {
5965
- version: '4.0.1-beta.33',
5967
+ version: '4.0.1-beta.34',
5966
5968
  options: Object.assign({}, DEFAULT_OPTIONS),
5967
5969
  schema: null,
5968
5970
  get currentUserId() {
@@ -6217,7 +6219,7 @@ function dexieCloud(dexie) {
6217
6219
  });
6218
6220
  }
6219
6221
  }
6220
- dexieCloud.version = '4.0.1-beta.33';
6222
+ dexieCloud.version = '4.0.1-beta.34';
6221
6223
  Dexie.Cloud = dexieCloud;
6222
6224
 
6223
6225
  export { dexieCloud as default, dexieCloud, getTiedObjectId, getTiedRealmId };