@indra.ai/deva 1.1.75 → 1.1.77

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 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -58,7 +58,9 @@ class Deva {
58
58
  this._features = config.features; // set the features from config
59
59
 
60
60
  this._message = config.message; // current state of agent.
61
- this._messages = {}; // set the messages from config
61
+ this._messages = {
62
+ notext: 'NO TEXT WAS PROVIDED',
63
+ }; // set the messages from config
62
64
 
63
65
  // then here we are going to loop the messages config to make sure custom values are set
64
66
  for (let x in config.messages) {
@@ -537,6 +539,9 @@ class Deva {
537
539
  // bind parser
538
540
  const parse = this._agent && this._agent.parse && typeof this._agent.parse === 'function';
539
541
  if (parse) this._agent.parse = this._agent.parse.bind(this);
542
+ // bind process
543
+ const process = this._agent && this._agent.process && typeof this._agent.process === 'function';
544
+ if (parse) this._agent.process = this._agent.process.bind(this);
540
545
  }
541
546
  catch (e) {
542
547
  return this.error(e, false, reject); // trigger the this.error for errors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.1.75",
3
+ "version": "1.1.77",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "scripts": {