@indra.ai/deva 1.29.3 → 1.29.4

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 +6 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -355,14 +355,12 @@ class Deva {
355
355
  // determine if there is an onComplete function for the entity.
356
356
  const hasOnFunc = this[onfunc] && typeof this[onfunc] === 'function';
357
357
  if (hasOnFunc) {
358
- setImmediate(() => {
359
- this.action('onfunc', `${key}:has:${onfunc}:${data.id.uid}`); // action onfunc
360
- this.state('onfunc', `${key}:has:${onfunc}:${data.id.uid}`); // state onfunc
361
- this.action('return', `${onfunc}:${data.id.uid}`); // action return
362
- this.state('valid', `${onfunc}:${data.id.uid}`); // state valid
363
- this.intent('good', `${onfunc}:${data.id.uid}`); // intent good
364
- return this[onfunc](data, resolve);
365
- });
358
+ this.action('onfunc', `${key}:has:${onfunc}:${data.id.uid}`); // action onfunc
359
+ this.state('onfunc', `${key}:has:${onfunc}:${data.id.uid}`); // state onfunc
360
+ this.action('return', `${onfunc}:${data.id.uid}`); // action return
361
+ this.state('valid', `${onfunc}:${data.id.uid}`); // state valid
362
+ this.intent('good', `${onfunc}:${data.id.uid}`); // intent good
363
+ return this[onfunc](data, resolve);
366
364
  }
367
365
 
368
366
  setImmediate(() => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "38159520729793885324",
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.29.3",
4
+ "version": "1.29.4",
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:38159520729793885324 LICENSE.md",