@indra.ai/deva.security 0.0.63 → 0.0.65
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 +13 -5
- package/package.json +2 -2
package/feature/methods.js
CHANGED
|
@@ -21,20 +21,27 @@ export default {
|
|
|
21
21
|
describe: Return a system id to the user from the Log Buddy.
|
|
22
22
|
***************/
|
|
23
23
|
uid(packet) {
|
|
24
|
-
console.log('uid packet', packet);
|
|
25
|
-
const uid = packet.q.text ? true : false
|
|
26
24
|
this.feature('security', `uid:${packet.id.uid}`);
|
|
25
|
+
this.zone('security', `uid:${packet.id.uid}`);
|
|
26
|
+
|
|
27
|
+
const uid = packet.q.text ? true : false
|
|
27
28
|
const id = this.lib.uid(uid);
|
|
29
|
+
|
|
30
|
+
const {client} = packet.q;
|
|
31
|
+
|
|
28
32
|
const agent = this.agent();
|
|
29
|
-
console.log('before or after uid');
|
|
30
33
|
const {key} = agent;
|
|
34
|
+
|
|
35
|
+
console.log('client sha uid\n', client.sha256, '\n', id.client);
|
|
36
|
+
console.log('agent sha uid\n', agent.sha256, '\n', id.agent);
|
|
37
|
+
|
|
31
38
|
const text = [
|
|
32
39
|
'→',
|
|
33
40
|
`::begin:uid:${key}:${id.uid}`,
|
|
34
41
|
`uid: ${id.uid}`,
|
|
35
42
|
`time: ${id.time}`,
|
|
36
43
|
`date: ${id.date}`,
|
|
37
|
-
`agent: ${id.agent}`,
|
|
44
|
+
`agent: ${id.agent.sha256}`,
|
|
38
45
|
`client: ${id.client}`,
|
|
39
46
|
`pkg: ${id.pkg}`,
|
|
40
47
|
`machine: ${id.machine}`,
|
|
@@ -123,7 +130,8 @@ export default {
|
|
|
123
130
|
|
|
124
131
|
|
|
125
132
|
async sign(packet) {
|
|
126
|
-
console.log('sign
|
|
133
|
+
console.log('client sha sign', packet.q.client.sha256);
|
|
134
|
+
console.log('agent sha sign', packet.q.agent.sha256);
|
|
127
135
|
|
|
128
136
|
const data = this.lib.sign(packet);
|
|
129
137
|
// Text data that is joined by line breaks and then trimmed.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "31477276110836980722",
|
|
3
3
|
"name": "@indra.ai/deva.security",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.65",
|
|
5
5
|
"license": "VLA:36687315706419437672 LICENSE.md",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Quinn A Michaels",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://deva.space/devas/security",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@indra.ai/deva": "^1.6.
|
|
45
|
+
"@indra.ai/deva": "^1.6.43"
|
|
46
46
|
},
|
|
47
47
|
"data": {
|
|
48
48
|
"agent": {
|