@indra.ai/deva 1.6.38 → 1.6.39

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 +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1115,6 +1115,7 @@ class Deva {
1115
1115
  this.action('ready', data.id.uid);
1116
1116
  const hasOnReady = this.onReady && typeof this.onReady === 'function';
1117
1117
 
1118
+ // Delete previous data hashes
1118
1119
  delete data.md5;
1119
1120
  delete data.sha256;
1120
1121
  delete data.sha512;
@@ -1127,6 +1128,7 @@ class Deva {
1127
1128
 
1128
1129
  const client = this.client();
1129
1130
  this.lib.setClient(client.sha256);
1131
+
1130
1132
  const agent = this.agent();
1131
1133
  this.lib.setAgent(agent.sha256);
1132
1134
 
@@ -1626,7 +1628,7 @@ class Deva {
1626
1628
  agent() {
1627
1629
  if (!this._active) return this._messages.offline; // check the active status
1628
1630
  const data = this.lib.copy(this._agent); // create a copy of the agent data.
1629
- data.md5 = this.lib.hash(data);
1631
+ data.md5 = this.lib.hash(data, 'md5');
1630
1632
  data.sha256 = this.lib.hash(data, 'sha256');
1631
1633
  data.sha512 = this.lib.hash(data, 'sha512');
1632
1634
  return data; // return the copy of the agent data.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": 45958588982385560000,
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.6.38",
4
+ "version": "1.6.39",
5
5
  "description": "The Deva Core",
6
6
  "main": "index.js",
7
7
  "license": "VLA:45958588982385558603 LICENSE.md",