@tsed/openapi-utils 8.33.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.
@@ -1,6 +1,6 @@
1
1
  import Fs from "node:fs";
2
- import { resolve } from "node:path";
3
2
  import { context } from "@tsed/di";
3
+ import { resolve } from "node:path";
4
4
  /**
5
5
  * Expose a css file.
6
6
  * @param path
@@ -1,6 +1,6 @@
1
1
  import Fs from "node:fs";
2
- import { resolve } from "node:path";
3
2
  import { context } from "@tsed/di";
3
+ import { resolve } from "node:path";
4
4
  /**
5
5
  * Expose a js file.
6
6
  * @param path
@@ -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 { OpenSpec2, OpenSpec3, OpenSpecVersions, OS2Versions, OS3Versions } from "@tsed/openspec";
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 type { OpenApiSettings } from "../interfaces/OpenApiSettings.js";
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;
@@ -1,3 +1,3 @@
1
- import { Provider } from "@tsed/di";
2
1
  import { OpenApiSettings } from "../interfaces/OpenApiSettings.js";
2
+ import { Provider } from "@tsed/di";
3
3
  export declare function includeRoute(route: string, provider: Provider, conf: OpenApiSettings): boolean;
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.33.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.33.0",
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.0",
33
- "@tsed/core": "8.33.0",
34
- "@tsed/di": "8.33.0",
35
- "@tsed/json-mapper": "8.33.0",
36
- "@tsed/openspec": "8.33.0",
37
- "@tsed/platform-http": "8.33.0",
38
- "@tsed/schema": "8.33.0",
39
- "@tsed/typescript": "8.33.0",
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
  },