@indra.ai/deva 1.6.45 → 1.6.47

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 CHANGED
@@ -1127,7 +1127,6 @@ class Deva {
1127
1127
  data.sha512 = this.lib.hash(data, 'sha512');
1128
1128
 
1129
1129
  this.lib.setClient(this.client());
1130
- this.lib.setAgent(this.agent());
1131
1130
 
1132
1131
  this.state('ready', data.id.uid);
1133
1132
  this.talk(config.events.ready, data);
package/lib/index.js CHANGED
@@ -32,13 +32,11 @@ class LIB {
32
32
 
33
33
  setClient(client) {
34
34
  if (this.client) return;
35
- console.log('SET CLIENT', client);
36
35
  this.client = client;
37
- }
38
-
39
- setAgent(agent) {
40
- if (this.agent) return;
41
- this.agent = agent;
36
+ this.agent.md5 = this.has(this.agent, 'md5');
37
+ this.agent.sha256 = this.hash(this.agent, 'sha256');
38
+ this.agent.sha51 = this.hash(this.agent, 'sha512');
39
+ console.log('agent hash', this.agent.sha256);
42
40
  }
43
41
 
44
42
  help(msg, help_dir) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": 45958588982385560000,
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.6.45",
4
+ "version": "1.6.47",
5
5
  "description": "The Deva Core",
6
6
  "main": "index.js",
7
7
  "license": "VLA:45958588982385558603 LICENSE.md",