@indra.ai/deva 1.5.14 → 1.5.16
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.
- package/index.js +2 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -409,9 +409,7 @@ class Deva {
|
|
|
409
409
|
***************/
|
|
410
410
|
talk(evt, packet=false) {
|
|
411
411
|
this.action('talk', `${evt}:${packet.id}`);
|
|
412
|
-
this.
|
|
413
|
-
this.events.emit(evt, packet);
|
|
414
|
-
return packet;
|
|
412
|
+
return this.events.emit(evt, packet);
|
|
415
413
|
}
|
|
416
414
|
|
|
417
415
|
/**************
|
|
@@ -1097,7 +1095,7 @@ class Deva {
|
|
|
1097
1095
|
***************/
|
|
1098
1096
|
action(value=false, extra=false) {
|
|
1099
1097
|
const id = this.lib.uid();
|
|
1100
|
-
this.state('try',
|
|
1098
|
+
this.state('try', `action:${value}:${id}`);
|
|
1101
1099
|
try {
|
|
1102
1100
|
if (!value || !this._actions[value] || value === this._action) return;
|
|
1103
1101
|
this._action = value; // set the local action variable
|