@visulima/jsdoc-open-api 2.0.44 → 2.0.46

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 CHANGED
@@ -1,3 +1,29 @@
1
+ ## @visulima/jsdoc-open-api [2.0.46](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@2.0.45...@visulima/jsdoc-open-api@2.0.46) (2024-06-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * allow node v22 ([890d457](https://github.com/visulima/visulima/commit/890d4570f18428e2463944813c0c638b3f142803))
7
+
8
+
9
+
10
+ ### Dependencies
11
+
12
+ * **@visulima/fs:** upgraded to 2.1.4
13
+
14
+ ## @visulima/jsdoc-open-api [2.0.45](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@2.0.44...@visulima/jsdoc-open-api@2.0.45) (2024-06-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **jsdoc-open-api:** updated yaml to v2.4.3 ([3e46929](https://github.com/visulima/visulima/commit/3e46929f3694148be92473c263f00e92bb32259b))
20
+
21
+
22
+
23
+ ### Dependencies
24
+
25
+ * **@visulima/fs:** upgraded to 2.1.3
26
+
1
27
  ## @visulima/jsdoc-open-api [2.0.44](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@2.0.43...@visulima/jsdoc-open-api@2.0.44) (2024-05-24)
2
28
 
3
29
 
package/dist/cli/index.js CHANGED
@@ -5,11 +5,11 @@ require('../chunk-JRVDS7QS.js');
5
5
 
6
6
 
7
7
 
