@indra.ai/deva.security 0.4.0 → 0.4.1

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.
@@ -33,7 +33,7 @@ export default {
33
33
  const showJSON = packet.q.meta.params[1] || false;
34
34
  const status = `${key}:uid:${id.uid}`;
35
35
  const text = [
36
- `::begin:${status}`,
36
+ `${this.box.begin}${status}`,
37
37
  `uid: ${id.uid}`,
38
38
  `time: ${id.time}`,
39
39
  `date: ${id.date}`,
@@ -43,7 +43,7 @@ export default {
43
43
  `md5: ${id.md5}`,
44
44
  `sha256: ${id.sha256}`,
45
45
  `sha512: ${id.sha512}`,
46
- `::end:${status}`,
46
+ `${this.box.end}${status}`,
47
47
  ];
48
48
  const data = {
49
49
  uid: id.uid,
@@ -57,9 +57,9 @@ export default {
57
57
  sha512: id.sha512,
58
58
  }
59
59
  if (showJSON) {
60
- text.push(`::begin:${key}:uid:json:${data.uid}`);
60
+ text.push(`${this.box.begin}${key}:uid:json:${data.uid}`);
61
61
  text.push(JSON.stringify(data, null, 2));
62
- text.push(`::end:${key}:uid:json:${data.uid}`);
62
+ text.push(`${this.box.end}${key}:uid:json:${data.uid}`);
63
63
  }
64
64
 
65
65
  this.question(`${this.askChr}feecting parse ${text.join('\n')}`).then(parsed => {
@@ -159,7 +159,7 @@ export default {
159
159
  const status = `${agent.key}:${data.algo}:${data.id.uid}`;
160
160
 
161
161
  const text = [
162
- `::begin:${status}`,
162
+ `${this.box.begin}${status}`,
163
163
  `uid: ${data.id.uid}`,
164
164
  `algo: ${data.algo}`,
165
165
  `text: ${data.text}`,
@@ -167,7 +167,7 @@ export default {
167
167
  `time: ${data.time}`,
168
168
  `date: ${data.date}`,
169
169
  `copyright: ${data.copyright}`,
170
- `::end:${status}`,
170
+ `${this.box.end}${status}`,
171
171
  ].join('\n');
172
172
 
173
173
  this.action('return', `hash:${id.uid}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "45249771785697968797",
3
3
  "name": "@indra.ai/deva.security",
4
- "version": "0.4.0",
4
+ "version": "0.4.1",
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.22.0",
63
+ "@indra.ai/deva": "^1.22.1",
64
64
  "mongodb": "^6.20.0"
65
65
  },
66
66
  "data": {