sveltedfire 0.1.23 → 0.1.25
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/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { type AuthSig } from './sveltedfire/auth/AuthSig.js';
|
|
|
11
11
|
export { authState } from './sveltedfire/auth/authState.svelte';
|
|
12
12
|
export { handleForm } from './sveltedfire/utilities/handleForm.js';
|
|
13
13
|
export { USER_INVALIDATION_NAME } from './sveltedfire/constants.js';
|
|
14
|
+
export { getSveltedFunctions } from './sveltedfire/utilities/getSveltedFunctions.js';
|
|
14
15
|
import SignedIn from './sveltedfire/components/SignedIn.svelte';
|
|
15
16
|
import SignedOut from './sveltedfire/components/SignedOut.svelte';
|
|
16
17
|
import SveltedAuth from "./sveltedfire/components/SveltedAuth.svelte";
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ export {} from './sveltedfire/auth/AuthSig.js';
|
|
|
12
12
|
export { authState } from './sveltedfire/auth/authState.svelte';
|
|
13
13
|
export { handleForm } from './sveltedfire/utilities/handleForm.js';
|
|
14
14
|
export { USER_INVALIDATION_NAME } from './sveltedfire/constants.js';
|
|
15
|
+
export { getSveltedFunctions } from './sveltedfire/utilities/getSveltedFunctions.js';
|
|
15
16
|
import SignedIn from './sveltedfire/components/SignedIn.svelte';
|
|
16
17
|
import SignedOut from './sveltedfire/components/SignedOut.svelte';
|
|
17
18
|
import SveltedAuth from "./sveltedfire/components/SveltedAuth.svelte";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getAuth, type User } from 'firebase/auth'
|
|
3
|
+
import { getFunctions } from 'firebase/functions'
|
|
3
4
|
import { authState } from '../auth/authState.svelte'
|
|
4
5
|
import { USER_INVALIDATION_NAME } from '../constants.js'
|
|
5
6
|
import { invalidate } from '$app/navigation';
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
})
|
|
16
17
|
|
|
17
18
|
const auth = getAuth()
|
|
19
|
+
const functions = getFunctions()
|
|
18
20
|
|
|
19
21
|
auth.authStateReady().then(() => {
|
|
20
22
|
console.log('Received authStateReady')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getSveltedFunctions: () => import("@firebase/functions").Functions;
|