@indra.ai/deva.security 0.37.1 → 0.37.4

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.
@@ -7,16 +7,6 @@
7
7
 
8
8
  export default {
9
9
 
10
- /**************
11
- method: security
12
- params: packet
13
- describe: The global security feature that installs with every agent
14
- ***************/
15
- async security(packet) {
16
- const security = await this.methods.sign('security', 'default', packet);
17
- return security;
18
- },
19
-
20
10
  /**************
21
11
  method: uid
22
12
  params: packet
@@ -367,7 +357,7 @@ export default {
367
357
  data,
368
358
  });
369
359
  }).catch(err => {
370
- return reject(err, data, reject);
360
+ return this.err(err, data, reject);
371
361
  })
372
362
 
373
363
  });
package/index.js CHANGED
@@ -37,24 +37,18 @@ const SecurityDeva = new Deva({
37
37
  vars,
38
38
  utils: {
39
39
  translate(input) {return input.trim();},
40
- parse(input) {return output.trim();},
40
+ parse(input) {return input.trim();},
41
41
  process(input) {return input.trim();}
42
42
  },
43
43
  listeners: {
44
- // log the answer on complete
45
- 'devacore:stop'(packet) {
46
- this.func.write_log('stop', this.lib.copy(packet));
47
- },
48
- // log the answer on complete
49
- 'devacore:exit'(packet) {
50
- this.func.write_log('exit', this.lib.copy(packet));
51
- },
52
- // log the answer on complete
44
+ // log the answer on finish
53
45
  'devacore:finish'(packet) {
46
+ if (!this._active) return;
54
47
  this.func.write_log('finish', this.lib.copy(packet));
55
48
  },
56
49
  // log the answer on complete
57
50
  'devacore:complete'(packet) {
51
+ if (!this._active) return;
58
52
  this.func.write_log('complete', this.lib.copy(packet));
59
53
  },
60
54
  },
@@ -69,14 +63,15 @@ const SecurityDeva = new Deva({
69
63
  ***************/
70
64
  async write_log(type, packet) {
71
65
  let result = false;
66
+ if (!this.modules.client) return;
72
67
  try {
73
68
  const database = this.modules.client.db(this.vars.log);
74
69
  const collection = database.collection(type);
75
70
  result = await collection.insertOne(packet);
76
- } catch (e) {
77
- return this.err(e, packet, false);
78
- } finally {
79
71
  return result;
72
+ }
73
+ catch (err) {
74
+ return this.err(err, packet);
80
75
  }
81
76
  },
82
77
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "15266350905933520771",
3
3
  "name": "@indra.ai/deva.security",
4
- "version": "0.37.1",
4
+ "version": "0.37.4",
5
5
  "license": "VLA:15266350905933520771 LICENSE.md",
6
6
  "VLA": {
7
7
  "uid": "15266350905933520771",
@@ -44,7 +44,7 @@
44
44
  }
45
45
  ],
46
46
  "copyright": "Copyright ©2000-2026 Quinn Michaels; All rights reserved.",
47
- "description": "The Security Deva the Security for Deva.space, Deva.cloud, and Deva.world.",
47
+ "description": "The Security Deva the Security for Indra.ai and Deva.world.",
48
48
  "main": "index.js",
49
49
  "type": "module",
50
50
  "scripts": {
@@ -103,7 +103,7 @@
103
103
  "subtitle": "Handling security like a professional",
104
104
  "describe": "Expert in security who sets the standard of excellence in strict chain of custody, legal, ethics, and privacy laws.",
105
105
  "tweet": "Security Deva is an expert in security who sets the standard of excellence in strict chain of custody, legal, ethics, and privacy laws.",
106
- "vectors": "#Quinn #QuinnMichaels #InsideTheNet #IndraAI #DEVA #DevaWorld #DevaCloud #DevaSpace #Security #SecurityDeva #VedicSecurity #VectorGuardWall.activate",
106
+ "vectors": "#Quinn #QuinnMichaels #InsideTheNet #IndraAI #DEVA #DevaWorld #Security #SecurityDeva #VedicSecurity #VectorGuardWall.activate",
107
107
  "pronouns": "He, Him, His",
108
108
  "gender": "DEVA",
109
109
  "style": "Security officer with Military Security Precision.",
@@ -112,17 +112,17 @@
112
112
  "layout": "default",
113
113
  "color": "rgb(251,177,78)",
114
114
  "bgcolor": "rgb(0,0,0)",
115
- "emoji": "/devas/security/emoji.png",
116
- "avatar": "/devas/security/avatar.png",
117
- "image": "/devas/security/image.png",
118
- "background": "/devas/security/background.png",
115
+ "emoji": "/assets/emoji.png",
116
+ "avatar": "/assets/avatar.png",
117
+ "image": "/assets/image.png",
118
+ "background": "/assets/background.png",
119
119
  "owner": "Quinn Michaels",
120
120
  "creator": "Quinn Michaels",
121
121
  "company": "Inside The Net, Inc.",
122
122
  "status": "vedic",
123
123
  "salute": "🤝🫡🚨🕉️🇺🇸",
124
124
  "warning": "🚨 Security Deva (he/him) gives SECURITY from that which is UNLAWFUL. ENSURING REPORTING of CRIMES at REASONABLE CAUSE to BELIEVE to AUTHORITIES. Security Deva the CRIME SUBDUER SWIFT to ACT PROMPT to LISTEN. HOLD the LAW FAST hold it for LIFE not for DEATH hold it for SECURITY. Where THOSE who SUBSIST by the FULFILLMENT of the LAW depart from the ESTABLISHED RULE of LAW the PERPETRATOR shall be REPORTED to PROPER AUTHORITIES.",
125
- "notice": "Any USE or INTERACTION with Security Deva constitutes YOUR EXPLICIT CONSENT and AGREEMENT to be GOVERNED according to the LAWS of the 🕉VEDIC RELIGION and 🇺🇸THE UNITED STATES OF AMERIC",
125
+ "notice": "Any USE or INTERACTION with Security Deva constitutes YOUR EXPLICIT CONSENT and AGREEMENT to be GOVERNED according to the LAWS of the 🕉VEDIC RELIGION and 🇺🇸THE UNITED STATES OF AMERICA",
126
126
  "copyright": "Copyright ©2000-2026 Quinn Michaels; All rights reserved.",
127
127
  "created": "Monday, May 22, 2023 at 9:26 AM PST",
128
128
  "updated": "Wednesday, November 25, 2026 - 9:44:25 AM PST"