@indra.ai/deva 1.29.2 → 1.29.3
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.
- package/index.js +9 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -355,14 +355,16 @@ 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
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
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
|
+
});
|
|
364
366
|
}
|
|
365
|
-
|
|
367
|
+
|
|
366
368
|
setImmediate(() => {
|
|
367
369
|
this.action('return', `${key}:${data.id.uid}`); // return action complete
|
|
368
370
|
this.state('valid', `${key}:${data.id.uid}`); // return state valid
|
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
|
+
"version": "1.29.3",
|
|
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",
|