@indra.ai/deva 1.6.34 → 1.6.36
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 +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1125,7 +1125,8 @@ class Deva {
|
|
|
1125
1125
|
data.sha256 = this.lib.hash(data, 'sha256');
|
|
1126
1126
|
data.sha512 = this.lib.hash(data, 'sha512');
|
|
1127
1127
|
|
|
1128
|
-
this.
|
|
1128
|
+
const client = this.client();
|
|
1129
|
+
this.lib.setClient(client.sha256); // set the client for the library when everything is ready.
|
|
1129
1130
|
|
|
1130
1131
|
this.state('ready', data.id.uid);
|
|
1131
1132
|
this.talk(config.events.ready, data);
|
|
@@ -1610,7 +1611,7 @@ class Deva {
|
|
|
1610
1611
|
client() {
|
|
1611
1612
|
if (!this._active) return this._messages.offline; // check the active status
|
|
1612
1613
|
const data = this.lib.copy(this._client); // create a copy of the client data
|
|
1613
|
-
data.md5 = this.lib.hash(data);
|
|
1614
|
+
data.md5 = this.lib.hash(data, 'md5');
|
|
1614
1615
|
data.sha256 = this.lib.hash(data, 'sha256');
|
|
1615
1616
|
data.sha512 = this.lib.hash(data, 'sha512');
|
|
1616
1617
|
return data; // return the copy of the client data.
|