@infrab4a/connect-nestjs 1.1.0-beta.7 → 1.1.0-beta.8

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/index.cjs.js CHANGED
@@ -324,12 +324,17 @@ exports.NestFirestoreModule = NestFirestoreModule_1 = class NestFirestoreModule
324
324
  exports.NestFirestoreModule = NestFirestoreModule_1 = __decorate([
325
325
  common.Module({
326
326
  providers: [
327
+ {
328
+ provide: ConnectFirestoreService,
329
+ useFactory: (firebaseAdmin) => new ConnectFirestoreService(firebaseAdmin.firestore),
330
+ inject: [nestjsFirebase.FirebaseConstants.FIREBASE_TOKEN],
331
+ },
327
332
  {
328
333
  provide: 'FirestoreOptions',
329
- useFactory: (firebaseAdmin) => ({
330
- firestore: new ConnectFirestoreService(firebaseAdmin.firestore),
334
+ useFactory: (connectFirestoreService) => ({
335
+ firestore: connectFirestoreService,
331
336
  }),
332
- inject: [nestjsFirebase.FirebaseConstants.FIREBASE_TOKEN],
337
+ inject: [ConnectFirestoreService],
333
338
  },
334
339
  {
335
340
  provide: 'BeautyProfileRepository',
@@ -549,6 +554,7 @@ exports.NestFirestoreModule = NestFirestoreModule_1 = __decorate([
549
554
  'SubscriptionMaterializationRepository',
550
555
  'SubscriptionSummaryRepository',
551
556
  connect.ProductVariantFirestoreRepository,
557
+ ConnectFirestoreService,
552
558
  ],
553
559
  })
554
560
  ], exports.NestFirestoreModule);
package/index.esm.js CHANGED
@@ -320,12 +320,17 @@ let NestFirestoreModule = NestFirestoreModule_1 = class NestFirestoreModule {
320
320
  NestFirestoreModule = NestFirestoreModule_1 = __decorate([
321
321
  Module({
322
322
  providers: [
323
+ {
324
+ provide: ConnectFirestoreService,
325
+ useFactory: (firebaseAdmin) => new ConnectFirestoreService(firebaseAdmin.firestore),
326
+ inject: [FirebaseConstants.FIREBASE_TOKEN],
327
+ },
323
328
  {
324
329
  provide: 'FirestoreOptions',
325
- useFactory: (firebaseAdmin) => ({
326
- firestore: new ConnectFirestoreService(firebaseAdmin.firestore),
330
+ useFactory: (connectFirestoreService) => ({
331
+ firestore: connectFirestoreService,
327
332
  }),
328
- inject: [FirebaseConstants.FIREBASE_TOKEN],
333
+ inject: [ConnectFirestoreService],
329
334
  },
330
335
  {
331
336
  provide: 'BeautyProfileRepository',
@@ -545,6 +550,7 @@ NestFirestoreModule = NestFirestoreModule_1 = __decorate([
545
550
  'SubscriptionMaterializationRepository',
546
551
  'SubscriptionSummaryRepository',
547
552
  ProductVariantFirestoreRepository,
553
+ ConnectFirestoreService,
548
554
  ],
549
555
  })
550
556
  ], NestFirestoreModule);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect-nestjs",
3
- "version": "1.1.0-beta.7",
3
+ "version": "1.1.0-beta.8",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },