@indra.ai/deva 1.5.8 → 1.5.10

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 +2 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -188,12 +188,10 @@ class Deva {
188
188
  this.feature(key); // set the security state
189
189
  try {
190
190
  const data = this.lib.copy(value);
191
- data.id = this.lib.uid();
192
- data.hash = this.lib.hash(value);
193
- data.created = Date.now();
194
191
  this.state('return', key); // set the security state
195
192
  return data; // return the security feature
196
193
  } catch (e) {
194
+ this.state('catch', key);
197
195
  return this.error(e);
198
196
  }
199
197
  }
@@ -873,7 +871,7 @@ class Deva {
873
871
  // check for agent on finish function in agent
874
872
  const hasOnFinish = this.onFinish && typeof this.onFinish === 'function';
875
873
  // return the provided resolve function or a promise resolve.
876
- this.state('finish', id); // set the finish state
874
+ this.state('finish', packet.id); // set the finish state
877
875
  return hasOnFinish ? this.onFinish(packet, resolve) : this.complete(packet, resolve);
878
876
  }
879
877
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.5.8",
3
+ "version": "1.5.10",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "copyright": "(c)2025 Quinn Michaels; All rights reserved.",