@indra.ai/deva 1.6.33 → 1.6.35

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 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -581,7 +581,7 @@ class Deva {
581
581
  Done(resolve, reject) {
582
582
  try {
583
583
  delete this._client.features; // delete the features key when done.
584
- this.state('Done', 'Done');
584
+ this.state('Done', 'Done'); // set the done state.
585
585
  return resolve(this._client); // resolve an empty pr
586
586
  } catch (e) {
587
587
  this.state('catch', 'Done');
@@ -1125,7 +1125,7 @@ class Deva {
1125
1125
  data.sha256 = this.lib.hash(data, 'sha256');
1126
1126
  data.sha512 = this.lib.hash(data, 'sha512');
1127
1127
 
1128
- this.lib.setClient(data.sha256); // set the client for the library when everything is ready.
1128
+ this.lib.setClient(this.client().sha256); // set the client for the library when everything is ready.
1129
1129
 
1130
1130
  this.state('ready', data.id.uid);
1131
1131
  this.talk(config.events.ready, data);
@@ -1610,7 +1610,7 @@ class Deva {
1610
1610
  client() {
1611
1611
  if (!this._active) return this._messages.offline; // check the active status
1612
1612
  const data = this.lib.copy(this._client); // create a copy of the client data
1613
- data.md5 = this.lib.hash(data);
1613
+ data.md5 = this.lib.hash(data, 'md5');
1614
1614
  data.sha256 = this.lib.hash(data, 'sha256');
1615
1615
  data.sha512 = this.lib.hash(data, 'sha512');
1616
1616
  return data; // return the copy of the client 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.33",
4
+ "version": "1.6.35",
5
5
  "description": "The Deva Core",
6
6
  "main": "index.js",
7
7
  "license": "VLA:45958588982385558603 LICENSE.md",