@indra.ai/deva 1.1.94 → 1.1.95

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 +1 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -780,7 +780,6 @@ class Deva {
780
780
  this.talk(config.events.question, this.copy(packet)); // global question event make sure to copy data.
781
781
 
782
782
  if (isAsk) { // isAsk check if the question isAsk and talk
783
- this.state('ask');
784
783
  // if: isAsk wait for the once event which is key'd to the packet ID for specified responses
785
784
  this.talk(`${key}:ask`, packet);
786
785
  this.once(`${key}:ask:${packet.id}`, answer => {
@@ -789,7 +788,7 @@ class Deva {
789
788
  });
790
789
  }
791
790
  else { // else: answer tue question locally
792
- this.action('ask_answer');
791
+ this.action('question_answer');
793
792
  return this.answer(packet, resolve, reject);
794
793
  }
795
794
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.1.94",
3
+ "version": "1.1.95",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "scripts": {