@pisell/utils 1.0.9 → 1.0.11
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/es/firebase/index.d.ts +10 -10
- package/lib/firebase/index.d.ts +10 -10
- package/package.json +3 -2
package/es/firebase/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
declare const firebaseApp:
|
|
1
|
+
declare const firebaseApp: import("firebase/app").FirebaseApp;
|
|
2
2
|
export { firebaseApp };
|
|
3
3
|
export declare const getPath: (path: string) => string;
|
|
4
4
|
export declare const setAuthStateChangeCallback: (callback: (user: any) => void) => void;
|
|
5
|
-
export declare const signUp: (email: string, password: string) => Promise<
|
|
6
|
-
export declare const signInUser: (email: string, password: string) => Promise<
|
|
7
|
-
export declare const signOutUser: () => Promise<
|
|
5
|
+
export declare const signUp: (email: string, password: string) => Promise<import("firebase/auth").User>;
|
|
6
|
+
export declare const signInUser: (email: string, password: string) => Promise<import("firebase/auth").User>;
|
|
7
|
+
export declare const signOutUser: () => Promise<void>;
|
|
8
8
|
export declare const readData: (path: string) => Promise<any>;
|
|
9
|
-
export declare const writeData: (path: string, data: any) => Promise<
|
|
10
|
-
export declare const onDataChange: (path: string, callback: (snapshot: any) => void) =>
|
|
9
|
+
export declare const writeData: (path: string, data: any) => Promise<void>;
|
|
10
|
+
export declare const onDataChange: (path: string, callback: (snapshot: any) => void) => import("firebase/database").Unsubscribe;
|
|
11
11
|
export declare const removeDataListener: (listener: any) => void;
|
|
12
12
|
declare const _default: {
|
|
13
|
-
signInUser: (email: string, password: string) => Promise<
|
|
14
|
-
signOutUser: () => Promise<
|
|
13
|
+
signInUser: (email: string, password: string) => Promise<import("firebase/auth").User>;
|
|
14
|
+
signOutUser: () => Promise<void>;
|
|
15
15
|
readData: (path: string) => Promise<any>;
|
|
16
|
-
writeData: (path: string, data: any) => Promise<
|
|
17
|
-
onDataChange: (path: string, callback: (snapshot: any) => void) =>
|
|
16
|
+
writeData: (path: string, data: any) => Promise<void>;
|
|
17
|
+
onDataChange: (path: string, callback: (snapshot: any) => void) => import("firebase/database").Unsubscribe;
|
|
18
18
|
removeDataListener: (listener: any) => void;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
package/lib/firebase/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
declare const firebaseApp:
|
|
1
|
+
declare const firebaseApp: import("firebase/app").FirebaseApp;
|
|
2
2
|
export { firebaseApp };
|
|
3
3
|
export declare const getPath: (path: string) => string;
|
|
4
4
|
export declare const setAuthStateChangeCallback: (callback: (user: any) => void) => void;
|
|
5
|
-
export declare const signUp: (email: string, password: string) => Promise<
|
|
6
|
-
export declare const signInUser: (email: string, password: string) => Promise<
|
|
7
|
-
export declare const signOutUser: () => Promise<
|
|
5
|
+
export declare const signUp: (email: string, password: string) => Promise<import("firebase/auth").User>;
|
|
6
|
+
export declare const signInUser: (email: string, password: string) => Promise<import("firebase/auth").User>;
|
|
7
|
+
export declare const signOutUser: () => Promise<void>;
|
|
8
8
|
export declare const readData: (path: string) => Promise<any>;
|
|
9
|
-
export declare const writeData: (path: string, data: any) => Promise<
|
|
10
|
-
export declare const onDataChange: (path: string, callback: (snapshot: any) => void) =>
|
|
9
|
+
export declare const writeData: (path: string, data: any) => Promise<void>;
|
|
10
|
+
export declare const onDataChange: (path: string, callback: (snapshot: any) => void) => import("firebase/database").Unsubscribe;
|
|
11
11
|
export declare const removeDataListener: (listener: any) => void;
|
|
12
12
|
declare const _default: {
|
|
13
|
-
signInUser: (email: string, password: string) => Promise<
|
|
14
|
-
signOutUser: () => Promise<
|
|
13
|
+
signInUser: (email: string, password: string) => Promise<import("firebase/auth").User>;
|
|
14
|
+
signOutUser: () => Promise<void>;
|
|
15
15
|
readData: (path: string) => Promise<any>;
|
|
16
|
-
writeData: (path: string, data: any) => Promise<
|
|
17
|
-
onDataChange: (path: string, callback: (snapshot: any) => void) =>
|
|
16
|
+
writeData: (path: string, data: any) => Promise<void>;
|
|
17
|
+
onDataChange: (path: string, callback: (snapshot: any) => void) => import("firebase/database").Unsubscribe;
|
|
18
18
|
removeDataListener: (listener: any) => void;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
|
+
"sideEffects": false,
|
|
4
5
|
"main": "./lib/index.js",
|
|
5
6
|
"module": "./es/index.js",
|
|
6
7
|
"types": "./lib/index.d.ts",
|
|
@@ -10,7 +11,7 @@
|
|
|
10
11
|
"dayjs": "^1.11.9"
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
|
-
"firebase": "
|
|
14
|
+
"firebase": "10.5.0"
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
16
17
|
"es",
|