@indra.ai/deva 1.4.25 → 1.4.27

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 +6 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1498,15 +1498,16 @@ class Deva {
1498
1498
  this.state('help', helpFile);
1499
1499
 
1500
1500
  const helpPath = this.lib.path.join(help_dir, 'help', `${helpFile}.feecting`);
1501
+ this.state('try', `help:${helpFile}`);
1501
1502
  try {
1502
1503
  const helpExists = fs.existsSync(helpPath);
1503
- if (!helpExists) return resolve(this._messages.help_not_found);
1504
+ if (!helpExists) return this.finish(this._messages.help_not_found, resolve);
1504
1505
  const helpDoc = this.lib.fs.readFileSync(helpPath, 'utf8');
1505
- this.state('resolve', `help:${helpFile}`);
1506
- return resolve(helpDoc);
1506
+ this.state('finish', `help:${helpFile}`);
1507
+ return this.finish(helpDoc, resolve);
1507
1508
  } catch (e) {
1508
- this.state('reject', `help:${helpFile}`);
1509
- return this.error(msg, e, reject);
1509
+ this.state('catch', `help:${helpFile}`);
1510
+ return this.error(e, msg, reject);
1510
1511
  }
1511
1512
  });
1512
1513
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.4.25",
3
+ "version": "1.4.27",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "copyright": "(c)2025 Quinn Michaels; All rights reserved.",