exodus-framework 2.1.1019 → 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.
- package/lib/app/exodus.d.ts.map +1 -1
- package/lib/app/exodus.js +7 -18
- package/lib/utils/api.d.ts +3 -3
- package/lib/utils/session.d.ts +1 -1
- package/package.json +1 -1
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,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;
|
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;IAO/C,SAAS,CAAC,yBAAyB,CAAC,GAAG,EAAE,KAAK;IAS9C,SAAS,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;IAOhF,SAAS,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;IAS/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
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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/lib/utils/api.d.ts
CHANGED
@@ -7,9 +7,9 @@ declare abstract class Api {
|
|
7
7
|
constructor();
|
8
8
|
init(): Promise<void>;
|
9
9
|
abstract validateStatus(status: number): boolean;
|
10
|
-
request<T>(endpoint: string, method: Method, data?: any, params?: any, headers?: AxiosHeaders): Promise<IApiResponse<T> | import("axios").AxiosResponse<
|
11
|
-
requestDirect<T>(endpoint: string, method: Method, data?: any, params?: any, headers?: AxiosHeaders): Promise<import("axios").AxiosResponse<
|
12
|
-
requestExternal<T>(endpoint: string, method: Method, data?: any, params?: any, headers?: AxiosHeaders): Promise<import("axios").AxiosResponse<
|
10
|
+
request<T>(endpoint: string, method: Method, data?: any, params?: any, headers?: AxiosHeaders): Promise<IApiResponse<T> | import("axios").AxiosResponse<T, any>>;
|
11
|
+
requestDirect<T>(endpoint: string, method: Method, data?: any, params?: any, headers?: AxiosHeaders): Promise<import("axios").AxiosResponse<IApiResponse<T>, any> | import("axios").AxiosResponse<T, any>>;
|
12
|
+
requestExternal<T>(endpoint: string, method: Method, data?: any, params?: any, headers?: AxiosHeaders): Promise<import("axios").AxiosResponse<T, any>>;
|
13
13
|
protected getLogicalSecurityId(): string;
|
14
14
|
}
|
15
15
|
export default Api;
|
package/lib/utils/session.d.ts
CHANGED
@@ -6,6 +6,6 @@ export declare class SessionAPI extends Api {
|
|
6
6
|
'X-Exodus-Core-Version': string;
|
7
7
|
};
|
8
8
|
validateStatus(status: number): boolean;
|
9
|
-
getCertificate(): Promise<import("
|
9
|
+
getCertificate(): Promise<import("..").IApiResponse<string> | import("axios").AxiosResponse<string, any>>;
|
10
10
|
}
|
11
11
|
//# sourceMappingURL=session.d.ts.map
|