@webtypen/webframez-core 0.0.57 → 0.0.58

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.
@@ -10,4 +10,5 @@ export type Request = {
10
10
  rawHeaders: object;
11
11
  url: string;
12
12
  method: string;
13
+ on?: any;
13
14
  };
@@ -266,6 +266,7 @@ class RouterFacade {
266
266
  urlParams: customRequest.urlParams,
267
267
  headers: customRequest.headers,
268
268
  method: customRequest.method,
269
+ on: req ? req.on : undefined,
269
270
  }
270
271
  : req
271
272
  ? {
@@ -287,6 +288,7 @@ class RouterFacade {
287
288
  url: req.url,
288
289
  method: req.method,
289
290
  socket: req.socket,
291
+ on: req.on,
290
292
  }
291
293
  : null;
292
294
  // Check-Middleware
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",
@@ -10,4 +10,5 @@ export type Request = {
10
10
  rawHeaders: object;
11
11
  url: string;
12
12
  method: string;
13
+ on?: any;
13
14
  };
@@ -305,6 +305,7 @@ class RouterFacade {
305
305
  urlParams: customRequest.urlParams,
306
306
  headers: customRequest.headers,
307
307
  method: customRequest.method,
308
+ on: req ? req.on : undefined,
308
309
  }
309
310
  : req
310
311
  ? {
@@ -327,6 +328,7 @@ class RouterFacade {
327
328
  url: req.url,
328
329
  method: req.method,
329
330
  socket: req.socket,
331
+ on: req.on,
330
332
  }
331
333
  : null;
332
334