@btravstack/core 0.19.0 → 0.20.0

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/dist/index.cjs CHANGED
@@ -844,9 +844,7 @@ const start = (module, options = {}) => {
844
844
  servingInfo = serving.info;
845
845
  tracker.advanceTo("serving");
846
846
  runtimePublished.resolve(serving.info);
847
- serving.stopped?.().map(() => {
848
- requestShutdown("runtimeStopped");
849
- });
847
+ serving.stopped?.().tap(() => requestShutdown("runtimeStopped")).tapFailure(() => requestShutdown("runtimeStopped"));
850
848
  return (0, unthrown.fromSafePromise)(shutdown.promise).flatMap((reason) => finish(serving, reason));
851
849
  });
852
850
  };
package/dist/index.mjs CHANGED
@@ -843,9 +843,7 @@ const start = (module, options = {}) => {
843
843
  servingInfo = serving.info;
844
844
  tracker.advanceTo("serving");
845
845
  runtimePublished.resolve(serving.info);
846
- serving.stopped?.().map(() => {
847
- requestShutdown("runtimeStopped");
848
- });
846
+ serving.stopped?.().tap(() => requestShutdown("runtimeStopped")).tapFailure(() => requestShutdown("runtimeStopped"));
849
847
  return fromSafePromise(shutdown.promise).flatMap((reason) => finish(serving, reason));
850
848
  });
851
849
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@btravstack/core",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "The application kernel: boot a di module into a running process, and stop it without losing work",
5
5
  "keywords": [
6
6
  "application",
@@ -45,8 +45,8 @@
45
45
  "./package.json": "./package.json"
46
46
  },
47
47
  "devDependencies": {
48
- "@btravstack/config": "0.19.0",
49
- "@btravstack/di": "0.19.0",
48
+ "@btravstack/config": "0.20.0",
49
+ "@btravstack/di": "0.20.0",
50
50
  "@btravstack/tsconfig": "0.4.0",
51
51
  "@stryker-mutator/core": "10.0.0",
52
52
  "@stryker-mutator/vitest-runner": "10.0.0",
@@ -60,8 +60,8 @@
60
60
  "vitest": "5.0.3"
61
61
  },
62
62
  "peerDependencies": {
63
- "@btravstack/config": "^0.19.0",
64
- "@btravstack/di": "^0.19.0",
63
+ "@btravstack/config": "^0.20.0",
64
+ "@btravstack/di": "^0.20.0",
65
65
  "unthrown": "^5.0.0"
66
66
  },
67
67
  "engines": {