@edgedev/firebase 2.0.1 → 2.0.3

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
@@ -110,7 +110,7 @@ interface UserDataObject {
110
110
  firebaseUser: object;
111
111
  oAuthCredential: { accessToken: string; idToken: string;}
112
112
  loggedIn: boolean;
113
- loggingIn: boolean;
113
+ loggingIn: boolean | null;
114
114
  logInError: boolean;
115
115
  logInErrorMessage: string;
116
116
  meta: object;
@@ -424,6 +424,7 @@ export const EdgeFirebase = class {
424
424
 
425
425
  private setOnAuthStateChanged = (): void => {
426
426
  onAuthStateChanged(this.auth, (userAuth) => {
427
+ console.log('onAuthStateChanged')
427
428
  const oldDiv = document.getElementById("recaptcha-container");
428
429
  if (oldDiv) oldDiv.remove();
429
430
  if (userAuth) {
@@ -1222,7 +1223,7 @@ export const EdgeFirebase = class {
1222
1223
  public user: UserDataObject = reactive({
1223
1224
  uid: null,
1224
1225
  email: "",
1225
- loggingIn: false,
1226
+ loggingIn: null,
1226
1227
  loggedIn: false,
1227
1228
  logInError: false,
1228
1229
  logInErrorMessage: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
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": {
package/src/config.js CHANGED
@@ -4,12 +4,28 @@ const admin = require('firebase-admin')
4
4
  admin.initializeApp()
5
5
 
6
6
  const { onCall, HttpsError } = require('firebase-functions/v2/https')
7
+ const { onSchedule } = require('firebase-functions/v2/scheduler')
8
+ const {
9
+ onDocumentWritten,
10
+ onDocumentCreated,
11
+ onDocumentUpdated,
12
+ onDocumentDeleted,
13
+ Change,
14
+ FirestoreEvent,
15
+ } = require('firebase-functions/v2/firestore')
7
16
  const { logger } = require('firebase-functions/v2')
8
17
  const { getFirestore } = require('firebase-admin/firestore')
9
18
  const twilio = require('twilio')
10
19
  const db = getFirestore()
11
20
 
12
21
  module.exports = {
22
+ onSchedule,
23
+ onDocumentWritten,
24
+ onDocumentCreated,
25
+ onDocumentUpdated,
26
+ onDocumentDeleted,
27
+ Change,
28
+ FirestoreEvent,
13
29
  onCall,
14
30
  HttpsError,
15
31
  logger,
@@ -19,3 +35,4 @@ module.exports = {
19
35
  twilio,
20
36
  db,
21
37
  }
38
+