esday 1.0.0 → 1.0.1

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.
Files changed (190) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +16 -8
  3. package/chunks/{DuP2qVZn.d.ts → BB5OVV-y.d.ts} +1 -1
  4. package/chunks/{Dc43cziu.d.ts → CBlQG2yl.d.ts} +1 -2
  5. package/chunks/{CNIy0PdR.js → DIG_UBsE.js} +2 -1
  6. package/chunks/{D2Xh96oz.js → oiGWnahC.js} +6 -5
  7. package/index.d.ts +2 -2
  8. package/index.js +1 -1
  9. package/locales/af.d.ts +0 -1
  10. package/locales/am.d.ts +0 -1
  11. package/locales/ar-dz.d.ts +0 -1
  12. package/locales/ar-iq.d.ts +0 -1
  13. package/locales/ar-kw.d.ts +0 -1
  14. package/locales/ar-ly.d.ts +0 -1
  15. package/locales/ar-ma.d.ts +0 -1
  16. package/locales/ar-sa.d.ts +0 -1
  17. package/locales/ar-tn.d.ts +0 -1
  18. package/locales/ar.d.ts +0 -1
  19. package/locales/az.d.ts +0 -1
  20. package/locales/be.d.ts +0 -1
  21. package/locales/bg.d.ts +0 -1
  22. package/locales/bi.d.ts +0 -1
  23. package/locales/bm.d.ts +0 -1
  24. package/locales/bn-bd.d.ts +0 -1
  25. package/locales/bn.d.ts +0 -1
  26. package/locales/bo.d.ts +0 -1
  27. package/locales/br.d.ts +0 -1
  28. package/locales/bs.d.ts +0 -1
  29. package/locales/ca.d.ts +0 -1
  30. package/locales/cs.d.ts +0 -1
  31. package/locales/cv.d.ts +0 -1
  32. package/locales/cy.d.ts +0 -1
  33. package/locales/da.d.ts +0 -1
  34. package/locales/de-at.d.ts +0 -1
  35. package/locales/de-ch.d.ts +0 -1
  36. package/locales/de.d.ts +0 -1
  37. package/locales/dv.d.ts +0 -1
  38. package/locales/el.d.ts +0 -1
  39. package/locales/en-au.d.ts +0 -1
  40. package/locales/en-ca.d.ts +0 -1
  41. package/locales/en-gb.d.ts +0 -1
  42. package/locales/en-ie.d.ts +0 -1
  43. package/locales/en-il.d.ts +0 -1
  44. package/locales/en-in.d.ts +0 -1
  45. package/locales/en-nz.d.ts +0 -1
  46. package/locales/en-sg.d.ts +0 -1
  47. package/locales/en-tt.d.ts +0 -1
  48. package/locales/en-us.d.ts +0 -1
  49. package/locales/en.d.ts +0 -1
  50. package/locales/eo.d.ts +0 -1
  51. package/locales/es-do.d.ts +0 -1
  52. package/locales/es-mx.d.ts +0 -1
  53. package/locales/es-pr.d.ts +0 -1
  54. package/locales/es-us.d.ts +0 -1
  55. package/locales/es.d.ts +0 -1
  56. package/locales/et.d.ts +0 -1
  57. package/locales/eu.d.ts +0 -1
  58. package/locales/fa.d.ts +0 -1
  59. package/locales/fi.d.ts +0 -1
  60. package/locales/fil.d.ts +0 -1
  61. package/locales/fo.d.ts +0 -1
  62. package/locales/fr-ca.d.ts +0 -1
  63. package/locales/fr-ch.d.ts +0 -1
  64. package/locales/fr.d.ts +0 -1
  65. package/locales/fy.d.ts +0 -1
  66. package/locales/ga.d.ts +0 -1
  67. package/locales/gd.d.ts +0 -1
  68. package/locales/gl.d.ts +0 -1
  69. package/locales/gom-deva.d.ts +0 -1
  70. package/locales/gom-latn.d.ts +0 -1
  71. package/locales/gu.d.ts +0 -1
  72. package/locales/he.d.ts +0 -1
  73. package/locales/he.js +2 -1
  74. package/locales/hi.d.ts +0 -1
  75. package/locales/hr.d.ts +0 -1
  76. package/locales/ht.d.ts +0 -1
  77. package/locales/hu.d.ts +0 -1
  78. package/locales/hy-am.d.ts +0 -1
  79. package/locales/id.d.ts +0 -1
  80. package/locales/is.d.ts +0 -1
  81. package/locales/it-ch.d.ts +0 -1
  82. package/locales/it.d.ts +0 -1
  83. package/locales/ja.d.ts +0 -1
  84. package/locales/jv.d.ts +0 -1
  85. package/locales/ka.d.ts +0 -1
  86. package/locales/kk.d.ts +0 -1
  87. package/locales/km.d.ts +0 -1
  88. package/locales/kn.d.ts +0 -1
  89. package/locales/ko.d.ts +0 -1
  90. package/locales/ku.d.ts +0 -1
  91. package/locales/ky.d.ts +0 -1
  92. package/locales/lb.d.ts +0 -1
  93. package/locales/lo.d.ts +0 -1
  94. package/locales/lt.d.ts +0 -1
  95. package/locales/lv.d.ts +0 -1
  96. package/locales/me.d.ts +0 -1
  97. package/locales/mi.d.ts +0 -1
  98. package/locales/mk.d.ts +0 -1
  99. package/locales/ml.d.ts +0 -1
  100. package/locales/mn.d.ts +0 -1
  101. package/locales/mr.d.ts +0 -1
  102. package/locales/ms-my.d.ts +0 -1
  103. package/locales/ms.d.ts +0 -1
  104. package/locales/mt.d.ts +0 -1
  105. package/locales/my.d.ts +0 -1
  106. package/locales/nb.d.ts +0 -1
  107. package/locales/ne.d.ts +0 -1
  108. package/locales/nl-be.d.ts +0 -1
  109. package/locales/nl.d.ts +0 -1
  110. package/locales/nn.d.ts +0 -1
  111. package/locales/oc-lnc.d.ts +0 -1
  112. package/locales/pa-in.d.ts +0 -1
  113. package/locales/pl.d.ts +0 -1
  114. package/locales/pt-br.d.ts +0 -1
  115. package/locales/pt.d.ts +0 -1
  116. package/locales/rn.d.ts +0 -1
  117. package/locales/ro.d.ts +0 -1
  118. package/locales/ru.d.ts +0 -1
  119. package/locales/rw.d.ts +0 -1
  120. package/locales/sd.d.ts +0 -1
  121. package/locales/se.d.ts +0 -1
  122. package/locales/si.d.ts +0 -1
  123. package/locales/sk.d.ts +0 -1
  124. package/locales/sl.d.ts +0 -1
  125. package/locales/sq.d.ts +0 -1
  126. package/locales/sr-cyrl.d.ts +0 -1
  127. package/locales/sr.d.ts +0 -1
  128. package/locales/ss.d.ts +0 -1
  129. package/locales/sv-fi.d.ts +0 -1
  130. package/locales/sv.d.ts +0 -1
  131. package/locales/sw.d.ts +0 -1
  132. package/locales/ta.d.ts +0 -1
  133. package/locales/te.d.ts +0 -1
  134. package/locales/tet.d.ts +0 -1
  135. package/locales/tg.d.ts +0 -1
  136. package/locales/th.d.ts +0 -1
  137. package/locales/tk.d.ts +0 -1
  138. package/locales/tl-ph.d.ts +0 -1
  139. package/locales/tlh.d.ts +0 -1
  140. package/locales/tr.d.ts +0 -1
  141. package/locales/tzl.d.ts +0 -1
  142. package/locales/tzm-latn.d.ts +0 -1
  143. package/locales/tzm.d.ts +0 -1
  144. package/locales/ug-cn.d.ts +0 -1
  145. package/locales/uk.d.ts +0 -1
  146. package/locales/ur.d.ts +0 -1
  147. package/locales/uz-latn.d.ts +0 -1
  148. package/locales/uz.d.ts +0 -1
  149. package/locales/vi.d.ts +0 -1
  150. package/locales/x-pseudo.d.ts +0 -1
  151. package/locales/yo.d.ts +0 -1
  152. package/locales/zh-cn.d.ts +0 -1
  153. package/locales/zh-hk.d.ts +0 -1
  154. package/locales/zh-mo.d.ts +0 -1
  155. package/locales/zh-tw.d.ts +0 -1
  156. package/locales/zh.d.ts +0 -1
  157. package/package.json +18 -18
  158. package/plugins/advancedFormat/index.d.ts +1 -2
  159. package/plugins/advancedParse/index.d.ts +1 -2
  160. package/plugins/calendar/index.d.ts +1 -2
  161. package/plugins/dayOfYear/index.d.ts +1 -2
  162. package/plugins/duration/index.d.ts +1 -2
  163. package/plugins/duration/index.js +7 -6
  164. package/plugins/isBetween/index.d.ts +1 -2
  165. package/plugins/isLeapYear/index.d.ts +1 -2
  166. package/plugins/isSameOrAfter/index.d.ts +1 -2
  167. package/plugins/isSameOrBefore/index.d.ts +1 -2
  168. package/plugins/isToday/index.d.ts +1 -2
  169. package/plugins/isTomorrow/index.d.ts +1 -2
  170. package/plugins/isYesterday/index.d.ts +1 -2
  171. package/plugins/isoWeek/index.d.ts +1 -2
  172. package/plugins/locale/index.d.ts +1 -2
  173. package/plugins/locale/index.js +4 -2
  174. package/plugins/localeData/index.d.ts +1 -2
  175. package/plugins/localeData/index.js +5 -3
  176. package/plugins/localizedFormat/index.d.ts +1 -2
  177. package/plugins/localizedParse/index.d.ts +1 -2
  178. package/plugins/localizedParse/index.js +2 -1
  179. package/plugins/minMax/index.d.ts +1 -2
  180. package/plugins/objectSupport/index.d.ts +1 -2
  181. package/plugins/pluralGetSet/index.d.ts +1 -2
  182. package/plugins/quarterOfYear/index.d.ts +1 -2
  183. package/plugins/relativeTime/index.d.ts +1 -2
  184. package/plugins/timezone/index.d.ts +1 -2
  185. package/plugins/timezone/index.js +1 -1
  186. package/plugins/toArray/index.d.ts +1 -2
  187. package/plugins/toObject/index.d.ts +1 -2
  188. package/plugins/utc/index.d.ts +1 -2
  189. package/plugins/utc/index.js +1 -1
  190. package/plugins/week/index.d.ts +1 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "esday",
