@nu-art/firebase-backend 0.401.1 → 0.401.2
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/ModuleBE_Firebase.d.ts +1 -1
- package/ModuleBE_Firebase.js +3 -2
- package/index.d.ts +8 -8
- package/index.js +8 -8
- package/package.json +9 -4
- package/v1.d.ts +21 -0
- package/v1.js +38 -0
package/ModuleBE_Firebase.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare class ModuleBE_Firebase_Class extends Module<ConfigType> {
|
|
|
11
11
|
private readonly adminSessions;
|
|
12
12
|
constructor();
|
|
13
13
|
protected init(): void;
|
|
14
|
-
|
|
14
|
+
__resetForTests(): Promise<void>;
|
|
15
15
|
createAdminSession(authKey?: string): FirebaseSession_Admin;
|
|
16
16
|
createModuleStateFirebaseRef<T>(module: Module, _relativePath: string): import("./index.js").FirebaseRef<T>;
|
|
17
17
|
}
|
package/ModuleBE_Firebase.js
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { Module } from '@nu-art/ts-common';
|
|
22
22
|
import { FirebaseSession_Admin } from './auth/FirebaseSession_Admin.js';
|
|
23
|
+
// import {FirebaseSession_UserPassword} from "./auth/FirebaseSession_UserPassword.js";
|
|
23
24
|
import { readFileSync } from 'fs';
|
|
24
25
|
import { ModuleBE_Auth } from '@nu-art/google-services-backend';
|
|
25
26
|
import { deleteApp, getApps } from 'firebase-admin/app';
|
|
@@ -31,8 +32,8 @@ export class ModuleBE_Firebase_Class extends Module {
|
|
|
31
32
|
}
|
|
32
33
|
init() {
|
|
33
34
|
}
|
|
34
|
-
async
|
|
35
|
-
this.logWarning('
|
|
35
|
+
async __resetForTests() {
|
|
36
|
+
this.logWarning('__resetForTests');
|
|
36
37
|
for (const key in this.adminSessions)
|
|
37
38
|
delete this.adminSessions[key];
|
|
38
39
|
await Promise.all(getApps().map(app => deleteApp(app)));
|
package/index.d.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
export * from './auth/firebase-session.js';
|
|
2
2
|
export * from './auth/FirebaseSession_Admin.js';
|
|
3
|
-
export * from './functions/firebase-function.js';
|
|
4
|
-
export * from './ModuleBE_Firebase.js';
|
|
5
|
-
export * from './firestore/FirestoreInterface.js';
|
|
6
|
-
export * from './firestore/FirestoreCollection.js';
|
|
7
|
-
export * from './firestore/FirestoreTransaction.js';
|
|
8
|
-
export * from './firestore/FirestoreWrapperBE.js';
|
|
9
|
-
export * from './firestore/types.js';
|
|
10
3
|
export * from './database/DatabaseWrapperBE.js';
|
|
11
4
|
export * from './storage/types.js';
|
|
12
|
-
export * from './
|
|
5
|
+
export * from './firestore-v3/consts.js';
|
|
6
|
+
export * from './firestore-v3/DocWrapperV3.js';
|
|
7
|
+
export * from './firestore-v3/FirestoreCollectionV3.js';
|
|
8
|
+
export * from './firestore-v3/FirestoreInterfaceV3.js';
|
|
9
|
+
export * from './firestore-v3/FirestoreWrapperBEV3.js';
|
|
10
|
+
export * from './firestore-v3/types.js';
|
|
13
11
|
export * from './push/PushMessagesWrapperBE.js';
|
|
14
12
|
export * from './push/types.js';
|
|
13
|
+
export * from './storage/StorageWrapperBE.js';
|
|
15
14
|
export * from './functions-v2/ModuleBE_BaseFunction.js';
|
|
16
15
|
export * from './functions-v2/ModuleBE_ExpressFunction_V2.js';
|
|
17
16
|
export * from './functions-v2/ModuleBE_FirebaseDBListener.js';
|
|
@@ -19,3 +18,4 @@ export * from './functions-v2/ModuleBE_FirebaseScheduler.js';
|
|
|
19
18
|
export * from './functions-v2/ModuleBE_FirestoreListener.js';
|
|
20
19
|
export * from './functions-v2/ModuleBE_PubSubFunction.js';
|
|
21
20
|
export * from './functions-v2/ModuleBE_StorageListener.js';
|
|
21
|
+
export * from './ModuleBE_Firebase.js';
|
package/index.js
CHANGED
|
@@ -17,18 +17,17 @@
|
|
|
17
17
|
*/
|
|
18
18
|
export * from './auth/firebase-session.js';
|
|
19
19
|
export * from './auth/FirebaseSession_Admin.js';
|
|
20
|
-
export * from './functions/firebase-function.js';
|
|
21
|
-
export * from './ModuleBE_Firebase.js';
|
|
22
|
-
export * from './firestore/FirestoreInterface.js';
|
|
23
|
-
export * from './firestore/FirestoreCollection.js';
|
|
24
|
-
export * from './firestore/FirestoreTransaction.js';
|
|
25
|
-
export * from './firestore/FirestoreWrapperBE.js';
|
|
26
|
-
export * from './firestore/types.js';
|
|
27
20
|
export * from './database/DatabaseWrapperBE.js';
|
|
28
21
|
export * from './storage/types.js';
|
|
29
|
-
export * from './
|
|
22
|
+
export * from './firestore-v3/consts.js';
|
|
23
|
+
export * from './firestore-v3/DocWrapperV3.js';
|
|
24
|
+
export * from './firestore-v3/FirestoreCollectionV3.js';
|
|
25
|
+
export * from './firestore-v3/FirestoreInterfaceV3.js';
|
|
26
|
+
export * from './firestore-v3/FirestoreWrapperBEV3.js';
|
|
27
|
+
export * from './firestore-v3/types.js';
|
|
30
28
|
export * from './push/PushMessagesWrapperBE.js';
|
|
31
29
|
export * from './push/types.js';
|
|
30
|
+
export * from './storage/StorageWrapperBE.js';
|
|
32
31
|
export * from './functions-v2/ModuleBE_BaseFunction.js';
|
|
33
32
|
export * from './functions-v2/ModuleBE_ExpressFunction_V2.js';
|
|
34
33
|
export * from './functions-v2/ModuleBE_FirebaseDBListener.js';
|
|
@@ -36,3 +35,4 @@ export * from './functions-v2/ModuleBE_FirebaseScheduler.js';
|
|
|
36
35
|
export * from './functions-v2/ModuleBE_FirestoreListener.js';
|
|
37
36
|
export * from './functions-v2/ModuleBE_PubSubFunction.js';
|
|
38
37
|
export * from './functions-v2/ModuleBE_StorageListener.js';
|
|
38
|
+
export * from './ModuleBE_Firebase.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nu-art/firebase-backend",
|
|
3
|
-
"version": "0.401.
|
|
3
|
+
"version": "0.401.2",
|
|
4
4
|
"description": "Storm - Express & Typescript based backend framework Backend",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TacB0sS",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"test-v2": "ts-mocha -w -p src/test/tsconfig.json --timeout 0 --inspect=8107 --watch-files '**/*.ts' src/test/firestore-v2/__test.ts"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@nu-art/firebase-shared": "0.401.
|
|
38
|
+
"@nu-art/firebase-shared": "0.401.2",
|
|
39
39
|
"@google-cloud/common": "^5.0.2",
|
|
40
40
|
"@google-cloud/firestore": "^7.11.0",
|
|
41
41
|
"@google-cloud/storage": "^7.15.0",
|
|
42
|
-
"@nu-art/google-services-backend": "0.401.
|
|
43
|
-
"@nu-art/ts-common": "0.401.
|
|
42
|
+
"@nu-art/google-services-backend": "0.401.2",
|
|
43
|
+
"@nu-art/ts-common": "0.401.2",
|
|
44
44
|
"express": "^4.18.2",
|
|
45
45
|
"firebase": "^11.9.0",
|
|
46
46
|
"firebase-admin": "13.4.0",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"ws": "^8.13.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
+
"@nu-art/testalot": "0.401.2",
|
|
54
55
|
"@types/compression": "^1.0.1",
|
|
55
56
|
"@types/chai": "^4.3.4",
|
|
56
57
|
"@types/mocha": "^10.0.1",
|
|
@@ -67,6 +68,10 @@
|
|
|
67
68
|
"types": "./index.d.ts",
|
|
68
69
|
"import": "./index.js"
|
|
69
70
|
},
|
|
71
|
+
"./v1": {
|
|
72
|
+
"types": "./v1.d.ts",
|
|
73
|
+
"import": "./v1.js"
|
|
74
|
+
},
|
|
70
75
|
"./*": {
|
|
71
76
|
"types": "./*.d.ts",
|
|
72
77
|
"import": "./*.js"
|
package/v1.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './auth/firebase-session.js';
|
|
2
|
+
export * from './auth/FirebaseSession_Admin.js';
|
|
3
|
+
export * from './functions/firebase-function.js';
|
|
4
|
+
export * from './ModuleBE_Firebase.js';
|
|
5
|
+
export * from './firestore/FirestoreInterface.js';
|
|
6
|
+
export * from './firestore/FirestoreCollection.js';
|
|
7
|
+
export * from './firestore/FirestoreTransaction.js';
|
|
8
|
+
export * from './firestore/FirestoreWrapperBE.js';
|
|
9
|
+
export * from './firestore/types.js';
|
|
10
|
+
export * from './database/DatabaseWrapperBE.js';
|
|
11
|
+
export * from './storage/types.js';
|
|
12
|
+
export * from './storage/StorageWrapperBE.js';
|
|
13
|
+
export * from './push/PushMessagesWrapperBE.js';
|
|
14
|
+
export * from './push/types.js';
|
|
15
|
+
export * from './functions-v2/ModuleBE_BaseFunction.js';
|
|
16
|
+
export * from './functions-v2/ModuleBE_ExpressFunction_V2.js';
|
|
17
|
+
export * from './functions-v2/ModuleBE_FirebaseDBListener.js';
|
|
18
|
+
export * from './functions-v2/ModuleBE_FirebaseScheduler.js';
|
|
19
|
+
export * from './functions-v2/ModuleBE_FirestoreListener.js';
|
|
20
|
+
export * from './functions-v2/ModuleBE_PubSubFunction.js';
|
|
21
|
+
export * from './functions-v2/ModuleBE_StorageListener.js';
|
package/v1.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Firebase is a simpler Typescript wrapper to all of firebase services.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2020 Adam van der Kruk aka TacB0sS
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
export * from './auth/firebase-session.js';
|
|
19
|
+
export * from './auth/FirebaseSession_Admin.js';
|
|
20
|
+
export * from './functions/firebase-function.js';
|
|
21
|
+
export * from './ModuleBE_Firebase.js';
|
|
22
|
+
export * from './firestore/FirestoreInterface.js';
|
|
23
|
+
export * from './firestore/FirestoreCollection.js';
|
|
24
|
+
export * from './firestore/FirestoreTransaction.js';
|
|
25
|
+
export * from './firestore/FirestoreWrapperBE.js';
|
|
26
|
+
export * from './firestore/types.js';
|
|
27
|
+
export * from './database/DatabaseWrapperBE.js';
|
|
28
|
+
export * from './storage/types.js';
|
|
29
|
+
export * from './storage/StorageWrapperBE.js';
|
|
30
|
+
export * from './push/PushMessagesWrapperBE.js';
|
|
31
|
+
export * from './push/types.js';
|
|
32
|
+
export * from './functions-v2/ModuleBE_BaseFunction.js';
|
|
33
|
+
export * from './functions-v2/ModuleBE_ExpressFunction_V2.js';
|
|
34
|
+
export * from './functions-v2/ModuleBE_FirebaseDBListener.js';
|
|
35
|
+
export * from './functions-v2/ModuleBE_FirebaseScheduler.js';
|
|
36
|
+
export * from './functions-v2/ModuleBE_FirestoreListener.js';
|
|
37
|
+
export * from './functions-v2/ModuleBE_PubSubFunction.js';
|
|
38
|
+
export * from './functions-v2/ModuleBE_StorageListener.js';
|