@indra.ai/deva 1.4.16 → 1.4.17

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 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -551,11 +551,11 @@ class Deva {
551
551
  ***************/
552
552
  answer(packet, resolve, reject) {
553
553
  if (!this._active) return Promise.resolve(this._messages.offline);
554
- this.zone('answer', method);
555
554
  const agent = this.agent();
556
555
  const client = this.client();
557
556
  // check if method exists and is of type function
558
557
  const {method,params} = packet.q.meta;
558
+ this.zone('answer', method);
559
559
  const isMethod = this.methods[method] && typeof this.methods[method] == 'function';
560
560
  if (!isMethod) return resolve(this._methodNotFound(packet)); // resolve method not found if check if check fails
561
561
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.4.16",
3
+ "version": "1.4.17",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "type": "module",