@indra.ai/deva 1.4.15 → 1.4.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.
- package/index.js +6 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1454,9 +1454,12 @@ class Deva {
|
|
|
1454
1454
|
***************/
|
|
1455
1455
|
help(msg, help_dir) {
|
|
1456
1456
|
return new Promise((resolve, reject) => {
|
|
1457
|
-
this.zone('help');
|
|
1458
|
-
|
|
1459
1457
|
if (!this._active) return resolve(this._messages.offline);
|
|
1458
|
+
this.zone('help');
|
|
1459
|
+
this.feature('help');
|
|
1460
|
+
this.action('help');
|
|
1461
|
+
this.state('help');
|
|
1462
|
+
this.context('help');
|
|
1460
1463
|
|
|
1461
1464
|
const params = msg.split(' ');
|
|
1462
1465
|
let helpFile = 'main';
|
|
@@ -1467,7 +1470,7 @@ class Deva {
|
|
|
1467
1470
|
this.state('resolve', 'help');
|
|
1468
1471
|
return resolve(this.lib.fs.readFileSync(helpFile, 'utf8'));
|
|
1469
1472
|
} catch (e) {
|
|
1470
|
-
this.state('reject', '
|
|
1473
|
+
this.state('reject', 'help');
|
|
1471
1474
|
return reject(e)
|
|
1472
1475
|
}
|
|
1473
1476
|
});
|