tsoa-next 7.3.4 → 8.0.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 +6 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +26 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +24 -4
package/README.MD
CHANGED
|
@@ -117,6 +117,12 @@ This feature is fully opt-in. If you do not use `@Validate(...)`, existing inter
|
|
|
117
117
|
- [API Reference](https://tsoa-next.dev/reference/)
|
|
118
118
|
- [Getting started guide](https://tsoa-next.dev/getting-started)
|
|
119
119
|
|
|
120
|
+
## Package Surface
|
|
121
|
+
|
|
122
|
+
- Import decorators, runtime helpers, and generated route support from `tsoa-next`
|
|
123
|
+
- Import programmatic generation APIs from `tsoa-next/cli`
|
|
124
|
+
- Use the `tsoa` binary for CLI generation commands
|
|
125
|
+
|
|
120
126
|
## Examples
|
|
121
127
|
|
|
122
128
|
Check out the [guides](https://tsoa-next.dev/)
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export
|
|
2
|
+
export * from '@tsoa-next/cli';
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
3
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(require("@tsoa-next/cli"), exports);
|
|
4
19
|
const cli_1 = require("@tsoa-next/cli");
|
|
5
|
-
if (require.main === module)
|
|
6
|
-
void (
|
|
20
|
+
if (require.main === module) {
|
|
21
|
+
void (async () => {
|
|
22
|
+
try {
|
|
23
|
+
await (0, cli_1.runCLI)();
|
|
24
|
+
}
|
|
25
|
+
catch (err) {
|
|
26
|
+
console.error('tsoa cli error:\n', err);
|
|
27
|
+
process.exit(1);
|
|
28
|
+
}
|
|
29
|
+
})();
|
|
30
|
+
}
|
|
7
31
|
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,iDAA8B;AAC9B,wCAAuC;AAEvC,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,KAAK,CAAC,KAAK,IAAI,EAAE;QACf,IAAI,CAAC;YACH,MAAM,IAAA,YAAM,GAAE,CAAA;QAChB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAA;YACvC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACjB,CAAC;IACH,CAAC,CAAC,EAAE,CAAA;AACN,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("@tsoa-next/cli"), exports);
|
|
18
17
|
__exportStar(require("@tsoa-next/runtime"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsoa-next",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Build swagger-compliant REST APIs using TypeScript and Node",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"author": "Vanna DiCatania <vanna@dicatania.me> (http://www.dicatania.me)",
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tsoa-next/cli": "
|
|
36
|
-
"@tsoa-next/runtime": "
|
|
35
|
+
"@tsoa-next/cli": "8.0.0",
|
|
36
|
+
"@tsoa-next/runtime": "8.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "24.12.0",
|
|
@@ -52,5 +52,25 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"
|
|
55
|
+
"exports": {
|
|
56
|
+
".": {
|
|
57
|
+
"types": "./dist/index.d.ts",
|
|
58
|
+
"require": "./dist/index.js",
|
|
59
|
+
"default": "./dist/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./cli": {
|
|
62
|
+
"types": "./dist/cli.d.ts",
|
|
63
|
+
"require": "./dist/cli.js",
|
|
64
|
+
"default": "./dist/cli.js"
|
|
65
|
+
},
|
|
66
|
+
"./package.json": "./package.json"
|
|
67
|
+
},
|
|
68
|
+
"homepage": "https://tsoa-next.dev",
|
|
69
|
+
"typesVersions": {
|
|
70
|
+
"*": {
|
|
71
|
+
"cli": [
|
|
72
|
+
"dist/cli.d.ts"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
56
76
|
}
|