@indra.ai/deva 1.5.8 → 1.5.9
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 +1 -3
- 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
|
}
|