@edgedev/firebase 1.4.4 → 1.4.6

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.
Files changed (2) hide show
  1. package/edgeFirebase.ts +5 -5
  2. package/package.json +1 -1
package/edgeFirebase.ts CHANGED
@@ -210,7 +210,7 @@ export const EdgeFirebase = class {
210
210
  }
211
211
  }
212
212
  this.user.specialPermissions = specialPermissions;
213
- this.listCollectionsCanAssign()
213
+ await this.listCollectionsCanAssign()
214
214
  }
215
215
  const metaUnsubscribe = onSnapshot(
216
216
  doc(this.db, "users", this.user.email),
@@ -1071,7 +1071,7 @@ export const EdgeFirebase = class {
1071
1071
  userList[user.email] = {
1072
1072
  docId: user.docId,
1073
1073
  email: user.email,
1074
- roles: [{collectionPathCheck, role: user.roles[collectionPathCheck].role }],
1074
+ roles: [{collectionPath: collectionPathCheck, role: user.roles[collectionPathCheck].role }],
1075
1075
  specialPermissions: [],
1076
1076
  meta: user.meta,
1077
1077
  last_updated: user.last_updated,
@@ -1079,7 +1079,7 @@ export const EdgeFirebase = class {
1079
1079
  uid: user.uid
1080
1080
  }
1081
1081
  } else {
1082
- userList[user.email].roles.push({ collectionPathCheck, role: user.roles[collectionPathCheck].role })
1082
+ userList[user.email].roles.push({ collectionPath: collectionPathCheck, role: user.roles[collectionPathCheck].role })
1083
1083
  }
1084
1084
  });
1085
1085
  const specialPermissionsUsers = await getDocs(
@@ -1099,14 +1099,14 @@ export const EdgeFirebase = class {
1099
1099
  docId: user.docId,
1100
1100
  email: user.email,
1101
1101
  role: [],
1102
- specialPermissions: [{ collectionPathCheck, permissions: user.specialPermissions[collectionPathCheck].permissions }],
1102
+ specialPermissions: [{ collectionPath: collectionPathCheck, permissions: user.specialPermissions[collectionPathCheck].permissions }],
1103
1103
  meta: user.meta,
1104
1104
  last_updated: user.last_updated,
1105
1105
  userId: user.userId,
1106
1106
  uid: user.uid
1107
1107
  }
1108
1108
  } else {
1109
- userList[user.email].specialPermissions.push({ collectionPathCheck, permissions: user.specialPermissions[collectionPathCheck].permissions })
1109
+ userList[user.email].specialPermissions.push({ collectionPath: collectionPathCheck, permissions: user.specialPermissions[collectionPathCheck].permissions })
1110
1110
  }
1111
1111
  });
1112
1112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "Vue 3 / Nuxt 3 Plugin or Nuxt 3 global composable for firebase authentication and firestore.",
5
5
  "main": "index.ts",
6
6
  "scripts": {