@nx-ddd/common 20.67.0 → 20.73.0

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.
@@ -134,10 +134,10 @@ function TransformToDate() {
134
134
  }
135
135
 
136
136
  class Repository {
137
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: Repository, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
138
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: Repository });
137
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: Repository, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
138
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: Repository });
139
139
  }
140
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: Repository, decorators: [{
140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: Repository, decorators: [{
141
141
  type: Injectable
142
142
  }] });
143
143
 
@@ -63,10 +63,10 @@ class ChromiumService {
63
63
  }
64
64
  }
65
65
  }
66
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ChromiumService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
67
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ChromiumService, providedIn: 'root' });
66
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ChromiumService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
67
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ChromiumService, providedIn: 'root' });
68
68
  }
69
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ChromiumService, decorators: [{
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ChromiumService, decorators: [{
70
70
  type: Injectable,
71
71
  args: [{ providedIn: 'root' }]
72
72
  }] });
@@ -6,7 +6,7 @@ import { switchMap, of, Observable } from 'rxjs';
6
6
 
7
7
  class CloudStorageService {
8
8
  storage = inject(Storage);
9
- task = signal(null, ...(ngDevMode ? [{ debugName: "task" }] : []));
9
+ task = signal(null, ...(ngDevMode ? [{ debugName: "task" }] : /* istanbul ignore next */ []));
10
10
  task$ = toObservable(this.task);
11
11
  progress = toSignal(this.task$.pipe(switchMap(task => task ? this.convertToObservable(task) : of(null))));
12
12
  progress$ = toObservable(this.progress);
@@ -30,10 +30,10 @@ class CloudStorageService {
30
30
  this.task()?.cancel();
31
31
  this.task.set(null);
32
32
  }
33
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: CloudStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
34
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: CloudStorageService, providedIn: 'any' });
33
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CloudStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
34
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CloudStorageService, providedIn: 'any' });
35
35
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: CloudStorageService, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CloudStorageService, decorators: [{
37
37
  type: Injectable,
38
38
  args: [{ providedIn: 'any' }]
39
39
  }] });
@@ -1,10 +1,11 @@
1
- import admin from 'firebase-admin';
1
+ import { getAuth } from 'firebase-admin/auth';
2
+ import { getFirestore } from 'firebase-admin/firestore';
2
3
  import { FIREBASE_ADMIN } from '@nx-ddd/common/infrastructure/externals/firebase-admin/token';
3
4
 
4
5
  function provideFirebaseAdmin() {
5
6
  return {
6
7
  provide: FIREBASE_ADMIN,
7
- useValue: admin,
8
+ useValue: { auth: () => getAuth(), firestore: () => getFirestore() },
8
9
  };
9
10
  }
10
11
 
@@ -7,10 +7,10 @@ class OpenAiServiceImpl extends OpenAI {
7
7
  constructor(config = inject(OPENAI_CONFIG)) {
8
8
  super(config);
9
9
  }
10
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OpenAiServiceImpl, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
11
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OpenAiServiceImpl, providedIn: 'root' });
10
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: OpenAiServiceImpl, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
11
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: OpenAiServiceImpl, providedIn: 'root' });
12
12
  }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OpenAiServiceImpl, decorators: [{
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: OpenAiServiceImpl, decorators: [{
14
14
  type: Injectable,
15
15
  args: [{ providedIn: 'root' }]
16
16
  }], ctorParameters: () => [{ type: undefined }] });
@@ -7,10 +7,10 @@ class StripeServiceImpl extends Stripe {
7
7
  constructor(config) {
8
8
  super(config.secretKey);
9
9
  }
10
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: StripeServiceImpl, deps: [{ token: STRIPE_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
11
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: StripeServiceImpl });
10
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: StripeServiceImpl, deps: [{ token: STRIPE_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
11
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: StripeServiceImpl });
12
12
  }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: StripeServiceImpl, decorators: [{
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: StripeServiceImpl, decorators: [{
14
14
  type: Injectable
15
15
  }], ctorParameters: () => [{ type: undefined, decorators: [{
16
16
  type: Inject,
@@ -38,10 +38,10 @@ class CachedQueryFactory {
38
38
  create(repository, indexedDb) {
39
39
  return new CachedQuery(repository, indexedDb);
40
40
  }
41
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: CachedQueryFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
42
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: CachedQueryFactory, providedIn: 'root' });
41
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CachedQueryFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
42
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CachedQueryFactory, providedIn: 'root' });
43
43
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: CachedQueryFactory, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CachedQueryFactory, decorators: [{
45
45
  type: Injectable,
46
46
  args: [{ providedIn: 'root' }]
47
47
  }] });
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@nx-ddd/common",
3
- "version": "20.67.0",
3
+ "version": "20.73.0",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
- "@nx-ddd/core": "20.67.0"
6
+ "@nx-ddd/core": "20.73.0"
7
7
  },
8
8
  "dependencies": {
9
9
  "tslib": "^2.3.0"
@@ -1,10 +1,13 @@
1
+ import * as firebase_admin_auth from 'firebase-admin/auth';
1
2
  import * as _angular_core from '@angular/core';
2
- import * as _nx_ddd_common_infrastructure_externals_firebase_admin_token from '@nx-ddd/common/infrastructure/externals/firebase-admin/token';
3
- import admin from 'firebase-admin';
3
+ import { FirebaseAdmin } from '@nx-ddd/common/infrastructure/externals/firebase-admin/token';
4
4
 
5
5
  declare function provideFirebaseAdmin(): {
6
- provide: _angular_core.InjectionToken<_nx_ddd_common_infrastructure_externals_firebase_admin_token.FirebaseAdmin>;
7
- useValue: typeof admin;
6
+ provide: _angular_core.InjectionToken<FirebaseAdmin>;
7
+ useValue: {
8
+ auth: () => firebase_admin_auth.Auth;
9
+ firestore: () => FirebaseFirestore.Firestore;
10
+ };
8
11
  };
9
12
 
10
13
  export { provideFirebaseAdmin };
@@ -1,10 +1,10 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- import admin from 'firebase-admin';
2
+ import { Auth } from 'firebase-admin/auth';
3
+ import { Firestore } from 'firebase-admin/firestore';
3
4
 
4
5
  interface FirebaseAdmin {
5
- auth(): admin.auth.Auth;
6
- firestore(): admin.firestore.Firestore;
7
- settings(): admin.firestore.Settings;
6
+ auth(): Auth;
7
+ firestore(): Firestore;
8
8
  }
9
9
  declare const FIREBASE_ADMIN: InjectionToken<FirebaseAdmin>;
10
10