@indra.ai/deva 1.5.21 → 1.5.22
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 +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -179,9 +179,11 @@ class Deva {
|
|
|
179
179
|
},
|
|
180
180
|
created: Date.now(),
|
|
181
181
|
};
|
|
182
|
+
packet.a.hash = this.lib.hash(packet.a);
|
|
182
183
|
delete packet.hash;
|
|
183
184
|
packet.hash = this.lib.hash(packet);
|
|
184
|
-
|
|
185
|
+
|
|
186
|
+
this.state('invalid', `${packet.q.meta.method}:${packet.id}`);
|
|
185
187
|
return packet;
|
|
186
188
|
}
|
|
187
189
|
|