@indra.ai/deva 1.5.29 → 1.5.30

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/index.js +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -929,11 +929,11 @@ class Deva {
929
929
  this.stop()
930
930
  ***************/
931
931
  stop() {
932
+ const id = this.lib.uid();
932
933
  this.zone('stop', id);
933
934
  if (!this._active) return Promise.resolve(this._messages.offline);
934
935
 
935
936
  this.action('stop', id);
936
- const id = this.lib.uid();
937
937
  const hasOnStop = this.onStop && typeof this.onStop === 'function';
938
938
 
939
939
  const data = { // build the stop data
@@ -963,11 +963,12 @@ class Deva {
963
963
  function.
964
964
  ***************/
965
965
  exit() {
966
- if (!this._active) return Promise.resolve(this._messages.offline);
967
966
  const id = this.lib.uid();
968
- const hasOnExit = this.onExit && typeof this.onExit === 'function';
969
967
  this.zone('exit', id);
968
+ if (!this._active) return Promise.resolve(this._messages.offline);
969
+
970
970
  this.action('exit', id);
971
+ const hasOnExit = this.onExit && typeof this.onExit === 'function';
971
972
 
972
973
  const data = {
973
974
  id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.5.29",
3
+ "version": "1.5.30",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "copyright": "(c)2025 Quinn Michaels; All rights reserved.",