@indra.ai/deva.security 0.0.108 → 0.0.110
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 +9 -6
- package/package.json +2 -2
package/feature/methods.js
CHANGED
|
@@ -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
|
-
|
|
52
|
-
|
|
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.
|
|
4
|
+
"version": "0.0.110",
|
|
5
5
|
"license": "VLA:20583709734722953817 LICENSE.md",
|
|
6
6
|
"VLA": {
|
|
7
7
|
"uid": "20583709734722953817",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"init": "🟠 INIT",
|
|
116
116
|
"start": "🔵 START",
|
|
117
117
|
"enter": "🟢 ENTER",
|
|
118
|
-
"ready": "✅ Security Ready",
|
|
118
|
+
"ready": "✅ Security Deva Ready",
|
|
119
119
|
"stop": "🔴 STOP",
|
|
120
120
|
"exit": "🟡 EXIT",
|
|
121
121
|
"done": "🟣 DONE",
|