@pisell/utils 1.0.10 → 1.0.12
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/es/index.d.ts +0 -1
- package/es/index.js +1 -1
- package/lib/firebase/index.d.ts +10 -10
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -19
- package/package.json +2 -1
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/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
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/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
5
|
var __copyProps = (to, from, except, desc) => {
|
|
12
6
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
7
|
for (let key of __getOwnPropNames(from))
|
|
@@ -17,21 +11,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
11
|
return to;
|
|
18
12
|
};
|
|
19
13
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
15
|
|
|
30
16
|
// src/index.ts
|
|
31
17
|
var src_exports = {};
|
|
32
|
-
__export(src_exports, {
|
|
33
|
-
firebase: () => import_firebase.default
|
|
34
|
-
});
|
|
35
18
|
module.exports = __toCommonJS(src_exports);
|
|
36
19
|
__reExport(src_exports, require("./otherUtils"), module.exports);
|
|
37
20
|
__reExport(src_exports, require("./typeUtils"), module.exports);
|
|
@@ -39,10 +22,8 @@ __reExport(src_exports, require("./document"), module.exports);
|
|
|
39
22
|
__reExport(src_exports, require("./date"), module.exports);
|
|
40
23
|
__reExport(src_exports, require("./platform"), module.exports);
|
|
41
24
|
__reExport(src_exports, require("./log"), module.exports);
|
|
42
|
-
var import_firebase = __toESM(require("./firebase"));
|
|
43
25
|
// Annotate the CommonJS export names for ESM import in node:
|
|
44
26
|
0 && (module.exports = {
|
|
45
|
-
firebase,
|
|
46
27
|
...require("./otherUtils"),
|
|
47
28
|
...require("./typeUtils"),
|
|
48
29
|
...require("./document"),
|