@spinajs/http 2.0.490 → 2.0.494

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.
@@ -130,19 +130,19 @@ const http = {
130
130
  * Last resort fatal error fallback template, embedded in code
131
131
  * in case if we cannot render any static files
132
132
  */
133
- FatalTemplate: `<html>
134
- <head>
135
- <title>Oooops !</title>
136
- </head>
137
- <body>
138
- <h1>HTTP 500 - Internal Server Error</h1>
139
- <div>Looks like we're having some server issues.</div>
140
- <hr />
141
- <div>
142
- Go back to the previous page and try again. If you think something is broken, report a problem with fallowing ticket number:
143
- </div>
144
- <h3> Ticket no. {ticket}</h3>
145
- </body>
133
+ FatalTemplate: `<html>
134
+ <head>
135
+ <title>Oooops !</title>
136
+ </head>
137
+ <body>
138
+ <h1>HTTP 500 - Internal Server Error</h1>
139
+ <div>Looks like we're having some server issues.</div>
140
+ <hr />
141
+ <div>
142
+ Go back to the previous page and try again. If you think something is broken, report a problem with fallowing ticket number:
143
+ </div>
144
+ <h3> Ticket no. {ticket}</h3>
145
+ </body>
146
146
  </html>`,
147
147
  },
148
148
  };
@@ -215,8 +215,8 @@ async function extractRouteArgs(route, req, res, controllerName) {
215
215
  const sortedParams = paramsWithPriority.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0));
216
216
  for (const { param, handler: routeArgsHandler } of sortedParams) {
217
217
  if (!routeArgsHandler) {
218
- throw new exceptions_1.UnexpectedServerError(`Route parameter not registered for parameter: ${param.Name},
219
- in method: ${String(route.Method)},
218
+ throw new exceptions_1.UnexpectedServerError(`Route parameter not registered for parameter: ${param.Name},
219
+ in method: ${String(route.Method)},
220
220
  in controller: ${controllerName}. Check if you have registered it in DI container.`);
221
221
  }
222
222
  const { Args, CallData } = await routeArgsHandler.extract(callData, callArgs, param, req, res, route);
@@ -125,19 +125,19 @@ const http = {
125
125
  * Last resort fatal error fallback template, embedded in code
126
126
  * in case if we cannot render any static files
127
127
  */
128
- FatalTemplate: `<html>
129
- <head>
130
- <title>Oooops !</title>
131
- </head>
132
- <body>
133
- <h1>HTTP 500 - Internal Server Error</h1>
134
- <div>Looks like we're having some server issues.</div>
135
- <hr />
136
- <div>
137
- Go back to the previous page and try again. If you think something is broken, report a problem with fallowing ticket number:
138
- </div>
139
- <h3> Ticket no. {ticket}</h3>
140
- </body>
128
+ FatalTemplate: `<html>
129
+ <head>
130
+ <title>Oooops !</title>
131
+ </head>
132
+ <body>
133
+ <h1>HTTP 500 - Internal Server Error</h1>
134
+ <div>Looks like we're having some server issues.</div>
135
+ <hr />
136
+ <div>
137
+ Go back to the previous page and try again. If you think something is broken, report a problem with fallowing ticket number:
138
+ </div>
139
+ <h3> Ticket no. {ticket}</h3>
140
+ </body>
141
141
  </html>`,
142
142
  },
143
143
  };
@@ -203,8 +203,8 @@ export async function extractRouteArgs(route, req, res, controllerName) {
203
203
  const sortedParams = paramsWithPriority.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0));
204
204
  for (const { param, handler: routeArgsHandler } of sortedParams) {
205
205
  if (!routeArgsHandler) {
206
- throw new UnexpectedServerError(`Route parameter not registered for parameter: ${param.Name},
207
- in method: ${String(route.Method)},
206
+ throw new UnexpectedServerError(`Route parameter not registered for parameter: ${param.Name},
207
+ in method: ${String(route.Method)},
208
208
  in controller: ${controllerName}. Check if you have registered it in DI container.`);
209
209
  }
210
210
  const { Args, CallData } = await routeArgsHandler.extract(callData, callArgs, param, req, res, route);
@@ -1,15 +1,15 @@
1
- body {
2
- font-family: "Lucida Console", Monaco, monospace;
3
- }
4
-
5
- .container {
6
- display: flex;
7
- justify-content: center;
8
- height: 100%;
9
- }
10
-
11
- .container > .item {
12
- height: 100%;
13
- display: flex;
14
- align-items: center;
15
- }
1
+ body {
2
+ font-family: "Lucida Console", Monaco, monospace;
3
+ }
4
+
5
+ .container {
6
+ display: flex;
7
+ justify-content: center;
8
+ height: 100%;
9
+ }
10
+
11
+ .container > .item {
12
+ height: 100%;
13
+ display: flex;
14
+ align-items: center;
15
+ }