@webtypen/webframez-core 0.0.26 → 0.0.27

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.
@@ -25,8 +25,8 @@ class WebApplication {
25
25
  this.server = http_1.default
26
26
  .createServer((req, res) => {
27
27
  Router_1.Router.handleRequest(req, res);
28
- })
29
- .listen(port, () => {
28
+ });
29
+ this.server.listen(port, () => {
30
30
  console.log("Server started and listening on port " +
31
31
  port +
32
32
  (options && options.basename
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
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",
@@ -24,8 +24,9 @@ export class WebApplication {
24
24
  this.server = http
25
25
  .createServer((req, res) => {
26
26
  Router.handleRequest(req, res);
27
- })
28
- .listen(port, () => {
27
+ });
28
+
29
+ this.server.listen(port, () => {
29
30
  console.log(
30
31
  "Server started and listening on port " +
31
32
  port +
@@ -34,7 +35,6 @@ export class WebApplication {
34
35
  : "")
35
36
  );
36
37
  });
37
-
38
- return this.server;
38
+ return this.server;
39
39
  }
40
40
  }