@nu-art/firebase-backend 0.400.14 → 0.401.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.
@@ -3,16 +3,15 @@
3
3
  */
4
4
  import { Module } from '@nu-art/ts-common';
5
5
  import { FirebaseSession_Admin } from './auth/FirebaseSession_Admin.js';
6
- import { TestResetListener } from '@nu-art/ts-common/testing/types';
7
6
  type ConfigType = {
8
7
  isEmulator?: boolean;
9
8
  };
10
9
  export declare const FIREBASE_DEFAULT_PROJECT_ID = "local";
11
- export declare class ModuleBE_Firebase_Class extends Module<ConfigType> implements TestResetListener {
10
+ export declare class ModuleBE_Firebase_Class extends Module<ConfigType> {
12
11
  private readonly adminSessions;
13
12
  constructor();
14
13
  protected init(): void;
15
- __resetForTests(): Promise<void>;
14
+ destroy(): Promise<void>;
16
15
  createAdminSession(authKey?: string): FirebaseSession_Admin;
17
16
  createModuleStateFirebaseRef<T>(module: Module, _relativePath: string): import("./index.js").FirebaseRef<T>;
18
17
  }
@@ -20,7 +20,6 @@
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";
24
23
  import { readFileSync } from 'fs';
25
24
  import { ModuleBE_Auth } from '@nu-art/google-services-backend';
26
25
  import { deleteApp, getApps } from 'firebase-admin/app';
@@ -32,8 +31,8 @@ export class ModuleBE_Firebase_Class extends Module {
32
31
  }
33
32
  init() {
34
33
  }
35
- async __resetForTests() {
36
- this.logWarning('__resetForTests');
34
+ async destroy() {
35
+ this.logWarning('destroy');
37
36
  for (const key in this.adminSessions)
38
37
  delete this.adminSessions[key];
39
38
  await Promise.all(getApps().map(app => deleteApp(app)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nu-art/firebase-backend",
3
- "version": "0.400.14",
3
+ "version": "0.401.1",
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.400.14",
38
+ "@nu-art/firebase-shared": "0.401.1",
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.400.14",
43
- "@nu-art/ts-common": "0.400.14",
42
+ "@nu-art/google-services-backend": "0.401.1",
43
+ "@nu-art/ts-common": "0.401.1",
44
44
  "express": "^4.18.2",
45
45
  "firebase": "^11.9.0",
46
46
  "firebase-admin": "13.4.0",