@indra.ai/deva 1.64.24 → 1.64.25
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 +6 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1969,7 +1969,6 @@ class Deva {
|
|
|
1969
1969
|
|
|
1970
1970
|
this.state('try', `${key}:${id.uid}`);
|
|
1971
1971
|
try {
|
|
1972
|
-
|
|
1973
1972
|
// check if help file exists first and resolve if no file
|
|
1974
1973
|
const helpExists = this.lib.fs.existsSync(helpPath); // check if help file exists
|
|
1975
1974
|
if (!helpExists) {
|
|
@@ -1986,23 +1985,22 @@ class Deva {
|
|
|
1986
1985
|
this.action('resolve', `${key}:not:found:${id.uid}`);
|
|
1987
1986
|
this.state('invalid', `${key}:not:found:${id.uid}`);
|
|
1988
1987
|
this.intent('bad', `${key}:not:found:${id.uid}`);
|
|
1989
|
-
resolve(this._messages.help_not_found);
|
|
1988
|
+
return resolve(this._messages.help_not_found);
|
|
1990
1989
|
}
|
|
1991
1990
|
|
|
1992
1991
|
// last set the help doc and split out the selected part.
|
|
1993
1992
|
helpDoc = helpFile.split(`${this.container.begin}:${part}`)[1].split(`${this.container.end}:${part}`)[0];
|
|
1993
|
+
|
|
1994
|
+
this.action('resolve', `${key}:${id.uid}`);
|
|
1995
|
+
this.state('valid', `${key}:${id.uid}`);
|
|
1996
|
+
this.intent('good', `${key}:${id.uid}`);
|
|
1997
|
+
return resolve(helpDoc);
|
|
1994
1998
|
}
|
|
1995
1999
|
catch(e) {
|
|
1996
2000
|
this.state('catch', `${key}:${id.uid}`);
|
|
1997
2001
|
this.intent('bad', `${key}:${id.uid}`);
|
|
1998
2002
|
return this.err(e, msg, reject);
|
|
1999
2003
|
}
|
|
2000
|
-
finally {
|
|
2001
|
-
this.action('resolve', `${key}:${id.uid}`);
|
|
2002
|
-
this.state('valid', `${key}:${id.uid}`);
|
|
2003
|
-
this.intent('good', `${key}:${id.uid}`);
|
|
2004
|
-
return resolve(helpDoc);
|
|
2005
|
-
}
|
|
2006
2004
|
});
|
|
2007
2005
|
}
|
|
2008
2006
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "31711622713594414221",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.64.
|
|
4
|
+
"version": "1.64.25",
|
|
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:31711622713594414221 LICENSE.md",
|