@spikers/next-openapi-json-generator 2.0.0 → 2.0.1
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -112,7 +112,7 @@ var import_promises2 = __toESM(require("fs/promises"), 1);
|
|
|
112
112
|
async function isDocumentedRoute(routePath2) {
|
|
113
113
|
try {
|
|
114
114
|
const rawCode = await import_promises2.default.readFile(routePath2, "utf-8");
|
|
115
|
-
return rawCode.includes("@
|
|
115
|
+
return rawCode.includes("@spikers/next-openapi-route-handler");
|
|
116
116
|
} catch {
|
|
117
117
|
return false;
|
|
118
118
|
}
|
package/dist/index.js
CHANGED
|
@@ -83,7 +83,7 @@ import fs2 from "fs/promises";
|
|
|
83
83
|
async function isDocumentedRoute(routePath2) {
|
|
84
84
|
try {
|
|
85
85
|
const rawCode = await fs2.readFile(routePath2, "utf-8");
|
|
86
|
-
return rawCode.includes("@
|
|
86
|
+
return rawCode.includes("@spikers/next-openapi-route-handler");
|
|
87
87
|
} catch {
|
|
88
88
|
return false;
|
|
89
89
|
}
|