esday 1.1.0 → 1.1.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 (368) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +4 -0
  3. package/chunks/{DXFoLbHM.js → 9Re3Ck2t.js} +1 -2
  4. package/chunks/{CeKusvtV.js → BfEWL_VC.js} +0 -1
  5. package/chunks/{oiGWnahC.js → Bk-WlP29.js} +20 -35
  6. package/chunks/{DuRKUq5K.js → BtFAvcS3.js} +1 -2
  7. package/chunks/{DE-bYjyv.js → BzQsG1-n.js} +21 -21
  8. package/chunks/DBmUXISx.d.ts +3 -0
  9. package/chunks/{DMdr1ZL1.js → DLzmBvJ7.js} +2 -3
  10. package/chunks/{DIG_UBsE.js → DThHId1s.js} +3 -4
  11. package/chunks/{BB5OVV-y.d.ts → MfctHIHI.d.ts} +0 -8
  12. package/chunks/{CStrb5bT.js → RZP9wuxV.js} +8 -10
  13. package/chunks/{i3oEJgL3.js → SIX-1Rv6.js} +1 -2
  14. package/index.d.ts +2 -2
  15. package/index.js +1 -2
  16. package/locales/af.d.ts +3 -2
  17. package/locales/af.js +1 -2
  18. package/locales/am.d.ts +3 -2
  19. package/locales/am.js +1 -2
  20. package/locales/ar-dz.d.ts +0 -2
  21. package/locales/ar-dz.js +1 -2
  22. package/locales/ar-iq.d.ts +0 -2
  23. package/locales/ar-iq.js +1 -2
  24. package/locales/ar-kw.d.ts +0 -2
  25. package/locales/ar-kw.js +1 -2
  26. package/locales/ar-ly.d.ts +0 -2
  27. package/locales/ar-ly.js +1 -2
  28. package/locales/ar-ma.d.ts +0 -2
  29. package/locales/ar-ma.js +1 -2
  30. package/locales/ar-sa.d.ts +0 -2
  31. package/locales/ar-sa.js +1 -2
  32. package/locales/ar-tn.d.ts +0 -2
  33. package/locales/ar-tn.js +1 -2
  34. package/locales/ar.d.ts +3 -2
  35. package/locales/ar.js +1 -2
  36. package/locales/az.d.ts +3 -2
  37. package/locales/az.js +1 -2
  38. package/locales/be.d.ts +3 -2
  39. package/locales/be.js +1 -2
  40. package/locales/bg.d.ts +3 -2
  41. package/locales/bg.js +1 -2
  42. package/locales/bi.d.ts +3 -2
  43. package/locales/bi.js +1 -2
  44. package/locales/bm.d.ts +3 -2
  45. package/locales/bm.js +1 -2
  46. package/locales/bn-bd.d.ts +0 -2
  47. package/locales/bn-bd.js +2 -3
  48. package/locales/bn.d.ts +3 -2
  49. package/locales/bn.js +1 -2
  50. package/locales/bo.d.ts +3 -2
  51. package/locales/bo.js +1 -2
  52. package/locales/br.d.ts +3 -2
  53. package/locales/br.js +1 -2
  54. package/locales/bs.d.ts +3 -2
  55. package/locales/bs.js +1 -2
  56. package/locales/ca.d.ts +3 -2
  57. package/locales/ca.js +4 -5
  58. package/locales/cs.d.ts +3 -2
  59. package/locales/cs.js +1 -2
  60. package/locales/cv.d.ts +3 -2
  61. package/locales/cv.js +1 -2
  62. package/locales/cy.d.ts +3 -2
  63. package/locales/cy.js +1 -2
  64. package/locales/da.d.ts +3 -2
  65. package/locales/da.js +1 -2
  66. package/locales/de-at.d.ts +0 -2
  67. package/locales/de-at.js +2 -3
  68. package/locales/de-ch.d.ts +0 -2
  69. package/locales/de-ch.js +2 -3
  70. package/locales/de.d.ts +3 -2
  71. package/locales/de.js +1 -2
  72. package/locales/dv.d.ts +3 -2
  73. package/locales/dv.js +1 -2
  74. package/locales/el.d.ts +3 -2
  75. package/locales/el.js +1 -2
  76. package/locales/en-au.d.ts +0 -2
  77. package/locales/en-au.js +1 -2
  78. package/locales/en-ca.d.ts +0 -2
  79. package/locales/en-ca.js +1 -2
  80. package/locales/en-gb.d.ts +0 -2
  81. package/locales/en-gb.js +1 -2
  82. package/locales/en-ie.d.ts +0 -2
  83. package/locales/en-ie.js +1 -2
  84. package/locales/en-il.d.ts +0 -2
  85. package/locales/en-il.js +1 -2
  86. package/locales/en-in.d.ts +0 -2
  87. package/locales/en-in.js +1 -2
  88. package/locales/en-nz.d.ts +0 -2
  89. package/locales/en-nz.js +1 -2
  90. package/locales/en-sg.d.ts +0 -2
  91. package/locales/en-sg.js +1 -2
  92. package/locales/en-tt.d.ts +0 -2
  93. package/locales/en-tt.js +1 -2
  94. package/locales/en-us.d.ts +0 -2
  95. package/locales/en-us.js +1 -2
  96. package/locales/en.d.ts +4 -2
  97. package/locales/en.js +1 -2
  98. package/locales/eo.d.ts +3 -2
  99. package/locales/eo.js +1 -2
  100. package/locales/es-do.d.ts +0 -2
  101. package/locales/es-do.js +2 -3
  102. package/locales/es-mx.d.ts +0 -2
  103. package/locales/es-mx.js +2 -3
  104. package/locales/es-pr.d.ts +0 -2
  105. package/locales/es-pr.js +2 -3
  106. package/locales/es-us.d.ts +0 -2
  107. package/locales/es-us.js +2 -3
  108. package/locales/es.d.ts +3 -2
  109. package/locales/es.js +1 -2
  110. package/locales/et.d.ts +3 -2
  111. package/locales/et.js +1 -2
  112. package/locales/eu.d.ts +3 -2
  113. package/locales/eu.js +1 -2
  114. package/locales/fa.d.ts +3 -2
  115. package/locales/fa.js +1 -2
  116. package/locales/fi.d.ts +3 -2
  117. package/locales/fi.js +1 -2
  118. package/locales/fil.d.ts +3 -2
  119. package/locales/fil.js +1 -2
  120. package/locales/fo.d.ts +3 -2
  121. package/locales/fo.js +1 -2
  122. package/locales/fr-ca.d.ts +0 -2
  123. package/locales/fr-ca.js +2 -3
  124. package/locales/fr-ch.d.ts +0 -2
  125. package/locales/fr-ch.js +2 -3
  126. package/locales/fr.d.ts +3 -2
  127. package/locales/fr.js +1 -2
  128. package/locales/fy.d.ts +3 -2
  129. package/locales/fy.js +1 -2
  130. package/locales/ga.d.ts +3 -2
  131. package/locales/ga.js +1 -2
  132. package/locales/gd.d.ts +3 -2
  133. package/locales/gd.js +1 -2
  134. package/locales/gl.d.ts +3 -2
  135. package/locales/gl.js +1 -2
  136. package/locales/gom-deva.d.ts +3 -2
  137. package/locales/gom-deva.js +1 -2
  138. package/locales/gom-latn.d.ts +3 -2
  139. package/locales/gom-latn.js +1 -2
  140. package/locales/gu.d.ts +3 -2
  141. package/locales/gu.js +1 -2
  142. package/locales/he.d.ts +3 -2
  143. package/locales/he.js +1 -2
  144. package/locales/hi.d.ts +3 -2
  145. package/locales/hi.js +1 -2
  146. package/locales/hr.d.ts +3 -2
  147. package/locales/hr.js +1 -2
  148. package/locales/ht.d.ts +3 -2
  149. package/locales/ht.js +1 -2
  150. package/locales/hu.d.ts +3 -2
  151. package/locales/hu.js +1 -2
  152. package/locales/hy-am.d.ts +3 -2
  153. package/locales/hy-am.js +1 -2
  154. package/locales/id.d.ts +3 -2
  155. package/locales/id.js +2 -3
  156. package/locales/is.d.ts +3 -2
  157. package/locales/is.js +1 -2
  158. package/locales/it-ch.d.ts +0 -2
  159. package/locales/it-ch.js +2 -3
  160. package/locales/it.d.ts +3 -2
  161. package/locales/it.js +1 -2
  162. package/locales/ja.d.ts +6 -2
  163. package/locales/ja.js +1 -2
  164. package/locales/jv.d.ts +3 -2
  165. package/locales/jv.js +1 -2
  166. package/locales/ka.d.ts +3 -2
  167. package/locales/ka.js +3 -4
  168. package/locales/kk.d.ts +3 -2
  169. package/locales/kk.js +1 -2
  170. package/locales/km.d.ts +3 -2
  171. package/locales/km.js +1 -2
  172. package/locales/kn.d.ts +3 -2
  173. package/locales/kn.js +1 -2
  174. package/locales/ko.d.ts +3 -2
  175. package/locales/ko.js +1 -2
  176. package/locales/ku.d.ts +3 -2
  177. package/locales/ku.js +1 -2
  178. package/locales/ky.d.ts +3 -2
  179. package/locales/ky.js +1 -2
  180. package/locales/lb.d.ts +3 -2
  181. package/locales/lb.js +1 -2
  182. package/locales/lo.d.ts +3 -2
  183. package/locales/lo.js +1 -2
  184. package/locales/lt.d.ts +3 -2
  185. package/locales/lt.js +1 -2
  186. package/locales/lv.d.ts +3 -2
  187. package/locales/lv.js +1 -2
  188. package/locales/me.d.ts +3 -2
  189. package/locales/me.js +1 -2
  190. package/locales/mi.d.ts +0 -2
  191. package/locales/mi.js +1 -2
  192. package/locales/mk.d.ts +0 -2
  193. package/locales/mk.js +1 -2
  194. package/locales/ml.d.ts +0 -2
  195. package/locales/ml.js +1 -2
  196. package/locales/mn.d.ts +0 -2
  197. package/locales/mn.js +1 -2
  198. package/locales/mr.d.ts +3 -2
  199. package/locales/mr.js +3 -8
  200. package/locales/ms-my.d.ts +0 -2
  201. package/locales/ms-my.js +2 -3
  202. package/locales/ms.d.ts +3 -2
  203. package/locales/ms.js +1 -2
  204. package/locales/mt.d.ts +3 -2
  205. package/locales/mt.js +1 -2
  206. package/locales/my.d.ts +3 -2
  207. package/locales/my.js +1 -2
  208. package/locales/nb.d.ts +3 -2
  209. package/locales/nb.js +1 -2
  210. package/locales/ne.d.ts +3 -2
  211. package/locales/ne.js +1 -2
  212. package/locales/nl-be.d.ts +0 -2
  213. package/locales/nl-be.js +4 -5
  214. package/locales/nl.d.ts +3 -2
  215. package/locales/nl.js +1 -2
  216. package/locales/nn.d.ts +3 -2
  217. package/locales/nn.js +1 -2
  218. package/locales/oc-lnc.d.ts +3 -2
  219. package/locales/oc-lnc.js +1 -2
  220. package/locales/pa-in.d.ts +3 -2
  221. package/locales/pa-in.js +1 -2
  222. package/locales/pl.d.ts +3 -2
  223. package/locales/pl.js +2 -3
  224. package/locales/pt-br.d.ts +0 -2
  225. package/locales/pt-br.js +2 -3
  226. package/locales/pt.d.ts +3 -2
  227. package/locales/pt.js +1 -2
  228. package/locales/rn.d.ts +3 -2
  229. package/locales/rn.js +1 -2
  230. package/locales/ro.d.ts +3 -2
  231. package/locales/ro.js +1 -2
  232. package/locales/ru.d.ts +6 -2
  233. package/locales/ru.js +1 -2
  234. package/locales/rw.d.ts +3 -2
  235. package/locales/rw.js +1 -2
  236. package/locales/sd.d.ts +3 -2
  237. package/locales/sd.js +1 -2
  238. package/locales/se.d.ts +3 -2
  239. package/locales/se.js +1 -2
  240. package/locales/si.d.ts +3 -2
  241. package/locales/si.js +1 -2
  242. package/locales/sk.d.ts +3 -2
  243. package/locales/sk.js +1 -2
  244. package/locales/sl.d.ts +3 -2
  245. package/locales/sl.js +1 -2
  246. package/locales/sq.d.ts +3 -2
  247. package/locales/sq.js +1 -2
  248. package/locales/sr-cyrl.d.ts +0 -2
  249. package/locales/sr-cyrl.js +2 -3
  250. package/locales/sr.d.ts +3 -2
  251. package/locales/sr.js +1 -2
  252. package/locales/ss.d.ts +3 -2
  253. package/locales/ss.js +1 -2
  254. package/locales/sv-fi.d.ts +0 -2
  255. package/locales/sv-fi.js +2 -3
  256. package/locales/sv.d.ts +3 -2
  257. package/locales/sv.js +2 -3
  258. package/locales/sw.d.ts +3 -2
  259. package/locales/sw.js +3 -4
  260. package/locales/ta.d.ts +3 -2
  261. package/locales/ta.js +1 -2
  262. package/locales/te.d.ts +3 -2
  263. package/locales/te.js +1 -2
  264. package/locales/tet.d.ts +3 -2
  265. package/locales/tet.js +1 -2
  266. package/locales/tg.d.ts +3 -2
  267. package/locales/tg.js +1 -2
  268. package/locales/th.d.ts +3 -2
  269. package/locales/th.js +1 -2
  270. package/locales/tk.d.ts +3 -2
  271. package/locales/tk.js +1 -2
  272. package/locales/tl-ph.d.ts +3 -2
  273. package/locales/tl-ph.js +1 -2
  274. package/locales/tlh.d.ts +3 -2
  275. package/locales/tlh.js +1 -2
  276. package/locales/tr.d.ts +3 -2
  277. package/locales/tr.js +1 -2
  278. package/locales/tzl.d.ts +3 -2
  279. package/locales/tzl.js +1 -2
  280. package/locales/tzm-latn.d.ts +0 -2
  281. package/locales/tzm-latn.js +2 -3
  282. package/locales/tzm.d.ts +3 -2
  283. package/locales/tzm.js +1 -2
  284. package/locales/ug-cn.d.ts +3 -2
  285. package/locales/ug-cn.js +1 -2
  286. package/locales/uk.d.ts +0 -2
  287. package/locales/uk.js +2 -3
  288. package/locales/ur.d.ts +3 -2
  289. package/locales/ur.js +1 -2
  290. package/locales/uz-latn.d.ts +0 -2
  291. package/locales/uz-latn.js +3 -4
  292. package/locales/uz.d.ts +3 -2
  293. package/locales/uz.js +1 -2
  294. package/locales/vi.d.ts +3 -2
  295. package/locales/vi.js +1 -2
  296. package/locales/x-pseudo.d.ts +4 -2
  297. package/locales/x-pseudo.js +1 -2
  298. package/locales/yo.d.ts +3 -2
  299. package/locales/yo.js +1 -2
  300. package/locales/zh-cn.d.ts +0 -2
  301. package/locales/zh-cn.js +2 -3
  302. package/locales/zh-hk.d.ts +0 -2
  303. package/locales/zh-hk.js +2 -3
  304. package/locales/zh-mo.d.ts +0 -2
  305. package/locales/zh-mo.js +2 -3
  306. package/locales/zh-tw.d.ts +0 -2
  307. package/locales/zh-tw.js +2 -3
  308. package/locales/zh.d.ts +6 -2
  309. package/locales/zh.js +1 -2
  310. package/package.json +21 -21
  311. package/plugins/advancedFormat/index.d.ts +6 -3
  312. package/plugins/advancedFormat/index.js +2 -3
  313. package/plugins/advancedParse/index.d.ts +20 -3
  314. package/plugins/advancedParse/index.js +6 -8
  315. package/plugins/calendar/index.d.ts +8 -3
  316. package/plugins/calendar/index.js +1 -2
  317. package/plugins/dayOfYear/index.d.ts +1 -3
  318. package/plugins/dayOfYear/index.js +1 -2
  319. package/plugins/duration/index.d.ts +14 -8
  320. package/plugins/duration/index.js +1 -2
  321. package/plugins/index.d.ts +2 -2
  322. package/plugins/index.js +3 -3
  323. package/plugins/isBetween/index.d.ts +1 -3
  324. package/plugins/isBetween/index.js +2 -3
  325. package/plugins/isLeapYear/index.d.ts +1 -3
  326. package/plugins/isLeapYear/index.js +1 -2
  327. package/plugins/isSameOrAfter/index.d.ts +1 -3
  328. package/plugins/isSameOrAfter/index.js +1 -2
  329. package/plugins/isSameOrBefore/index.d.ts +1 -3
  330. package/plugins/isSameOrBefore/index.js +1 -2
  331. package/plugins/isToday/index.d.ts +1 -3
  332. package/plugins/isToday/index.js +2 -3
  333. package/plugins/isTomorrow/index.d.ts +1 -3
  334. package/plugins/isTomorrow/index.js +2 -3
  335. package/plugins/isYesterday/index.d.ts +1 -3
  336. package/plugins/isYesterday/index.js +2 -3
  337. package/plugins/isoWeek/index.d.ts +12 -3
  338. package/plugins/isoWeek/index.js +5 -6
  339. package/plugins/locale/index.d.ts +30 -21
  340. package/plugins/locale/index.js +4 -5
  341. package/plugins/localeData/index.d.ts +9 -3
  342. package/plugins/localeData/index.js +3 -6
  343. package/plugins/localizedFormat/index.d.ts +6 -3
  344. package/plugins/localizedFormat/index.js +3 -4
  345. package/plugins/localizedParse/index.d.ts +26 -3
  346. package/plugins/localizedParse/index.js +2 -3
  347. package/plugins/minMax/index.d.ts +1 -3
  348. package/plugins/minMax/index.js +2 -3
  349. package/plugins/objectSupport/index.d.ts +10 -3
  350. package/plugins/objectSupport/index.js +6 -9
  351. package/plugins/pluralGetSet/index.d.ts +8 -3
  352. package/plugins/pluralGetSet/index.js +1 -2
  353. package/plugins/quarterOfYear/index.d.ts +6 -3
  354. package/plugins/quarterOfYear/index.js +4 -5
  355. package/plugins/relativeTime/index.d.ts +22 -8
  356. package/plugins/relativeTime/index.js +7 -6
  357. package/plugins/timezone/index.d.ts +17 -3
  358. package/plugins/timezone/index.js +1 -2
  359. package/plugins/toArray/index.d.ts +1 -3
  360. package/plugins/toArray/index.js +1 -2
  361. package/plugins/toObject/index.d.ts +1 -3
  362. package/plugins/toObject/index.js +1 -2
  363. package/plugins/utc/index.d.ts +11 -3
  364. package/plugins/utc/index.js +8 -9
  365. package/plugins/week/index.d.ts +12 -3
  366. package/plugins/week/index.js +6 -7
  367. package/LICENSE +0 -21
  368. package/chunks/CBlQG2yl.d.ts +0 -5
