@infrab4a/connect-nestjs 1.1.0-beta.3 → 1.1.0-beta.5
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 +13 -10
- package/index.esm.js +9 -6
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
package/index.cjs.js
CHANGED
|
@@ -283,7 +283,7 @@ class ConnectFirestoreService {
|
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
var NestElasticSeachModule_1;
|
|
286
|
-
|
|
286
|
+
exports.NestElasticSeachModule = NestElasticSeachModule_1 = class NestElasticSeachModule {
|
|
287
287
|
static initializeApp(options) {
|
|
288
288
|
return {
|
|
289
289
|
module: NestElasticSeachModule_1,
|
|
@@ -292,7 +292,7 @@ let NestElasticSeachModule = NestElasticSeachModule_1 = class NestElasticSeachMo
|
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
|
-
NestElasticSeachModule = NestElasticSeachModule_1 = __decorate([
|
|
295
|
+
exports.NestElasticSeachModule = NestElasticSeachModule_1 = __decorate([
|
|
296
296
|
common.Module({
|
|
297
297
|
providers: [
|
|
298
298
|
exports.NativeElasticSearchAdapter,
|
|
@@ -304,17 +304,20 @@ NestElasticSeachModule = NestElasticSeachModule_1 = __decorate([
|
|
|
304
304
|
],
|
|
305
305
|
exports: [connect.ProductsIndex],
|
|
306
306
|
})
|
|
307
|
-
], NestElasticSeachModule);
|
|
307
|
+
], exports.NestElasticSeachModule);
|
|
308
308
|
|
|
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
|
-
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
((_a = options === null || options === void 0 ? void 0 : options.firebase) === null || _a === void 0 ? void 0 : _a.googleApplicationCredential)
|
|
317
|
+
? nestjsFirebase.FirebaseModule.forRoot({
|
|
318
|
+
googleApplicationCredential: options.firebase.googleApplicationCredential,
|
|
319
|
+
})
|
|
320
|
+
: nestjsFirebase.FirebaseModule,
|
|
318
321
|
],
|
|
319
322
|
exports: [nestjsFirebase.FirebaseModule],
|
|
320
323
|
};
|
|
@@ -700,14 +703,14 @@ exports.NestConnectModule = NestConnectModule_1 = class NestConnectModule {
|
|
|
700
703
|
return {
|
|
701
704
|
module: NestConnectModule_1,
|
|
702
705
|
imports: [
|
|
703
|
-
|
|
706
|
+
exports.NestFirestoreModule.initializeApp({ firebase: options.firebase }),
|
|
704
707
|
...(connect.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [exports.NestHasuraGraphQLModule.initializeApp(options.hasura)]),
|
|
705
|
-
...(connect.isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [NestElasticSeachModule.initializeApp(options.elasticSearch)]),
|
|
708
|
+
...(connect.isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [exports.NestElasticSeachModule.initializeApp(options.elasticSearch)]),
|
|
706
709
|
],
|
|
707
710
|
exports: [
|
|
708
|
-
|
|
711
|
+
exports.NestFirestoreModule,
|
|
709
712
|
...(connect.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [exports.NestHasuraGraphQLModule]),
|
|
710
|
-
...(connect.isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [NestElasticSeachModule]),
|
|
713
|
+
...(connect.isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [exports.NestElasticSeachModule]),
|
|
711
714
|
],
|
|
712
715
|
};
|
|
713
716
|
}
|
package/index.esm.js
CHANGED
|
@@ -305,12 +305,15 @@ 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
|
-
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
((_a = options === null || options === void 0 ? void 0 : options.firebase) === null || _a === void 0 ? void 0 : _a.googleApplicationCredential)
|
|
313
|
+
? FirebaseModule.forRoot({
|
|
314
|
+
googleApplicationCredential: options.firebase.googleApplicationCredential,
|
|
315
|
+
})
|
|
316
|
+
: FirebaseModule,
|
|
314
317
|
],
|
|
315
318
|
exports: [FirebaseModule],
|
|
316
319
|
};
|
|
@@ -696,12 +699,12 @@ let NestConnectModule = NestConnectModule_1 = class NestConnectModule {
|
|
|
696
699
|
return {
|
|
697
700
|
module: NestConnectModule_1,
|
|
698
701
|
imports: [
|
|
699
|
-
|
|
702
|
+
NestFirestoreModule.initializeApp({ firebase: options.firebase }),
|
|
700
703
|
...(isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [NestHasuraGraphQLModule.initializeApp(options.hasura)]),
|
|
701
704
|
...(isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [NestElasticSeachModule.initializeApp(options.elasticSearch)]),
|
|
702
705
|
],
|
|
703
706
|
exports: [
|
|
704
|
-
|
|
707
|
+
NestFirestoreModule,
|
|
705
708
|
...(isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [NestHasuraGraphQLModule]),
|
|
706
709
|
...(isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [NestElasticSeachModule]),
|
|
707
710
|
],
|
|
@@ -712,4 +715,4 @@ NestConnectModule = NestConnectModule_1 = __decorate([
|
|
|
712
715
|
Module({})
|
|
713
716
|
], NestConnectModule);
|
|
714
717
|
|
|
715
|
-
export { ConnectCollectionService, ConnectDocumentService, ConnectFirestoreService, NativeElasticSearchAdapter, NestConnectModule, NestFirestoreModule, NestHasuraGraphQLModule };
|
|
718
|
+
export { ConnectCollectionService, ConnectDocumentService, ConnectFirestoreService, NativeElasticSearchAdapter, NestConnectModule, NestElasticSeachModule, NestFirestoreModule, NestHasuraGraphQLModule };
|
package/package.json
CHANGED