@edgedev/firebase 1.5.5 → 1.5.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 +1 -1
  2. package/package.json +1 -1
package/edgeFirebase.ts CHANGED
@@ -1130,12 +1130,12 @@ export const EdgeFirebase = class {
1130
1130
  const keys = Object.keys(this.usersByCollections).filter((key) => key.startsWith('ROLES|') || key.startsWith('SPECIALPERMISSIONS|'));
1131
1131
  keys.forEach((key) => {
1132
1132
  this.stopSnapshot(key);
1133
+ delete this.usersByCollections[key];
1133
1134
  });
1134
1135
  }
1135
1136
 
1136
1137
  public startUsersSnapshot = (collectionPath = ''): void => {
1137
1138
  this.stopUsersSnapshot();
1138
- this.usersByCollections = {};
1139
1139
  for (const collectionPathCheck of this.user.canAssignCollectionPaths) {
1140
1140
 
1141
1141
  if (collectionPathCheck.startsWith(collectionPath.replaceAll('/', '-'))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "1.5.5",
3
+ "version": "1.5.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": {