@infrab4a/connect-nestjs 1.0.0-beta.9 → 1.0.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.
package/index.cjs.js CHANGED
@@ -564,9 +564,14 @@ exports.NestConnectModule = NestConnectModule_1 = class NestConnectModule {
564
564
  return {
565
565
  module: NestConnectModule_1,
566
566
  imports: [
567
- nestjsFirebase.FirebaseModule.forRoot({
568
- googleApplicationCredential: options.firebase.googleApplicationCredential,
569
- }),
567
+ ...(options.firebase
568
+ ? [
569
+ nestjsFirebase.FirebaseModule.forRoot({
570
+ googleApplicationCredential: options.firebase.googleApplicationCredential,
571
+ }),
572
+ exports.NestFirestoreModule,
573
+ ]
574
+ : []),
570
575
  ...(connect.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [exports.NestHasuraGraphQLModule.initializeApp(options.hasura)]),
571
576
  ],
572
577
  // exports: [
@@ -616,9 +621,7 @@ exports.NestConnectModule = NestConnectModule_1 = class NestConnectModule {
616
621
  }
617
622
  };
618
623
  exports.NestConnectModule = NestConnectModule_1 = __decorate([
619
- common.Module({
620
- imports: [exports.NestFirestoreModule],
621
- })
624
+ common.Module({})
622
625
  ], exports.NestConnectModule);
623
626
 
624
627
  exports.ConnectCollectionService = ConnectCollectionService;
package/index.esm.js CHANGED
@@ -560,9 +560,14 @@ let NestConnectModule = NestConnectModule_1 = class NestConnectModule {
560
560
  return {
561
561
  module: NestConnectModule_1,
562
562
  imports: [
563
- FirebaseModule.forRoot({
564
- googleApplicationCredential: options.firebase.googleApplicationCredential,
565
- }),
563
+ ...(options.firebase
564
+ ? [
565
+ FirebaseModule.forRoot({
566
+ googleApplicationCredential: options.firebase.googleApplicationCredential,
567
+ }),
568
+ NestFirestoreModule,
569
+ ]
570
+ : []),
566
571
  ...(isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [NestHasuraGraphQLModule.initializeApp(options.hasura)]),
567
572
  ],
568
573
  // exports: [
@@ -612,9 +617,7 @@ let NestConnectModule = NestConnectModule_1 = class NestConnectModule {
612
617
  }
613
618
  };
614
619
  NestConnectModule = NestConnectModule_1 = __decorate([
615
- Module({
616
- imports: [NestFirestoreModule],
617
- })
620
+ Module({})
618
621
  ], NestConnectModule);
619
622
 
620
623
  export { ConnectCollectionService, ConnectDocumentService, ConnectFirestoreService, NestConnectModule, NestFirestoreModule, NestHasuraGraphQLModule };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect-nestjs",
3
- "version": "1.0.0-beta.9",
3
+ "version": "1.0.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -9,7 +9,7 @@
9
9
  "url": "https://github.com/B4AGroup/b4a-firebase-libs"
10
10
  },
11
11
  "peerDependencies": {
12
- "@infrab4a/connect": "4.4.0-beta.9",
12
+ "@infrab4a/connect": "4.4.0",
13
13
  "@nestjs/common": "^10.3.3",
14
14
  "@nestjs/core": "^10.3.3",
15
15
  "firebase-admin": "^12.0.0"
@@ -2,7 +2,7 @@ import { DynamicModule } from '@nestjs/common';
2
2
  import { HasuraGraphQLOptions } from './nest-hasura-graphql.module';
3
3
  export declare class NestConnectModule {
4
4
  static initializeApp(options: {
5
- firebase: {
5
+ firebase?: {
6
6
  googleApplicationCredential: string;
7
7
  };
8
8
  hasura: HasuraGraphQLOptions;