exodus-framework 2.1.1020 → 2.1.1021

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.
@@ -1 +1 @@
1
- {"version":3,"file":"exodus.d.ts","sourceRoot":"","sources":["../../src/app/exodus.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,OAAO,EAAE,MAAM,GAAG,CAAC;AAG1C,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAExC,OAAO,YAAY,MAAM,YAAY,CAAC;AAWtC,cAAM,MAAO,SAAQ,OAAO;IAC1B,OAAO,CAAC,QAAQ,CAAY;IAC5B,OAAO,CAAC,cAAc,CAAkB;IACxC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC;gBAEX,QAAQ,EAAE,YAAY;IAUrB,KAAK;IAwBlB,OAAO,CAAC,cAAc;IAef,QAAQ,CAAC,OAAO,EAAE,OAAO,OAAO;YAGzB,YAAY;YAiBZ,YAAY;IAsB1B,MAAM,CAAC,YAAY,IAAI,IAAI;IAK3B,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM;IAM7B,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO;IAM1C,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO;IAMzC,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO;IAQ1C,SAAS,CAAC,0BAA0B,CAAC,GAAG,EAAE,KAAK;IAS/C,SAAS,CAAC,yBAAyB,CAAC,GAAG,EAAE,KAAK;IAW9C,SAAS,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;IAgBhF,SAAS,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;IAiB/E,OAAO,CAAC,mBAAmB;IAkBd,QAAQ,CAAC,MAAM,GAAE,MAAiB,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AwF/B;AACD,eAAe,MAAM,CAAC"}
package/lib/app/exodus.js CHANGED
@@ -114,17 +114,17 @@ class Exodus extends _managed.default {
114
114
  onSIGTERM(signal) {
115
115
  super.onSIGTERM(signal);
116
116
  this.log('Processo encerrado pelo sistema', 'especial');
117
- this.gracefulShutdown('SIGTERM');
117
+ (0, _process.exit)();
118
118
  }
119
119
  onSIGINT(signal) {
120
120
  super.onSIGINT(signal);
121
121
  this.log('Processo encerrado pelo usuário', 'especial');
122
- this.gracefulShutdown('SIGINT');
122
+ (0, _process.exit)();
123
123
  }
124
124
  onSIGUSR2(signal) {
125
125
  super.onSIGUSR2(signal);
126
126
  this.log('Processo encerrado via SIGUSR2', 'especial');
127
- this.gracefulShutdown('SIGUSR2');
127
+ (0, _process.exit)();
128
128
  }
129
129
 
130
130
  //# UNCAUGHT EXCEPTION
@@ -132,17 +132,13 @@ class Exodus extends _managed.default {
132
132
  const msg = `Uma excessão ocorreu no cluster: ${err.message}`;
133
133
  this.log(msg, 'danger');
134
134
  (0, _logger2.default)().fatal(err, msg);
135
-
136
- // Inicia graceful shutdown para cluster
137
- this.gracefulShutdown('UNCAUGHT_EXCEPTION', err);
135
+ throw err;
138
136
  }
139
137
  onMasterUncaughtException(err) {
140
138
  const msg = `Uma excessão ocorreu no master: ${err.message}`;
141
139
  this.log(msg, 'danger');
142
140
  (0, _logger2.default)().fatal(err, msg);
143
-
144
- // Inicia graceful shutdown para master
145
- this.gracefulShutdown('UNCAUGHT_EXCEPTION', err);
141
+ throw err;
146
142
  }
147
143
 
148
144
  //# UNHANDLED REJECTION
@@ -153,11 +149,7 @@ class Exodus extends _managed.default {
153
149
  reason,
154
150
  promise
155
151
  }, msg);
156
- promise.catch(() => {
157
- // Promise já foi logada, apenas consumindo o erro para parar a propagação
158
- });
159
- this.log('Rejection crítica detectada. Iniciando graceful shutdown...', 'danger');
160
- this.gracefulShutdown('CRITICAL_UNHANDLED_REJECTION', reason instanceof Error ? reason : new Error(String(reason)));
152
+ (0, _process.exit)(1);
161
153
  }
162
154
  onMasterUnhandledRejection(reason, promise) {
163
155
  const msg = `Erro não tratado em uma promisse no master: ${reason}`;
@@ -166,10 +158,7 @@ class Exodus extends _managed.default {
166
158
  reason,
167
159
  promise
168
160
  }, msg);
169
- promise.catch(() => {
170
- // Promise já foi logada, apenas consumindo o erro para parar a propagação
171
- });
172
- this.gracefulShutdown('CRITICAL_UNHANDLED_REJECTION', reason instanceof Error ? reason : new Error(String(reason)));
161
+ (0, _process.exit)(1);
173
162
  }
174
163
 
175
164
  //# HELPER METHODS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.1.1020",
3
+ "version": "2.1.1021",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",