@indra.ai/deva 1.2.4 → 1.2.5

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 +5 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  // Copyright (c)2023 Quinn Michaels; All Rights Reserved; Legal Signature Required.
2
- // Distributed under the MIT software license, see the accompanying
3
- // file LICENSE.md or http://www.opensource.org/licenses/mit-license.php.
2
+ // Distributed under the PRIVATE software license, see the accompanying file LICENSE.md
4
3
  const {EventEmitter} = require('events');
5
4
  const fs = require('fs');
6
5
  const path = require('path');
@@ -777,9 +776,9 @@ class Deva {
777
776
  packet.a = packet_answer;
778
777
  this.action('answer_talk');
779
778
  this.talk(config.events.answer, this.copy(packet)); // global talk event
780
- return this.finish(packet, resolve) // resolve the packet to the caller.
781
- }).catch(err => { // catch any errors in the method
782
- return this.error(err, packet, reject); // return this.error with err, packet, reject
779
+ return this.finish(packet, resolve); // resolve the packet to the caller.
780
+ }).catch(err => { // catch any errors in the method
781
+ return this.error(err, packet, reject); // return this.error with err, packet, reject
783
782
  });
784
783
  }
785
784
 
@@ -843,6 +842,7 @@ class Deva {
843
842
  packet_answer.meta.hash = this.hash(packet_answer);
844
843
  this.action('ask_answer');
845
844
  packet.a = packet_answer;
845
+ this.talk(config.events.answer, this.copy(packet)); // global talk event
846
846
  this.talk(`${agent.key}:ask:${packet.id}`, packet);
847
847
  }).catch(err => {
848
848
  this.talk(`${agent.key}:ask:${packet.id}`, {error:err});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "scripts": {