@indra.ai/deva 1.1.79 → 1.1.80

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 +2 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -60,6 +60,7 @@ class Deva {
60
60
  this._message = config.message; // current state of agent.
61
61
  this._messages = {
62
62
  notext: 'NO TEXT WAS PROVIDED',
63
+ nopacket: 'NO PACKET WAS PROVIDED',
63
64
  }; // set the messages from config
64
65
 
65
66
  // then here we are going to loop the messages config to make sure custom values are set
@@ -717,7 +718,6 @@ class Deva {
717
718
  const isCmd = t_split[0].startsWith(this.cmdChr);
718
719
 
719
720
  // Format the packet for return on the request.
720
- const orig = TEXT; // set the TEXT to orig
721
721
  const data = DATA; // set the DATA to data
722
722
  const packet = { // create the base q/a packet
723
723
  id, // set the id into packet
@@ -760,11 +760,10 @@ class Deva {
760
760
  client: this.client() || false, // set the client
761
761
  meta: { // build the meta container
762
762
  key, // set the key variable
763
- orig, // set orig text to track chances
764
763
  method, // set method to track function use
765
764
  params, // set any params that are associated
766
765
  },
767
- text, // set the text after it has been modified form orig
766
+ text, // set the text for the packet
768
767
  data, // set the data object
769
768
  created: Date.now(), // timestamp the question
770
769
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.1.79",
3
+ "version": "1.1.80",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "scripts": {