@indra.ai/deva.security 0.9.1 → 0.10.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.
@@ -32,12 +32,15 @@ export default {
32
32
 
33
33
  const showJSON = packet.q.meta.params[1] || false;
34
34
  const status = `${key}:uid:${id.uid}`;
35
+ const {VLA} = this.info();
36
+
35
37
  const text = [
36
38
  `${this.box.begin}:${status}`,
37
39
  `uid: ${id.uid}`,
38
40
  `time: ${id.time}`,
39
41
  `date: ${id.date}`,
40
42
  `fingerprint: ${id.fingerprint}`,
43
+ `license: ${VLA.uid}`,
41
44
  `warning: ${id.warning}`,
42
45
  `copyright: ${id.copyright}`,
43
46
  `${this.box.end}:${status}`,
@@ -47,11 +50,9 @@ export default {
47
50
  time: id.time,
48
51
  date: id.date,
49
52
  fingerprint: id.fingerprint,
53
+ license: VLA.uid,
50
54
  warning: id.warning,
51
55
  copyright: id.copyright,
52
- md5: id.md5,
53
- sha256: id.sha256,
54
- sha512: id.sha512,
55
56
  }
56
57
  if (showJSON) {
57
58
  text.push(`${this.box.begin}${key}:uid:json:${data.uid}`);
@@ -327,12 +328,12 @@ export default {
327
328
  data.sha512 = this.hash(date, 'sha512');
328
329
 
329
330
  const text = [
330
- `${this.box.begin}${key}:date:${data.id.uid}`,
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}${key}:date:${data.id.uid}`
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.9.1",
4
+ "version": "0.10.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.26.0",
63
+ "@indra.ai/deva": "^1.27.0",
64
64
  "mongodb": "^6.20.0"
65
65
  },
66
66
  "data": {