@tsed/swagger 7.68.4 → 7.68.6

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,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ROOT_DIR = exports.SWAGGER_UI_DIST = void 0;
4
- const path_1 = require("path");
5
- exports.SWAGGER_UI_DIST = (0, path_1.dirname)(require.resolve("swagger-ui-dist"));
4
+ const tslib_1 = require("tslib");
5
+ const absolute_path_1 = tslib_1.__importDefault(require("swagger-ui-dist/absolute-path"));
6
+ exports.SWAGGER_UI_DIST = (0, absolute_path_1.default)();
6
7
  exports.ROOT_DIR = __dirname;
7
8
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAA,+BAA6B;AAEhB,QAAA,eAAe,GAAG,IAAA,cAAO,EAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAC9D,QAAA,QAAQ,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;;AAAA,0FAA8D;AAEjD,QAAA,eAAe,GAAG,IAAA,uBAAiB,GAAE,CAAC;AACtC,QAAA,QAAQ,GAAG,SAAS,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import {dirname} from "node:path";
2
2
  import {fileURLToPath} from "node:url";
3
+ import * as SwaggerUIDist from "swagger-ui-dist/absolute-path.js";
3
4
 
4
5
  // @ts-ignore
5
- export const SWAGGER_UI_DIST = dirname(import.meta.resolve("swagger-ui-dist")).replace("file://", "");
6
+ export const SWAGGER_UI_DIST = await (SwaggerUIDist.default || SwaggerUIDist)();
6
7
  // @ts-expect-error
7
8
  export const ROOT_DIR = dirname(fileURLToPath(import.meta.url));
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,MAAM,CAAC;AAE7B,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,+BAA+B,CAAC;AAE9D,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,EAAE,CAAC;AACnD,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/swagger",
3
- "version": "7.68.4",
3
+ "version": "7.68.6",
4
4
  "description": "Swagger package for Ts.ED framework",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/cjs/index.js",
@@ -23,8 +23,8 @@
23
23
  "build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
24
24
  },
25
25
  "dependencies": {
26
- "@tsed/normalize-path": "7.68.4",
27
- "@tsed/openspec": "7.68.4",
26
+ "@tsed/normalize-path": "7.68.6",
27
+ "@tsed/openspec": "7.68.6",
28
28
  "filedirname": "^2.11.0",
29
29
  "fs-extra": "11.2.0",
30
30
  "micromatch": "4.0.5",
@@ -32,13 +32,13 @@
32
32
  "tslib": "2.6.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@tsed/common": "7.68.4",
36
- "@tsed/core": "7.68.4",
37
- "@tsed/di": "7.68.4",
38
- "@tsed/json-mapper": "7.68.4",
39
- "@tsed/openspec": "7.68.4",
40
- "@tsed/schema": "7.68.4",
41
- "@tsed/typescript": "7.68.4",
35
+ "@tsed/common": "7.68.6",
36
+ "@tsed/core": "7.68.6",
37
+ "@tsed/di": "7.68.6",
38
+ "@tsed/json-mapper": "7.68.6",
39
+ "@tsed/openspec": "7.68.6",
40
+ "@tsed/schema": "7.68.6",
41
+ "@tsed/typescript": "7.68.6",
42
42
  "@types/swagger-ui-dist": "3.30.4",
43
43
  "barrelsby": "^2.8.1",
44
44
  "eslint": "^8.57.0",
@@ -47,7 +47,7 @@
47
47
  "typescript": "4.9.5"
48
48
  },
49
49
  "peerDependencies": {
50
- "@tsed/common": "7.68.4"
50
+ "@tsed/common": "7.68.6"
51
51
  },
52
52
  "peerDependenciesMeta": {
53
53
  "@tsed/common": {
package/jest.config.js DELETED
@@ -1,18 +0,0 @@
1
- // For a detailed explanation regarding each configuration property, visit:
2
- // https://jestjs.io/docs/en/configuration.html
3
-
4
- module.exports = {
5
- ...require("@tsed/jest-config"),
6
- roots: ["<rootDir>/src", "<rootDir>/test"],
7
- moduleNameMapper: {
8
- "@tsed/swagger": "<rootDir>/src/index.ts"
9
- },
10
- coverageThreshold: {
11
- global: {
12
- statements: 100,
13
- branches: 88.73,
14
- functions: 100,
15
- lines: 100
16
- }
17
- }
18
- };
@@ -1,7 +0,0 @@
1
- import {dirname} from "node:path";
2
- import {fileURLToPath} from "node:url";
3
-
4
- // @ts-ignore
5
- export const SWAGGER_UI_DIST = dirname(import.meta.resolve("swagger-ui-dist")).replace("file://", "");
6
- // @ts-expect-error
7
- export const ROOT_DIR = dirname(fileURLToPath(import.meta.url));
package/tsconfig.esm.json DELETED
@@ -1,51 +0,0 @@
1
- {
2
- "extends": "@tsed/typescript/tsconfig.node.json",
3
- "compilerOptions": {
4
- "baseUrl": ".",
5
- "module": "ES2020",
6
- "rootDir": "src",
7
- "outDir": "./lib/esm",
8
- "declaration": true,
9
- "declarationDir": "./lib/types",
10
- "composite": true,
11
- "noEmit": false
12
- },
13
- "include": ["src", "src/**/*.json"],
14
- "exclude": [
15
- "node_modules",
16
- "test",
17
- "lib",
18
- "benchmark",
19
- "coverage",
20
- "spec",
21
- "**/*.benchmark.ts",
22
- "**/*.spec.ts",
23
- "keys",
24
- "jest.config.js",
25
- "**/__mock__/**",
26
- "webpack.config.js"
27
- ],
28
- "references": [
29
- {
30
- "path": "../../platform/common"
31
- },
32
- {
33
- "path": "../../core"
34
- },
35
- {
36
- "path": "../../di"
37
- },
38
- {
39
- "path": "../json-mapper"
40
- },
41
- {
42
- "path": "../openspec"
43
- },
44
- {
45
- "path": "../schema"
46
- },
47
- {
48
- "path": "../../utils/normalize-path"
49
- }
50
- ]
51
- }