25 lines
1.3 KiB
JavaScript
25 lines
1.3 KiB
JavaScript
// Metro module 3515 (f3516).
|
|
let _excluded, _excluded2;
|
|
export function isProtectedDayOfYearToken(a0) {
|
|
return _excluded.indexOf(a0) !== -1;
|
|
}
|
|
export function isProtectedWeekYearToken(a0) {
|
|
return _excluded2.indexOf(a0) !== -1;
|
|
}
|
|
export function throwProtectedError(a0, a1, a2) {
|
|
if (a0 === "YYYY") {
|
|
throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(a1, "`) for formatting years to the input `").concat(a2, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
}
|
|
if (a0 === "YY") {
|
|
throw new RangeError("Use `yy` instead of `YY` (in `".concat(a1, "`) for formatting years to the input `").concat(a2, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
}
|
|
if (a0 === "D") {
|
|
throw new RangeError("Use `d` instead of `D` (in `".concat(a1, "`) for formatting days of the month to the input `").concat(a2, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
}
|
|
if (a0 === "DD") {
|
|
throw new RangeError("Use `dd` instead of `DD` (in `".concat(a1, "`) for formatting days of the month to the input `").concat(a2, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
}
|
|
}
|
|
_excluded = ["D", "DD"];
|
|
_excluded2 = ["YY", "YYYY"];
|