@tsed/platform-koa 7.53.0 → 7.54.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.
@@ -1,4 +1,4 @@
1
- import { InjectorService, PlatformAdapter, PlatformBuilder, PlatformHandler, PlatformMulter, PlatformMulterSettings, PlatformRequest, PlatformResponse, PlatformStaticsOptions } from "@tsed/common";
1
+ import { PlatformAdapter, PlatformBuilder, PlatformHandler, PlatformMulter, PlatformMulterSettings, PlatformRequest, PlatformResponse, PlatformStaticsOptions } from "@tsed/common";
2
2
  import { Type } from "@tsed/core";
3
3
  import { PlatformHandlerMetadata, PlatformLayer } from "@tsed/platform-router";
4
4
  import Koa from "koa";
@@ -20,8 +20,7 @@ declare global {
20
20
  * @platform
21
21
  * @koa
22
22
  */
23
- export declare class PlatformKoa implements PlatformAdapter<Koa> {
24
- private injector;
23
+ export declare class PlatformKoa extends PlatformAdapter<Koa> {
25
24
  static readonly NAME = "koa";
26
25
  readonly providers: ({
27
26
  provide: typeof PlatformResponse;
@@ -33,7 +32,6 @@ export declare class PlatformKoa implements PlatformAdapter<Koa> {
33
32
  provide: typeof PlatformHandler;
34
33
  useClass: typeof PlatformKoaHandler;
35
34
  })[];
36
- constructor(injector: InjectorService);
37
35
  /**
38
36
  * Create new serverless application. In this mode, the component scan are disabled.
39
37
  * @param module
@@ -50,12 +48,11 @@ export declare class PlatformKoa implements PlatformAdapter<Koa> {
50
48
  mapLayers(layers: PlatformLayer[]): void;
51
49
  mapHandler(handler: Function, metadata: PlatformHandlerMetadata): Function;
52
50
  useContext(): this;
53
- app(): {
51
+ createApp(): {
54
52
  app: any;
55
53
  callback(): any;
56
54
  };
57
55
  multipart(options: PlatformMulterSettings): PlatformMulter;
58
56
  statics(endpoint: string, options: PlatformStaticsOptions): any;
59
57
  bodyParser(type: "json" | "urlencoded" | "raw" | "text", additionalOptions?: any): any;
60
- private getPlatformApplication;
61
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/platform-koa",
3
- "version": "7.53.0",
3
+ "version": "7.54.0",
4
4
  "description": "Koa package for Ts.ED framework",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
@@ -52,12 +52,12 @@
52
52
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/platform/platform-koa",
53
53
  "repository": "https://github.com/tsedio/tsed",
54
54
  "devDependencies": {
55
- "@koa/cors": "3.3.0",
56
- "@tsed/common": "7.53.0",
57
- "@tsed/core": "7.53.0",
58
- "@tsed/di": "7.53.0",
55
+ "@koa/cors": "5.0.0",
56
+ "@tsed/common": "7.54.0",
57
+ "@tsed/core": "7.54.0",
58
+ "@tsed/di": "7.54.0",
59
59
  "@tsed/eslint": "7.44.1",
60
- "@tsed/platform-test-sdk": "7.53.0",
60
+ "@tsed/platform-test-sdk": "7.54.0",
61
61
  "@tsed/typescript": "7.44.1",
62
62
  "@types/koa": "2.13.4",
63
63
  "@types/koa-bodyparser": "4.3.7",
@@ -66,7 +66,7 @@
66
66
  "@types/koa-json": "2.0.20",
67
67
  "@types/koa-mount": "4.0.1",
68
68
  "@types/koa-send": "4.1.3",
69
- "@types/koa-session": "5.10.6",
69
+ "@types/koa-session": "6.4.5",
70
70
  "@types/koa__router": "12.0.0",
71
71
  "eslint": "^8.12.0",
72
72
  "koa": "2.13.4",
@@ -74,7 +74,7 @@
74
74
  "koa-compress": "5.1.0",
75
75
  "koa-override": "3.0.0",
76
76
  "koa-qs": "^3.0.0",
77
- "koa-session": "6.2.0"
77
+ "koa-session": "6.4.0"
78
78
  },
79
79
  "dependencies": {
80
80
  "@koa/router": "^12.0.0",
@@ -84,13 +84,13 @@
84
84
  "tslib": "2.5.0"
85
85
  },
86
86
  "peerDependencies": {
87
- "@tsed/common": "^7.53.0",
88
- "@tsed/core": "^7.53.0",
89
- "@tsed/di": "^7.53.0",
90
- "@tsed/json-mapper": "^7.53.0",
87
+ "@tsed/common": "^7.54.0",
88
+ "@tsed/core": "^7.54.0",
89
+ "@tsed/di": "^7.54.0",
90
+ "@tsed/json-mapper": "^7.54.0",
91
91
  "@tsed/logger": ">=6.2.2",
92
- "@tsed/openspec": "^7.53.0",
93
- "@tsed/schema": "^7.53.0",
92
+ "@tsed/openspec": "^7.54.0",
93
+ "@tsed/schema": "^7.54.0",
94
94
  "koa": ">=2.13.0",
95
95
  "koa-bodyparser": ">=4.3.0",
96
96
  "koa-compress": ">=5.0.1",