@tsed/swagger 7.68.5 → 7.69.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/cjs/constants.js +3 -2
- package/lib/cjs/constants.js.map +1 -1
- package/lib/esm/constants.js +2 -1
- package/lib/esm/constants.js.map +1 -1
- package/package.json +11 -11
- package/jest.config.js +0 -18
- package/scripts/constants.js +0 -7
- package/tsconfig.esm.json +0 -51
package/lib/cjs/constants.js
CHANGED
|
@@ -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
|
|
5
|
-
|
|
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
|
package/lib/cjs/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"
|
|
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"}
|
package/lib/esm/constants.js
CHANGED
|
@@ -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 =
|
|
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));
|
package/lib/esm/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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.
|
|
3
|
+
"version": "7.69.0",
|
|
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.
|
|
27
|
-
"@tsed/openspec": "7.
|
|
26
|
+
"@tsed/normalize-path": "7.69.0",
|
|
27
|
+
"@tsed/openspec": "7.69.0",
|
|
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.
|
|
36
|
-
"@tsed/core": "7.
|
|
37
|
-
"@tsed/di": "7.
|
|
38
|
-
"@tsed/json-mapper": "7.
|
|
39
|
-
"@tsed/openspec": "7.
|
|
40
|
-
"@tsed/schema": "7.
|
|
41
|
-
"@tsed/typescript": "7.
|
|
35
|
+
"@tsed/common": "7.69.0",
|
|
36
|
+
"@tsed/core": "7.69.0",
|
|
37
|
+
"@tsed/di": "7.69.0",
|
|
38
|
+
"@tsed/json-mapper": "7.69.0",
|
|
39
|
+
"@tsed/openspec": "7.69.0",
|
|
40
|
+
"@tsed/schema": "7.69.0",
|
|
41
|
+
"@tsed/typescript": "7.69.0",
|
|
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.
|
|
50
|
+
"@tsed/common": "7.69.0"
|
|
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
|
-
};
|
package/scripts/constants.js
DELETED
|
@@ -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(fileURLToPath(import.meta.resolve("swagger-ui-dist")));
|
|
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
|
-
}
|