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>
16 lines
No EOL
524 B
Text
16 lines
No EOL
524 B
Text
/**
|
|
* Normalizers combines many normalizers into a single normalizer interface that
|
|
* will normalize the inputted pathname with each normalizer in order.
|
|
*/ export class Normalizers {
|
|
constructor(normalizers = []){
|
|
this.normalizers = normalizers;
|
|
}
|
|
push(normalizer) {
|
|
this.normalizers.push(normalizer);
|
|
}
|
|
normalize(pathname) {
|
|
return this.normalizers.reduce((normalized, normalizer)=>normalizer.normalize(normalized), pathname);
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=normalizers.js.map |