8
- Object.defineProperty(exports, 'generateCommand', {
8
+ Object.defineProperty(exports, "generateCommand", {
9
9
  enumerable: true,
10
10
  get: function () { return chunkY2YOE2KD_js.a; }
11
11
  });
12
- Object.defineProperty(exports, 'initCommand', {
12
+ Object.defineProperty(exports, "initCommand", {
13
13
  enumerable: true,
14
14
  get: function () { return chunkY2YOE2KD_js.b; }
15
15
  });
package/dist/index.js CHANGED
@@ -8,23 +8,23 @@ var fs = require('@visulima/fs');
8
8
 
9
9
  var w=i=>{i&&(console.error(i),process.exit(1));},u=class{assetsPath;ignore;sources;swaggerDefinition;verbose;constructor(t,n,h,s){this.assetsPath=t,this.swaggerDefinition=h,this.sources=n,this.verbose=s.verbose??!1,this.ignore=s.ignore??[];}apply(t){let n=new Set([...chunkJRVDS7QS_js.f,...this.ignore]);t.hooks.make.tapAsync("SwaggerCompilerPlugin",async(h,s)=>{console.log("Build paused, switching to swagger build");let o=new chunkJRVDS7QS_js.d(this.swaggerDefinition);for await(let e of this.sources){let a=await fs.collect(e,{extensions:[".js",".cjs",".mjs",".ts",".tsx",".jsx",".yaml",".yml"],includeDirs:!1,skip:[...n]});this.verbose&&(console.log(`Found ${a.length} files in ${e}`),console.log(a)),a.forEach(l=>{this.verbose&&console.log(`Parsing file ${l}`);try{let p=chunkJRVDS7QS_js.c(l,chunkJRVDS7QS_js.a,this.verbose);o.addData(p.map(c=>c.spec));let D=chunkJRVDS7QS_js.c(l,chunkJRVDS7QS_js.e,this.verbose);o.addData(D.map(c=>c.spec));}catch(p){console.error(p),process.exit(1);}});}try{this.verbose&&(console.log("Validating swagger spec"),console.log(JSON.stringify(o,null,2))),await chunkJRVDS7QS_js.g(JSON.parse(JSON.stringify(o)));}catch(e){console.error(e.toJSON()),process.exit(1);}let{assetsPath:y}=this;fs$1.mkdir(path.dirname(y),{recursive:!0},e=>{e&&w(e),fs$1.writeFile(y,JSON.stringify(o,null,2),w);}),this.verbose&&console.log(`Written swagger spec to "${this.assetsPath}" file`),console.log("switching back to normal build"),s();});}},j=u;
10
10
 
11
- Object.defineProperty(exports, 'SpecBuilder', {
11
+ Object.defineProperty(exports, "SpecBuilder", {
12
12
  enumerable: true,
13
13
  get: function () { return chunkJRVDS7QS_js.d; }
14
14
  });
15
- Object.defineProperty(exports, 'jsDocumentCommentsToOpenApi', {
15
+ Object.defineProperty(exports, "jsDocumentCommentsToOpenApi", {
16
16
  enumerable: true,
17
17
  get: function () { return chunkJRVDS7QS_js.a; }
18
18
  });
19
- Object.defineProperty(exports, 'parseFile', {
19
+ Object.defineProperty(exports, "parseFile", {
20
20
  enumerable: true,
21
21
  get: function () { return chunkJRVDS7QS_js.c; }
22
22
  });
23
- Object.defineProperty(exports, 'swaggerJsDocumentCommentsToOpenApi', {
23
+ Object.defineProperty(exports, "swaggerJsDocumentCommentsToOpenApi", {
24
24
  enumerable: true,
25
25
  get: function () { return chunkJRVDS7QS_js.e; }
26
26
  });
27
- Object.defineProperty(exports, 'yamlLoc', {
27
+ Object.defineProperty(exports, "yamlLoc", {
28
28
  enumerable: true,
29
29
  get: function () { return chunkJRVDS7QS_js.b; }
30
30
  });
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { f, d, a, c, e, g } from './chunk-RIGBS3GX.mjs';
1
+ import { f, d, c, a, e, g } from './chunk-RIGBS3GX.mjs';
2
2
  export { d as SpecBuilder, a as jsDocumentCommentsToOpenApi, c as parseFile, e as swaggerJsDocumentCommentsToOpenApi, b as yamlLoc } from './chunk-RIGBS3GX.mjs';
3
3
  import { mkdir, writeFile } from 'node:fs';
4
4
  import { dirname } from 'node:path';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/jsdoc-open-api",
3
- "version": "2.0.44",
3
+ "version": "2.0.46",
4
4
  "description": "Generates swagger doc based on JSDoc.",
5
5
  "keywords": [
6
6
  "visulima",
@@ -88,18 +88,18 @@
88
88
  ],
89
89
  "dependencies": {
90
90
  "@apidevtools/swagger-parser": "^10.1.0",
91
- "@visulima/fs": "2.1.2",
91
+ "@visulima/fs": "2.1.4",
92
92
  "comment-parser": "^1.4.1",
93
93
  "lodash.mergewith": "^4.6.2",
94
94
  "read-pkg-up": "^7.0.1",
95
- "yaml": "^2.4.2"
95
+ "yaml": "^2.4.3"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@anolilab/eslint-config": "^15.0.3",
99
99
  "@anolilab/prettier-config": "^5.0.14",
100
100
  "@anolilab/semantic-release-pnpm": "^1.1.0",
101
101
  "@anolilab/semantic-release-preset": "^8.1.0",
102
- "@babel/core": "^7.24.5",
102
+ "@babel/core": "^7.24.6",
103
103
  "@rushstack/eslint-plugin-security": "^0.8.1",
104
104
  "@types/cli-progress": "^3.11.5",
105
105
  "@types/http-errors": "^2.0.4",
@@ -112,17 +112,17 @@
112
112
  "commander": "^12.1.0",
113
113
  "cross-env": "^7.0.3",
114
114
  "eslint": "^8.57.0",
115
- "eslint-plugin-deprecation": "^2.0.0",
115
+ "eslint-plugin-deprecation": "^3.0.0",
116
116
  "eslint-plugin-etc": "^2.0.3",
117
117
  "eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
118
118
  "eslint-plugin-mdx": "^3.1.5",
119
119
  "eslint-plugin-vitest": "^0.4.1",
120
120
  "eslint-plugin-vitest-globals": "^1.5.0",
121
121
  "openapi-types": "^12.1.3",
122
- "prettier": "^3.2.5",
122
+ "prettier": "^3.3.0",
123
123
  "rimraf": "^5.0.7",
124
- "semantic-release": "^23.1.1",
125
- "tsup": "^8.0.2",
124
+ "semantic-release": "23.1.1",
125
+ "tsup": "^8.1.0",
126
126
  "typescript": "^5.4.5",
127
127
  "vitest": "^1.6.0",
128
128
  "webpack": "^5.91.0"
@@ -133,7 +133,7 @@
133
133
  "webpack": "^5.91.0"
134
134
  },
135
135
  "engines": {
136
- "node": ">=18.* <=21.*"
136
+ "node": ">=18.* <=22.*"
137
137
  },
138
138
  "os": [
139
139
  "darwin",