@tsed/platform-express 8.24.1 → 8.25.0

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.
@@ -85,13 +85,13 @@ export class PlatformExpress extends PlatformAdapter {
85
85
  mapLayers(layers) {
86
86
  const rawApp = this.app.getApp();
87
87
  const version = getVersion();
88
- layers.forEach((layer) => {
88
+ for (const layer of layers) {
89
89
  const handlers = layer.getArgs(false);
90
90
  const { path, wildcard } = convertPath(layer.path, version);
91
91
  layer.path = path;
92
92
  if (layer.method === "statics") {
93
93
  rawApp.use(path, this.statics(path, layer.opts));
94
- return;
94
+ continue;
95
95
  }
96
96
  if (wildcard) {
97
97
  handlers.unshift(((req, _, next) => {
@@ -108,7 +108,7 @@ export class PlatformExpress extends PlatformAdapter {
108
108
  }));
109
109
  }
110
110
  rawApp[layer.method](path, ...handlers);
111
- });
111
+ }
112
112
  }
113
113
  mapHandler(handler, metadata) {
114
114
  if (metadata.type == PlatformHandlerType.ERR_MIDDLEWARE) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/platform-express",
3
3
  "description": "A TypeScript Framework on top of Express",
4
4
  "type": "module",
5
- "version": "8.24.1",
5
+ "version": "8.25.0",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -58,13 +58,13 @@
58
58
  "tslib": "2.7.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@tsed/barrels": "8.24.1",
62
- "@tsed/core": "8.24.1",
63
- "@tsed/di": "8.24.1",
64
- "@tsed/platform-http": "8.24.1",
65
- "@tsed/platform-test-sdk": "8.24.1",
66
- "@tsed/platform-views": "8.24.1",
67
- "@tsed/typescript": "8.24.1",
61
+ "@tsed/barrels": "8.25.0",
62
+ "@tsed/core": "8.25.0",
63
+ "@tsed/di": "8.25.0",
64
+ "@tsed/platform-http": "8.25.0",
65
+ "@tsed/platform-test-sdk": "8.25.0",
66
+ "@tsed/platform-views": "8.25.0",
67
+ "@tsed/typescript": "8.25.0",
68
68
  "@types/body-parser": "1.19.5",
69
69
  "@types/compression": "1.7.5",
70
70
  "@types/cookie-parser": "1.4.7",