@indra.ai/deva.security 0.1.5 → 0.1.6

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.
Files changed (2) hide show
  1. package/feature/methods.js +6 -10
  2. package/package.json +2 -2
@@ -22,28 +22,24 @@ export default {
22
22
  ***************/
23
23
  async uid(packet) {
24
24
  return new Promise((resolve, reject) => {
25
- this.belief('security', `uid:${packet.id.uid}`)
26
25
  this.context('uid', packet.id.uid);
27
26
  this.feature('security', `uid:${packet.id.uid}`);
28
27
  this.zone('security', `uid:${packet.id.uid}`);
28
+ this.belief('security', `uid:${packet.id.uid}`)
29
+ const {client} = packet.q;
29
30
  const agent = this.agent();
30
31
  const {key} = agent;
31
-
32
+
32
33
  const uuid = packet.q.text ? true : false
33
- const {id} = packet;
34
-
35
- const {client} = packet.q;
36
-
34
+ const id = this.uid(uuid);
35
+
37
36
  const showJSON = packet.q.meta.params[1] || false;
38
37
  const text = [
39
38
  `::begin:${key}:uid:${id.uid}`,
40
39
  `uid: ${id.uid}`,
41
40
  `time: ${id.time}`,
42
41
  `date: ${id.date}`,
43
- `client: ${id.client}`,
44
- `agent: ${id.agent}`,
45
- `core: ${id.core}`,
46
- `machine: ${id.machine}`,
42
+ `fingerprint: ${id.fingerprint}`,
47
43
  `warning: ${id.warning}`,
48
44
  `copyright: ${id.copyright}`,
49
45
  `md5: ${id.md5}`,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "45249771785697968797",
3
3
  "name": "@indra.ai/deva.security",
4
- "version": "0.1.5",
4
+ "version": "0.1.6",
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.14.0",
63
+ "@indra.ai/deva": "^1.16.2",
64
64
  "mongodb": "^6.20.0"
65
65
  },
66
66
  "data": {