@tsed/platform-koa 6.97.2 → 7.0.0-beta.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.
|
@@ -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
|
|
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"]}
|
|
@@ -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
|
|
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": "
|
|
3
|
+
"version": "7.0.0-beta.2",
|
|
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/
|
|
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": "
|
|
53
|
-
"@tsed/core": "
|
|
54
|
-
"@tsed/di": "
|
|
55
|
-
"@tsed/platform-test-utils": "
|
|
52
|
+
"@tsed/common": "7.0.0-beta.2",
|
|
53
|
+
"@tsed/core": "7.0.0-beta.2",
|
|
54
|
+
"@tsed/di": "7.0.0-beta.2",
|
|
55
|
+
"@tsed/platform-test-utils": "7.0.0-beta.2",
|
|
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": "^
|
|
81
|
-
"@tsed/core": "^
|
|
82
|
-
"@tsed/di": "^
|
|
83
|
-
"@tsed/json-mapper": "^
|
|
80
|
+
"@tsed/common": "^7.0.0-beta.2",
|
|
81
|
+
"@tsed/core": "^7.0.0-beta.2",
|
|
82
|
+
"@tsed/di": "^7.0.0-beta.2",
|
|
83
|
+
"@tsed/json-mapper": "^7.0.0-beta.2",
|
|
84
84
|
"@tsed/logger": ">=6.0.0",
|
|
85
|
-
"@tsed/openspec": "^
|
|
86
|
-
"@tsed/schema": "^
|
|
85
|
+
"@tsed/openspec": "^7.0.0-beta.2",
|
|
86
|
+
"@tsed/schema": "^7.0.0-beta.2",
|
|
87
87
|
"koa": ">=2.13.0",
|
|
88
88
|
"koa-bodyparser": ">=4.3.0",
|
|
89
89
|
"koa-compress": ">=5.0.1",
|