3
3
  "type": "module",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "description": "A simple date library fully written in TypeScript",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/BePo65/esday",
@@ -52,28 +52,28 @@
52
52
  "*"
53
53
  ],
54
54
  "devDependencies": {
55
- "@biomejs/biome": "2.4.16",
56
- "@commitlint/cli": "^21.0.1",
57
- "@commitlint/config-conventional": "^21.0.1",
58
- "@playwright/test": "~1.60.0",
59
- "@types/node": "^25.9.1",
60
- "@vitest/browser-playwright": "^4.1.7",
61
- "@vitest/coverage-v8": "4.1.7",
62
- "@vitest/ui": "4.1.7",
63
- "commit-and-tag-version": "^12.7.3",
55
+ "@biomejs/biome": "2.5.5",
56
+ "@commitlint/cli": "^21.2.1",
57
+ "@commitlint/config-conventional": "^21.2.0",
58
+ "@playwright/test": "~1.61.1",
59
+ "@types/node": "^26.1.1",
60
+ "@vitest/browser-playwright": "^4.1.10",
61
+ "@vitest/coverage-v8": "4.1.10",
62
+ "@vitest/ui": "4.1.10",
63
+ "commit-and-tag-version": "^13.1.0",
64
64
  "cpy-cli": "^7.0.0",
65
- "dompurify": "^3.4.7",
65
+ "dompurify": "^3.4.12",
66
66
  "husky": "^9.1.7",
67
67
  "jsdom": "^29.1.1",
68
- "marked": "^18.0.4",
69
- "moment-timezone": "^0.6.2",
68
+ "marked": "^18.0.7",
69
+ "moment-timezone": "^0.6.3",
70
70
  "moment": "^2.30.1",
71
- "playwright": "~1.60.0",
72
- "tsdown": "^0.22.1",
71
+ "playwright": "~1.61.1",
72
+ "tsdown": "^0.22.13",
73
73
  "typescript": "^6.0.3",
74
- "ultracite": "7.8.0",
75
- "vite": "^8.0.14",
76
- "vitest": "4.1.7"
74
+ "ultracite": "7.9.4",
75
+ "vite": "^8.1.5",
76
+ "vitest": "4.1.10"
77
77
  },
