@infrab4a/connect-nestjs 1.1.0-beta.4 → 1.1.0-beta.6

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
@@ -309,14 +309,13 @@ exports.NestElasticSeachModule = NestElasticSeachModule_1 = __decorate([
309
309
  var NestFirestoreModule_1;
310
310
  exports.NestFirestoreModule = NestFirestoreModule_1 = class NestFirestoreModule {
311
311
  static initializeApp(options) {
312
+ var _a;
312
313
  return {
313
314
  module: NestFirestoreModule_1,
314
315
  imports: [
315
- options.firebase.googleApplicationCredential
316
- ? nestjsFirebase.FirebaseModule.forRoot({
317
- googleApplicationCredential: options.firebase.googleApplicationCredential,
318
- })
319
- : nestjsFirebase.FirebaseModule,
316
+ nestjsFirebase.FirebaseModule.forRoot({
317
+ googleApplicationCredential: (_a = options === null || options === void 0 ? void 0 : options.firebase) === null || _a === void 0 ? void 0 : _a.googleApplicationCredential,
318
+ }),
320
319
  ],
321
320
  exports: [nestjsFirebase.FirebaseModule],
322
321
  };
@@ -702,12 +701,12 @@ exports.NestConnectModule = NestConnectModule_1 = class NestConnectModule {
702
701
  return {
703
702
  module: NestConnectModule_1,
704
703
  imports: [
705
- exports.NestFirestoreModule.initializeApp({ firebase: options.firebase }),
704
+ ...(options.firebase ? [exports.NestFirestoreModule.initializeApp({ firebase: options.firebase })] : []),
706
705
  ...(connect.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [exports.NestHasuraGraphQLModule.initializeApp(options.hasura)]),
707
706
  ...(connect.isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [exports.NestElasticSeachModule.initializeApp(options.elasticSearch)]),
708
707
  ],
709
708
  exports: [
710
- exports.NestFirestoreModule,
709
+ ...(options.firebase ? [exports.NestFirestoreModule] : []),
711
710
  ...(connect.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [exports.NestHasuraGraphQLModule]),
712
711
  ...(connect.isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [exports.NestElasticSeachModule]),
713
712
  ],
package/index.esm.js CHANGED
@@ -305,14 +305,13 @@ NestElasticSeachModule = NestElasticSeachModule_1 = __decorate([
305
305
  var NestFirestoreModule_1;
306
306
  let NestFirestoreModule = NestFirestoreModule_1 = class NestFirestoreModule {
307
307
  static initializeApp(options) {
308
+ var _a;
308
309
  return {
309
310
  module: NestFirestoreModule_1,
310
311
  imports: [
311
- options.firebase.googleApplicationCredential
312
- ? FirebaseModule.forRoot({
313
- googleApplicationCredential: options.firebase.googleApplicationCredential,
314
- })
315
- : FirebaseModule,
312
+ FirebaseModule.forRoot({
313
+ googleApplicationCredential: (_a = options === null || options === void 0 ? void 0 : options.firebase) === null || _a === void 0 ? void 0 : _a.googleApplicationCredential,
314
+ }),
316
315
  ],
317
316
  exports: [FirebaseModule],
318
317
  };
@@ -698,12 +697,12 @@ let NestConnectModule = NestConnectModule_1 = class NestConnectModule {
698
697
  return {
699
698
  module: NestConnectModule_1,
700
699
  imports: [
701
- NestFirestoreModule.initializeApp({ firebase: options.firebase }),
700
+ ...(options.firebase ? [NestFirestoreModule.initializeApp({ firebase: options.firebase })] : []),
702
701
  ...(isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [NestHasuraGraphQLModule.initializeApp(options.hasura)]),
703
702
  ...(isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [NestElasticSeachModule.initializeApp(options.elasticSearch)]),
704
703
  ],
705
704
  exports: [
706
- NestFirestoreModule,
705
+ ...(options.firebase ? [NestFirestoreModule] : []),
707
706
  ...(isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [NestHasuraGraphQLModule]),
708
707
  ...(isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [NestElasticSeachModule]),
709
708
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect-nestjs",
3
- "version": "1.1.0-beta.4",
3
+ "version": "1.1.0-beta.6",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },