dexie-cloud-addon 4.0.1-beta.57 → 4.0.1-rc.1

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.57, Wed Feb 14 2024
11
+ * Version 4.0.1-rc.1, Wed Mar 20 2024
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -16,7 +16,7 @@
16
16
  *
17
17
  */
18
18
 
19
- import Dexie, { cmp, liveQuery } from 'dexie';
19
+ import Dexie, { PropModification, cmp, liveQuery } from 'dexie';
20
20
  import { Observable as Observable$1, BehaviorSubject, Subject, firstValueFrom, from as from$1, filter as filter$1, fromEvent, of, merge, Subscription as Subscription$1, throwError, combineLatest, map as map$1, share, timer as timer$1 } from 'rxjs';
21
21
 
22
22
  /******************************************************************************
@@ -50,6 +50,18 @@ function __extends(d, b) {
50
50
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51
51
  }
52
52
 
53
+ function __rest(s, e) {
54
+ var t = {};
55
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
56
+ t[p] = s[p];
57
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
58
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
59
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
60
+ t[p[i]] = s[p[i]];
61
+ }
62
+ return t;
63
+ }
64
+
53
65
  function __awaiter(thisArg, _arguments, P, generator) {
54
66
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
55
67
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -3161,7 +3173,7 @@ class FakeBigInt {
3161
3173
  this.v = value;
3162
3174
  }
3163
3175
  }
3164
- const defs = Object.assign(Object.assign({}, undefinedDef), (hasBigIntSupport
3176
+ const defs = Object.assign(Object.assign(Object.assign({}, undefinedDef), (hasBigIntSupport
3165
3177
  ? {}
3166
3178
  : {
3167
3179
  bigint: {
@@ -3171,7 +3183,16 @@ const defs = Object.assign(Object.assign({}, undefinedDef), (hasBigIntSupport
3171
3183
  },
3172
3184
  revive: ({ v, }) => new FakeBigInt(v)
3173
3185
  }
3174
- }));
3186
+ })), { PropModification: {
3187
+ test: (val) => val instanceof PropModification,
3188
+ replace: (propModification) => {
3189
+ return Object.assign({ $t: 'PropModification' }, propModification);
3190
+ },
3191
+ revive: (_a) => {
3192
+ var propModification = __rest(_a, ["$t"]);
3193
+ return new PropModification(propModification);
3194
+ }
3195
+ } });
3175
3196
  const TSON = TypesonSimplified(builtin, defs);
3176
3197
  const BISON = Bison(defs);
3177
3198
 
@@ -6257,7 +6278,7 @@ function dexieCloud(dexie) {
6257
6278
  const syncComplete = new Subject();
6258
6279
  dexie.cloud = {
6259
6280
  // @ts-ignore
6260
- version: "4.0.1-beta.57",
6281
+ version: "4.0.1-rc.1",
6261
6282
  options: Object.assign({}, DEFAULT_OPTIONS),
6262
6283
  schema: null,
6263
6284
  get currentUserId() {
@@ -6534,7 +6555,7 @@ function dexieCloud(dexie) {
6534
6555
  }
6535
6556
  }
6536
6557
  // @ts-ignore
6537
- dexieCloud.version = "4.0.1-beta.57";
6558
+ dexieCloud.version = "4.0.1-rc.1";
6538
6559
  Dexie.Cloud = dexieCloud;
6539
6560
 
6540
6561
  // In case the SW lives for a while, let it reuse already opened connections: