@tsed/platform-koa 6.102.4 → 6.102.8-rc.1
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.
- package/lib/cjs/package.json +3 -0
- package/lib/esm/components/PlatformKoa.js +2 -2
- package/lib/esm/decorators/caseSensitive.js +1 -1
- package/lib/esm/decorators/index.js +5 -5
- package/lib/esm/decorators/strict.js +1 -1
- package/lib/esm/index.js +5 -5
- package/lib/esm/interfaces/index.js +1 -1
- package/lib/esm/package.json +3 -0
- package/lib/esm/services/PlatformKoaApplication.js +1 -1
- package/lib/esm/services/PlatformKoaHandler.js +1 -1
- package/lib/esm/services/PlatformKoaRouter.js +2 -2
- package/lib/esm/services/index.js +5 -5
- package/package.json +14 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext, PlatformApplication, PlatformBuilder, PlatformExceptions, PlatformHandler, PlatformRequest, PlatformResponse, PlatformRouter } from "@tsed/common";
|
|
2
|
-
import { resourceNotFoundMiddleware } from "../middlewares/resourceNotFoundMiddleware";
|
|
3
|
-
import { PlatformKoaApplication, PlatformKoaHandler, PlatformKoaRequest, PlatformKoaResponse, PlatformKoaRouter } from "../services";
|
|
2
|
+
import { resourceNotFoundMiddleware } from "../middlewares/resourceNotFoundMiddleware.js";
|
|
3
|
+
import { PlatformKoaApplication, PlatformKoaHandler, PlatformKoaRequest, PlatformKoaResponse, PlatformKoaRouter } from "../services.js";
|
|
4
4
|
/**
|
|
5
5
|
* @platform
|
|
6
6
|
* @koa
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./routerSettings";
|
|
2
|
-
export * from "./caseSensitive";
|
|
3
|
-
export * from "./strict";
|
|
4
|
-
export * from "./state";
|
|
5
|
-
export * from "./ctx";
|
|
1
|
+
export * from "./routerSettings.js";
|
|
2
|
+
export * from "./caseSensitive.js";
|
|
3
|
+
export * from "./strict.js";
|
|
4
|
+
export * from "./state.js";
|
|
5
|
+
export * from "./ctx.js";
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/lib/esm/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PlatformBuilder, PlatformTest } from "@tsed/common";
|
|
2
|
-
import { PlatformKoa } from "./components/PlatformKoa";
|
|
2
|
+
import { PlatformKoa } from "./components/PlatformKoa.js";
|
|
3
3
|
PlatformTest.adapter = PlatformKoa;
|
|
4
4
|
PlatformBuilder.adapter = PlatformKoa;
|
|
5
5
|
// interfaces
|
|
6
|
-
export * from "./interfaces";
|
|
6
|
+
export * from "./interfaces.js";
|
|
7
7
|
// decorators
|
|
8
|
-
export * from "./decorators";
|
|
8
|
+
export * from "./decorators.js";
|
|
9
9
|
// services
|
|
10
|
-
export * from "./services";
|
|
10
|
+
export * from "./services.js";
|
|
11
11
|
// components
|
|
12
|
-
export * from "./components/PlatformKoa";
|
|
12
|
+
export * from "./components/PlatformKoa.js";
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./PlatformKoaSettings";
|
|
1
|
+
export * from "./PlatformKoaSettings.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata, __param } from "tslib";
|
|
2
2
|
import { Configuration, Inject, PlatformHandler } from "@tsed/common";
|
|
3
3
|
import Koa from "koa";
|
|
4
|
-
import { PlatformKoaRouter } from "./PlatformKoaRouter";
|
|
4
|
+
import { PlatformKoaRouter } from "./PlatformKoaRouter.js";
|
|
5
5
|
const koaQs = require("koa-qs");
|
|
6
6
|
/**
|
|
7
7
|
* @platform
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HandlerType, PlatformHandler } from "@tsed/common";
|
|
2
|
-
import "./PlatformKoaRequest";
|
|
2
|
+
import "./PlatformKoaRequest.js";
|
|
3
3
|
const OVERRIDE_TYPES = [HandlerType.ENDPOINT, HandlerType.MIDDLEWARE, HandlerType.ERR_MIDDLEWARE, HandlerType.CTX_FN];
|
|
4
4
|
export class PlatformKoaHandler extends PlatformHandler {
|
|
5
5
|
async flush(data, ctx) {
|
|
@@ -2,8 +2,8 @@ import { __decorate, __metadata, __param } from "tslib";
|
|
|
2
2
|
import KoaRouter from "@koa/router";
|
|
3
3
|
import { PLATFORM_ROUTER_OPTIONS, PlatformHandler, PlatformRouter } from "@tsed/common";
|
|
4
4
|
import { Configuration, Inject } from "@tsed/di";
|
|
5
|
-
import { staticsMiddleware } from "../middlewares/staticsMiddleware";
|
|
6
|
-
import { getMulter } from "../utils/multer";
|
|
5
|
+
import { staticsMiddleware } from "../middlewares/staticsMiddleware.js";
|
|
6
|
+
import { getMulter } from "../utils/multer.js";
|
|
7
7
|
// @ts-ignore
|
|
8
8
|
KoaRouter.prototype.$$match = KoaRouter.prototype.match;
|
|
9
9
|
KoaRouter.prototype.match = function match(...args) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./PlatformKoaApplication";
|
|
2
|
-
export * from "./PlatformKoaHandler";
|
|
3
|
-
export * from "./PlatformKoaRouter";
|
|
4
|
-
export * from "./PlatformKoaRequest";
|
|
5
|
-
export * from "./PlatformKoaResponse";
|
|
1
|
+
export * from "./PlatformKoaApplication.js";
|
|
2
|
+
export * from "./PlatformKoaHandler.js";
|
|
3
|
+
export * from "./PlatformKoaRouter.js";
|
|
4
|
+
export * from "./PlatformKoaRequest.js";
|
|
5
|
+
export * from "./PlatformKoaResponse.js";
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/platform-koa",
|
|
3
|
-
"version": "6.102.
|
|
3
|
+
"version": "6.102.8-rc.1",
|
|
4
4
|
"description": "Koa package for Ts.ED framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/cjs/index.js",
|
|
8
|
+
"module": "./lib/esm/index.js",
|
|
8
9
|
"typings": "./lib/types/index.d.ts",
|
|
9
10
|
"exports": {
|
|
10
11
|
"types": "./lib/types/index.d.ts",
|
|
@@ -45,14 +46,14 @@
|
|
|
45
46
|
"bugs": {
|
|
46
47
|
"url": "https://github.com/tsedio/tsed/issues"
|
|
47
48
|
},
|
|
48
|
-
"homepage": "https://github.com/tsedio/tsed/tree/
|
|
49
|
+
"homepage": "https://github.com/tsedio/tsed/tree/rc/packages/platform/platform-koa",
|
|
49
50
|
"repository": "https://github.com/tsedio/tsed",
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@koa/cors": "3.1.0",
|
|
52
|
-
"@tsed/common": "6.102.
|
|
53
|
-
"@tsed/core": "6.102.
|
|
54
|
-
"@tsed/di": "6.102.
|
|
55
|
-
"@tsed/platform-test-utils": "6.102.
|
|
53
|
+
"@tsed/common": "6.102.8-rc.1",
|
|
54
|
+
"@tsed/core": "6.102.8-rc.1",
|
|
55
|
+
"@tsed/di": "6.102.8-rc.1",
|
|
56
|
+
"@tsed/platform-test-utils": "6.102.8-rc.1",
|
|
56
57
|
"@types/koa": "2.11.3",
|
|
57
58
|
"@types/koa-bodyparser": "4.3.0",
|
|
58
59
|
"@types/koa-compose": "3.2.5",
|
|
@@ -77,6 +78,13 @@
|
|
|
77
78
|
"tslib": "2.2.0"
|
|
78
79
|
},
|
|
79
80
|
"peerDependencies": {
|
|
81
|
+
"@tsed/common": "^6.102.8-rc.1",
|
|
82
|
+
"@tsed/core": "^6.102.8-rc.1",
|
|
83
|
+
"@tsed/di": "^6.102.8-rc.1",
|
|
84
|
+
"@tsed/json-mapper": "^6.102.8-rc.1",
|
|
85
|
+
"@tsed/logger": ">=6.0.2",
|
|
86
|
+
"@tsed/openspec": "^6.102.8-rc.1",
|
|
87
|
+
"@tsed/schema": "^6.102.8-rc.1",
|
|
80
88
|
"koa": ">=2.13.0",
|
|
81
89
|
"koa-bodyparser": ">=4.3.0",
|
|
82
90
|
"koa-compress": ">=5.0.1",
|