@indra.ai/deva 1.62.82 → 1.62.84
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 +4 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -307,10 +307,8 @@ class Deva {
|
|
|
307
307
|
if (!this._features[key]) return this._messages.invalidfeature; // return no key if doesn't match.
|
|
308
308
|
|
|
309
309
|
this.feature(key); // set the security state
|
|
310
|
-
this.zone(key);
|
|
311
|
-
this.
|
|
312
|
-
this.state(key);
|
|
313
|
-
this.state('try', key);
|
|
310
|
+
this.zone(key); // set the zone to the key.
|
|
311
|
+
this.state('try', key); // set the state to try.
|
|
314
312
|
try {
|
|
315
313
|
const data = this.lib.copy(this[`_${key}`]);
|
|
316
314
|
this.action('return', `_getFeature:${key}`); // set the return action
|
|
@@ -2040,8 +2038,8 @@ class Deva {
|
|
|
2040
2038
|
const hasOnError = this.onError && typeof this.onError === 'function' ? true : false;
|
|
2041
2039
|
// if block handles returning the onError and setting the state to hasOnError
|
|
2042
2040
|
if (hasOnError) {
|
|
2043
|
-
this.action('
|
|
2044
|
-
this.state('
|
|
2041
|
+
this.action('func', `onError:${data.value}:${data.id.uid}`);
|
|
2042
|
+
this.state('invalid', `onError:${data.value}:${data.id.uid}`);
|
|
2045
2043
|
this.intent('bad', `hasOnError:${data.id.uid}`);
|
|
2046
2044
|
return this.onError(err, packet, reject);
|
|
2047
2045
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "23221940810208468106",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.62.
|
|
4
|
+
"version": "1.62.84",
|
|
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",
|