@indra.ai/deva.security 0.0.63 → 0.0.64
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 -4
- package/package.json +2 -2
package/feature/methods.js
CHANGED
|
@@ -21,13 +21,21 @@ 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
|
+
|
|
38
|
+
console.log('agent uid', agent);
|
|
31
39
|
const text = [
|
|
32
40
|
'→',
|
|
33
41
|
`::begin:uid:${key}:${id.uid}`,
|
|
@@ -123,7 +131,8 @@ export default {
|
|
|
123
131
|
|
|
124
132
|
|
|
125
133
|
async sign(packet) {
|
|
126
|
-
console.log('sign
|
|
134
|
+
console.log('client sha sign', packet.q.client.sha256);
|
|
135
|
+
console.log('agent sha sign', packet.q.agent.sha256);
|
|
127
136
|
|
|
128
137
|
const data = this.lib.sign(packet);
|
|
129
138
|
// 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.64",
|
|
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.42"
|
|
46
46
|
},
|
|
47
47
|
"data": {
|
|
48
48
|
"agent": {
|