@webtypen/webframez-core 0.2.4 → 0.2.6

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.
@@ -8,6 +8,9 @@ class StringFunctionsFacade {
8
8
  string = string.replace(new RegExp(" ", "g"), " ");
9
9
  string = string.replace(new RegExp(" ", "g"), "-");
10
10
  string = string.replace(new RegExp("_", "g"), "-");
11
+ string = string.replace(new RegExp("----", "g"), "-");
12
+ string = string.replace(new RegExp("---", "g"), "-");
13
+ string = string.replace(new RegExp("--", "g"), "-");
11
14
  const replacements = {
12
15
  Ä: "AE",
13
16
  ä: "ae",
@@ -221,7 +221,7 @@ class RouterFacade {
221
221
  response.setServerResponse(res);
222
222
  }
223
223
  if (!route) {
224
- return this.handleError(request, response, 404, "Not found ...");
224
+ return this.handleError(request, response, 404, "Not found '" + request.url + "' ...");
225
225
  }
226
226
  if (!(route.component && typeof route.component === "function") && !(route.controller && route.method_name)) {
227
227
  return this.handleError(request, response, 404, "Missing route function ...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
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",
@@ -5,6 +5,9 @@ class StringFunctionsFacade {
5
5
  string = string.replace(new RegExp(" ", "g"), " ");
6
6
  string = string.replace(new RegExp(" ", "g"), "-");
7
7
  string = string.replace(new RegExp("_", "g"), "-");
8
+ string = string.replace(new RegExp("----", "g"), "-");
9
+ string = string.replace(new RegExp("---", "g"), "-");
10
+ string = string.replace(new RegExp("--", "g"), "-");
8
11
 
9
12
  const replacements: { [key: string]: string } = {
10
13
  Ä: "AE",
@@ -256,7 +256,7 @@ class RouterFacade {
256
256
  }
257
257
 
258
258
  if (!route) {
259
- return this.handleError(request, response, 404, "Not found ...");
259
+ return this.handleError(request, response, 404, "Not found '" + request.url + "' ...");
260
260
  }
261
261
 
262
262
  if (!(route.component && typeof route.component === "function") && !(route.controller && route.method_name)) {