@indra.ai/deva 1.6.92 → 1.6.93

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 +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1384,7 +1384,6 @@ class Deva {
1384
1384
  // determine if there is an onComplete function for the entity.
1385
1385
  const hasOnStop = this.onStop && typeof this.onStop === 'function';
1386
1386
  if (hasOnStop) this.state('set', `hasOnStop:${data.id.uid}`); // state set to watch OnFinish
1387
-
1388
1387
  return hasOnStop ? this.onStop(data) : this.exit(data)
1389
1388
  }
1390
1389
 
@@ -1400,11 +1399,12 @@ class Deva {
1400
1399
  ***************/
1401
1400
  exit(data) {
1402
1401
  if (!this._active) return Promise.resolve(this._messages.offline);
1402
+
1403
1403
  this.context('exit', data.id.uid);
1404
1404
  this.zone('exit', data.id.uid);
1405
1405
  this.action('exit', data.id.uid);
1406
1406
  this.state('exit', data.id.uid); // set the state to stop
1407
-
1407
+
1408
1408
  this.action('delete', `stop:md5:${data.id.uid}`);
1409
1409
  delete data.md5;
1410
1410
  this.action('delete', `stop:sha256:${data.id.uid}`);
@@ -1412,7 +1412,7 @@ class Deva {
1412
1412
  this.action('delete', `stop:sha512:${data.id.uid}`);
1413
1413
  delete data.sha512;
1414
1414
 
1415
- this.state('set', `exit:time:${id.uid}`); // state stop agent
1415
+ this.state('set', `exit:time:${data.id.uid}`); // state stop agent
1416
1416
  data.exit = Date.now();
1417
1417
 
1418
1418
  this.action('hash', `stop:md5:${data.id.uid}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "44091450722329207445",
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.6.92",
4
+ "version": "1.6.93",
5
5
  "description": "Deva Core a Vedic-inspired Event Based Context Aware Feature, Zone, Action, and State Machine integrated Artificial Intelligence Framework",
6
6
  "main": "index.js",
7
7
  "license": "VLA:44091450722329207445 LICENSE.md",