@indra.ai/deva.security 0.9.1 → 0.11.0
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 +6 -5
- package/package.json +2 -2
package/feature/methods.js
CHANGED
|
@@ -32,6 +32,7 @@ export default {
|
|
|
32
32
|
|
|
33
33
|
const showJSON = packet.q.meta.params[1] || false;
|
|
34
34
|
const status = `${key}:uid:${id.uid}`;
|
|
35
|
+
|
|
35
36
|
const text = [
|
|
36
37
|
`${this.box.begin}:${status}`,
|
|
37
38
|
`uid: ${id.uid}`,
|
|
@@ -39,6 +40,7 @@ export default {
|
|
|
39
40
|
`date: ${id.date}`,
|
|
40
41
|
`fingerprint: ${id.fingerprint}`,
|
|
41
42
|
`warning: ${id.warning}`,
|
|
43
|
+
`license: ${id.license}`,
|
|
42
44
|
`copyright: ${id.copyright}`,
|
|
43
45
|
`${this.box.end}:${status}`,
|
|
44
46
|
];
|
|
@@ -48,10 +50,8 @@ export default {
|
|
|
48
50
|
date: id.date,
|
|
49
51
|
fingerprint: id.fingerprint,
|
|
50
52
|
warning: id.warning,
|
|
53
|
+
license: id.license,
|
|
51
54
|
copyright: id.copyright,
|
|
52
|
-
md5: id.md5,
|
|
53
|
-
sha256: id.sha256,
|
|
54
|
-
sha512: id.sha512,
|
|
55
55
|
}
|
|
56
56
|
if (showJSON) {
|
|
57
57
|
text.push(`${this.box.begin}${key}:uid:json:${data.uid}`);
|
|
@@ -159,6 +159,7 @@ export default {
|
|
|
159
159
|
`time: ${data.id.time}`,
|
|
160
160
|
`date: ${data.id.date}`,
|
|
161
161
|
`warning: ${data.id.warning}`,
|
|
162
|
+
`license: ${data.id.license}`,
|
|
162
163
|
`copyright: ${data.id.copyright}`,
|
|
163
164
|
`${this.box.end}:${status}`,
|
|
164
165
|
].join('\n');
|
|
@@ -327,12 +328,12 @@ export default {
|
|
|
327
328
|
data.sha512 = this.hash(date, 'sha512');
|
|
328
329
|
|
|
329
330
|
const text = [
|
|
330
|
-
`${this.box.begin}
|
|
331
|
+
`${this.box.begin}:${key}:date:${data.id.uid}`,
|
|
331
332
|
`date: ${data.date}`,
|
|
332
333
|
`md5: ${data.md5}`,
|
|
333
334
|
`sha256: ${data.sha256}`,
|
|
334
335
|
`sha512: ${data.sha512}`,
|
|
335
|
-
`${this.box.end}
|
|
336
|
+
`${this.box.end}$:{key}:date:${data.id.uid}`
|
|
336
337
|
].join('\n');
|
|
337
338
|
this.action('return', `date:${id.uid}`);
|
|
338
339
|
this.state('valid', `date:${id.uid}`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "32562709245022934531",
|
|
3
3
|
"name": "@indra.ai/deva.security",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"license": "VLA:32562709245022934531 LICENSE.md",
|
|
6
6
|
"VLA": {
|
|
7
7
|
"uid": "32562709245022934531",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"homepage": "https://deva.space/devas/security",
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@indra.ai/deva": "^1.
|
|
63
|
+
"@indra.ai/deva": "^1.27.0",
|
|
64
64
|
"mongodb": "^6.20.0"
|
|
65
65
|
},
|
|
66
66
|
"data": {
|