@indra.ai/deva 1.6.20 → 1.6.22
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/lib/index.js +3 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -132,7 +132,8 @@ class LIB {
|
|
|
132
132
|
const packet_hash = this.hash(packet, 'sha256');
|
|
133
133
|
const laws_hash = this.hash(agent.laws || client.laws, 'sha256');
|
|
134
134
|
const token = this.hash(`${key} client:${client.profile.id} fullname:${client.profile.fullname} transport:${transport}`, 'sha256');
|
|
135
|
-
|
|
135
|
+
|
|
136
|
+
// build the main data packet.
|
|
136
137
|
const data = {
|
|
137
138
|
id,
|
|
138
139
|
key,
|
|
@@ -166,7 +167,7 @@ class LIB {
|
|
|
166
167
|
data.sha256 = this.lib.hash(data, 'sha256'); // hash data into sha 256 then set in data.
|
|
167
168
|
data.sha512 = this.lib.hash(data, 'sha512'); // hash data into sha 512 then set in data.
|
|
168
169
|
return data;
|
|
169
|
-
}
|
|
170
|
+
}
|
|
170
171
|
|
|
171
172
|
/**************
|
|
172
173
|
func: hash
|