@infrab4a/connect-nestjs 1.1.0-beta.5 → 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 +5 -7
- package/index.esm.js +5 -7
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -313,11 +313,9 @@ exports.NestFirestoreModule = NestFirestoreModule_1 = class NestFirestoreModule
|
|
|
313
313
|
return {
|
|
314
314
|
module: NestFirestoreModule_1,
|
|
315
315
|
imports: [
|
|
316
|
-
|
|
317
|
-
?
|
|
318
|
-
|
|
319
|
-
})
|
|
320
|
-
: 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
|
+
}),
|
|
321
319
|
],
|
|
322
320
|
exports: [nestjsFirebase.FirebaseModule],
|
|
323
321
|
};
|
|
@@ -703,12 +701,12 @@ exports.NestConnectModule = NestConnectModule_1 = class NestConnectModule {
|
|
|
703
701
|
return {
|
|
704
702
|
module: NestConnectModule_1,
|
|
705
703
|
imports: [
|
|
706
|
-
exports.NestFirestoreModule.initializeApp({ firebase: options.firebase }),
|
|
704
|
+
...(options.firebase ? [exports.NestFirestoreModule.initializeApp({ firebase: options.firebase })] : []),
|
|
707
705
|
...(connect.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [exports.NestHasuraGraphQLModule.initializeApp(options.hasura)]),
|
|
708
706
|
...(connect.isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [exports.NestElasticSeachModule.initializeApp(options.elasticSearch)]),
|
|
709
707
|
],
|
|
710
708
|
exports: [
|
|
711
|
-
exports.NestFirestoreModule,
|
|
709
|
+
...(options.firebase ? [exports.NestFirestoreModule] : []),
|
|
712
710
|
...(connect.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [exports.NestHasuraGraphQLModule]),
|
|
713
711
|
...(connect.isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [exports.NestElasticSeachModule]),
|
|
714
712
|
],
|
package/index.esm.js
CHANGED
|
@@ -309,11 +309,9 @@ let NestFirestoreModule = NestFirestoreModule_1 = class NestFirestoreModule {
|
|
|
309
309
|
return {
|
|
310
310
|
module: NestFirestoreModule_1,
|
|
311
311
|
imports: [
|
|
312
|
-
(
|
|
313
|
-
?
|
|
314
|
-
|
|
315
|
-
})
|
|
316
|
-
: 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
|
+
}),
|
|
317
315
|
],
|
|
318
316
|
exports: [FirebaseModule],
|
|
319
317
|
};
|
|
@@ -699,12 +697,12 @@ let NestConnectModule = NestConnectModule_1 = class NestConnectModule {
|
|
|
699
697
|
return {
|
|
700
698
|
module: NestConnectModule_1,
|
|
701
699
|
imports: [
|
|
702
|
-
NestFirestoreModule.initializeApp({ firebase: options.firebase }),
|
|
700
|
+
...(options.firebase ? [NestFirestoreModule.initializeApp({ firebase: options.firebase })] : []),
|
|
703
701
|
...(isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [NestHasuraGraphQLModule.initializeApp(options.hasura)]),
|
|
704
702
|
...(isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [NestElasticSeachModule.initializeApp(options.elasticSearch)]),
|
|
705
703
|
],
|
|
706
704
|
exports: [
|
|
707
|
-
NestFirestoreModule,
|
|
705
|
+
...(options.firebase ? [NestFirestoreModule] : []),
|
|
708
706
|
...(isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [NestHasuraGraphQLModule]),
|
|
709
707
|
...(isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [NestElasticSeachModule]),
|
|
710
708
|
],
|