dexie-cloud-addon 4.0.1-beta.51 → 4.0.1-beta.53

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,9 +8,7 @@ export interface Realm {
8
8
  */
9
9
  name?: string;
10
10
  /** Contains the user-ID of the owner. An owner has implicit full write-access to the realm
11
- * and all obejcts connected to it. Ownership does not imply read (sync) access though,
12
- * so realm owners still needs to add themself as a member if they are going to use the realm
13
- * themselves.
11
+ * and all obejcts connected to it.
14
12
  */
15
13
  owner?: string;
16
14
  }
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * ==========================================================================
10
10
  *
11
- * Version 4.0.1-beta.51, Sat Oct 28 2023
11
+ * Version 4.0.1-beta.53, Sat Dec 02 2023
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -4707,7 +4707,7 @@
4707
4707
  const numWriters = writers.length;
4708
4708
  const promise = (numWriters > 0
4709
4709
  ? writers[numWriters - 1].then(() => fn(req), () => fn(req))
4710
- : fn(req)).finally(() => readers.splice(readers.indexOf(promise)));
4710
+ : fn(req)).finally(() => { readers.splice(readers.indexOf(promise)); });
4711
4711
  readers.push(promise);
4712
4712
  return promise;
4713
4713
  };
@@ -4719,7 +4719,7 @@
4719
4719
  ? writers[writers.length - 1].then(() => fn(req), () => fn(req))
4720
4720
  : readers.length > 0
4721
4721
  ? allSettled(readers).then(() => fn(req))
4722
- : fn(req)).finally(() => writers.shift());
4722
+ : fn(req)).finally(() => { writers.shift(); });
4723
4723
  writers.push(promise);
4724
4724
  return promise;
4725
4725
  };
@@ -6144,7 +6144,7 @@
6144
6144
  const realm = permissionsLookup[realmId || dexie.cloud.currentUserId];
6145
6145
  if (!realm)
6146
6146
  return new PermissionChecker({}, tableName, !owner || owner === dexie.cloud.currentUserId);
6147
- return new PermissionChecker(realm.permissions, tableName, realmId === dexie.cloud.currentUserId || owner === dexie.cloud.currentUserId);
6147
+ return new PermissionChecker(realm.permissions, tableName, realmId === undefined || realmId === dexie.cloud.currentUserId || owner === dexie.cloud.currentUserId);
6148
6148
  };
6149
6149
  const o = source.pipe(map(mapper));
6150
6150
  o.getValue = () => mapper(source.getValue());
@@ -6220,7 +6220,7 @@
6220
6220
  const syncComplete = new rxjs.Subject();
6221
6221
  dexie.cloud = {
6222
6222
  // @ts-ignore
6223
- version: "4.0.1-beta.51",
6223
+ version: "4.0.1-beta.53",
6224
6224
  options: Object.assign({}, DEFAULT_OPTIONS),
6225
6225
  schema: null,
6226
6226
  get currentUserId() {
@@ -6497,7 +6497,7 @@
6497
6497
  }
6498
6498
  }
6499
6499
  // @ts-ignore
6500
- dexieCloud.version = "4.0.1-beta.51";
6500
+ dexieCloud.version = "4.0.1-beta.53";
6501
6501
  Dexie.Cloud = dexieCloud;
6502
6502
 
6503
6503
  exports.default = dexieCloud;