@indra.ai/deva 1.6.22 → 1.6.23
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 +4 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -121,7 +121,7 @@ class LIB {
|
|
|
121
121
|
const client_hash = this.hash(client, 'sha256');
|
|
122
122
|
|
|
123
123
|
const {key, method, params} = meta;
|
|
124
|
-
const opts = this.
|
|
124
|
+
const opts = this.copy(params); // copy the params and set as opts.
|
|
125
125
|
|
|
126
126
|
const transport = id.uid; // set the transport id from the packet id.
|
|
127
127
|
const created = this.formatDate(time, 'long', true); // Formatted created date.
|
|
@@ -163,9 +163,9 @@ class LIB {
|
|
|
163
163
|
created,
|
|
164
164
|
copyright: client.copyright || agent.copyright,
|
|
165
165
|
};
|
|
166
|
-
data.md5 = this.
|
|
167
|
-
data.sha256 = this.
|
|
168
|
-
data.sha512 = this.
|
|
166
|
+
data.md5 = this.hash(data, 'md5'); // hash data packet into md5 and inert into data.
|
|
167
|
+
data.sha256 = this.hash(data, 'sha256'); // hash data into sha 256 then set in data.
|
|
168
|
+
data.sha512 = this.hash(data, 'sha512'); // hash data into sha 512 then set in data.
|
|
169
169
|
return data;
|
|
170
170
|
}
|
|
171
171
|
|