yuyeon 0.3.6-beta.7 → 0.3.6-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/yuyeon.js CHANGED
@@ -2432,12 +2432,12 @@ class U {
2432
2432
  static getNextMonth(t) {
2433
2433
  return new Date(t.getFullYear(), t.getMonth() + 1, 1);
2434
2434
  }
2435
- static getWeekdays(t) {
2436
- const n = Bt[t.slice(-2).toUpperCase()] ?? 0;
2437
- return [...Array(7).keys()].map((a) => {
2438
- const l = new Date(dt);
2439
- return l.setDate(dt.getDate() + n + a), new Intl.DateTimeFormat(t, { weekday: "narrow" }).format(
2440
- l
2435
+ static getWeekdays(t, n) {
2436
+ let a = Bt[t.slice(-2).toUpperCase()] ?? 0;
2437
+ return typeof n < "u" && n >= 0 && n < 7 && (a = n), [...Array(7).keys()].map((l) => {
2438
+ const i = new Date(dt);
2439
+ return i.setDate(dt.getDate() + a + l), new Intl.DateTimeFormat(t, { weekday: "narrow" }).format(
2440
+ i
2441
2441
  );
2442
2442
  });
2443
2443
  }
@@ -2557,8 +2557,8 @@ class Ui {
2557
2557
  getNextMonth(t) {
2558
2558
  return U.getNextMonth(t);
2559
2559
  }
2560
- getWeekdays() {
2561
- return U.getWeekdays(this.locale);
2560
+ getWeekdays(t, n = this.locale) {
2561
+ return U.getWeekdays(n, t);
2562
2562
  }
2563
2563
  isAfter(t, n) {
2564
2564
  return U.isAfter(t, n);