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.
- package/lib/app/classes/event.js +7 -5
- package/lib/app/exodus.d.ts.map +1 -1
- package/lib/app/exodus.js +16 -12
- package/package.json +1 -1
package/lib/app/classes/event.js
CHANGED
@@ -90,11 +90,13 @@ class ProcessEmitterManager extends _system.default {
|
|
90
90
|
if (cb) cb(err);
|
91
91
|
}
|
92
92
|
});
|
93
|
-
|
94
|
-
|
95
|
-
|
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);
|
package/lib/app/exodus.d.ts.map
CHANGED
@@ -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,MA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B,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
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
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
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
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
|