@visulima/jsdoc-open-api 3.0.0-alpha.3 → 3.0.0-alpha.5
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/CHANGELOG.md +39 -0
- package/LICENSE.md +1 -1
- package/dist/cli/command/generate-command.d.cts +7 -0
- package/dist/cli/command/generate-command.d.mts +7 -0
- package/dist/cli/command/generate-command.d.ts +7 -0
- package/dist/cli/command/init-command.d.cts +2 -0
- package/dist/cli/command/init-command.d.mts +2 -0
- package/dist/cli/command/init-command.d.ts +2 -0
- package/dist/cli/commander/command/generate-command.d.cts +3 -0
- package/dist/cli/commander/command/generate-command.d.mts +3 -0
- package/dist/cli/commander/command/generate-command.d.ts +3 -0
- package/dist/cli/commander/command/init-command.d.cts +3 -0
- package/dist/cli/commander/command/init-command.d.mts +3 -0
- package/dist/cli/commander/command/init-command.d.ts +3 -0
- package/dist/cli/commander/index.cjs +11 -0
- package/dist/cli/commander/index.d.cts +2 -0
- package/dist/cli/commander/index.d.mts +2 -7
- package/dist/cli/commander/index.d.ts +2 -7
- package/dist/cli/commander/index.mjs +2 -30
- package/dist/cli/index.cjs +11 -0
- package/dist/cli/index.d.cts +2 -0
- package/dist/cli/index.d.mts +2 -10
- package/dist/cli/index.d.ts +2 -10
- package/dist/cli/index.mjs +2 -4
- package/dist/constants.d.cts +1 -0
- package/dist/constants.d.mts +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/exported.d.cts +198 -0
- package/dist/exported.d.mts +198 -0
- package/dist/exported.d.ts +198 -0
- package/dist/index.cjs +19 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.mts +7 -248
- package/dist/index.d.ts +7 -248
- package/dist/index.mjs +6 -85
- package/dist/jsdoc/comments-to-open-api.d.cts +6 -0
- package/dist/jsdoc/comments-to-open-api.d.mts +6 -0
- package/dist/jsdoc/comments-to-open-api.d.ts +6 -0
- package/dist/packem_shared/SpecBuilder-B7YiF7zR.mjs +61 -0
- package/dist/packem_shared/SpecBuilder-CCESkmm5.cjs +63 -0
- package/dist/packem_shared/SwaggerCompilerPlugin-BEbFO9Dt.mjs +86 -0
- package/dist/packem_shared/SwaggerCompilerPlugin-BHbHAPK-.cjs +88 -0
- package/dist/packem_shared/customizer-CoMXMU7a.mjs +8 -0
- package/dist/packem_shared/customizer-DDFwFqJl.cjs +10 -0
- package/dist/packem_shared/generateCommand-B1t3VSDX.mjs +15 -0
- package/dist/packem_shared/generateCommand-CZEFuXr9.mjs +83 -0
- package/dist/packem_shared/generateCommand-CmyavGTZ.cjs +17 -0
- package/dist/packem_shared/generateCommand-Cu0UQUh8.cjs +85 -0
- package/dist/packem_shared/initCommand-B6Z9EXHP.mjs +15 -0
- package/dist/packem_shared/initCommand-Ch-72dKZ.cjs +65 -0
- package/dist/packem_shared/initCommand-D3yVEMwO.cjs +17 -0
- package/dist/packem_shared/initCommand-zE4VRDGW.mjs +63 -0
- package/dist/packem_shared/jsDocumentCommentsToOpenApi-C8kxIQH2.cjs +334 -0
- package/dist/packem_shared/jsDocumentCommentsToOpenApi-eOlxMuMO.mjs +328 -0
- package/dist/packem_shared/parseFile-BJwu_na4.cjs +42 -0
- package/dist/packem_shared/parseFile-Bxis7tbW.mjs +35 -0
- package/dist/packem_shared/swaggerJsDocumentCommentsToOpenApi-Cb5s1J29.mjs +130 -0
- package/dist/packem_shared/swaggerJsDocumentCommentsToOpenApi-JFymRz50.cjs +137 -0
- package/dist/packem_shared/validate-DZHaKH07.mjs +30 -0
- package/dist/packem_shared/validate-FKieC3ln.cjs +37 -0
- package/dist/packem_shared/yamlLoc-BLoIYoXs.cjs +14 -0
- package/dist/packem_shared/yamlLoc-Cmx4vbRt.mjs +12 -0
- package/dist/parse-file.d.cts +9 -0
- package/dist/parse-file.d.mts +9 -0
- package/dist/parse-file.d.ts +9 -0
- package/dist/spec-builder.d.cts +14 -0
- package/dist/spec-builder.d.mts +14 -0
- package/dist/spec-builder.d.ts +14 -0
- package/dist/swagger-jsdoc/comments-to-open-api.d.cts +6 -0
- package/dist/swagger-jsdoc/comments-to-open-api.d.mts +6 -0
- package/dist/swagger-jsdoc/comments-to-open-api.d.ts +6 -0
- package/dist/swagger-jsdoc/organize-swagger-object.d.cts +7 -0
- package/dist/swagger-jsdoc/organize-swagger-object.d.mts +7 -0
- package/dist/swagger-jsdoc/organize-swagger-object.d.ts +7 -0
- package/dist/swagger-jsdoc/utils.d.cts +21 -0
- package/dist/swagger-jsdoc/utils.d.mts +21 -0
- package/dist/swagger-jsdoc/utils.d.ts +21 -0
- package/dist/util/customizer.d.cts +2 -0
- package/dist/util/customizer.d.mts +2 -0
- package/dist/util/customizer.d.ts +2 -0
- package/dist/util/object-merge.d.cts +2 -0
- package/dist/util/object-merge.d.mts +2 -0
- package/dist/util/object-merge.d.ts +2 -0
- package/dist/util/yaml-loc.d.cts +2 -0
- package/dist/util/yaml-loc.d.mts +2 -0
- package/dist/util/yaml-loc.d.ts +2 -0
- package/dist/validate.d.cts +2 -0
- package/dist/validate.d.mts +2 -0
- package/dist/validate.d.ts +2 -0
- package/dist/webpack/swagger-compiler-plugin.d.cts +15 -0
- package/dist/webpack/swagger-compiler-plugin.d.mts +15 -0
- package/dist/webpack/swagger-compiler-plugin.d.ts +15 -0
- package/package.json +32 -19
- package/dist/chunk-46IWFMQ2.mjs +0 -1205
- package/dist/chunk-46IWFMQ2.mjs.map +0 -1
- package/dist/chunk-KI63G47G.mjs +0 -142
- package/dist/chunk-KI63G47G.mjs.map +0 -1
- package/dist/chunk-QK4CXNUY.js +0 -149
- package/dist/chunk-QK4CXNUY.js.map +0 -1
- package/dist/chunk-WEX5DMNT.js +0 -1223
- package/dist/chunk-WEX5DMNT.js.map +0 -1
- package/dist/cli/commander/index.js +0 -33
- package/dist/cli/commander/index.js.map +0 -1
- package/dist/cli/commander/index.mjs.map +0 -1
- package/dist/cli/index.js +0 -17
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/index.mjs.map +0 -1
- package/dist/index.js +0 -106
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const SwaggerParser = require('@apidevtools/swagger-parser');
|
|
4
|
+
|
|
5
|
+
const _interopDefaultCompat = e => e && typeof e === 'object' && 'default' in e ? e.default : e;
|
|
6
|
+
|
|
7
|
+
const SwaggerParser__default = /*#__PURE__*/_interopDefaultCompat(SwaggerParser);
|
|
8
|
+
|
|
9
|
+
const DEFAULT_EXCLUDE = [
|
|
10
|
+
"coverage/**",
|
|
11
|
+
".github/**",
|
|
12
|
+
"**/*.d.ts",
|
|
13
|
+
"**/test{,s}/**",
|
|
14
|
+
"**/test{,-*}.{js,cjs,mjs,ts,tsx,jsx,yaml,yml}",
|
|
15
|
+
"**/*{.,-}test.{js,cjs,mjs,ts,tsx,jsx,yaml,yml}",
|
|
16
|
+
"**/__tests__/**",
|
|
17
|
+
"**/{ava,babel,nyc}.config.{js,cjs,mjs}",
|
|
18
|
+
"**/jest.config.{js,cjs,mjs,ts}",
|
|
19
|
+
"**/{karma,rollup,webpack}.config.js",
|
|
20
|
+
"**/.{eslint,mocha}rc.{js,cjs}",
|
|
21
|
+
"**/.{travis,yarnrc}.yml",
|
|
22
|
+
"**/{docker-compose,docker}.yml",
|
|
23
|
+
"**/.yamllint.{yaml,yml}",
|
|
24
|
+
"**/node_modules/**",
|
|
25
|
+
"**/{pnpm-workspace,pnpm-lock}.yaml",
|
|
26
|
+
"**/{package,package-lock}.json",
|
|
27
|
+
"**/yarn.lock",
|
|
28
|
+
"**/package.json5",
|
|
29
|
+
"**/.next/**"
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
const validate = async (spec) => {
|
|
33
|
+
await SwaggerParser__default.validate(spec);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports.DEFAULT_EXCLUDE = DEFAULT_EXCLUDE;
|
|
37
|
+
exports.validate = validate;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const yamlLoc = (string) => {
|
|
4
|
+
const split = string.split(/\r\n|\r|\n/u);
|
|
5
|
+
const filtered = split.filter((line) => {
|
|
6
|
+
if (/^\s*(#\s*(?:\S.*)?)?$/u.test(line)) {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
return line.trim().length > 0;
|
|
10
|
+
});
|
|
11
|
+
return filtered.length;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
module.exports = yamlLoc;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const yamlLoc = (string) => {
|
|
2
|
+
const split = string.split(/\r\n|\r|\n/u);
|
|
3
|
+
const filtered = split.filter((line) => {
|
|
4
|
+
if (/^\s*(#\s*(?:\S.*)?)?$/u.test(line)) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
return line.trim().length > 0;
|
|
8
|
+
});
|
|
9
|
+
return filtered.length;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { yamlLoc as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { OpenApiObject } from "./exported.d.cts";
|
|
2
|
+
declare const parseFile: (file: string, commentsToOpenApi: (fileContent: string, verbose?: boolean) => {
|
|
3
|
+
loc: number;
|
|
4
|
+
spec: OpenApiObject;
|
|
5
|
+
}[], verbose?: boolean) => {
|
|
6
|
+
loc: number;
|
|
7
|
+
spec: OpenApiObject;
|
|
8
|
+
}[];
|
|
9
|
+
export = parseFile;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { OpenApiObject } from "./exported.d.mts";
|
|
2
|
+
declare const parseFile: (file: string, commentsToOpenApi: (fileContent: string, verbose?: boolean) => {
|
|
3
|
+
loc: number;
|
|
4
|
+
spec: OpenApiObject;
|
|
5
|
+
}[], verbose?: boolean) => {
|
|
6
|
+
loc: number;
|
|
7
|
+
spec: OpenApiObject;
|
|
8
|
+
}[];
|
|
9
|
+
export default parseFile;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { OpenApiObject } from "./exported.d.ts";
|
|
2
|
+
declare const parseFile: (file: string, commentsToOpenApi: (fileContent: string, verbose?: boolean) => {
|
|
3
|
+
loc: number;
|
|
4
|
+
spec: OpenApiObject;
|
|
5
|
+
}[], verbose?: boolean) => {
|
|
6
|
+
loc: number;
|
|
7
|
+
spec: OpenApiObject;
|
|
8
|
+
}[];
|
|
9
|
+
export = parseFile;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BaseDefinition, ComponentsObject, ExternalDocumentationObject, InfoObject, OpenApiObject, PathsObject, SecurityRequirementObject, ServerObject, TagObject } from "./exported.d.cts";
|
|
2
|
+
declare class SpecBuilder implements OpenApiObject {
|
|
3
|
+
components?: ComponentsObject;
|
|
4
|
+
externalDocs?: ExternalDocumentationObject;
|
|
5
|
+
info: InfoObject;
|
|
6
|
+
openapi: string;
|
|
7
|
+
paths: PathsObject;
|
|
8
|
+
security?: SecurityRequirementObject[];
|
|
9
|
+
servers?: ServerObject[];
|
|
10
|
+
tags?: TagObject[];
|
|
11
|
+
constructor(baseDefinition: BaseDefinition);
|
|
12
|
+
addData(parsedFile: OpenApiObject[]): void;
|
|
13
|
+
}
|
|
14
|
+
export = SpecBuilder;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BaseDefinition, ComponentsObject, ExternalDocumentationObject, InfoObject, OpenApiObject, PathsObject, SecurityRequirementObject, ServerObject, TagObject } from "./exported.d.mts";
|
|
2
|
+
declare class SpecBuilder implements OpenApiObject {
|
|
3
|
+
components?: ComponentsObject;
|
|
4
|
+
externalDocs?: ExternalDocumentationObject;
|
|
5
|
+
info: InfoObject;
|
|
6
|
+
openapi: string;
|
|
7
|
+
paths: PathsObject;
|
|
8
|
+
security?: SecurityRequirementObject[];
|
|
9
|
+
servers?: ServerObject[];
|
|
10
|
+
tags?: TagObject[];
|
|
11
|
+
constructor(baseDefinition: BaseDefinition);
|
|
12
|
+
addData(parsedFile: OpenApiObject[]): void;
|
|
13
|
+
}
|
|
14
|
+
export default SpecBuilder;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BaseDefinition, ComponentsObject, ExternalDocumentationObject, InfoObject, OpenApiObject, PathsObject, SecurityRequirementObject, ServerObject, TagObject } from "./exported.d.ts";
|
|
2
|
+
declare class SpecBuilder implements OpenApiObject {
|
|
3
|
+
components?: ComponentsObject;
|
|
4
|
+
externalDocs?: ExternalDocumentationObject;
|
|
5
|
+
info: InfoObject;
|
|
6
|
+
openapi: string;
|
|
7
|
+
paths: PathsObject;
|
|
8
|
+
security?: SecurityRequirementObject[];
|
|
9
|
+
servers?: ServerObject[];
|
|
10
|
+
tags?: TagObject[];
|
|
11
|
+
constructor(baseDefinition: BaseDefinition);
|
|
12
|
+
addData(parsedFile: OpenApiObject[]): void;
|
|
13
|
+
}
|
|
14
|
+
export = SpecBuilder;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {object} swaggerObject
|
|
3
|
+
* @param {object} annotation
|
|
4
|
+
* @param {string} property
|
|
5
|
+
*/
|
|
6
|
+
declare const organizeSwaggerObject: (swaggerObject: Record<string, any>, annotation: Record<string, any>, property: string) => void;
|
|
7
|
+
export = organizeSwaggerObject;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {object} swaggerObject
|
|
3
|
+
* @param {object} annotation
|
|
4
|
+
* @param {string} property
|
|
5
|
+
*/
|
|
6
|
+
declare const organizeSwaggerObject: (swaggerObject: Record<string, any>, annotation: Record<string, any>, property: string) => void;
|
|
7
|
+
export default organizeSwaggerObject;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {object} swaggerObject
|
|
3
|
+
* @param {object} annotation
|
|
4
|
+
* @param {string} property
|
|
5
|
+
*/
|
|
6
|
+
declare const organizeSwaggerObject: (swaggerObject: Record<string, any>, annotation: Record<string, any>, property: string) => void;
|
|
7
|
+
export = organizeSwaggerObject;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Spec } from "comment-parser";
|
|
2
|
+
/**
|
|
3
|
+
* A recursive deep-merge that ignores null values when merging.
|
|
4
|
+
* This returns the merged object and does not mutate.
|
|
5
|
+
* @param first the first object to get merged
|
|
6
|
+
* @param {object} second the second object to get merged
|
|
7
|
+
*/
|
|
8
|
+
export declare const mergeDeep: (first?: object, second?: object) => object;
|
|
9
|
+
/**
|
|
10
|
+
* Checks if there is any properties of the input object which are an empty object
|
|
11
|
+
* @param object the object to check
|
|
12
|
+
* @returns boolean
|
|
13
|
+
*/
|
|
14
|
+
export declare const hasEmptyProperty: (object: Record<string, any>) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @param tag
|
|
17
|
+
* @param tags
|
|
18
|
+
* @returns boolean
|
|
19
|
+
*/
|
|
20
|
+
export declare const isTagPresentInTags: (tag: Spec, tags: Spec[]) => boolean;
|
|
21
|
+
export declare const getSwaggerVersionFromSpec: (tag: Spec) => "v2" | "v3" | "v4";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Spec } from "comment-parser";
|
|
2
|
+
/**
|
|
3
|
+
* A recursive deep-merge that ignores null values when merging.
|
|
4
|
+
* This returns the merged object and does not mutate.
|
|
5
|
+
* @param first the first object to get merged
|
|
6
|
+
* @param {object} second the second object to get merged
|
|
7
|
+
*/
|
|
8
|
+
export declare const mergeDeep: (first?: object, second?: object) => object;
|
|
9
|
+
/**
|
|
10
|
+
* Checks if there is any properties of the input object which are an empty object
|
|
11
|
+
* @param object the object to check
|
|
12
|
+
* @returns boolean
|
|
13
|
+
*/
|
|
14
|
+
export declare const hasEmptyProperty: (object: Record<string, any>) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @param tag
|
|
17
|
+
* @param tags
|
|
18
|
+
* @returns boolean
|
|
19
|
+
*/
|
|
20
|
+
export declare const isTagPresentInTags: (tag: Spec, tags: Spec[]) => boolean;
|
|
21
|
+
export declare const getSwaggerVersionFromSpec: (tag: Spec) => "v2" | "v3" | "v4";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Spec } from "comment-parser";
|
|
2
|
+
/**
|
|
3
|
+
* A recursive deep-merge that ignores null values when merging.
|
|
4
|
+
* This returns the merged object and does not mutate.
|
|
5
|
+
* @param first the first object to get merged
|
|
6
|
+
* @param {object} second the second object to get merged
|
|
7
|
+
*/
|
|
8
|
+
export declare const mergeDeep: (first?: object, second?: object) => object;
|
|
9
|
+
/**
|
|
10
|
+
* Checks if there is any properties of the input object which are an empty object
|
|
11
|
+
* @param object the object to check
|
|
12
|
+
* @returns boolean
|
|
13
|
+
*/
|
|
14
|
+
export declare const hasEmptyProperty: (object: Record<string, any>) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @param tag
|
|
17
|
+
* @param tags
|
|
18
|
+
* @returns boolean
|
|
19
|
+
*/
|
|
20
|
+
export declare const isTagPresentInTags: (tag: Spec, tags: Spec[]) => boolean;
|
|
21
|
+
export declare const getSwaggerVersionFromSpec: (tag: Spec) => "v2" | "v3" | "v4";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Compiler } from "webpack";
|
|
2
|
+
import type { BaseDefinition } from "../exported.d.cts";
|
|
3
|
+
declare class SwaggerCompilerPlugin {
|
|
4
|
+
private readonly assetsPath;
|
|
5
|
+
private readonly ignore;
|
|
6
|
+
private readonly sources;
|
|
7
|
+
private readonly swaggerDefinition;
|
|
8
|
+
private readonly verbose;
|
|
9
|
+
constructor(assetsPath: string, sources: string[], swaggerDefinition: BaseDefinition, options: {
|
|
10
|
+
ignore?: (RegExp | string)[];
|
|
11
|
+
verbose?: boolean;
|
|
12
|
+
});
|
|
13
|
+
apply(compiler: Compiler): void;
|
|
14
|
+
}
|
|
15
|
+
export = SwaggerCompilerPlugin;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Compiler } from "webpack";
|
|
2
|
+
import type { BaseDefinition } from "../exported.d.mts";
|
|
3
|
+
declare class SwaggerCompilerPlugin {
|
|
4
|
+
private readonly assetsPath;
|
|
5
|
+
private readonly ignore;
|
|
6
|
+
private readonly sources;
|
|
7
|
+
private readonly swaggerDefinition;
|
|
8
|
+
private readonly verbose;
|
|
9
|
+
constructor(assetsPath: string, sources: string[], swaggerDefinition: BaseDefinition, options: {
|
|
10
|
+
ignore?: (RegExp | string)[];
|
|
11
|
+
verbose?: boolean;
|
|
12
|
+
});
|
|
13
|
+
apply(compiler: Compiler): void;
|
|
14
|
+
}
|
|
15
|
+
export default SwaggerCompilerPlugin;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Compiler } from "webpack";
|
|
2
|
+
import type { BaseDefinition } from "../exported.d.ts";
|
|
3
|
+
declare class SwaggerCompilerPlugin {
|
|
4
|
+
private readonly assetsPath;
|
|
5
|
+
private readonly ignore;
|
|
6
|
+
private readonly sources;
|
|
7
|
+
private readonly swaggerDefinition;
|
|
8
|
+
private readonly verbose;
|
|
9
|
+
constructor(assetsPath: string, sources: string[], swaggerDefinition: BaseDefinition, options: {
|
|
10
|
+
ignore?: (RegExp | string)[];
|
|
11
|
+
verbose?: boolean;
|
|
12
|
+
});
|
|
13
|
+
apply(compiler: Compiler): void;
|
|
14
|
+
}
|
|
15
|
+
export = SwaggerCompilerPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/jsdoc-open-api",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.5",
|
|
4
4
|
"description": "Generates swagger doc based on JSDoc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"visulima",
|
|
@@ -41,40 +41,53 @@
|
|
|
41
41
|
"sideEffects": false,
|
|
42
42
|
"exports": {
|
|
43
43
|
".": {
|
|
44
|
-
"require": {
|
|
45
|
-
"types": "./dist/index.d.ts",
|
|
46
|
-
"default": "./dist/index.js"
|
|
47
|
-
},
|
|
48
44
|
"import": {
|
|
49
45
|
"types": "./dist/index.d.mts",
|
|
50
46
|
"default": "./dist/index.mjs"
|
|
47
|
+
},
|
|
48
|
+
"require": {
|
|
49
|
+
"types": "./dist/index.d.cts",
|
|
50
|
+
"default": "./dist/index.cjs"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"./cli": {
|
|
54
|
-
"require": {
|
|
55
|
-
"types": "./dist/cli/index.d.ts",
|
|
56
|
-
"default": "./dist/cli/index.js"
|
|
57
|
-
},
|
|
58
54
|
"import": {
|
|
59
55
|
"types": "./dist/cli/index.d.mts",
|
|
60
56
|
"default": "./dist/cli/index.mjs"
|
|
57
|
+
},
|
|
58
|
+
"require": {
|
|
59
|
+
"types": "./dist/cli/index.d.cts",
|
|
60
|
+
"default": "./dist/cli/index.cjs"
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"./cli/commander": {
|
|
64
|
-
"require": {
|
|
65
|
-
"types": "./dist/cli/commander/index.d.ts",
|
|
66
|
-
"default": "./dist/cli/commander/index.js"
|
|
67
|
-
},
|
|
68
64
|
"import": {
|
|
69
65
|
"types": "./dist/cli/commander/index.d.mts",
|
|
70
66
|
"default": "./dist/cli/commander/index.mjs"
|
|
67
|
+
},
|
|
68
|
+
"require": {
|
|
69
|
+
"types": "./dist/cli/commander/index.d.cts",
|
|
70
|
+
"default": "./dist/cli/commander/index.cjs"
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"./package.json": "./package.json"
|
|
74
74
|
},
|
|
75
|
-
"main": "dist/index.
|
|
75
|
+
"main": "dist/index.cjs",
|
|
76
76
|
"module": "dist/index.mjs",
|
|
77
77
|
"types": "dist/index.d.ts",
|
|
78
|
+
"typesVersions": {
|
|
79
|
+
">=5.0": {
|
|
80
|
+
".": [
|
|
81
|
+
"./dist/index.d.ts"
|
|
82
|
+
],
|
|
83
|
+
"cli": [
|
|
84
|
+
"./dist/cli/index.d.ts"
|
|
85
|
+
],
|
|
86
|
+
"cli/commander": [
|
|
87
|
+
"./dist/cli/commander/index.d.ts"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
78
91
|
"bin": {
|
|
79
92
|
"jsdoc-open-api": "./bin/index.js"
|
|
80
93
|
},
|
|
@@ -88,15 +101,15 @@
|
|
|
88
101
|
],
|
|
89
102
|
"dependencies": {
|
|
90
103
|
"@apidevtools/swagger-parser": "^12.1.0",
|
|
91
|
-
"
|
|
104
|
+
"@visulima/fs": "5.0.0-alpha.5",
|
|
105
|
+
"comment-parser": "^1.4.5",
|
|
92
106
|
"lodash.mergewith": "^4.6.2",
|
|
93
|
-
"
|
|
94
|
-
"yaml": "^2.8.2"
|
|
107
|
+
"yaml": "2.8.3"
|
|
95
108
|
},
|
|
96
109
|
"optionalDependencies": {
|
|
97
110
|
"cli-progress": "^3.12.0",
|
|
98
|
-
"commander": "^14.0.
|
|
99
|
-
"webpack": "^5.
|
|
111
|
+
"commander": "^14.0.3",
|
|
112
|
+
"webpack": "^5.105.4"
|
|
100
113
|
},
|
|
101
114
|
"engines": {
|
|
102
115
|
"node": ">=22.13 <=25.x"
|