dexie-cloud-addon 4.0.1-beta.32 → 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.
@@ -1,7 +1,7 @@
1
1
  import Dexie, { liveQuery, cmp } from 'dexie';
2
2
  import { BehaviorSubject, fromEvent, of, merge, from as from$1, Observable as Observable$1, Subscription as Subscription$1, Subject, combineLatest, map as map$1, share, timer as timer$1, throwError } 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
@@ -88,7 +88,7 @@ function __spreadArray$1(to, from, pack) {
88
88
  ar[i] = from[i];
89
89
  }
90
90
  }
91
- return to.concat(ar || Array.prototype.slice.call(from));
91
+ return to.concat(ar || from);
92
92
  }
93
93
 
94
94
  /* ==========================================================================
@@ -101,14 +101,14 @@ function __spreadArray$1(to, from, pack) {
101
101
  *
102
102
  * ==========================================================================
103
103
  *
104
- * Version 4.0.1-beta.32, Fri Mar 10 2023
104
+ * Version 4.0.1-beta.34, Mon Mar 27 2023
105
105
  *
106
106
  * https://dexie.org
107
107
  *
108
108
  * Apache License Version 2.0, January 2004, http://www.apache.org/licenses/
109
109
  *
110
110
  */
111
- /******************************************************************************
111
+ /*! *****************************************************************************
112
112
  Copyright (c) Microsoft Corporation.
113
113
 
114
114
  Permission to use, copy, modify, and/or distribute this software for any
@@ -273,7 +273,7 @@ function __spreadArray(to, from, pack) {
273
273
  ar[i] = from[i];
274
274
  }
275
275
  }
276
- return to.concat(ar || Array.prototype.slice.call(from));
276
+ return to.concat(ar || from);
277
277
  }
278
278
  function __await(v) {
279
279
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -1400,6 +1400,7 @@ var AsyncAction = (function (_super) {
1400
1400
  return _this;
1401
1401
  }
1402
1402
  AsyncAction.prototype.schedule = function (state, delay) {
1403
+ var _a;
1403
1404
  if (delay === void 0) {
1404
1405
  delay = 0;
1405
1406
  }
@@ -1414,7 +1415,7 @@ var AsyncAction = (function (_super) {
1414
1415
  }
1415
1416
  this.pending = true;
1416
1417
  this.delay = delay;
1417
- this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
1418
+ this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);
1418
1419
  return this;
1419
1420
  };
1420
1421
  AsyncAction.prototype.requestAsyncId = function (scheduler, _id, delay) {
@@ -1430,7 +1431,9 @@ var AsyncAction = (function (_super) {
1430
1431
  if (delay != null && this.delay === delay && this.pending === false) {
1431
1432
  return id;
1432
1433
  }
1433
- intervalProvider.clearInterval(id);
1434
+ if (id != null) {
1435
+ intervalProvider.clearInterval(id);
1436
+ }
1434
1437
  return undefined;
1435
1438
  };
1436
1439
  AsyncAction.prototype.execute = function (state, delay) {
@@ -1509,7 +1512,6 @@ var AsyncScheduler = (function (_super) {
1509
1512
  var _this = _super.call(this, SchedulerAction, now) || this;
1510
1513
  _this.actions = [];
1511
1514
  _this._active = false;
1512
- _this._scheduled = undefined;
1513
1515
  return _this;
1514
1516
  }
1515
1517
  AsyncScheduler.prototype.flush = function (action) {
@@ -1908,7 +1910,7 @@ function delayWhen(delayDurationSelector, subscriptionDelay) {
1908
1910
  return concat$1(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
1909
1911
  };
1910
1912
  }
1911
- return mergeMap(function (value, index) { return delayDurationSelector(value, index).pipe(take(1), mapTo(value)); });
1913
+ return mergeMap(function (value, index) { return innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)); });
1912
1914
  }
1913
1915
  function delay(due, scheduler) {
1914
1916
  if (scheduler === void 0) {
@@ -6960,7 +6962,7 @@ function dexieCloud(dexie) {
6960
6962
  currentUserEmitter.next(UNAUTHORIZED_USER);
6961
6963
  });
6962
6964
  dexie.cloud = {
6963
- version: '4.0.1-beta.32',
6965
+ version: '4.0.1-beta.34',
6964
6966
  options: Object.assign({}, DEFAULT_OPTIONS),
6965
6967
  schema: null,
6966
6968
  get currentUserId() {
@@ -7293,7 +7295,7 @@ function dexieCloud(dexie) {
7293
7295
  });
7294
7296
  }
7295
7297
  }
7296
- dexieCloud.version = '4.0.1-beta.32';
7298
+ dexieCloud.version = '4.0.1-beta.34';
7297
7299
  Dexie.Cloud = dexieCloud;
7298
7300
 
7299
7301
  export { dexieCloud as default, dexieCloud, getTiedObjectId, getTiedRealmId };