@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.
- package/index.js +3 -3
- 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(
|
|
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.
|