@tsed/platform-koa 8.24.1 → 8.24.2
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.
|
@@ -62,12 +62,12 @@ export class PlatformKoa extends PlatformAdapter {
|
|
|
62
62
|
mapLayers(layers) {
|
|
63
63
|
const options = constant("koa.router", {});
|
|
64
64
|
const rawRouter = new KoaRouter(options);
|
|
65
|
-
|
|
65
|
+
for (const layer of layers) {
|
|
66
66
|
const { path, wildcard } = convertPath(layer.path);
|
|
67
67
|
layer.path = path;
|
|
68
68
|
if (layer.method === "statics") {
|
|
69
69
|
rawRouter.use(path, this.statics(layer.path, layer.opts));
|
|
70
|
-
|
|
70
|
+
continue;
|
|
71
71
|
}
|
|
72
72
|
const handlers = layer.getArgs(false);
|
|
73
73
|
if (wildcard === "*") {
|
|
@@ -77,7 +77,7 @@ export class PlatformKoa extends PlatformAdapter {
|
|
|
77
77
|
}));
|
|
78
78
|
}
|
|
79
79
|
rawRouter[layer.method](path, ...handlers);
|
|
80
|
-
}
|
|
80
|
+
}
|
|
81
81
|
application().getApp().use(rawRouter.routes()).use(rawRouter.allowedMethods());
|
|
82
82
|
}
|
|
83
83
|
mapHandler(handler, metadata) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/platform-koa",
|
|
3
3
|
"description": "Koa package for Ts.ED framework",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.24.
|
|
5
|
+
"version": "8.24.2",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"repository": "https://github.com/tsedio/tsed",
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@koa/cors": "5.0.0",
|
|
57
|
-
"@tsed/barrels": "8.24.
|
|
58
|
-
"@tsed/core": "8.24.
|
|
59
|
-
"@tsed/di": "8.24.
|
|
60
|
-
"@tsed/platform-http": "8.24.
|
|
61
|
-
"@tsed/platform-test-sdk": "8.24.
|
|
62
|
-
"@tsed/typescript": "8.24.
|
|
57
|
+
"@tsed/barrels": "8.24.2",
|
|
58
|
+
"@tsed/core": "8.24.2",
|
|
59
|
+
"@tsed/di": "8.24.2",
|
|
60
|
+
"@tsed/platform-http": "8.24.2",
|
|
61
|
+
"@tsed/platform-test-sdk": "8.24.2",
|
|
62
|
+
"@tsed/typescript": "8.24.2",
|
|
63
63
|
"@types/koa": "2.15.0",
|
|
64
64
|
"@types/koa-bodyparser": "4.3.12",
|
|
65
65
|
"@types/koa-compose": "3.2.8",
|