@tsed/swagger 8.4.2 → 8.4.4

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,5 +1,6 @@
1
- import { join } from "path";
1
+ import { join } from "node:path";
2
+ import { getValue } from "@tsed/core";
2
3
  import getAbsoluteFSPath from "swagger-ui-dist/absolute-path.js";
3
4
  export const SWAGGER_UI_DIST = getAbsoluteFSPath();
4
- export const ROOT_DIR = join(import.meta.dirname, "..");
5
+ export const ROOT_DIR = join(getValue(import.meta, "dirname", ""), "..");
5
6
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAC1B,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AAEjE,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,EAAE,CAAC;AACnD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AAEjE,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,EAAE,CAAC;AACnD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { basename } from "node:path";
2
+ import { join } from "node:path";
2
3
  import { context } from "@tsed/di";
3
- import { join } from "path";
4
4
  /**
5
5
  * @ignore
6
6
  * @param viewPath
@@ -1 +1 @@
1
- {"version":3,"file":"indexMiddleware.js","sourceRoot":"","sources":["../../../src/middlewares/indexMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAC,OAAO,EAAC,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAI1B;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,QAAgB,EAAE,IAAwC;IACxF,OAAO,KAAK,IAAI,EAAE;QAChB,MAAM,GAAG,GAAG,OAAO,EAAE,CAAC;QACtB,MAAM,EAAC,IAAI,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC;QAEjF,GAAG,CAAC,QAAQ,CAAC,IAAI,CACf,MAAM,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE;YAClC,IAAI,EAAE,EAAE;YACR,GAAG,EAAE,GAAG,IAAI,IAAI,QAAQ,EAAE;YAC1B,IAAI;YACJ,YAAY;YACZ,OAAO,EAAE,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;YACjD,MAAM,EAAE,MAAM,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;YAC9C,cAAc,EAAE,OAAO;SACxB,CAAC,CACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"indexMiddleware.js","sourceRoot":"","sources":["../../../src/middlewares/indexMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AACnC,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,OAAO,EAAC,OAAO,EAAC,MAAM,UAAU,CAAC;AAKjC;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,QAAgB,EAAE,IAAwC;IACxF,OAAO,KAAK,IAAI,EAAE;QAChB,MAAM,GAAG,GAAG,OAAO,EAAE,CAAC;QACtB,MAAM,EAAC,IAAI,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC;QAEjF,GAAG,CAAC,QAAQ,CAAC,IAAI,CACf,MAAM,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE;YAClC,IAAI,EAAE,EAAE;YACR,GAAG,EAAE,GAAG,IAAI,IAAI,QAAQ,EAAE;YAC1B,IAAI;YACJ,YAAY;YACZ,OAAO,EAAE,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;YACjD,MAAM,EAAE,MAAM,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;YAC9C,cAAc,EAAE,OAAO;SACxB,CAAC,CACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/swagger",
3
3
  "description": "Swagger package for Ts.ED framework",
4
4
  "type": "module",
5
- "version": "8.4.2",
5
+ "version": "8.4.4",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -26,29 +26,29 @@
26
26
  "test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
27
27
  },
28
28
  "dependencies": {
29
- "@tsed/normalize-path": "8.4.2",
30
- "@tsed/openapi-utils": "8.4.2",
31
- "@tsed/openspec": "8.4.2",
29
+ "@tsed/normalize-path": "8.4.4",
30
+ "@tsed/openapi-utils": "8.4.4",
31
+ "@tsed/openspec": "8.4.4",
32
32
  "swagger-ui-dist": ">=5.17.14",
33
33
  "tslib": "2.7.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@tsed/barrels": "8.4.2",
37
- "@tsed/core": "8.4.2",
38
- "@tsed/di": "8.4.2",
39
- "@tsed/json-mapper": "8.4.2",
40
- "@tsed/openapi-utils": "8.4.2",
41
- "@tsed/openspec": "8.4.2",
42
- "@tsed/platform-http": "8.4.2",
43
- "@tsed/schema": "8.4.2",
44
- "@tsed/typescript": "8.4.2",
36
+ "@tsed/barrels": "8.4.4",
37
+ "@tsed/core": "8.4.4",
38
+ "@tsed/di": "8.4.4",
39
+ "@tsed/json-mapper": "8.4.4",
40
+ "@tsed/openapi-utils": "8.4.4",
41
+ "@tsed/openspec": "8.4.4",
42
+ "@tsed/platform-http": "8.4.4",
43
+ "@tsed/schema": "8.4.4",
44
+ "@tsed/typescript": "8.4.4",
45
45
  "@types/swagger-ui-dist": "3.30.5",
46
46
  "eslint": "9.12.0",
47
47
  "typescript": "5.4.5",
48
48
  "vitest": "2.1.2"
49
49
  },
50
50
  "peerDependencies": {
51
- "@tsed/platform-http": ">=8.4.2"
51
+ "@tsed/platform-http": ">=8.4.4"
52
52
  },
53
53
  "peerDependenciesMeta": {
54
54
  "@tsed/platform-http": {
package/readme.md CHANGED
@@ -42,7 +42,7 @@ Then add the following configuration in your Server:
42
42
  ```typescript
43
43
  import {Configuration} from "@tsed/di";
44
44
  import "@tsed/swagger"; // import swagger Ts.ED module
45
- import {resolve} from "path";
45
+ import {resolve} from "node:path";
46
46
 
47
47
  @Configuration({
48
48
  swagger: [
package/src/constants.ts CHANGED
@@ -1,5 +1,7 @@
1
- import {join} from "path";
1
+ import {join} from "node:path";
2
+
3
+ import {getValue} from "@tsed/core";
2
4
  import getAbsoluteFSPath from "swagger-ui-dist/absolute-path.js";
3
5
 
4
6
  export const SWAGGER_UI_DIST = getAbsoluteFSPath();
5
- export const ROOT_DIR = join(import.meta.dirname, "..");
7
+ export const ROOT_DIR = join(getValue(import.meta, "dirname", ""), "..");
@@ -1,8 +1,8 @@
1
1
  import {basename} from "node:path";
2
+ import {join} from "node:path";
2
3
 
3
4
  import {context} from "@tsed/di";
4
5
  import {PlatformContext} from "@tsed/platform-http";
5
- import {join} from "path";
6
6
 
7
7
  import {SwaggerSettings} from "../interfaces/SwaggerSettings.js";
8
8