@xnestjs/elasticsearch 1.12.1 → 1.12.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.
|
@@ -44,11 +44,9 @@ let ElasticsearchCoreModule = ElasticsearchCoreModule_1 = class ElasticsearchCor
|
|
|
44
44
|
],
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
static _createDynamicModule(
|
|
48
|
-
const token =
|
|
49
|
-
const logger = typeof
|
|
50
|
-
? new common_1.Logger(moduleOptions.logger)
|
|
51
|
-
: moduleOptions.logger;
|
|
47
|
+
static _createDynamicModule(opts, metadata) {
|
|
48
|
+
const token = opts.token ?? elasticsearch_1.ElasticsearchService;
|
|
49
|
+
const logger = typeof opts.logger === 'string' ? new common_1.Logger(opts.logger) : opts.logger;
|
|
52
50
|
const exports = [
|
|
53
51
|
constants_js_1.ELASTICSEARCH_CONNECTION_OPTIONS,
|
|
54
52
|
...(metadata.exports ?? []),
|
|
@@ -80,10 +78,11 @@ let ElasticsearchCoreModule = ElasticsearchCoreModule_1 = class ElasticsearchCor
|
|
|
80
78
|
class InnerProvidersModule {
|
|
81
79
|
}
|
|
82
80
|
return {
|
|
81
|
+
global: opts.global,
|
|
83
82
|
module: ElasticsearchCoreModule_1,
|
|
84
83
|
providers,
|
|
85
|
-
global: moduleOptions.global,
|
|
86
84
|
imports: [
|
|
85
|
+
...(metadata.imports ?? []),
|
|
87
86
|
elasticsearch_1.ElasticsearchModule.registerAsync({
|
|
88
87
|
imports: [
|
|
89
88
|
{
|
|
@@ -41,11 +41,9 @@ let ElasticsearchCoreModule = ElasticsearchCoreModule_1 = class ElasticsearchCor
|
|
|
41
41
|
],
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
static _createDynamicModule(
|
|
45
|
-
const token =
|
|
46
|
-
const logger = typeof
|
|
47
|
-
? new Logger(moduleOptions.logger)
|
|
48
|
-
: moduleOptions.logger;
|
|
44
|
+
static _createDynamicModule(opts, metadata) {
|
|
45
|
+
const token = opts.token ?? ElasticsearchService;
|
|
46
|
+
const logger = typeof opts.logger === 'string' ? new Logger(opts.logger) : opts.logger;
|
|
49
47
|
const exports = [
|
|
50
48
|
ELASTICSEARCH_CONNECTION_OPTIONS,
|
|
51
49
|
...(metadata.exports ?? []),
|
|
@@ -77,10 +75,11 @@ let ElasticsearchCoreModule = ElasticsearchCoreModule_1 = class ElasticsearchCor
|
|
|
77
75
|
class InnerProvidersModule {
|
|
78
76
|
}
|
|
79
77
|
return {
|
|
78
|
+
global: opts.global,
|
|
80
79
|
module: ElasticsearchCoreModule_1,
|
|
81
80
|
providers,
|
|
82
|
-
global: moduleOptions.global,
|
|
83
81
|
imports: [
|
|
82
|
+
...(metadata.imports ?? []),
|
|
84
83
|
ElasticsearchModule.registerAsync({
|
|
85
84
|
imports: [
|
|
86
85
|
{
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xnestjs/elasticsearch",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.3",
|
|
4
4
|
"description": "NestJS extension library for ElasticSearch",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jsopen/objects": "^
|
|
8
|
+
"@jsopen/objects": "^2.0.2",
|
|
9
9
|
"ansi-colors": "^4.1.3",
|
|
10
10
|
"putil-varhelpers": "^1.6.5",
|
|
11
11
|
"tslib": "^2.8.1"
|