exodus-framework 2.1.1022 → 2.1.1024

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.
@@ -90,11 +90,13 @@ class ProcessEmitterManager extends _system.default {
90
90
  if (cb) cb(err);
91
91
  }
92
92
  });
93
- process.on('unhandledRejection', (reason, promise) => {
94
- for (const cb of this.processRejectionHandles) {
95
- if (cb) cb(reason, promise);
96
- }
97
- });
93
+
94
+ /* process.on('unhandledRejection', (reason, promise) => {
95
+ for (const cb of this.processRejectionHandles) {
96
+ if (cb) cb(reason, promise);
97
+ }
98
+ }); */
99
+
98
100
  process.on('exit', code => {
99
101
  for (const cb of this.processExitHandles) {
100
102
  if (cb) cb(code);
@@ -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,CAA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,CAAC,yBAAyB,CAAC,GAAG,EAAE,KAAK;IAS9C,SAAS,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;IAShF,SAAS,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;IAW/E,OAAO,CAAC,mBAAmB;IAkBd,QAAQ,CAAC,MAAM,GAAE,MAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;YAGjD,gBAAgB;CAwF/B;AACD,eAAe,MAAM,CAAC"}
package/lib/app/exodus.js CHANGED
@@ -144,21 +144,25 @@ class Exodus extends _managed.default {
144
144
  //# UNHANDLED REJECTION
145
145
  onClusterUnhandledRejection(reason, promise) {
146
146
  const msg = `Erro não tratado em uma promisse no cluster: ${reason}`;
147
- this.log(msg, 'danger');
148
- (0, _logger2.default)().fatal({
149
- reason,
150
- promise
151
- }, msg);
152
- (0, _process.exit)(1);
147
+ promise.catch(error => {
148
+ this.log(msg, 'danger');
149
+ (0, _logger2.default)().fatal({
150
+ reason,
151
+ promise
152
+ }, msg);
153
+ (0, _process.exit)(1);
154
+ });
153
155
  }
154
156
  onMasterUnhandledRejection(reason, promise) {
155
157
  const msg = `Erro não tratado em uma promisse no master: ${reason}`;
156
- this.log(msg, 'danger');
157
- (0, _logger2.default)().fatal({
158
- reason,
159
- promise
160
- }, msg);
161
- (0, _process.exit)(1);
158
+ promise.catch(error => {
159
+ this.log(msg, 'danger');
160
+ (0, _logger2.default)().fatal({
161
+ reason,
162
+ promise
163
+ }, msg);
164
+ (0, _process.exit)(1);
165
+ });
162
166
  }
163
167
 
164
168
  //# HELPER METHODS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.1.1022",
3
+ "version": "2.1.1024",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",