@spikers/next-openapi-json-generator 1.1.1 → 1.1.2
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 -4
- package/dist/index.js +1 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -415,10 +415,7 @@ function createRouteRecord(method, filePath, rootPath, apiData) {
|
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
417
|
function bundlePaths(source, storedSchemas) {
|
|
418
|
-
source.sort((a, b) =>
|
|
419
|
-
const methodComparison = a.method.localeCompare(b.method);
|
|
420
|
-
return methodComparison !== 0 ? methodComparison : a.path.localeCompare(b.path);
|
|
421
|
-
});
|
|
418
|
+
source.sort((a, b) => a.path.localeCompare(b.path));
|
|
422
419
|
return source.reduce((collection, route) => ({
|
|
423
420
|
...collection,
|
|
424
421
|
[route.path]: {
|
package/dist/index.js
CHANGED
|
@@ -386,10 +386,7 @@ function createRouteRecord(method, filePath, rootPath, apiData) {
|
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
388
|
function bundlePaths(source, storedSchemas) {
|
|
389
|
-
source.sort((a, b) =>
|
|
390
|
-
const methodComparison = a.method.localeCompare(b.method);
|
|
391
|
-
return methodComparison !== 0 ? methodComparison : a.path.localeCompare(b.path);
|
|
392
|
-
});
|
|
389
|
+
source.sort((a, b) => a.path.localeCompare(b.path));
|
|
393
390
|
return source.reduce((collection, route) => ({
|
|
394
391
|
...collection,
|
|
395
392
|
[route.path]: {
|