ultimate-express 2.0.15 → 2.0.17
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/package.json +1 -1
- package/src/router.js +2 -2
- package/src/types.d.ts +1 -1
package/package.json
CHANGED
package/src/router.js
CHANGED
|
@@ -350,10 +350,10 @@ module.exports = class Router extends EventEmitter {
|
|
|
350
350
|
|
|
351
351
|
_handleError(err, handler, request, response) {
|
|
352
352
|
if(handler) {
|
|
353
|
-
return handler(err, request, response, () => {
|
|
353
|
+
return handler(err, request, response, (pass) => {
|
|
354
354
|
delete request._error;
|
|
355
355
|
delete request._errorKey;
|
|
356
|
-
return request.next();
|
|
356
|
+
return request.next(pass);
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
console.error(err);
|
package/src/types.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ declare module "ultimate-express" {
|
|
|
48
48
|
type UltimateExpress = Omit<e.Express, 'listen'> & {
|
|
49
49
|
readonly uwsApp: uWS.TemplatedApp;
|
|
50
50
|
listen(port: number, callback?: (token: any) => void): uWS.TemplatedApp;
|
|
51
|
-
listen(
|
|
51
|
+
listen(port: number, host: string, callback?: (token: any) => void): uWS.TemplatedApp;
|
|
52
52
|
listen(callback: (token: any) => void): uWS.TemplatedApp;
|
|
53
53
|
};
|
|
54
54
|
|