next-openapi-gen 0.3.2 → 0.3.3

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/dist/lib/utils.js CHANGED
@@ -32,7 +32,7 @@ export function extractJSDocComments(path) {
32
32
  summary = commentValue.split("\n")[0];
33
33
  }
34
34
  if (commentValue.includes("@auth")) {
35
- const regex = /@auth:\s*(.*)/;
35
+ const regex = /@auth\s*(.*)/;
36
36
  const value = commentValue.match(regex)[1].trim();
37
37
  switch (value) {
38
38
  case "bearer":
@@ -47,7 +47,7 @@ export function extractJSDocComments(path) {
47
47
  }
48
48
  }
49
49
  if (commentValue.includes("@desc")) {
50
- const regex = /@desc:\s*(.*)/;
50
+ const regex = /@desc\s*(.*)/;
51
51
  description = commentValue.match(regex)[1].trim();
52
52
  }
53
53
  if (commentValue.includes("@params")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-openapi-gen",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Super fast and easy way to generate OpenAPI documentation automatically from API routes in NextJS.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",