@spinajs/http-socket 2.0.491 → 2.0.495

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/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # `http`
2
-
3
- > TODO: description
4
-
5
- ## Usage
6
-
7
- ```
8
- const http = require('http');
9
-
10
- // TODO: DEMONSTRATE API
11
- ```
1
+ # `http`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const http = require('http');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -173,8 +173,8 @@ class SocketController extends di_1.AsyncService {
173
173
  for (const [, param] of route.Parameters) {
174
174
  const routeArgsHandler = await (0, util_1.tryGetHash)(argsCache, param.Type, () => di_1.DI.resolve(param.Type));
175
175
  if (!routeArgsHandler) {
176
- throw new exceptions_1.UnexpectedServerError(`invalid route parameter type for param: ${param.Name},
177
- method: ${route.Name},
176
+ throw new exceptions_1.UnexpectedServerError(`invalid route parameter type for param: ${param.Name},
177
+ method: ${route.Name},
178
178
  controller: ${self.constructor.name}`);
179
179
  }
180
180
  const { Args, CallData } = await routeArgsHandler.extract(callData, param, incomingArgs, socket);
@@ -164,8 +164,8 @@ export class SocketController extends AsyncService {
164
164
  for (const [, param] of route.Parameters) {
165
165
  const routeArgsHandler = await tryGetHash(argsCache, param.Type, () => DI.resolve(param.Type));
166
166
  if (!routeArgsHandler) {
167
- throw new UnexpectedServerError(`invalid route parameter type for param: ${param.Name},
168
- method: ${route.Name},
167
+ throw new UnexpectedServerError(`invalid route parameter type for param: ${param.Name},
168
+ method: ${route.Name},
169
169
  controller: ${self.constructor.name}`);
170
170
  }
171
171
  const { Args, CallData } = await routeArgsHandler.extract(callData, param, incomingArgs, socket);