@infrab4a/connect-nestjs 1.5.1-beta.2 → 1.5.1-beta.3
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 +15 -2
- package/index.esm.js +15 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -884,10 +884,23 @@ NestVertexSeachModule = NestVertexSeachModule_1 = __decorate([
|
|
|
884
884
|
common.Module({
|
|
885
885
|
providers: [
|
|
886
886
|
exports.DiscoveryEngineVertexAdapter,
|
|
887
|
+
{
|
|
888
|
+
provide: 'DiscoveryEngineVertexAdapter',
|
|
889
|
+
useFactory: (config) => {
|
|
890
|
+
if (!config.credentials.private_key)
|
|
891
|
+
return null;
|
|
892
|
+
return new exports.DiscoveryEngineVertexAdapter(config);
|
|
893
|
+
},
|
|
894
|
+
inject: [VERTEX_CONFIG],
|
|
895
|
+
},
|
|
887
896
|
{
|
|
888
897
|
provide: connect.ProductsVertexSearch,
|
|
889
|
-
useFactory: (adapter) =>
|
|
890
|
-
|
|
898
|
+
useFactory: (adapter) => {
|
|
899
|
+
if (!adapter)
|
|
900
|
+
return null;
|
|
901
|
+
return new connect.ProductsVertexSearch(adapter);
|
|
902
|
+
},
|
|
903
|
+
inject: ['DiscoveryEngineVertexAdapter'],
|
|
891
904
|
},
|
|
892
905
|
],
|
|
893
906
|
exports: [connect.ProductsVertexSearch],
|
package/index.esm.js
CHANGED
|
@@ -880,10 +880,23 @@ NestVertexSeachModule = NestVertexSeachModule_1 = __decorate([
|
|
|
880
880
|
Module({
|
|
881
881
|
providers: [
|
|
882
882
|
DiscoveryEngineVertexAdapter,
|
|
883
|
+
{
|
|
884
|
+
provide: 'DiscoveryEngineVertexAdapter',
|
|
885
|
+
useFactory: (config) => {
|
|
886
|
+
if (!config.credentials.private_key)
|
|
887
|
+
return null;
|
|
888
|
+
return new DiscoveryEngineVertexAdapter(config);
|
|
889
|
+
},
|
|
890
|
+
inject: [VERTEX_CONFIG],
|
|
891
|
+
},
|
|
883
892
|
{
|
|
884
893
|
provide: ProductsVertexSearch,
|
|
885
|
-
useFactory: (adapter) =>
|
|
886
|
-
|
|
894
|
+
useFactory: (adapter) => {
|
|
895
|
+
if (!adapter)
|
|
896
|
+
return null;
|
|
897
|
+
return new ProductsVertexSearch(adapter);
|
|
898
|
+
},
|
|
899
|
+
inject: ['DiscoveryEngineVertexAdapter'],
|
|
887
900
|
},
|
|
888
901
|
],
|
|
889
902
|
exports: [ProductsVertexSearch],
|