dexie-cloud-addon 4.0.1-beta.50 → 4.0.1-beta.52

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.50, Sat Oct 28 2023
11
+ * Version 4.0.1-beta.52, Mon Oct 30 2023
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -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());
@@ -6213,7 +6213,7 @@
6213
6213
  const syncComplete = new rxjs.Subject();
6214
6214
  dexie.cloud = {
6215
6215
  // @ts-ignore
6216
- version: "4.0.1-beta.50",
6216
+ version: "4.0.1-beta.52",
6217
6217
  options: Object.assign({}, DEFAULT_OPTIONS),
6218
6218
  schema: null,
6219
6219
  get currentUserId() {
@@ -6490,7 +6490,7 @@
6490
6490
  }
6491
6491
  }
6492
6492
  // @ts-ignore
6493
- dexieCloud.version = "4.0.1-beta.50";
6493
+ dexieCloud.version = "4.0.1-beta.52";
6494
6494
  Dexie.Cloud = dexieCloud;
6495
6495
 
6496
6496
  // In case the SW lives for a while, let it reuse already opened connections: