@tsed/platform-koa 6.97.1 → 7.0.0-beta.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.
@@ -10,7 +10,7 @@ const common_1 = require("@tsed/common");
10
10
  * @koa
11
11
  */
12
12
  function KoaCtx() {
13
- return (0, common_1.UseParam)("KOA_CTX", {
13
+ return (0, common_1.UseParam)({
14
14
  paramType: "KOA_CTX",
15
15
  dataPath: "$ctx.request.ctx",
16
16
  useConverter: false,
@@ -1 +1 @@
1
- {"version":3,"file":"ctx.js","sourceRoot":"","sources":["../../../src/decorators/ctx.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC;;;;;;GAMG;AACH,SAAgB,MAAM;IACpB,OAAO,IAAA,iBAAQ,EAAC,SAAS,EAAE;QACzB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,kBAAkB;QAC5B,YAAY,EAAE,KAAK;QACnB,aAAa,EAAE,KAAK;KACrB,CAAC,CAAC;AACL,CAAC;AAPD,wBAOC;AAED;;;;;;GAMG;AACH,SAAgB,GAAG;IACjB,OAAO,MAAM,EAAE,CAAC;AAClB,CAAC;AAFD,kBAEC","sourcesContent":["import {UseParam} from \"@tsed/common\";\nimport type {Context} from \"koa\";\n\n/**\n * Return the original Koa context.\n * @decorator\n * @operation\n * @input\n * @koa\n */\nexport function KoaCtx(): ParameterDecorator {\n return UseParam(\"KOA_CTX\", {\n paramType: \"KOA_CTX\",\n dataPath: \"$ctx.request.ctx\",\n useConverter: false,\n useValidation: false\n });\n}\n\n/**\n * Return the original Koa context.\n * @decorator\n * @operation\n * @input\n * @koa\n */\nexport function Ctx(): ParameterDecorator {\n return KoaCtx();\n}\n\nexport type Ctx = Context;\nexport type KoaCtx = Context;\n"]}
1
+ {"version":3,"file":"ctx.js","sourceRoot":"","sources":["../../../src/decorators/ctx.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC;;;;;;GAMG;AACH,SAAgB,MAAM;IACpB,OAAO,IAAA,iBAAQ,EAAC;QACd,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,kBAAkB;QAC5B,YAAY,EAAE,KAAK;QACnB,aAAa,EAAE,KAAK;KACrB,CAAC,CAAC;AACL,CAAC;AAPD,wBAOC;AAED;;;;;;GAMG;AACH,SAAgB,GAAG;IACjB,OAAO,MAAM,EAAE,CAAC;AAClB,CAAC;AAFD,kBAEC","sourcesContent":["import {UseParam} from \"@tsed/common\";\nimport type {Context} from \"koa\";\n\n/**\n * Return the original Koa context.\n * @decorator\n * @operation\n * @input\n * @koa\n */\nexport function KoaCtx(): ParameterDecorator {\n return UseParam({\n paramType: \"KOA_CTX\",\n dataPath: \"$ctx.request.ctx\",\n useConverter: false,\n useValidation: false\n });\n}\n\n/**\n * Return the original Koa context.\n * @decorator\n * @operation\n * @input\n * @koa\n */\nexport function Ctx(): ParameterDecorator {\n return KoaCtx();\n}\n\nexport type Ctx = Context;\nexport type KoaCtx = Context;\n"]}
@@ -7,7 +7,7 @@ import { UseParam } from "@tsed/common";
7
7
  * @koa
8
8
  */
9
9
  export function KoaCtx() {
10
- return UseParam("KOA_CTX", {
10
+ return UseParam({
11
11
  paramType: "KOA_CTX",
12
12
  dataPath: "$ctx.request.ctx",
13
13
  useConverter: false,
@@ -1 +1 @@
1
- {"version":3,"file":"ctx.js","sourceRoot":"","sources":["../../../src/decorators/ctx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC;AAGtC;;;;;;GAMG;AACH,MAAM,UAAU,MAAM;IACpB,OAAO,QAAQ,CAAC,SAAS,EAAE;QACzB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,kBAAkB;QAC5B,YAAY,EAAE,KAAK;QACnB,aAAa,EAAE,KAAK;KACrB,CAAC,CAAC;AACL,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,GAAG;IACjB,OAAO,MAAM,EAAE,CAAC;AAClB,CAAC","sourcesContent":["import {UseParam} from \"@tsed/common\";\nimport type {Context} from \"koa\";\n\n/**\n * Return the original Koa context.\n * @decorator\n * @operation\n * @input\n * @koa\n */\nexport function KoaCtx(): ParameterDecorator {\n return UseParam(\"KOA_CTX\", {\n paramType: \"KOA_CTX\",\n dataPath: \"$ctx.request.ctx\",\n useConverter: false,\n useValidation: false\n });\n}\n\n/**\n * Return the original Koa context.\n * @decorator\n * @operation\n * @input\n * @koa\n */\nexport function Ctx(): ParameterDecorator {\n return KoaCtx();\n}\n\nexport type Ctx = Context;\nexport type KoaCtx = Context;\n"]}
1
+ {"version":3,"file":"ctx.js","sourceRoot":"","sources":["../../../src/decorators/ctx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC;AAGtC;;;;;;GAMG;AACH,MAAM,UAAU,MAAM;IACpB,OAAO,QAAQ,CAAC;QACd,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,kBAAkB;QAC5B,YAAY,EAAE,KAAK;QACnB,aAAa,EAAE,KAAK;KACrB,CAAC,CAAC;AACL,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,GAAG;IACjB,OAAO,MAAM,EAAE,CAAC;AAClB,CAAC","sourcesContent":["import {UseParam} from \"@tsed/common\";\nimport type {Context} from \"koa\";\n\n/**\n * Return the original Koa context.\n * @decorator\n * @operation\n * @input\n * @koa\n */\nexport function KoaCtx(): ParameterDecorator {\n return UseParam({\n paramType: \"KOA_CTX\",\n dataPath: \"$ctx.request.ctx\",\n useConverter: false,\n useValidation: false\n });\n}\n\n/**\n * Return the original Koa context.\n * @decorator\n * @operation\n * @input\n * @koa\n */\nexport function Ctx(): ParameterDecorator {\n return KoaCtx();\n}\n\nexport type Ctx = Context;\nexport type KoaCtx = Context;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/platform-koa",
3
- "version": "6.97.1",
3
+ "version": "7.0.0-beta.1",
4
4
  "description": "Koa package for Ts.ED framework",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
@@ -45,14 +45,14 @@
45
45
  "bugs": {
46
46
  "url": "https://github.com/tsedio/tsed/issues"
47
47
  },
48
- "homepage": "https://github.com/tsedio/tsed/tree/production/packages/platform/platform-koa",
48
+ "homepage": "https://github.com/tsedio/tsed/tree/alpha/packages/platform/platform-koa",
49
49
  "repository": "https://github.com/tsedio/tsed",
50
50
  "devDependencies": {
51
51
  "@koa/cors": "3.1.0",
52
- "@tsed/common": "6.97.1",
53
- "@tsed/core": "6.97.1",
54
- "@tsed/di": "6.97.1",
55
- "@tsed/platform-test-utils": "6.97.1",
52
+ "@tsed/common": "7.0.0-beta.1",
53
+ "@tsed/core": "7.0.0-beta.1",
54
+ "@tsed/di": "7.0.0-beta.1",
55
+ "@tsed/platform-test-utils": "7.0.0-beta.1",
56
56
  "@types/koa": "2.11.3",
57
57
  "@types/koa-bodyparser": "4.3.0",
58
58
  "@types/koa-compose": "3.2.5",
@@ -77,13 +77,13 @@
77
77
  "tslib": "2.2.0"
78
78
  },
79
79
  "peerDependencies": {
80
- "@tsed/common": "^6.97.1",
81
- "@tsed/core": "^6.97.1",
82
- "@tsed/di": "^6.97.1",
83
- "@tsed/json-mapper": "^6.97.1",
80
+ "@tsed/common": "^7.0.0-beta.1",
81
+ "@tsed/core": "^7.0.0-beta.1",
82
+ "@tsed/di": "^7.0.0-beta.1",
83
+ "@tsed/json-mapper": "^7.0.0-beta.1",
84
84
  "@tsed/logger": ">=6.0.0",
85
- "@tsed/openspec": "^6.97.1",
86
- "@tsed/schema": "^6.97.1",
85
+ "@tsed/openspec": "^7.0.0-beta.1",
86
+ "@tsed/schema": "^7.0.0-beta.1",
87
87
  "koa": ">=2.13.0",
88
88
  "koa-bodyparser": ">=4.3.0",
89
89
  "koa-compress": ">=5.0.1",