@travetto/model-mongo 7.1.0 → 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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/service.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-mongo",
3
- "version": "7.1.0",
3
+ "version": "7.1.2",
4
4
  "type": "module",
5
5
  "description": "Mongo backing for the travetto model module.",
6
6
  "keywords": [
@@ -26,13 +26,13 @@
26
26
  "directory": "module/model-mongo"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/config": "^7.1.0",
30
- "@travetto/model": "^7.1.0",
31
- "@travetto/model-query": "^7.1.0",
29
+ "@travetto/config": "^7.1.2",
30
+ "@travetto/model": "^7.1.2",
31
+ "@travetto/model-query": "^7.1.2",
32
32
  "mongodb": "^7.0.0"
33
33
  },
34
34
  "peerDependencies": {
35
- "@travetto/cli": "^7.1.0"
35
+ "@travetto/cli": "^7.1.2"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "@travetto/cli": {
package/src/service.ts CHANGED
@@ -107,7 +107,7 @@ export class MongoModelService implements
107
107
  writeConcern: { w: 1 }
108
108
  });
109
109
  await ModelStorageUtil.storageInitialization(this);
110
- ShutdownManager.onGracefulShutdown(() => this.client.close());
110
+ ShutdownManager.signal.addEventListener('abort', () => this.client.close());
111
111
  ModelExpiryUtil.registerCull(this);
112
112
  }
113
113