@naturalcycles/backend-lib 9.0.1 → 9.0.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.
@@ -11,7 +11,7 @@ export class FirebaseSharedService {
11
11
  async admin() {
12
12
  const { serviceAccount } = this.cfg;
13
13
  // lazy loading
14
- const admin = await import('firebase-admin');
14
+ const { default: admin } = await import('firebase-admin');
15
15
  const credential = serviceAccount
16
16
  ? admin.credential.cert(serviceAccount)
17
17
  : admin.credential.applicationDefault();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/backend-lib",
3
3
  "type": "module",
4
- "version": "9.0.1",
4
+ "version": "9.0.2",
5
5
  "scripts": {
6
6
  "prepare": "husky",
7
7
  "build": "dev-lib build",
@@ -40,7 +40,7 @@
40
40
  "simple-git": "^3"
41
41
  },
42
42
  "devDependencies": {
43
- "@naturalcycles/bench-lib": "^3",
43
+ "@naturalcycles/bench-lib": "^4",
44
44
  "@naturalcycles/dev-lib": "^17",
45
45
  "@sentry/node": "^9",
46
46
  "@types/ejs": "^3",
@@ -48,7 +48,7 @@ export class FirebaseSharedService {
48
48
  const { serviceAccount } = this.cfg
49
49
 
50
50
  // lazy loading
51
- const admin = await import('firebase-admin')
51
+ const { default: admin } = await import('firebase-admin')
52
52
 
53
53
  const credential = serviceAccount
54
54
  ? admin.credential.cert(serviceAccount)