@indra.ai/deva.security 0.5.1 → 0.5.2
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/feature/methods.js +4 -4
- package/package.json +2 -2
package/feature/methods.js
CHANGED
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
const status = `${agent.key}:hash:${data.id.uid}`;
|
|
155
155
|
|
|
156
156
|
const text = [
|
|
157
|
-
`${this.box.begin}
|
|
157
|
+
`${this.box.begin}:${status}`,
|
|
158
158
|
`uid: ${data.id.uid}`,
|
|
159
159
|
`algo: ${data.algo}`,
|
|
160
160
|
`text: ${data.text}`,
|
|
@@ -163,7 +163,7 @@ export default {
|
|
|
163
163
|
`date: ${data.id.date}`,
|
|
164
164
|
`warning: ${data.id.warning}`,
|
|
165
165
|
`copyright: ${data.id.copyright}`,
|
|
166
|
-
`${this.box.end}
|
|
166
|
+
`${this.box.end}:${status}`,
|
|
167
167
|
].join('\n');
|
|
168
168
|
|
|
169
169
|
this.action('return', `hash:${data.id.uid}`);
|
|
@@ -205,7 +205,7 @@ export default {
|
|
|
205
205
|
|
|
206
206
|
this.state('set', `encrypt:text:${id.uid}`)
|
|
207
207
|
const text = [
|
|
208
|
-
`${this.box.begin}
|
|
208
|
+
`${this.box.begin}:${status}`,
|
|
209
209
|
`uid: ${id.uid}`,
|
|
210
210
|
`text: ${q.text}`,
|
|
211
211
|
`iv: ${data.iv}`,
|
|
@@ -218,7 +218,7 @@ export default {
|
|
|
218
218
|
`md5: ${data.md5}`,
|
|
219
219
|
`sha256: ${data.sha256}`,
|
|
220
220
|
`sha512: ${data.sha512}`,
|
|
221
|
-
`${this.box.end}
|
|
221
|
+
`${this.box.end}:${status}`,
|
|
222
222
|
].join('\n');
|
|
223
223
|
|
|
224
224
|
this.action('return', `encrypt:${id.uid}`); // set action return
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "45249771785697968797",
|
|
3
3
|
"name": "@indra.ai/deva.security",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"license": "VLA:45249771785697968797 LICENSE.md",
|
|
6
6
|
"VLA": {
|
|
7
7
|
"uid": "45249771785697968797",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"homepage": "https://deva.space/devas/security",
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@indra.ai/deva": "^1.23.
|
|
63
|
+
"@indra.ai/deva": "^1.23.2",
|
|
64
64
|
"mongodb": "^6.20.0"
|
|
65
65
|
},
|
|
66
66
|
"data": {
|