dexie-cloud-addon 4.0.8 → 4.0.11

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.8, Tue Jun 04 2024
11
+ * Version 4.0.11, Wed Jan 15 2025
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -2824,7 +2824,7 @@ var numberDef = {
2824
2824
  },
2825
2825
  };
2826
2826
 
2827
- const bigIntDef = {
2827
+ const bigIntDef$1 = {
2828
2828
  bigint: {
2829
2829
  replace: (realVal) => {
2830
2830
  return { $t: "bigint", v: "" + realVal };
@@ -3067,7 +3067,7 @@ var BlobDef = {
3067
3067
 
3068
3068
  const builtin = {
3069
3069
  ...numberDef,
3070
- ...bigIntDef,
3070
+ ...bigIntDef$1,
3071
3071
  ...DateDef,
3072
3072
  ...SetDef,
3073
3073
  ...MapDef,
@@ -3177,7 +3177,7 @@ class FakeBigInt {
3177
3177
  this.v = value;
3178
3178
  }
3179
3179
  }
3180
- const defs = Object.assign(Object.assign(Object.assign({}, undefinedDef), (hasBigIntSupport
3180
+ const bigIntDef = hasBigIntSupport
3181
3181
  ? {}
3182
3182
  : {
3183
3183
  bigint: {
@@ -3185,17 +3185,19 @@ const defs = Object.assign(Object.assign(Object.assign({}, undefinedDef), (hasBi
3185
3185
  replace: (fakeBigInt) => {
3186
3186
  return Object.assign({ $t: 'bigint' }, fakeBigInt);
3187
3187
  },
3188
- revive: ({ v, }) => new FakeBigInt(v)
3189
- }
3190
- })), { PropModification: {
3188
+ revive: ({ v }) => new FakeBigInt(v),
3189
+ },
3190
+ };
3191
+ const defs = Object.assign(Object.assign(Object.assign({}, undefinedDef), bigIntDef), { PropModification: {
3191
3192
  test: (val) => val instanceof PropModification,
3192
3193
  replace: (propModification) => {
3193
- return Object.assign({ $t: 'PropModification' }, propModification);
3194
+ return Object.assign({ $t: 'PropModification' }, propModification['@@propmod']);
3194
3195
  },
3195
3196
  revive: (_a) => {
3196
- var propModification = __rest(_a, ["$t"]);
3197
- return new PropModification(propModification);
3198
- }
3197
+ var propModSpec = __rest(_a, ["$t"]) // keep the rest
3198
+ ;
3199
+ return new PropModification(propModSpec);
3200
+ },
3199
3201
  } });
3200
3202
  const TSON = TypesonSimplified(builtin, defs);
3201
3203
  const BISON = Bison(defs);
@@ -6303,7 +6305,7 @@ function dexieCloud(dexie) {
6303
6305
  const syncComplete = new Subject();
6304
6306
  dexie.cloud = {
6305
6307
  // @ts-ignore
6306
- version: "4.0.8",
6308
+ version: "4.0.11",
6307
6309
  options: Object.assign({}, DEFAULT_OPTIONS),
6308
6310
  schema: null,
6309
6311
  get currentUserId() {
@@ -6598,7 +6600,7 @@ function dexieCloud(dexie) {
6598
6600
  }
6599
6601
  }
6600
6602
  // @ts-ignore
6601
- dexieCloud.version = "4.0.8";
6603
+ dexieCloud.version = "4.0.11";
6602
6604
  Dexie.Cloud = dexieCloud;
6603
6605
 
6604
6606
  // In case the SW lives for a while, let it reuse already opened connections: