@indra.ai/deva 1.62.81 → 1.62.83

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
@@ -1107,7 +1107,7 @@ class Deva {
1107
1107
  }).then(() => {
1108
1108
  const hasOnInit = this.onInit && typeof this.onInit === 'function';
1109
1109
  if (hasOnInit) {
1110
- this.action('onfunc', `onInit:${data.id.uid}`); // action set to onfunc
1110
+ this.action('func', `onInit:${data.id.uid}`); // action set to onfunc
1111
1111
  this.state('valid', `onInit:${data.id.uid}`); // state set to onfunc
1112
1112
  this.intent('good', `onInit:${data.id.uid}`); // intent set to good
1113
1113
  return this.onInit(data, resolve);
@@ -2040,8 +2040,8 @@ class Deva {
2040
2040
  const hasOnError = this.onError && typeof this.onError === 'function' ? true : false;
2041
2041
  // if block handles returning the onError and setting the state to hasOnError
2042
2042
  if (hasOnError) {
2043
- this.action('onfunc', `hasOnError:${data.value}:${data.id.uid}`);
2044
- this.state('onfunc', `hasOnError:${data.value}:${data.id.uid}`);
2043
+ this.action('func', `onError:${data.value}:${data.id.uid}`);
2044
+ this.state('invalid', `onError:${data.value}:${data.id.uid}`);
2045
2045
  this.intent('bad', `hasOnError:${data.id.uid}`);
2046
2046
  return this.onError(err, packet, reject);
2047
2047
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "23221940810208468106",
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.62.81",
4
+ "version": "1.62.83",
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:23221940810208468106 LICENSE.md",