@bagelink/auth 1.6.75 → 1.7.1
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.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/useAuth.d.ts +1 -1
- package/package.json +1 -1
- package/src/useAuth.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1905,7 +1905,7 @@ function accountToUser(account) {
|
|
|
1905
1905
|
let authApi = null;
|
|
1906
1906
|
let eventEmitter = null;
|
|
1907
1907
|
const accountInfo = vue.ref(null);
|
|
1908
|
-
function initAuth(params
|
|
1908
|
+
function initAuth(params) {
|
|
1909
1909
|
if (authApi === null) {
|
|
1910
1910
|
authApi = new AuthApi(params.baseURL);
|
|
1911
1911
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1903,7 +1903,7 @@ function accountToUser(account) {
|
|
|
1903
1903
|
let authApi = null;
|
|
1904
1904
|
let eventEmitter = null;
|
|
1905
1905
|
const accountInfo = ref(null);
|
|
1906
|
-
function initAuth(params
|
|
1906
|
+
function initAuth(params) {
|
|
1907
1907
|
if (authApi === null) {
|
|
1908
1908
|
authApi = new AuthApi(params.baseURL);
|
|
1909
1909
|
}
|
package/dist/useAuth.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AccountInfo, User, NewUser, UpdatePasswordForm, UpdateAccountRequest, A
|
|
|
3
3
|
interface InitParams {
|
|
4
4
|
baseURL: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function initAuth(params
|
|
6
|
+
export declare function initAuth(params: InitParams): {
|
|
7
7
|
on<K extends AuthState>(event: K, handler: AuthEventMap[K]): void;
|
|
8
8
|
off<K extends AuthState>(event: K, handler: AuthEventMap[K]): void;
|
|
9
9
|
removeAllListeners<K extends AuthState>(event?: K): void;
|
package/package.json
CHANGED
package/src/useAuth.ts
CHANGED