78
78
  "commit-and-tag-version": {
79
79
  "packageFiles": [
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/advancedFormat/index.d.ts
4
3
  declare const advancedFormatPlugin: EsDayPlugin<{}>;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/advancedParse/index.d.ts
4
3
  declare const advancedParsePlugin: EsDayPlugin<{}>;
5
4
  //#endregion
@@ -1,6 +1,5 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
2
  import { CalendarPartial } from "../locale/index.js";
3
-
4
3
  //#region src/plugins/calendar/index.d.ts
5
4
  declare module 'esday' {
6
5
  interface EsDay {
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/dayOfYear/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,7 +1,6 @@
1
- import { C as UnitDates, D as UnitIsoWeeks, L as UnitTypePlurals, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
1
+ import { C as UnitDates, D as UnitIsoWeeks, L as UnitTypePlurals, s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
2
  import { Locale } from "../locale/index.js";
3
3
  import { ThresholdRelativeTime } from "../relativeTime/index.js";
4
-
5
4
  //#region src/plugins/duration/index.d.ts
6
5
  declare module 'esday' {
7
6
  interface EsDayFactory {
@@ -2,18 +2,18 @@ import { r as INVALID_DATE_STRING } from "../../chunks/CeKusvtV.js";
2
2
  import { a as isUndefined, r as isObject } from "../../chunks/DuRKUq5K.js";
3
3
  import { n as normalizeUnitWithPlurals, r as normalizeUnitWithPluralsToPlural } from "../../chunks/DMdr1ZL1.js";
4
4
  import { n as padStart } from "../../chunks/DXFoLbHM.js";
5
- import { i as _checkPrivateRedeclaration, r as _assertClassBrand, t as esday } from "../../chunks/D2Xh96oz.js";
6
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldInitSpec.js
5
+ import { i as _checkPrivateRedeclaration, r as _assertClassBrand, t as esday } from "../../chunks/oiGWnahC.js";
6
+ //#region \0@oxc-project+runtime@0.140.0/helpers/esm/classPrivateFieldInitSpec.js
7
7
  function _classPrivateFieldInitSpec(e, t, a) {
8
8
  _checkPrivateRedeclaration(e, t), t.set(e, a);
9
9
  }
10
10
  //#endregion
11
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldSet2.js
11
+ //#region \0@oxc-project+runtime@0.140.0/helpers/esm/classPrivateFieldSet2.js
12
12
  function _classPrivateFieldSet2(s, a, r) {
13
13
  return s.set(_assertClassBrand(s, a), r), r;
14
14
  }
15
15
  //#endregion
16
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldGet2.js
16
+ //#region \0@oxc-project+runtime@0.140.0/helpers/esm/classPrivateFieldGet2.js
17
17
  function _classPrivateFieldGet2(s, a) {
18
18
  return s.get(_assertClassBrand(s, a));
19
19
  }
@@ -452,11 +452,12 @@ var DurationImpl = class DurationImpl {
452
452
  else if (value instanceof DurationImpl) durationToAdd = value;
453
453
  else durationToAdd = new DurationImpl(value, void 0, this.locale());
454
454
  const valuesToAdd = durationToAdd.durationBase();
455
- return new DurationImpl({
455
+ const newDurationBase = {
456
456
  milliseconds: _classPrivateFieldGet2(_timeAsMs, this) + direction * valuesToAdd.milliseconds,
457
457
  days: _classPrivateFieldGet2(_days, this) + direction * valuesToAdd.days,
458
458
  months: _classPrivateFieldGet2(_months, this) + direction * valuesToAdd.months
459
- }, void 0, this.locale());
459
+ };
460
+ return new DurationImpl(newDurationBase, void 0, this.locale());
460
461
  }
461
462
  };
462
463
  const durationPlugin = (_, _dayClass, dayFactory) => {
@@ -1,5 +1,4 @@
1
- import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/isBetween/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/isLeapYear/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,5 +1,4 @@
1
- import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/isSameOrAfter/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,5 +1,4 @@
1
- import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/isSameOrBefore/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/isToday/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/isTomorrow/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/isYesterday/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/isoWeek/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin, t as EsDay } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin, t as EsDay } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/locale/types.d.ts
4
3
  type ReadonlyTuple<T, N extends number, R extends readonly T[] = []> = R['length'] extends N ? R : ReadonlyTuple<T, N, readonly [T, ...R]>;
5
4
  declare module 'esday' {
@@ -109,10 +109,12 @@ const localePlugin = (_, dayClass, dayFactory) => {
109
109
  return inst;
110
110
  };
111
111
  dayClass.prototype["startOf"] = function(unit) {
112
- return fixDiff(oldStartOf.call(this, unit), this, unit);
112
+ const inst = oldStartOf.call(this, unit);
113
+ return fixDiff(inst, this, unit);
113
114
  };
114
115
  dayClass.prototype["endOf"] = function(unit) {
115
- return fixDiff(oldEndOf.call(this, unit), this, unit, true);
116
+ const inst = oldEndOf.call(this, unit);
117
+ return fixDiff(inst, this, unit, true);
116
118
  };
117
119
  dayFactory.locale = (localeName) => {
118
120
  if (localeName === void 0) return $localeGlobal;
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/localeData/index.d.ts
4
3
  declare const localeDataPlugin: EsDayPlugin<{}>;
5
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as esday } from "../../chunks/D2Xh96oz.js";
1
+ import { t as esday } from "../../chunks/oiGWnahC.js";
2
2
  //#region src/plugins/localeData/index.ts
3
3
  /**
4
4
  * LocaleData plugin
@@ -138,10 +138,12 @@ const createLocaleDataObject = (locale) => {
138
138
  const localeDataPlugin = (_, dayClass, dayFactory) => {
139
139
  const proto = dayClass.prototype;
140
140
  proto.localeData = function() {
141
- return createLocaleDataObject(this.localeObject());
141
+ const locale = this.localeObject();
142
+ return createLocaleDataObject(locale);
142
143
  };
143
144
  dayFactory.localeData = (localeName) => {
144
- return createLocaleDataObject(localeName !== void 0 ? dayFactory.getLocale(localeName) : dayFactory.getLocale(dayFactory.locale()));
145
+ const locale = localeName !== void 0 ? dayFactory.getLocale(localeName) : dayFactory.getLocale(dayFactory.locale());
146
+ return createLocaleDataObject(locale);
145
147
  };
146
148
  dayFactory.months = () => getMonths(dayFactory.getLocale(dayFactory.locale()), "months");
147
149
  dayFactory.monthsShort = () => getMonths(dayFactory.getLocale(dayFactory.locale()), "monthsShort");
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/localizedFormat/index.d.ts
4
3
  declare const localizedFormatPlugin: EsDayPlugin<{}>;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/localizedParse/index.d.ts
4
3
  declare const localizedParsePlugin: EsDayPlugin<{}>;
5
4
  //#endregion
@@ -51,7 +51,8 @@ const meridiemMatch = (locale, input, isLowerCase) => {
51
51
  const addAfternoon = (isLowerCase, esday) => {
52
52
  return function meridiemUpdater(parsedElements, input, parseOptions) {
53
53
  const localeName = parseOptions["locale"];
54
- parsedElements.afternoon = meridiemMatch(esday.getLocale(localeName), input, isLowerCase);
54
+ const locale = esday.getLocale(localeName);
55
+ parsedElements.afternoon = meridiemMatch(locale, input, isLowerCase);
55
56
  };
56
57
  };
57
58
  /**
@@ -1,5 +1,4 @@
1
- import { i as DateType, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { i as DateType, s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/minMax/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDayFactory {
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/objectSupport/index.d.ts
4
3
  declare const objectSupportPlugin: EsDayPlugin<{}>;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/pluralGetSet/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/quarterOfYear/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,6 +1,5 @@
1
- import { i as DateType, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
1
+ import { i as DateType, s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
2
  import { Locale } from "../locale/index.js";
3
-
4
3
  //#region src/plugins/relativeTime/index.d.ts
5
4
  declare module 'esday' {
6
5
  interface EsDay {
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/timezone/index.d.ts
4
3
  declare const timezonePLugin: EsDayPlugin<{}>;
5
4
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
2
  import { n as isEmptyObject, r as isObject } from "../../chunks/DuRKUq5K.js";
3
3
  import { n as normalizeUnitWithPlurals } from "../../chunks/DMdr1ZL1.js";
4
- import { t as esday } from "../../chunks/D2Xh96oz.js";
4
+ import { t as esday } from "../../chunks/oiGWnahC.js";
5
5
  //#region src/plugins/timezone/timezone-util.ts
6
6
  /**
7
7
  * Cache for Intl.DateTimeFormat instances for formatting date and time
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/toArray/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/toObject/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,5 +1,4 @@
1
- import { g as SimpleType, i as DateType, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { g as SimpleType, i as DateType, s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/utc/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {
@@ -1,7 +1,7 @@
1
1
  import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
2
  import { a as isUndefined, r as isObject } from "../../chunks/DuRKUq5K.js";
3
3
  import { n as normalizeUnitWithPlurals } from "../../chunks/DMdr1ZL1.js";
4
- import { a as setUnitInDateUTC, n as getUnitInDateUTC } from "../../chunks/CNIy0PdR.js";
4
+ import { a as setUnitInDateUTC, n as getUnitInDateUTC } from "../../chunks/DIG_UBsE.js";
5
5
  import { t as createInstanceFromExist } from "../../chunks/i3oEJgL3.js";
6
6
  //#region src/plugins/utc/index.ts
7
7
  const REGEX_VALID_OFFSET_FORMAT = /[+-]\d\d(?::?\d\d)?/g;
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
-
1
+ import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
3
2
  //#region src/plugins/week/index.d.ts
4
3
  declare module 'esday' {
5
4
  interface EsDay {