@indra.ai/deva.security 0.37.1 → 0.37.3

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/index.js +7 -18
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -41,20 +41,14 @@ const SecurityDeva = new Deva({
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,15 +63,10 @@ const SecurityDeva = new Deva({
69
63
  ***************/
70
64
  async write_log(type, packet) {
71
65
  let result = false;
72
- try {
73
- const database = this.modules.client.db(this.vars.log);
74
- const collection = database.collection(type);
75
- result = await collection.insertOne(packet);
76
- } catch (e) {
77
- return this.err(e, packet, false);
78
- } finally {
79
- return result;
80
- }
66
+ const database = this.modules.client.db(this.vars.log);
67
+ const collection = database.collection(type);
68
+ result = await collection.insertOne(packet);
69
+ return result;
81
70
  },
82
71
 
83
72
  },
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.3",
5
5
  "license": "VLA:15266350905933520771 LICENSE.md",
6
6
  "VLA": {
7
7
  "uid": "15266350905933520771",
@@ -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.",
@@ -122,7 +122,7 @@
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"