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.
@@ -8,7 +8,7 @@
8
8
 
9
9
  var Dexie__default = /*#__PURE__*/_interopDefaultLegacy(Dexie);
10
10
 
11
- /******************************************************************************
11
+ /*! *****************************************************************************
12
12
  Copyright (c) Microsoft Corporation.
13
13
 
14
14
  Permission to use, copy, modify, and/or distribute this software for any
@@ -95,7 +95,7 @@
95
95
  ar[i] = from[i];
96
96
  }
97
97
  }
98
- return to.concat(ar || Array.prototype.slice.call(from));
98
+ return to.concat(ar || from);
99
99
  }
100
100
 
101
101
  /* ==========================================================================
@@ -108,14 +108,14 @@
108
108
  *
109
109
  * ==========================================================================
110
110
  *
111
- * Version 4.0.1-beta.32, Fri Mar 10 2023
111
+ * Version 4.0.1-beta.34, Mon Mar 27 2023
112
112
  *
113
113
  * https://dexie.org
114
114
  *
115
115
  * Apache License Version 2.0, January 2004, http://www.apache.org/licenses/
116
116
  *
117
117
  */
118
- /******************************************************************************
118
+ /*! *****************************************************************************
119
119
  Copyright (c) Microsoft Corporation.
120
120
 
121
121
  Permission to use, copy, modify, and/or distribute this software for any
@@ -280,7 +280,7 @@
280
280
  ar[i] = from[i];
281
281
  }
282
282
  }
283
- return to.concat(ar || Array.prototype.slice.call(from));
283
+ return to.concat(ar || from);
284
284
  }
285
285
  function __await(v) {
286
286
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -1407,6 +1407,7 @@
1407
1407
  return _this;
1408
1408
  }
1409
1409
  AsyncAction.prototype.schedule = function (state, delay) {
1410
+ var _a;
1410
1411
  if (delay === void 0) {
1411
1412
  delay = 0;
1412
1413
  }
@@ -1421,7 +1422,7 @@
1421
1422
  }
1422
1423
  this.pending = true;
1423
1424
  this.delay = delay;
1424
- this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
1425
+ this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);
1425
1426
  return this;
1426
1427
  };
1427
1428
  AsyncAction.prototype.requestAsyncId = function (scheduler, _id, delay) {
@@ -1437,7 +1438,9 @@
1437
1438
  if (delay != null && this.delay === delay && this.pending === false) {
1438
1439
  return id;
1439
1440
  }
1440
- intervalProvider.clearInterval(id);
1441
+ if (id != null) {
1442
+ intervalProvider.clearInterval(id);
1443
+ }
1441
1444
  return undefined;
1442
1445
  };
1443
1446
  AsyncAction.prototype.execute = function (state, delay) {
@@ -1516,7 +1519,6 @@
1516
1519
  var _this = _super.call(this, SchedulerAction, now) || this;
1517
1520
  _this.actions = [];
1518
1521
  _this._active = false;
1519
- _this._scheduled = undefined;
1520
1522
  return _this;
1521
1523
  }
1522
1524
  AsyncScheduler.prototype.flush = function (action) {
@@ -1915,7 +1917,7 @@
1915
1917
  return concat$1(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
1916
1918
  };
1917
1919
  }
1918
- return mergeMap(function (value, index) { return delayDurationSelector(value, index).pipe(take(1), mapTo(value)); });
1920
+ return mergeMap(function (value, index) { return innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)); });
1919
1921
  }
1920
1922
  function delay(due, scheduler) {
1921
1923
  if (scheduler === void 0) {
@@ -6967,7 +6969,7 @@
6967
6969
  currentUserEmitter.next(UNAUTHORIZED_USER);
6968
6970
  });
6969
6971
  dexie.cloud = {
6970
- version: '4.0.1-beta.32',
6972
+ version: '4.0.1-beta.34',
6971
6973
  options: Object.assign({}, DEFAULT_OPTIONS),
6972
6974
  schema: null,
6973
6975
  get currentUserId() {
@@ -7300,7 +7302,7 @@
7300
7302
  });
7301
7303
  }
7302
7304
  }
7303
- dexieCloud.version = '4.0.1-beta.32';
7305
+ dexieCloud.version = '4.0.1-beta.34';
7304
7306
  Dexie__default["default"].Cloud = dexieCloud;
7305
7307
 
7306
7308
  exports["default"] = dexieCloud;