@tsed/openapi-utils 8.34.0 → 8.35.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/lib/esm/middlewares/cssMiddleware.js +1 -1
- package/lib/esm/middlewares/jsMiddleware.js +1 -1
- package/lib/esm/services/OpenAPIBaseModule.js +4 -4
- package/lib/esm/services/OpenAPIService.js +1 -1
- package/lib/types/interfaces/OpenApiSettings.d.ts +1 -1
- package/lib/types/services/OpenAPIBaseModule.d.ts +2 -2
- package/lib/types/services/OpenAPIService.d.ts +1 -1
- package/lib/types/utils/includeRoute.d.ts +1 -1
- package/package.json +11 -12
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { basename } from "node:path";
|
|
2
|
-
import { configuration, constant, inject, logger } from "@tsed/di";
|
|
3
|
-
import { normalizePath } from "@tsed/normalize-path";
|
|
4
1
|
import { application } from "@tsed/platform-http";
|
|
5
2
|
import { PlatformRouter, useContextHandler } from "@tsed/platform-router";
|
|
3
|
+
import { configuration, constant, inject, logger } from "@tsed/di";
|
|
4
|
+
import { OpenAPIService } from "../services/OpenAPIService.js";
|
|
5
|
+
import { basename } from "node:path";
|
|
6
6
|
import { cssMiddleware } from "../middlewares/cssMiddleware.js";
|
|
7
7
|
import { jsMiddleware } from "../middlewares/jsMiddleware.js";
|
|
8
|
+
import { normalizePath } from "@tsed/normalize-path";
|
|
8
9
|
import { openApiMiddleware } from "../middlewares/openApiMiddleware.js";
|
|
9
10
|
import { redirectMiddleware } from "../middlewares/redirectMiddleware.js";
|
|
10
|
-
import { OpenAPIService } from "../services/OpenAPIService.js";
|
|
11
11
|
export class OpenAPIBaseModule {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.openAPIService = inject(OpenAPIService);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { writeFile } from "node:fs/promises";
|
|
2
1
|
import { Env } from "@tsed/core";
|
|
3
2
|
import { constant, inject, injectable } from "@tsed/di";
|
|
4
3
|
import { $asyncAlter } from "@tsed/hooks";
|
|
@@ -6,6 +5,7 @@ import { Platform } from "@tsed/platform-http";
|
|
|
6
5
|
import { generateSpec } from "@tsed/schema";
|
|
7
6
|
import { includeRoute } from "../utils/includeRoute.js";
|
|
8
7
|
import { readSpec } from "../utils/readSpec.js";
|
|
8
|
+
import { writeFile } from "node:fs/promises";
|
|
9
9
|
export class OpenAPIService {
|
|
10
10
|
#specs;
|
|
11
11
|
constructor() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OS2Versions, OS3Versions, OpenSpec2, OpenSpec3, OpenSpecVersions } from "@tsed/openspec";
|
|
2
2
|
export interface SwaggerUIOptions {
|
|
3
3
|
configUrl?: string;
|
|
4
4
|
url?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Env } from "@tsed/core";
|
|
2
1
|
import { OnReady, OnRoutesInit } from "@tsed/platform-http";
|
|
3
2
|
import { PlatformRouter } from "@tsed/platform-router";
|
|
4
|
-
import
|
|
3
|
+
import { Env } from "@tsed/core";
|
|
5
4
|
import { OpenAPIService } from "../services/OpenAPIService.js";
|
|
5
|
+
import type { OpenApiSettings } from "../interfaces/OpenApiSettings.js";
|
|
6
6
|
export declare abstract class OpenAPIBaseModule implements OnRoutesInit, OnReady {
|
|
7
7
|
abstract name: string;
|
|
8
8
|
abstract rootDir: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { OpenAPI3Settings, OpenApiSettings, Swagger2Settings } from "../interfaces/OpenApiSettings.js";
|
|
1
2
|
import { OpenSpec2, OpenSpec3 } from "@tsed/openspec";
|
|
2
3
|
import { Platform } from "@tsed/platform-http";
|
|
3
|
-
import { OpenAPI3Settings, OpenApiSettings, Swagger2Settings } from "../interfaces/OpenApiSettings.js";
|
|
4
4
|
export declare class OpenAPIService {
|
|
5
5
|
#private;
|
|
6
6
|
protected platform: Platform;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/openapi-utils",
|
|
3
|
+
"version": "8.35.0",
|
|
3
4
|
"description": "OpenAPI utils to build @tsed/swagger package or @tsed/scalar",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"version": "8.34.0",
|
|
6
5
|
"source": "./src/index.ts",
|
|
6
|
+
"type": "module",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
9
9
|
"typings": "./lib/types/index.d.ts",
|
|
@@ -24,20 +24,19 @@
|
|
|
24
24
|
"test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tsed/openspec": "8.
|
|
27
|
+
"@tsed/openspec": "8.35.0",
|
|
28
28
|
"micromatch": "4.0.8",
|
|
29
29
|
"tslib": ">=2.7.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@tsed/barrels": "8.
|
|
33
|
-
"@tsed/core": "8.
|
|
34
|
-
"@tsed/di": "8.
|
|
35
|
-
"@tsed/json-mapper": "8.
|
|
36
|
-
"@tsed/openspec": "8.
|
|
37
|
-
"@tsed/platform-http": "8.
|
|
38
|
-
"@tsed/schema": "8.
|
|
39
|
-
"@tsed/typescript": "8.
|
|
40
|
-
"eslint": "9.12.0",
|
|
32
|
+
"@tsed/barrels": "8.35.0",
|
|
33
|
+
"@tsed/core": "8.35.0",
|
|
34
|
+
"@tsed/di": "8.35.0",
|
|
35
|
+
"@tsed/json-mapper": "8.35.0",
|
|
36
|
+
"@tsed/openspec": "8.35.0",
|
|
37
|
+
"@tsed/platform-http": "8.35.0",
|
|
38
|
+
"@tsed/schema": "8.35.0",
|
|
39
|
+
"@tsed/typescript": "8.35.0",
|
|
41
40
|
"typescript": "6.0.2",
|
|
42
41
|
"vitest": "4.1.4"
|
|
43
42
|
},
|