@travetto/model-elasticsearch 7.1.1 → 7.1.2
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/package.json +5 -5
- package/src/service.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-elasticsearch",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Elasticsearch backing for the travetto model module, with real-time modeling support for Elasticsearch mappings.",
|
|
6
6
|
"keywords": [
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@elastic/elasticsearch": "^9.2.0",
|
|
32
|
-
"@travetto/config": "^7.1.
|
|
33
|
-
"@travetto/model": "^7.1.
|
|
34
|
-
"@travetto/model-query": "^7.1.
|
|
32
|
+
"@travetto/config": "^7.1.2",
|
|
33
|
+
"@travetto/model": "^7.1.2",
|
|
34
|
+
"@travetto/model-query": "^7.1.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@travetto/cli": "^7.1.
|
|
37
|
+
"@travetto/cli": "^7.1.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
|
40
40
|
"@travetto/cli": {
|
package/src/service.ts
CHANGED
|
@@ -116,7 +116,7 @@ export class ElasticsearchModelService implements
|
|
|
116
116
|
this.manager = new IndexManager(this.config, this.client);
|
|
117
117
|
|
|
118
118
|
await ModelStorageUtil.storageInitialization(this.manager);
|
|
119
|
-
ShutdownManager.
|
|
119
|
+
ShutdownManager.signal.addEventListener('abort', () => this.client.close());
|
|
120
120
|
ModelExpiryUtil.registerCull(this);
|
|
121
121
|
}
|
|
122
122
|
|