symposium 0.11.2 → 0.11.3

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/Agent.js +3 -3
  2. package/package.json +1 -1
package/Agent.js CHANGED
@@ -163,9 +163,9 @@ export default class Agent {
163
163
  async output(thread, msg) {
164
164
  const i = this.options.interfaces.find(i => i.name === thread.interface);
165
165
  if (i) {
166
- if (this.callbacks.hasOwnProperty(i + '-' + thread.id) && this.callbacks[i + '-' + thread.id].length) {
167
- const callback = this.callbacks[i + '-' + thread.id].shift();
168
- await callback(thread, msg);
166
+ if (this.callbacks.hasOwnProperty(i.name + '-' + thread.id) && this.callbacks[i.name + '-' + thread.id].length) {
167
+ const callback = this.callbacks[i.name + '-' + thread.id].shift();
168
+ await callback(msg);
169
169
  }
170
170
 
171
171
  return i.output(thread, msg);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "symposium",
4
- "version": "0.11.2",
4
+ "version": "0.11.3",
5
5
  "description": "Agents",
6
6
  "main": "index.js",
7
7
  "author": "Domenico Giambra",