@indra.ai/deva 1.29.15 → 1.29.16

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
@@ -313,7 +313,7 @@ class Deva {
313
313
  async _invoke(opts) {
314
314
  if (!this._active) return resolve(this._messages.offline);
315
315
  const {key, data, resolve} = opts;
316
- const {prev_key, next_key, onfunc, clear} = config.invoke[key];
316
+ const {prev_key, next_key, onfunc, clear, load} = config.invoke[key];
317
317
  this.action('invoke', `${key}:${data.id.uid}`);
318
318
  this.context(key, data.id.uid);
319
319
  this.zone(key, data.id.uid);
@@ -360,13 +360,13 @@ class Deva {
360
360
  this.action('return', `${onfunc}:${data.id.uid}`); // action return
361
361
  this.state('valid', `${onfunc}:${data.id.uid}`); // state valid
362
362
  this.intent('good', `${onfunc}:${data.id.uid}`); // intent good
363
- return this[onfunc](data, resolve);
363
+ return await this[onfunc](data, resolve);
364
364
  }
365
365
 
366
366
  this.action('return', `${key}:${data.id.uid}`); // return action complete
367
367
  this.state('valid', `${key}:${data.id.uid}`); // return state valid
368
368
  this.intent('good', `${key}:${data.id.uid}`); // return intent good
369
- return next_key ? this[next_key](data, resolve) : resolve(data);
369
+ return next_key ? await this[next_key](data, resolve) : resolve(data);
370
370
  }
371
371
 
372
372
  /**************
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "38159520729793885324",
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.29.15",
4
+ "version": "1.29.16",
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",