nextlove 0.2.7 → 0.2.9
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/bin.js +1 -1
- package/dist/generate-openapi/index.d.ts +1 -1
- package/dist/generate-openapi/index.js +4 -4
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/index.js +1 -1
- package/dist/with-route-spec/index.d.ts +0 -0
- package/dist/with-route-spec/index.js +0 -0
- package/dist/with-route-spec/middlewares/with-methods.d.ts +0 -0
- package/dist/with-route-spec/middlewares/with-methods.js +0 -0
- package/dist/with-route-spec/middlewares/with-validation.d.ts +0 -0
- package/dist/with-route-spec/middlewares/with-validation.js +0 -0
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -15,7 +15,7 @@ nextlove generate-openapi [options]
|
|
|
15
15
|
--packageDir <path> Path to the package directory containing the Next.js app
|
|
16
16
|
--outputFile <path> Path to the output file
|
|
17
17
|
--pathGlob <glob> Glob pattern to find API route files
|
|
18
|
-
--apiPrefix <path> Prefix for API routes, default: "/
|
|
18
|
+
--apiPrefix <path> Prefix for API routes, default: "/"
|
|
19
19
|
|
|
20
20
|
`.trim())
|
|
21
21
|
process.exit(0)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const defaultMapFilePathToHTTPRoute: (
|
|
1
|
+
declare const defaultMapFilePathToHTTPRoute: (api_prefix?: string) => (file_path: string) => string;
|
|
2
2
|
interface GenerateOpenAPIOpts {
|
|
3
3
|
packageDir: string;
|
|
4
4
|
outputFile?: string;
|