Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
23
node_modules/next/dist/server/normalizers/normalizers.js
generated
vendored
Normal file
23
node_modules/next/dist/server/normalizers/normalizers.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "Normalizers", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return Normalizers;
|
||||
}
|
||||
});
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue