Rocky_Mountain_Vending/.pnpm-store/v10/files/4f/4a5269c5eb6a5f67ed81ddf79dc22769347ec91e05c05a910742d7237dfa6ab81e80488b231eb5839509ba67faf8e32ac238313b5d912b4b29d82d5f9e30aa
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

30 lines
No EOL
1.1 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "sortByPageExts", {
enumerable: true,
get: function() {
return sortByPageExts;
}
});
const _posix = require("path/posix");
function sortByPageExts(pageExtensions) {
return (a, b)=>{
// prioritize entries according to pageExtensions order
// for consistency as fs order can differ across systems
// NOTE: this is reversed so preferred comes last and
// overrides prior
const aExt = (0, _posix.extname)(a);
const bExt = (0, _posix.extname)(b);
const aNoExt = a.substring(0, a.length - aExt.length);
const bNoExt = b.substring(0, b.length - bExt.length);
if (aNoExt !== bNoExt) return 0;
// find extension index (skip '.' as pageExtensions doesn't have it)
const aExtIndex = pageExtensions.indexOf(aExt.substring(1));
const bExtIndex = pageExtensions.indexOf(bExt.substring(1));
return bExtIndex - aExtIndex;
};
}
//# sourceMappingURL=sort-by-page-exts.js.map