@tsoa-next/runtime 7.1.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.
- package/README.MD +3 -0
- package/dist/config.d.ts +240 -0
- package/dist/config.js +3 -0
- package/dist/config.js.map +1 -0
- package/dist/decorators/customAttribute.d.ts +1 -0
- package/dist/decorators/customAttribute.js +9 -0
- package/dist/decorators/customAttribute.js.map +1 -0
- package/dist/decorators/deprecated.d.ts +4 -0
- package/dist/decorators/deprecated.js +12 -0
- package/dist/decorators/deprecated.js.map +1 -0
- package/dist/decorators/example.d.ts +1 -0
- package/dist/decorators/example.js +9 -0
- package/dist/decorators/example.js.map +1 -0
- package/dist/decorators/extension.d.ts +4 -0
- package/dist/decorators/extension.js +9 -0
- package/dist/decorators/extension.js.map +1 -0
- package/dist/decorators/methods.d.ts +7 -0
- package/dist/decorators/methods.js +45 -0
- package/dist/decorators/methods.js.map +1 -0
- package/dist/decorators/middlewares.d.ts +15 -0
- package/dist/decorators/middlewares.js +53 -0
- package/dist/decorators/middlewares.js.map +1 -0
- package/dist/decorators/operationid.d.ts +1 -0
- package/dist/decorators/operationid.js +9 -0
- package/dist/decorators/operationid.js.map +1 -0
- package/dist/decorators/parameter.d.ts +73 -0
- package/dist/decorators/parameter.js +141 -0
- package/dist/decorators/parameter.js.map +1 -0
- package/dist/decorators/response.d.ts +17 -0
- package/dist/decorators/response.js +38 -0
- package/dist/decorators/response.js.map +1 -0
- package/dist/decorators/route.d.ts +5 -0
- package/dist/decorators/route.js +18 -0
- package/dist/decorators/route.js.map +1 -0
- package/dist/decorators/security.d.ts +10 -0
- package/dist/decorators/security.js +21 -0
- package/dist/decorators/security.js.map +1 -0
- package/dist/decorators/tags.d.ts +1 -0
- package/dist/decorators/tags.js +9 -0
- package/dist/decorators/tags.js.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/controller.d.ts +16 -0
- package/dist/interfaces/controller.js +24 -0
- package/dist/interfaces/controller.js.map +1 -0
- package/dist/interfaces/file.d.ts +31 -0
- package/dist/interfaces/file.js +3 -0
- package/dist/interfaces/file.js.map +1 -0
- package/dist/interfaces/iocModule.d.ts +7 -0
- package/dist/interfaces/iocModule.js +3 -0
- package/dist/interfaces/iocModule.js.map +1 -0
- package/dist/interfaces/response.d.ts +5 -0
- package/dist/interfaces/response.js +3 -0
- package/dist/interfaces/response.js.map +1 -0
- package/dist/metadataGeneration/tsoa.d.ts +219 -0
- package/dist/metadataGeneration/tsoa.js +3 -0
- package/dist/metadataGeneration/tsoa.js.map +1 -0
- package/dist/routeGeneration/additionalProps.d.ts +6 -0
- package/dist/routeGeneration/additionalProps.js +3 -0
- package/dist/routeGeneration/additionalProps.js.map +1 -0
- package/dist/routeGeneration/templateHelpers.d.ts +203 -0
- package/dist/routeGeneration/templateHelpers.js +859 -0
- package/dist/routeGeneration/templateHelpers.js.map +1 -0
- package/dist/routeGeneration/templates/express/expressTemplateService.d.ts +29 -0
- package/dist/routeGeneration/templates/express/expressTemplateService.js +118 -0
- package/dist/routeGeneration/templates/express/expressTemplateService.js.map +1 -0
- package/dist/routeGeneration/templates/hapi/hapiTemplateService.d.ts +36 -0
- package/dist/routeGeneration/templates/hapi/hapiTemplateService.js +120 -0
- package/dist/routeGeneration/templates/hapi/hapiTemplateService.js.map +1 -0
- package/dist/routeGeneration/templates/index.d.ts +4 -0
- package/dist/routeGeneration/templates/index.js +21 -0
- package/dist/routeGeneration/templates/index.js.map +1 -0
- package/dist/routeGeneration/templates/koa/koaTemplateService.d.ts +29 -0
- package/dist/routeGeneration/templates/koa/koaTemplateService.js +116 -0
- package/dist/routeGeneration/templates/koa/koaTemplateService.js.map +1 -0
- package/dist/routeGeneration/templates/templateService.d.ts +15 -0
- package/dist/routeGeneration/templates/templateService.js +37 -0
- package/dist/routeGeneration/templates/templateService.js.map +1 -0
- package/dist/routeGeneration/tsoa-route.d.ts +56 -0
- package/dist/routeGeneration/tsoa-route.js +11 -0
- package/dist/routeGeneration/tsoa-route.js.map +1 -0
- package/dist/swagger/swagger.d.ts +550 -0
- package/dist/swagger/swagger.js +12 -0
- package/dist/swagger/swagger.js.map +1 -0
- package/dist/utils/assertNever.d.ts +4 -0
- package/dist/utils/assertNever.js +10 -0
- package/dist/utils/assertNever.js.map +1 -0
- package/dist/utils/isHeaderType.d.ts +5 -0
- package/dist/utils/isHeaderType.js +3 -0
- package/dist/utils/isHeaderType.js.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertNever.js","sourceRoot":"","sources":["../../src/utils/assertNever.ts"],"names":[],"mappings":";;AAGA,kCAEC;AALD;;GAEG;AACH,SAAgB,WAAW,CAAC,KAAY;IACtC,MAAM,IAAI,KAAK,CAAC,yCAAyC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;AACnF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks for a supported header type
|
|
3
|
+
* key types can be `number` to support string indexed access types
|
|
4
|
+
*/
|
|
5
|
+
export type IsValidHeader<Header> = keyof Header extends string | number ? Header[keyof Header] extends string | string[] | undefined ? object : 'Header values must be string or string[]' : 'Header names must be of type string';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isHeaderType.js","sourceRoot":"","sources":["../../src/utils/isHeaderType.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tsoa-next/runtime",
|
|
3
|
+
"version": "7.1.0",
|
|
4
|
+
"description": "Build swagger-compliant REST APIs using TypeScript and Node",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"typings": "./dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "npm run tsc",
|
|
12
|
+
"tsc": "tsc",
|
|
13
|
+
"watch": "tsc -w"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"codegen",
|
|
17
|
+
"express",
|
|
18
|
+
"generation",
|
|
19
|
+
"hapi.js",
|
|
20
|
+
"koa",
|
|
21
|
+
"node",
|
|
22
|
+
"node.js",
|
|
23
|
+
"openapi",
|
|
24
|
+
"server",
|
|
25
|
+
"swagger",
|
|
26
|
+
"typescript"
|
|
27
|
+
],
|
|
28
|
+
"author": "Vanna DiCatania <vanna@dicatania.me> (http://www.dicatania.me)",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@hapi/boom": "^10.0.1",
|
|
32
|
+
"@hapi/hapi": "^21.4.7",
|
|
33
|
+
"@types/koa": "^2.15.0",
|
|
34
|
+
"@types/multer": "^2.1.0",
|
|
35
|
+
"reflect-metadata": "^0.2.2",
|
|
36
|
+
"validator": "^13.15.26"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/node": "24.12.0",
|
|
40
|
+
"@types/validator": "^13.15.10",
|
|
41
|
+
"express": "^5.2.1",
|
|
42
|
+
"typescript": "^5.9.3"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"express": "^4.21.0 || ^5.0.0"
|
|
46
|
+
},
|
|
47
|
+
"peerDependenciesMeta": {
|
|
48
|
+
"express": {
|
|
49
|
+
"optional": true
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"repository": {
|
|
53
|
+
"type": "git",
|
|
54
|
+
"url": "https://github.com/vannadii/tsoa-next.git"
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=24.14.0",
|
|
58
|
+
"npm": ">=11.0.0"
|
|
59
|
+
},
|
|
60
|
+
"engineStrict": true,
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
63
|
+
}
|
|
64
|
+
}
|