tsoa-next 8.0.5-dev.57.84bb4a63 → 8.0.5-dev.58.3748c499
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/dist/spec.d.ts +4 -0
- package/dist/spec.js +4 -0
- package/dist/spec.js.map +1 -1
- package/package.json +3 -3
package/dist/spec.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import type { RuntimeSpecConfigSnapshot, SpecGenerator } from '@tsoa-next/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a runtime spec generator that lazily builds the OpenAPI document once per generator instance using `@tsoa-next/cli`,
|
|
4
|
+
* then caches the generated spec object and serialized strings for subsequent reads.
|
|
5
|
+
*/
|
|
2
6
|
export declare function createOpenApiSpecGenerator(config?: RuntimeSpecConfigSnapshot): SpecGenerator;
|
package/dist/spec.js
CHANGED
|
@@ -40,6 +40,10 @@ function assertSpecConfig(config) {
|
|
|
40
40
|
}
|
|
41
41
|
return config;
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Creates a runtime spec generator that lazily builds the OpenAPI document once per generator instance using `@tsoa-next/cli`,
|
|
45
|
+
* then caches the generated spec object and serialized strings for subsequent reads.
|
|
46
|
+
*/
|
|
43
47
|
function createOpenApiSpecGenerator(config) {
|
|
44
48
|
let specPromise;
|
|
45
49
|
const stringCache = new Map();
|
package/dist/spec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec.js","sourceRoot":"","sources":["../src/spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"spec.js","sourceRoot":"","sources":["../src/spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,gEAkCC;AA9CD,SAAS,gBAAgB,CAAC,MAAkC;IAC1D,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,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Aa;QACb,aAAa;KACd,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsoa-next",
|
|
3
|
-
"version": "8.0.5-dev.
|
|
3
|
+
"version": "8.0.5-dev.58.3748c499",
|
|
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": "8.0.5-dev.
|
|
36
|
-
"@tsoa-next/runtime": "8.0.5-dev.
|
|
35
|
+
"@tsoa-next/cli": "8.0.5-dev.58.3748c499",
|
|
36
|
+
"@tsoa-next/runtime": "8.0.5-dev.58.3748c499"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "24.12.0",
|