@indra.ai/deva 1.1.60 → 1.1.61
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 +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1398,7 +1398,7 @@ class Deva {
|
|
|
1398
1398
|
text,
|
|
1399
1399
|
created: Date.now(),
|
|
1400
1400
|
};
|
|
1401
|
-
_data.hash = this.hash(_data, 'sha256')
|
|
1401
|
+
_data.hash = this.hash(_data, 'sha256');
|
|
1402
1402
|
this.talk('devacore:action', this.copy(_data));
|
|
1403
1403
|
} catch (e) {
|
|
1404
1404
|
return this.error(e)
|
|
@@ -1743,7 +1743,7 @@ class Deva {
|
|
|
1743
1743
|
// this.action('hash');
|
|
1744
1744
|
algo = algo || this._security.hash || 'md5';
|
|
1745
1745
|
const the_hash = createHash(algo);
|
|
1746
|
-
the_hash.update(
|
|
1746
|
+
the_hash.update(str.toString());
|
|
1747
1747
|
const _digest = the_hash.digest('base64');
|
|
1748
1748
|
return `${algo}:${_digest}`;
|
|
1749
1749
|
}
|