@indra.ai/deva 1.5.2 → 1.5.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.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1486,9 +1486,9 @@ class Deva {
1486
1486
  help(msg, help_dir) {
1487
1487
  return new Promise((resolve, reject) => {
1488
1488
  if (!this._active) return resolve(this._messages.offline);
1489
- const params = msg.split(' ');
1490
- let helpFile = 'main';
1491
- if (params[0]) helpFile = params[0];
1489
+ const params = msg.split(' '); // split the msg into an array by spaces.
1490
+ let helpFile = 'main'; // set default help file
1491
+ if (params[0]) helpFile = params[0]; // check the msg for a help file
1492
1492
  if (params[1]) helpFile = `${params[0]}_${params[1]}`;
1493
1493
 
1494
1494
  this.context('help', helpFile);
@@ -1500,7 +1500,7 @@ class Deva {
1500
1500
  const helpPath = this.lib.path.join(help_dir, 'help', `${helpFile}.feecting`);
1501
1501
  this.state('try', `help:${helpFile}`);
1502
1502
  try {
1503
- const helpExists = this.lib.fs.existsSync(helpPath);
1503
+ const helpExists = this.lib.fs.existsSync(helpPath); // check if help file exists
1504
1504
  if (!helpExists) return this.finish(this._messages.help_not_found, resolve);
1505
1505
  const helpDoc = this.lib.fs.readFileSync(helpPath, 'utf8');
1506
1506
  this.state('finish', `help:${helpFile}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "copyright": "(c)2025 Quinn Michaels; All rights reserved.",