package/locales/zh-mo.js CHANGED
@@ -1,6 +1,6 @@
1
- import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
2
1
  import localeZh from "./zh.js";
3
- //#region src/locales/zh-mo.ts
2
+ import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
3
+ // src/locales/zh-mo.ts
4
4
  /**
5
5
  * Chinese (Macau) [zh-MO]
6
6
  */
@@ -15,5 +15,4 @@ const calendar = {
15
15
  const localeZhHk = cloneLocale(localeZh);
16
16
  setLocaleProperty(localeZhHk, "name", "zh-MO");
17
17
  setLocaleProperty(localeZhHk, "calendar", calendar);
18
- //#endregion
19
18
  export { localeZhHk as default };
@@ -1,8 +1,6 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
- //#region src/locales/zh-tw.d.ts
3
2
  /**
4
3
  * Chinese (Taiwan) [zh-TW]
5
4
  */
6
5
  declare const localeZhTw: Locale;
7
- //#endregion
8
6
  export { localeZhTw as default };
package/locales/zh-tw.js CHANGED
@@ -1,6 +1,6 @@
1
- import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
2
1
  import localeZh from "./zh.js";
3
- //#region src/locales/zh-tw.ts
2
+ import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
3
+ // src/locales/zh-tw.ts
4
4
  /**
5
5
  * Chinese (Taiwan) [zh-TW]
6
6
  */
@@ -15,5 +15,4 @@ const calendar = {
15
15
  const localeZhTw = cloneLocale(localeZh);
16
16
  setLocaleProperty(localeZhTw, "name", "zh-TW");
17
17
  setLocaleProperty(localeZhTw, "calendar", calendar);
18
- //#endregion
19
18
  export { localeZhTw as default };
package/locales/zh.d.ts CHANGED
@@ -1,5 +1,10 @@
1
+ /**
2
+ * Chinese [zh]
3
+ *
4
+ * This locale requires the week plugin, when the calendar property
5
+ * is used (e.g. in the calendar plugin).
6
+ */
1
7
  import { Locale } from "../plugins/locale/index.js";
2
- //#region src/locales/zh.d.ts
3
8
  declare module 'esday' {
4
9
  interface EsDay {
5
10
  week(): number;
@@ -7,5 +12,4 @@ declare module 'esday' {
7
12
  }
8
13
  }
9
14
  declare const localeZh: Readonly<Locale>;
10
- //#endregion
11
15
  export { localeZh as default };
package/locales/zh.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/locales/zh.ts
1
+ // src/locales/zh.ts
2
2
  const localeZh = {
3
3
  name: "zh",
4
4
  weekdays: [
@@ -124,5 +124,4 @@ const localeZh = {
124
124
  return "晚上";
125
125
  }
126
126
  };
127
- //#endregion
128
127
  export { localeZh as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "esday",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "description": "A simple date library fully written in TypeScript",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/BePo65/esday",
@@ -56,28 +56,28 @@
56
56
  "*"
57
57
  ],
58
58
  "devDependencies": {
59
- "@biomejs/biome": "2.5.5",
60
- "@commitlint/cli": "^21.2.1",
61
- "@commitlint/config-conventional": "^21.2.0",
62
- "@playwright/test": "~1.61.1",
63
- "@types/node": "^26.1.1",
64
- "@vitest/browser-playwright": "^4.1.10",
65
- "@vitest/coverage-v8": "4.1.10",
66
- "@vitest/ui": "4.1.10",
67
- "commit-and-tag-version": "^13.1.0",
59
+ "@biomejs/biome": "2.6.7",
60
+ "@commitlint/cli": "^21.2.4",
61
+ "@commitlint/config-conventional": "^21.2.4",
62
+ "@playwright/test": "~1.65.0",
63
+ "@types/node": "^26.6.6",
64
+ "@vitest/browser-playwright": "^5.1.0",
65
+ "@vitest/coverage-v8": "5.1.0",
66
+ "@vitest/ui": "5.1.0",
67
+ "commit-and-tag-version": "^13.3.0",
68
68
  "cpy-cli": "^7.0.0",
69
- "dompurify": "^3.4.12",
69
+ "dompurify": "^3.4.17",
70
70
  "husky": "^9.1.7",
71
- "jsdom": "^29.1.1",
72
- "marked": "^18.0.7",
73
- "moment-timezone": "^0.6.3",
74
- "moment": "^2.30.1",
75
- "playwright": "~1.61.1",
76
- "tsdown": "^0.22.13",
77
- "typescript": "^6.0.3",
78
- "ultracite": "7.9.4",
79
- "vite": "^8.1.5",
80
- "vitest": "4.1.10"
71
+ "jsdom": "^31.0.0",
72
+ "marked": "^18.2.0",
73
+ "moment": "^2.31.0",
74
+ "moment-timezone": "^0.6.6",
75
+ "playwright": "~1.65.0",
76
+ "tsdown": "^0.23.7",
77
+ "typescript": "6.0.3",
78
+ "ultracite": "8.2.0",
79
+ "vite": "^8.3.8",
80
+ "vitest": "5.1.0"
81
81
  },
82
82
  "commit-and-tag-version": {
83
83
  "packageFiles": [
@@ -1,5 +1,8 @@
1
- import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
- //#region src/plugins/advancedFormat/index.d.ts
1
+ /**
2
+ * advancedFormat plugin
3
+ *
4
+ * This plugin adds format definitions to date formatting
5
+ */
6
+ import { s as EsDayPlugin } from "../../chunks/MfctHIHI.js";
3
7
  declare const advancedFormatPlugin: EsDayPlugin<{}>;
4
- //#endregion
5
8
  export { advancedFormatPlugin as default };
@@ -1,5 +1,5 @@
1
- import { n as padStart, r as padZoneStr } from "../../chunks/DXFoLbHM.js";
2
- //#region src/plugins/advancedFormat/index.ts
1
+ import { n as padStart, r as padZoneStr } from "../../chunks/9Re3Ck2t.js";
2
+ // src/plugins/advancedFormat/index.ts
3
3
  const advancedFormatPlugin = (_, _dayClass, dayFactory) => {
4
4
  dayFactory.addFormatTokenDefinitions({
5
5
  d: (sourceDate) => sourceDate.day().toString(),
@@ -12,5 +12,4 @@ const advancedFormatPlugin = (_, _dayClass, dayFactory) => {
12
12
  kk: (sourceDate) => padStart(sourceDate.hour() !== 0 ? sourceDate.hour() : 24, 2, "0")
13
13
  });
14
14
  };
15
- //#endregion
16
15
  export { advancedFormatPlugin as default };
@@ -1,5 +1,22 @@
1
- import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
- //#region src/plugins/advancedParse/index.d.ts
1
+ /**
2
+ * advancedParse plugin
3
+ *
4
+ * This plugin adds format definitions to date parsing.
5
+ *
6
+ * used esday parameters in '$conf':
7
+ * args_1 format parameter in call signature
8
+ * args_2 2nd parameter in call signature
9
+ * args_3 3rd parameter in call signature
10
+ *
11
+ * new esday parameters in '$conf':
12
+ * parseOptions ParseOptions object containing parsing options
13
+ * used by parser and postParser
14
+ *
15
+ * The plugin advancedParse must be activated before the plugin locale and before
16
+ * the plugin localizedParse, as it terminates the parsing chain, when there is a
17
+ * format property. Activation example:
18
+ * esday.extend(advancedParsePlugin).extend(localizedParsePlugin).extend(localePlugin)
19
+ */
20
+ import { s as EsDayPlugin } from "../../chunks/MfctHIHI.js";
3
21
  declare const advancedParsePlugin: EsDayPlugin<{}>;
4
- //#endregion
5
22
  export { advancedParsePlugin as default };
@@ -1,6 +1,6 @@
1
- import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
- import { a as isUndefined, i as isString, o as isValidDate, t as isArray } from "../../chunks/DuRKUq5K.js";
3
- //#region src/plugins/advancedParse/index.ts
1
+ import { f as constants_default } from "../../chunks/BfEWL_VC.js";
2
+ import { a as isUndefined, i as isString, o as isValidDate, t as isArray } from "../../chunks/BtFAvcS3.js";
3
+ // src/plugins/advancedParse/index.ts
4
4
  /**
5
5
  * Function to create a Date object from its date components
6
6
  * is set to the corresponding function in the core module and
@@ -73,9 +73,7 @@ function addMillisecondsToInput() {
73
73
  case 1:
74
74
  value *= 100;
75
75
  break;
76
- case 2:
77
- value *= 10;
78
- break;
76
+ case 2: value *= 10;
79
77
  }
80
78
  parsedElements.milliseconds = value;
81
79
  };
@@ -140,7 +138,7 @@ function makeParser(format, isStrict) {
140
138
  if (isString(token)) {
141
139
  const separatorLength = token.length;
142
140
  if (isStrict && separatorsMatch) separatorsMatch && (separatorsMatch = input.substring(0, separatorLength) === token);
143
- input = input.slice(separatorLength);
141
+ input = input.slice(0, start) + input.slice(start + separatorLength);
144
142
  } else {
145
143
  const { regex, updater } = token;
146
144
  const part = input.slice(start);
@@ -149,6 +147,7 @@ function makeParser(format, isStrict) {
149
147
  const value = match[0];
150
148
  input = input.replace(value, "");
151
149
  updater(parsedDateElements, value, parseOptions);
150
+ start += match.index;
152
151
  }
153
152
  }
154
153
  }
@@ -401,5 +400,4 @@ const advancedParsePlugin = (_, dayClass, dayFactory) => {
401
400
  };
402
401
  dateFromDateComponents = proto["dateFromDateComponents"];
403
402
  };
404
- //#endregion
405
403
  export { advancedParsePlugin as default };
@@ -1,11 +1,16 @@
1
- import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
1
+ /**
2
+ * calendar plugin
3
+ *
4
+ * This plugin adds 'calendar' method to EsDay
5
+ *
6
+ * This plugin requires the 'locale' plugin and a locale to be loaded.
7
+ */
8
+ import { s as EsDayPlugin } from "../../chunks/MfctHIHI.js";
2
9
  import { CalendarPartial } from "../locale/index.js";
3
- //#region src/plugins/calendar/index.d.ts
4
10
  declare module 'esday' {
5
11
  interface EsDay {
6
12
  calendar(referenceDate?: EsDay | null, formats?: CalendarPartial): string;
7
13
  }
8
14
  }
9
15
  declare const calendarPlugin: EsDayPlugin<{}>;
10
- //#endregion
11
16
  export { calendarPlugin as default };
@@ -1,4 +1,4 @@
1
- //#region src/plugins/calendar/index.ts
1
+ // src/plugins/calendar/index.ts
2
2
  const defaultCalendar = {
3
3
  sameDay: "[Today at] LT",
4
4
  nextDay: "[Tomorrow at] LT",
@@ -27,5 +27,4 @@ const calendarPlugin = (_, dayClass, dayFactory) => {
27
27
  return this.format(currentFormat);
28
28
  };
29
29
  };
30
- //#endregion
31
30
  export { calendarPlugin as default };
@@ -1,5 +1,4 @@
1
- import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
- //#region src/plugins/dayOfYear/index.d.ts
1
+ import { s as EsDayPlugin } from "../../chunks/MfctHIHI.js";
3
2
  declare module 'esday' {
4
3
  interface EsDay {
5
4
  dayOfYear(): number;
@@ -7,5 +6,4 @@ declare module 'esday' {
7
6
  }
8
7
  }
9
8
  declare const dayOfYearPlugin: EsDayPlugin<{}>;
10
- //#endregion
11
9
  export { dayOfYearPlugin as default };
@@ -1,4 +1,4 @@
1
- //#region src/plugins/dayOfYear/index.ts
1
+ // src/plugins/dayOfYear/index.ts
2
2
  const SECONDS_A_DAY = 86400;
3
3
  const dayOfYearPlugin = (_, dayClass, dayFactory) => {
4
4
  dayClass.prototype.dayOfYear = function(input) {
@@ -6,5 +6,4 @@ const dayOfYearPlugin = (_, dayClass, dayFactory) => {
6
6
  return input === void 0 ? dayOfYear : this.add(input - dayOfYear, "day");
7
7
  };
8
8
  };
9
- //#endregion
10
9
  export { dayOfYearPlugin as default };
@@ -1,7 +1,14 @@
1
- import { C as UnitDates, D as UnitIsoWeeks, L as UnitTypePlurals, s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
1
+ /** = 0:
2
+ * Duration plugin
3
+ *
4
+ * This plugin adds 'duration' and 'isDuration' to the esday factory.
5
+ *
6
+ * To use the humanize method or any of the locale methods, the plugin Locale,
7
+ * a loaded locale and the plugin RelativeTime are required.
8
+ */
9
+ import { C as UnitDates, D as UnitIsoWeeks, L as UnitTypePlurals, s as EsDayPlugin } from "../../chunks/MfctHIHI.js";
2
10
  import { Locale } from "../locale/index.js";
3
11
  import { ThresholdRelativeTime } from "../relativeTime/index.js";
4
- //#region src/plugins/duration/index.d.ts
5
12
  declare module 'esday' {
6
13
  interface EsDayFactory {
7
14
  duration(): Duration;
@@ -15,8 +22,8 @@ declare module 'esday' {
15
22
  isDuration(d?: any): d is Duration;
16
23
  }
17
24
  }
18
- type UnitTypeDuration = Exclude<UnitTypePlurals, UnitIsoWeeks | UnitDates>;
19
- type UnitsObjectTypeDuration = {
25
+ export type UnitTypeDuration = Exclude<UnitTypePlurals, UnitIsoWeeks | UnitDates>;
26
+ export type UnitsObjectTypeDuration = {
20
27
  years?: number | string;
21
28
  quarters?: number | string;
22
29
  months?: number | string;
@@ -27,12 +34,12 @@ type UnitsObjectTypeDuration = {
27
34
  seconds?: number | string;
28
35
  milliseconds?: number | string;
29
36
  };
30
- type DurationBase = {
37
+ export type DurationBase = {
31
38
  milliseconds: number;
32
39
  days: number;
33
40
  months: number;
34
41
  };
35
- interface Duration {
42
+ export interface Duration {
36
43
  clone(): Duration;
37
44
  humanize(): string;
38
45
  humanize(withSuffix: boolean): string;
@@ -73,5 +80,4 @@ interface Duration {
73
80
  isValid(): boolean;
74
81
  }
75
82
  declare const durationPlugin: EsDayPlugin<{}>;
76
- //#endregion
77
- export { Duration, DurationBase, UnitTypeDuration, UnitsObjectTypeDuration, durationPlugin as default };
83
+ export { durationPlugin as default };
@@ -1,2 +1 @@
1
- import { t as durationPlugin } from "../../chunks/DE-bYjyv.js";
2
- export { durationPlugin as default };
1
+ export { t as default } from "../../chunks/BzQsG1-n.js";
@@ -1,9 +1,7 @@
1
- import localePlugin from "./locale/index.js";
2
1
  import advancedFormatPlugin from "./advancedFormat/index.js";
3
2
  import advancedParsePlugin from "./advancedParse/index.js";
4
3
  import calendarPlugin from "./calendar/index.js";
5
4
  import dayOfYearPlugin from "./dayOfYear/index.js";
6
- import relativeTimePlugin from "./relativeTime/index.js";
7
5
  import durationPlugin from "./duration/index.js";
8
6
  import isBetweenPlugin from "./isBetween/index.js";
9
7
  import isLeapYearPlugin from "./isLeapYear/index.js";
@@ -13,6 +11,7 @@ import isSameOrBeforePlugin from "./isSameOrBefore/index.js";
13
11
  import isTodayPlugin from "./isToday/index.js";
14
12
  import isTomorrowPlugin from "./isTomorrow/index.js";
15
13
  import isYesterdayPlugin from "./isYesterday/index.js";
14
+ import localePlugin from "./locale/index.js";
16
15
  import localeDataPlugin from "./localeData/index.js";
17
16
  import localizedFormatPlugin from "./localizedFormat/index.js";
18
17
  import localizedParsePlugin from "./localizedParse/index.js";
@@ -20,6 +19,7 @@ import minMaxPlugin from "./minMax/index.js";
20
19
  import objectSupportPlugin from "./objectSupport/index.js";
21
20
  import pluralGetSetPlugin from "./pluralGetSet/index.js";
22
21
  import quarterOfYearPlugin from "./quarterOfYear/index.js";
22
+ import relativeTimePlugin from "./relativeTime/index.js";
23
23
  import timezonePLugin from "./timezone/index.js";
24
24
  import toArrayPlugin from "./toArray/index.js";
25
25
  import toObjectPlugin from "./toObject/index.js";
package/plugins/index.js CHANGED
@@ -1,9 +1,8 @@
1
- import localePlugin from "./locale/index.js";
2
1
  import advancedFormatPlugin from "./advancedFormat/index.js";
3
2
  import advancedParsePlugin from "./advancedParse/index.js";
4
3
  import calendarPlugin from "./calendar/index.js";
5
4
  import dayOfYearPlugin from "./dayOfYear/index.js";
6
- import { t as durationPlugin } from "../chunks/DE-bYjyv.js";
5
+ import { t as durationPlugin } from "../chunks/BzQsG1-n.js";
7
6
  import isBetweenPlugin from "./isBetween/index.js";
8
7
  import isLeapYearPlugin from "./isLeapYear/index.js";
9
8
  import isoWeekPlugin from "./isoWeek/index.js";
@@ -12,6 +11,7 @@ import isSameOrBeforePlugin from "./isSameOrBefore/index.js";
12
11
  import isTodayPlugin from "./isToday/index.js";
13
12
  import isTomorrowPlugin from "./isTomorrow/index.js";
14
13
  import isYesterdayPlugin from "./isYesterday/index.js";
14
+ import localePlugin from "./locale/index.js";
15
15
  import localeDataPlugin from "./localeData/index.js";
16
16
  import localizedFormatPlugin from "./localizedFormat/index.js";
17
17
  import localizedParsePlugin from "./localizedParse/index.js";
@@ -20,7 +20,7 @@ import objectSupportPlugin from "./objectSupport/index.js";
20
20
  import pluralGetSetPlugin from "./pluralGetSet/index.js";
21
21
  import quarterOfYearPlugin from "./quarterOfYear/index.js";
22
22
  import relativeTimePlugin from "./relativeTime/index.js";
23
- import { t as timezonePLugin } from "../chunks/CStrb5bT.js";
23
+ import { t as timezonePLugin } from "../chunks/RZP9wuxV.js";
24
24
  import toArrayPlugin from "./toArray/index.js";
25
25
  import toObjectPlugin from "./toObject/index.js";
26
26
  import utcPlugin from "./utc/index.js";
@@ -1,5 +1,4 @@
1
- import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
- //#region src/plugins/isBetween/index.d.ts
1
+ import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/MfctHIHI.js";
3
2
  declare module 'esday' {
4
3
  interface EsDay {
5
4
  /**
@@ -17,5 +16,4 @@ declare module 'esday' {
17
16
  }
18
17
  }
19
18
  declare const isBetweenPlugin: EsDayPlugin<{}>;
20
- //#endregion
21
19
  export { isBetweenPlugin as default };
@@ -1,5 +1,5 @@
1
- import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
- //#region src/plugins/isBetween/index.ts
1
+ import { f as constants_default } from "../../chunks/BfEWL_VC.js";
2
+ // src/plugins/isBetween/index.ts
3
3
  const isBetweenPlugin = (_, dayClass) => {
4
4
  dayClass.prototype.isBetween = function(from, to, unit = constants_default.MS, inclusivity = "()") {
5
5
  const includeFrom = inclusivity[0] === "[";
@@ -9,5 +9,4 @@ const isBetweenPlugin = (_, dayClass) => {
9
9
  return isAfterFrom && isBeforeTo;
10
10
  };
11
11
  };
12
- //#endregion
13
12
  export { isBetweenPlugin as default };
@@ -1,10 +1,8 @@
1
- import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
- //#region src/plugins/isLeapYear/index.d.ts
1
+ import { s as EsDayPlugin } from "../../chunks/MfctHIHI.js";
3
2
  declare module 'esday' {
4
3
  interface EsDay {
5
4
  isLeapYear: () => boolean;
6
5
  }
7
6
  }
8
7
  declare const isLeapYearPlugin: EsDayPlugin<{}>;
9
- //#endregion
10
8
  export { isLeapYearPlugin as default };
@@ -1,9 +1,8 @@
1
- //#region src/plugins/isLeapYear/index.ts
1
+ // src/plugins/isLeapYear/index.ts
2
2
  const isLeapYearPlugin = (_, dayClass) => {
3
3
  dayClass.prototype.isLeapYear = function() {
4
4
  const year = this.year();
5
5
  return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
6
6
  };
7
7
  };
8
- //#endregion
9
8
  export { isLeapYearPlugin as default };
@@ -1,10 +1,8 @@
1
- import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
- //#region src/plugins/isSameOrAfter/index.d.ts
1
+ import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/MfctHIHI.js";
3
2
  declare module 'esday' {
4
3
  interface EsDay {
5
4
  isSameOrAfter: (that: DateType, unit?: UnitType) => boolean;
6
5
  }
7
6
  }
8
7
  declare const isSameOrAfterPlugin: EsDayPlugin<{}>;
9
- //#endregion
10
8
  export { isSameOrAfterPlugin as default };
@@ -1,8 +1,7 @@
1
- //#region src/plugins/isSameOrAfter/index.ts
1
+ // src/plugins/isSameOrAfter/index.ts
2
2
  const isSameOrAfterPlugin = (_, dayClass) => {
3
3
  dayClass.prototype.isSameOrAfter = function(that, unit) {
4
4
  return this.isSame(that, unit) || this.isAfter(that, unit);
5
5
  };
6
6
  };
7
- //#endregion
8
7
  export { isSameOrAfterPlugin as default };
@@ -1,10 +1,8 @@
1
- import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
- //#region src/plugins/isSameOrBefore/index.d.ts
1
+ import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/MfctHIHI.js";
3
2
  declare module 'esday' {
4
3
  interface EsDay {
5
4
  isSameOrBefore: (that: DateType, unit?: UnitType) => boolean;
6
5
  }
7
6
  }
8
7
  declare const isSameOrBeforePlugin: EsDayPlugin<{}>;
9
- //#endregion
10
8
  export { isSameOrBeforePlugin as default };
@@ -1,8 +1,7 @@
1
- //#region src/plugins/isSameOrBefore/index.ts
1
+ // src/plugins/isSameOrBefore/index.ts
2
2
  const isSameOrBeforePlugin = (_, dayClass) => {
3
3
  dayClass.prototype.isSameOrBefore = function(that, unit) {
4
4
  return this.isSame(that, unit) || this.isBefore(that, unit);
5
5
  };
6
6
  };
7
- //#endregion
8
7
  export { isSameOrBeforePlugin as default };
@@ -1,10 +1,8 @@
1
- import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
- //#region src/plugins/isToday/index.d.ts
1
+ import { s as EsDayPlugin } from "../../chunks/MfctHIHI.js";
3
2
  declare module 'esday' {
4
3
  interface EsDay {
5
4
  isToday: () => boolean;
6
5
  }
7
6
  }
8
7
  declare const isTodayPlugin: EsDayPlugin<{}>;
9
- //#endregion
10
8
  export { isTodayPlugin as default };
@@ -1,9 +1,8 @@
1
- import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
- //#region src/plugins/isToday/index.ts
1
+ import { f as constants_default } from "../../chunks/BfEWL_VC.js";
2
+ // src/plugins/isToday/index.ts
3
3
  const isTodayPlugin = (_, dayClass) => {
4
4
  dayClass.prototype.isToday = function() {
5
5
  return this.isSame(/* @__PURE__ */ new Date(), constants_default.DAY);
6
6
  };
7
7
  };
8
- //#endregion
9
8
  export { isTodayPlugin as default };
@@ -1,10 +1,8 @@
1
- import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
- //#region src/plugins/isTomorrow/index.d.ts
1
+ import { s as EsDayPlugin } from "../../chunks/MfctHIHI.js";
3
2
  declare module 'esday' {
4
3
  interface EsDay {
5
4
  isTomorrow: () => boolean;
6
5
  }
7
6
  }
8
7
  declare const isTomorrowPlugin: EsDayPlugin<{}>;
9
- //#endregion
10
8
  export { isTomorrowPlugin as default };
@@ -1,5 +1,5 @@
1
- import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
- //#region src/plugins/isTomorrow/index.ts
1
+ import { f as constants_default } from "../../chunks/BfEWL_VC.js";
2
+ // src/plugins/isTomorrow/index.ts
3
3
  const isTomorrowPlugin = (_, dayClass, d) => {
4
4
  dayClass.prototype.isTomorrow = function() {
5
5
  const comparisonTemplate = "YYYY-MM-DD";
@@ -7,5 +7,4 @@ const isTomorrowPlugin = (_, dayClass, d) => {
7
7
  return this.format(comparisonTemplate) === tomorrow.format(comparisonTemplate);
8
8
  };
9
9
  };
10
- //#endregion
11
10
  export { isTomorrowPlugin as default };
@@ -1,10 +1,8 @@
1
- import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
- //#region src/plugins/isYesterday/index.d.ts
1
+ import { s as EsDayPlugin } from "../../chunks/MfctHIHI.js";
3
2
  declare module 'esday' {
4
3
  interface EsDay {
5
4
  isYesterday: () => boolean;
6
5
  }
7
6
  }
8
7
  declare const isYesterdayPlugin: EsDayPlugin<{}>;
9
- //#endregion
10
8
  export { isYesterdayPlugin as default };
@@ -1,5 +1,5 @@
1
- import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
- //#region src/plugins/isYesterday/index.ts
1
+ import { f as constants_default } from "../../chunks/BfEWL_VC.js";
2
+ // src/plugins/isYesterday/index.ts
3
3
  const isYesterdayPlugin = (_, dayClass, d) => {
4
4
  dayClass.prototype.isYesterday = function() {
5
5
  const comparisonTemplate = "YYYY-MM-DD";
@@ -7,5 +7,4 @@ const isYesterdayPlugin = (_, dayClass, d) => {
7
7
  return this.format(comparisonTemplate) === yesterday.format(comparisonTemplate);
8
8
  };
9
9
  };
10
- //#endregion
11
10
  export { isYesterdayPlugin as default };
@@ -1,5 +1,15 @@
1
- import { s as EsDayPlugin } from "../../chunks/BB5OVV-y.js";
2
- //#region src/plugins/isoWeek/index.d.ts
1
+ /**
2
+ * isoWeek plugin
3
+ *
4
+ * This plugin adds 'isoWeek', 'isoWeeks', 'isoWeekDay', 'isoWeekYear', 'isoWeeksInYear'
5
+ * and formatting and parsing tokens to EsDay.
6
+ *
7
+ * For the 'Wo' formatting token, the plugins 'locale' and 'localizedFormat'
8
+ * and a loaded locale are required.
9
+ *
10
+ * To use the parsing tokens, the plugin AdvancedParse is required.
11
+ */
12
+ import { s as EsDayPlugin } from "../../chunks/MfctHIHI.js";
3
13
  declare module 'esday' {
4
14
  interface EsDay {
5
15
  isoWeek(): number;
@@ -14,5 +24,4 @@ declare module 'esday' {
14
24
  }
15
25
  }
16
26
  declare const isoWeekPlugin: EsDayPlugin<{}>;
17
- //#endregion
18
27
  export { isoWeekPlugin as default };
@@ -1,8 +1,8 @@
1
- import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
- import { a as isUndefined } from "../../chunks/DuRKUq5K.js";
3
- import { t as createInstanceFromExist } from "../../chunks/i3oEJgL3.js";
4
- import { n as padStart } from "../../chunks/DXFoLbHM.js";
5
- //#region src/plugins/isoWeek/index.ts
1
+ import { f as constants_default } from "../../chunks/BfEWL_VC.js";
2
+ import { t as createInstanceFromExist } from "../../chunks/SIX-1Rv6.js";
3
+ import { a as isUndefined } from "../../chunks/BtFAvcS3.js";
4
+ import { n as padStart } from "../../chunks/9Re3Ck2t.js";
5
+ // src/plugins/isoWeek/index.ts
6
6
  const weekStart = constants_default.INDEX_MONDAY;
7
7
  const yearStart = 4;
8
8
  const match1to2NoLeadingZero = /^[1-9]\d?/;
@@ -222,5 +222,4 @@ const isoWeekPlugin = (_, dayClass, dayFactory) => {
222
222
  };
223
223
  dayFactory.addParseTokenDefinitions?.(parseTokensDefinitions);
224
224
  };
225
- //#endregion
226
225
  export { isoWeekPlugin as default };