@edgedev/firebase 1.9.11 → 1.9.14

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.
package/edgeFirebase.ts CHANGED
@@ -485,7 +485,7 @@ export const EdgeFirebase = class {
485
485
  if (resultData.success) {
486
486
  return this.sendResponse({
487
487
  success: true,
488
- message: "",
488
+ message: "line 488",
489
489
  meta: {}
490
490
  });
491
491
  } else {
@@ -573,7 +573,7 @@ export const EdgeFirebase = class {
573
573
  this.logAnalyticsEvent("sign_up", { uid: response.user.uid});
574
574
  return this.sendResponse({
575
575
  success: true,
576
- message: "",
576
+ message: "line 576",
577
577
  meta: {}
578
578
  });
579
579
 
@@ -592,7 +592,7 @@ export const EdgeFirebase = class {
592
592
  await sendPasswordResetEmail(this.auth, email);
593
593
  return this.sendResponse({
594
594
  success: true,
595
- message: "",
595
+ message: "line 595",
596
596
  meta: {}
597
597
  });
598
598
  } catch (error) {
@@ -613,7 +613,7 @@ export const EdgeFirebase = class {
613
613
  await confirmPasswordReset(this.auth, oobCode, password);
614
614
  return this.sendResponse({
615
615
  success: true,
616
- message: "",
616
+ message: "line 616",
617
617
  meta: {}
618
618
  });
619
619
  } catch (error) {
@@ -639,7 +639,7 @@ export const EdgeFirebase = class {
639
639
  await updatePassword(user, password);
640
640
  return this.sendResponse({
641
641
  success: true,
642
- message: "",
642
+ message: "line 642",
643
643
  meta: {}
644
644
  });
645
645
  } catch (error) {
@@ -661,7 +661,7 @@ export const EdgeFirebase = class {
661
661
  }
662
662
  return this.sendResponse({
663
663
  success: true,
664
- message: "",
664
+ message: "line 664",
665
665
  meta: {}
666
666
  });
667
667
  };
@@ -701,7 +701,7 @@ export const EdgeFirebase = class {
701
701
  const response = await this.runFunction("removeNonRegisteredUser", {uid: this.user.uid, docId});
702
702
  return this.sendResponse({
703
703
  success: true,
704
- message: "",
704
+ message: "line 704",
705
705
  meta: {response}
706
706
  });
707
707
  } else {
@@ -726,7 +726,7 @@ export const EdgeFirebase = class {
726
726
  this.logOut();
727
727
  return this.sendResponse({
728
728
  success: true,
729
- message: "",
729
+ message: "line 729",
730
730
  meta: {}
731
731
  });
732
732
  } else {
@@ -981,7 +981,7 @@ export const EdgeFirebase = class {
981
981
  }
982
982
  return {
983
983
  success: true,
984
- message: "",
984
+ message: "line 984",
985
985
  meta: {}
986
986
  }
987
987
  };
@@ -1255,7 +1255,7 @@ export const EdgeFirebase = class {
1255
1255
  }
1256
1256
  return sendResponse({
1257
1257
  success: true,
1258
- message: "",
1258
+ message: "line 1258",
1259
1259
  meta: {}
1260
1260
  });
1261
1261
  } else {
@@ -1333,7 +1333,7 @@ export const EdgeFirebase = class {
1333
1333
  this.unsubscibe[collectionPath + '/' + docId] = unsubscribe;
1334
1334
  return this.sendResponse({
1335
1335
  success: true,
1336
- message: "",
1336
+ message: "line 1336",
1337
1337
  meta: {}
1338
1338
  });
1339
1339
  } else {
@@ -1376,7 +1376,7 @@ export const EdgeFirebase = class {
1376
1376
  firstRun = false;
1377
1377
  resolve(this.sendResponse({
1378
1378
  success: true,
1379
- message: "",
1379
+ message: "startSnapshot " + collectionPath,
1380
1380
  meta: {}
1381
1381
  }));
1382
1382
  } else { // reject if no items fetched
@@ -1410,7 +1410,10 @@ export const EdgeFirebase = class {
1410
1410
  private usersSnapshotStarting = false;
1411
1411
 
1412
1412
  public startUsersSnapshot = async(collectionPath = ''): Promise<void> => {
1413
+ console.log('startUsersSnapshot', collectionPath);
1414
+ console.log(this.usersSnapshotStarting)
1413
1415
  if (!this.usersSnapshotStarting) {
1416
+ console.log('startUsersSnapshot', collectionPath);
1414
1417
  this.usersSnapshotStarting = true;
1415
1418
  this.stopSnapshot("staged-users");
1416
1419
  this.state.users = {};
@@ -1489,7 +1492,7 @@ export const EdgeFirebase = class {
1489
1492
  });
1490
1493
  return this.sendResponse({
1491
1494
  success: true,
1492
- message: "",
1495
+ message: "line 1492",
1493
1496
  meta: {}
1494
1497
  });
1495
1498
  } else {
@@ -1520,7 +1523,7 @@ export const EdgeFirebase = class {
1520
1523
  });
1521
1524
  return this.sendResponse({
1522
1525
  success: true,
1523
- message: "",
1526
+ message: "line 1523",
1524
1527
  meta: {}
1525
1528
  });
1526
1529
  } else {
@@ -1556,7 +1559,7 @@ export const EdgeFirebase = class {
1556
1559
  });
1557
1560
  return this.sendResponse({
1558
1561
  success: true,
1559
- message: "",
1562
+ message: "line 1559",
1560
1563
  meta: {}
1561
1564
  });
1562
1565
  } else {
@@ -1599,7 +1602,7 @@ export const EdgeFirebase = class {
1599
1602
  uid: this.user.uid } );
1600
1603
  return this.sendResponse({
1601
1604
  success: true,
1602
- message: "",
1605
+ message: "line 1602",
1603
1606
  meta: {}
1604
1607
  });
1605
1608
  } else {
@@ -1634,7 +1637,7 @@ export const EdgeFirebase = class {
1634
1637
  await deleteDoc(doc(this.db, "collection-data", collectionPath.replaceAll("/", "-")));
1635
1638
  return this.sendResponse({
1636
1639
  success: true,
1637
- message: "",
1640
+ message: "line 1637",
1638
1641
  meta: {}
1639
1642
  });
1640
1643
  } else {
@@ -1679,7 +1682,7 @@ export const EdgeFirebase = class {
1679
1682
 
1680
1683
  return this.sendResponse({
1681
1684
  success: true,
1682
- message: "",
1685
+ message: "line 1682",
1683
1686
  meta: {}
1684
1687
  });
1685
1688
  } else {
@@ -1728,7 +1731,7 @@ export const EdgeFirebase = class {
1728
1731
  await updateDoc(doc(this.db, collectionPath, docId), cloneItem);
1729
1732
  return this.sendResponse({
1730
1733
  success: true,
1731
- message: "",
1734
+ message: "line 1731",
1732
1735
  meta: {}
1733
1736
  });
1734
1737
  }
@@ -1751,7 +1754,7 @@ export const EdgeFirebase = class {
1751
1754
  }
1752
1755
  return this.sendResponse({
1753
1756
  success: true,
1754
- message: "",
1757
+ message: "line 1754",
1755
1758
  meta: {}
1756
1759
  });
1757
1760
  }
@@ -1788,7 +1791,7 @@ export const EdgeFirebase = class {
1788
1791
  await setDoc(doc(this.db, collectionPath, docId), cloneItem);
1789
1792
  return this.sendResponse({
1790
1793
  success: true,
1791
- message: "",
1794
+ message: "line 1791",
1792
1795
  meta: {docId}
1793
1796
  });
1794
1797
  } else {
@@ -1816,7 +1819,7 @@ export const EdgeFirebase = class {
1816
1819
  );
1817
1820
  return this.sendResponse({
1818
1821
  success: true,
1819
- message: "",
1822
+ message: "1819",
1820
1823
  meta: {docId: docRef.id}
1821
1824
  });
1822
1825
  }
@@ -1839,7 +1842,7 @@ export const EdgeFirebase = class {
1839
1842
  await deleteDoc(doc(this.db, collectionPath, docId));
1840
1843
  return this.sendResponse({
1841
1844
  success: true,
1842
- message: "",
1845
+ message: "line 1842",
1843
1846
  meta: {}
1844
1847
  });
1845
1848
  } else {
package/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { EdgeFirebase } from "./edgeFirebase";
2
2
  export default {
3
- install: (app, options, isPersistant) => {
4
- const eFb = new EdgeFirebase(options, isPersistant);
3
+ install: (app, options, isPersistant, enablePopupRedirect) => {
4
+ const eFb = new EdgeFirebase(options, isPersistant, enablePopupRedirect);
5
5
  app.provide("edgeFirebase", eFb);
6
6
  }
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "1.9.11",
3
+ "version": "1.9.14",
4
4
  "description": "Vue 3 / Nuxt 3 Plugin or Nuxt 3 plugin for firebase authentication and firestore.",
5
5
  "main": "index.ts",
6
6
  "scripts": {