@indra.ai/deva 1.29.4 → 1.29.6

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 +5 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -363,12 +363,10 @@ class Deva {
363
363
  return this[onfunc](data, resolve);
364
364
  }
365
365
 
366
- setImmediate(() => {
367
- this.action('return', `${key}:${data.id.uid}`); // return action complete
368
- this.state('valid', `${key}:${data.id.uid}`); // return state valid
369
- this.intent('good', `${key}:${data.id.uid}`); // return intent good
370
- return next_key ? this[next_key](data, resolve) : resolve(data);
371
- });
366
+ this.action('return', `${key}:${data.id.uid}`); // return action complete
367
+ this.state('valid', `${key}:${data.id.uid}`); // return state valid
368
+ this.intent('good', `${key}:${data.id.uid}`); // return intent good
369
+ return next_key ? this[next_key](data, resolve) : resolve(data);
372
370
  }
373
371
 
374
372
  /**************
@@ -1431,7 +1429,7 @@ class Deva {
1431
1429
  }
1432
1430
  finally {
1433
1431
  // return the invoke in a set immediate so it runs after the loop
1434
- setImmediate(() => {
1432
+ return setImmediate(() => {
1435
1433
  return this._invoke({key,data,resolve});
1436
1434
  });
1437
1435
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "38159520729793885324",
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.29.4",
4
+ "version": "1.29.6",
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",