@indra.ai/deva.security 0.0.109 → 0.0.111

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.
@@ -28,9 +28,10 @@ export default {
28
28
 
29
29
  const uuid = packet.q.text ? true : false
30
30
  const id = this.uid(uuid);
31
-
31
+
32
32
  const {client} = packet.q;
33
-
33
+
34
+ const showJSON = packet.q.meta.params[1] || false;
34
35
  const text = [
35
36
  '→',
36
37
  `::begin:${key}:uid:${id.uid}`,
@@ -47,11 +48,13 @@ export default {
47
48
  `sha256: ${id.sha256}`,
48
49
  `sha512: ${id.sha512}`,
49
50
  `::end:${key}:uid:${id.uid}`,
50
- '----',
51
- JSON.stringify(id, null, 2),
52
- ].join('\n');
51
+ ];
52
+ if (showJSON) {
53
+ text.push('::::');
54
+ text.push(JSON.stringify(id, null, 2));
55
+ }
53
56
  return Promise.resolve({
54
- text,
57
+ text: text.join('\n'),
55
58
  html: false,
56
59
  data: id,
57
60
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "20583709734722953817",
3
3
  "name": "@indra.ai/deva.security",
4
- "version": "0.0.109",
4
+ "version": "0.0.111",
5
5
  "license": "VLA:20583709734722953817 LICENSE.md",
6
6
  "VLA": {
7
7
  "uid": "20583709734722953817",
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "homepage": "https://deva.space/devas/security",
62
62
  "dependencies": {
63
- "@indra.ai/deva": "^1.6.90"
63
+ "@indra.ai/deva": "^1.6.92"
64
64
  },
65
65
  "data": {
66
66
  "agent": {