UNPKG

1.25 kBJavaScriptView Raw
1import ExtractTimezoneAbbrRefiner from "./common/refiners/ExtractTimezoneAbbrRefiner.js";
2import ExtractTimezoneOffsetRefiner from "./common/refiners/ExtractTimezoneOffsetRefiner.js";
3import OverlapRemovalRefiner from "./common/refiners/OverlapRemovalRefiner.js";
4import ForwardDateRefiner from "./common/refiners/ForwardDateRefiner.js";
5import UnlikelyFormatFilter from "./common/refiners/UnlikelyFormatFilter.js";
6import ISOFormatParser from "./common/parsers/ISOFormatParser.js";
7import MergeWeekdayComponentRefiner from "./common/refiners/MergeWeekdayComponentRefiner.js";
8export function includeCommonConfiguration(configuration, strictMode = false) {
9 configuration.parsers.unshift(new ISOFormatParser());
10 configuration.refiners.unshift(new MergeWeekdayComponentRefiner());
11 configuration.refiners.unshift(new ExtractTimezoneOffsetRefiner());
12 configuration.refiners.unshift(new OverlapRemovalRefiner());
13 configuration.refiners.push(new ExtractTimezoneAbbrRefiner());
14 configuration.refiners.push(new OverlapRemovalRefiner());
15 configuration.refiners.push(new ForwardDateRefiner());
16 configuration.refiners.push(new UnlikelyFormatFilter(strictMode));
17 return configuration;
18}
19//# sourceMappingURL=configurations.js.map
\No newline at end of file