esday 0.6.3 → 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 (362) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +16 -8
  3. package/chunks/{CODi8AFH.d.ts → BB5OVV-y.d.ts} +7 -2
  4. package/chunks/{C5qDMHT5.d.ts → CBlQG2yl.d.ts} +1 -2
  5. package/chunks/{BkjWOpMU.js → CeKusvtV.js} +10 -19
  6. package/chunks/{xt8C2lbv.js → DIG_UBsE.js} +5 -6
  7. package/chunks/{AyQQ6US-.js → DMdr1ZL1.js} +3 -5
  8. package/chunks/{CdvTtmWL.js → DXFoLbHM.js} +1 -2
  9. package/chunks/{Shk32pTP.js → i3oEJgL3.js} +1 -2
  10. package/chunks/{CXWzCl3n.js → oiGWnahC.js} +12 -22
  11. package/index.d.ts +3 -3
  12. package/index.js +2 -3
  13. package/locales/af.d.ts +0 -1
  14. package/locales/af.js +1 -2
  15. package/locales/am.d.ts +0 -1
  16. package/locales/am.js +1 -2
  17. package/locales/ar-dz.d.ts +0 -1
  18. package/locales/ar-dz.js +1 -3
  19. package/locales/ar-iq.d.ts +0 -1
  20. package/locales/ar-iq.js +1 -3
  21. package/locales/ar-kw.d.ts +0 -1
  22. package/locales/ar-kw.js +1 -3
  23. package/locales/ar-ly.d.ts +0 -1
  24. package/locales/ar-ly.js +1 -3
  25. package/locales/ar-ma.d.ts +0 -1
  26. package/locales/ar-ma.js +1 -3
  27. package/locales/ar-sa.d.ts +0 -1
  28. package/locales/ar-sa.js +1 -3
  29. package/locales/ar-tn.d.ts +0 -1
  30. package/locales/ar-tn.js +1 -3
  31. package/locales/ar.d.ts +0 -1
  32. package/locales/ar.js +1 -2
  33. package/locales/az.d.ts +0 -1
  34. package/locales/az.js +1 -2
  35. package/locales/be.d.ts +0 -1
  36. package/locales/be.js +1 -2
  37. package/locales/bg.d.ts +0 -1
  38. package/locales/bg.js +1 -2
  39. package/locales/bi.d.ts +0 -1
  40. package/locales/bi.js +1 -2
  41. package/locales/bm.d.ts +0 -1
  42. package/locales/bm.js +1 -2
  43. package/locales/bn-bd.d.ts +0 -1
  44. package/locales/bn-bd.js +1 -3
  45. package/locales/bn.d.ts +0 -1
  46. package/locales/bn.js +1 -2
  47. package/locales/bo.d.ts +0 -1
  48. package/locales/bo.js +1 -2
  49. package/locales/br.d.ts +0 -1
  50. package/locales/br.js +1 -2
  51. package/locales/bs.d.ts +0 -1
  52. package/locales/bs.js +1 -2
  53. package/locales/ca.d.ts +0 -1
  54. package/locales/ca.js +1 -2
  55. package/locales/cs.d.ts +0 -1
  56. package/locales/cs.js +1 -2
  57. package/locales/cv.d.ts +0 -1
  58. package/locales/cv.js +1 -2
  59. package/locales/cy.d.ts +0 -1
  60. package/locales/cy.js +1 -2
  61. package/locales/da.d.ts +0 -1
  62. package/locales/da.js +1 -2
  63. package/locales/de-at.d.ts +0 -1
  64. package/locales/de-at.js +1 -3
  65. package/locales/de-ch.d.ts +0 -1
  66. package/locales/de-ch.js +1 -3
  67. package/locales/de.d.ts +0 -1
  68. package/locales/de.js +1 -2
  69. package/locales/dv.d.ts +0 -1
  70. package/locales/dv.js +1 -2
  71. package/locales/el.d.ts +0 -1
  72. package/locales/el.js +1 -2
  73. package/locales/en-au.d.ts +0 -1
  74. package/locales/en-au.js +1 -3
  75. package/locales/en-ca.d.ts +0 -1
  76. package/locales/en-ca.js +1 -3
  77. package/locales/en-gb.d.ts +0 -1
  78. package/locales/en-gb.js +1 -3
  79. package/locales/en-ie.d.ts +0 -1
  80. package/locales/en-ie.js +1 -3
  81. package/locales/en-il.d.ts +0 -1
  82. package/locales/en-il.js +1 -3
  83. package/locales/en-in.d.ts +0 -1
  84. package/locales/en-in.js +1 -3
  85. package/locales/en-nz.d.ts +0 -1
  86. package/locales/en-nz.js +1 -3
  87. package/locales/en-sg.d.ts +0 -1
  88. package/locales/en-sg.js +1 -3
  89. package/locales/en-tt.d.ts +0 -1
  90. package/locales/en-tt.js +1 -3
  91. package/locales/en-us.d.ts +0 -1
  92. package/locales/en-us.js +1 -3
  93. package/locales/en.d.ts +0 -1
  94. package/locales/en.js +1 -2
  95. package/locales/eo.d.ts +0 -1
  96. package/locales/eo.js +1 -2
  97. package/locales/es-do.d.ts +0 -1
  98. package/locales/es-do.js +1 -3
  99. package/locales/es-mx.d.ts +0 -1
  100. package/locales/es-mx.js +1 -3
  101. package/locales/es-pr.d.ts +0 -1
  102. package/locales/es-pr.js +1 -3
  103. package/locales/es-us.d.ts +0 -1
  104. package/locales/es-us.js +1 -3
  105. package/locales/es.d.ts +0 -1
  106. package/locales/es.js +1 -2
  107. package/locales/et.d.ts +0 -1
  108. package/locales/et.js +1 -2
  109. package/locales/eu.d.ts +0 -1
  110. package/locales/eu.js +1 -2
  111. package/locales/fa.d.ts +0 -1
  112. package/locales/fa.js +1 -2
  113. package/locales/fi.d.ts +0 -1
  114. package/locales/fi.js +1 -2
  115. package/locales/fil.d.ts +0 -1
  116. package/locales/fil.js +1 -2
  117. package/locales/fo.d.ts +0 -1
  118. package/locales/fo.js +1 -2
  119. package/locales/fr-ca.d.ts +0 -1
  120. package/locales/fr-ca.js +1 -3
  121. package/locales/fr-ch.d.ts +0 -1
  122. package/locales/fr-ch.js +1 -3
  123. package/locales/fr.d.ts +0 -1
  124. package/locales/fr.js +1 -2
  125. package/locales/fy.d.ts +0 -1
  126. package/locales/fy.js +1 -2
  127. package/locales/ga.d.ts +0 -1
  128. package/locales/ga.js +1 -2
  129. package/locales/gd.d.ts +0 -1
  130. package/locales/gd.js +1 -2
  131. package/locales/gl.d.ts +0 -1
  132. package/locales/gl.js +1 -2
  133. package/locales/gom-deva.d.ts +0 -1
  134. package/locales/gom-deva.js +1 -2
  135. package/locales/gom-latn.d.ts +0 -1
  136. package/locales/gom-latn.js +1 -2
  137. package/locales/gu.d.ts +0 -1
  138. package/locales/gu.js +1 -2
  139. package/locales/he.d.ts +0 -1
  140. package/locales/he.js +3 -3
  141. package/locales/hi.d.ts +0 -1
  142. package/locales/hi.js +1 -2
  143. package/locales/hr.d.ts +0 -1
  144. package/locales/hr.js +1 -2
  145. package/locales/ht.d.ts +0 -1
  146. package/locales/ht.js +1 -2
  147. package/locales/hu.d.ts +0 -1
  148. package/locales/hu.js +1 -2
  149. package/locales/hy-am.d.ts +0 -1
  150. package/locales/hy-am.js +1 -2
  151. package/locales/id.d.ts +0 -1
  152. package/locales/id.js +1 -2
  153. package/locales/is.d.ts +0 -1
  154. package/locales/is.js +1 -2
  155. package/locales/it-ch.d.ts +0 -1
  156. package/locales/it-ch.js +1 -3
  157. package/locales/it.d.ts +0 -1
  158. package/locales/it.js +1 -2
  159. package/locales/ja.d.ts +0 -1
  160. package/locales/ja.js +1 -2
  161. package/locales/jv.d.ts +0 -1
  162. package/locales/jv.js +1 -2
  163. package/locales/ka.d.ts +0 -1
  164. package/locales/ka.js +1 -2
  165. package/locales/kk.d.ts +0 -1
  166. package/locales/kk.js +1 -2
  167. package/locales/km.d.ts +0 -1
  168. package/locales/km.js +1 -2
  169. package/locales/kn.d.ts +0 -1
  170. package/locales/kn.js +1 -2
  171. package/locales/ko.d.ts +0 -1
  172. package/locales/ko.js +1 -2
  173. package/locales/ku.d.ts +0 -1
  174. package/locales/ku.js +1 -2
  175. package/locales/ky.d.ts +0 -1
  176. package/locales/ky.js +1 -2
  177. package/locales/lb.d.ts +0 -1
  178. package/locales/lb.js +1 -2
  179. package/locales/lo.d.ts +0 -1
  180. package/locales/lo.js +1 -2
  181. package/locales/lt.d.ts +0 -1
  182. package/locales/lt.js +1 -2
  183. package/locales/lv.d.ts +0 -1
  184. package/locales/lv.js +1 -2
  185. package/locales/me.d.ts +0 -1
  186. package/locales/me.js +1 -2
  187. package/locales/mi.d.ts +0 -1
  188. package/locales/mi.js +1 -2
  189. package/locales/mk.d.ts +0 -1
  190. package/locales/mk.js +1 -2
  191. package/locales/ml.d.ts +0 -1
  192. package/locales/ml.js +1 -2
  193. package/locales/mn.d.ts +0 -1
  194. package/locales/mn.js +1 -2
  195. package/locales/mr.d.ts +0 -1
  196. package/locales/mr.js +1 -2
  197. package/locales/ms-my.d.ts +0 -1
  198. package/locales/ms-my.js +1 -3
  199. package/locales/ms.d.ts +0 -1
  200. package/locales/ms.js +1 -2
  201. package/locales/mt.d.ts +0 -1
  202. package/locales/mt.js +1 -2
  203. package/locales/my.d.ts +0 -1
  204. package/locales/my.js +1 -2
  205. package/locales/nb.d.ts +0 -1
  206. package/locales/nb.js +1 -2
  207. package/locales/ne.d.ts +0 -1
  208. package/locales/ne.js +1 -2
  209. package/locales/nl-be.d.ts +0 -1
  210. package/locales/nl-be.js +1 -3
  211. package/locales/nl.d.ts +0 -1
  212. package/locales/nl.js +1 -2
  213. package/locales/nn.d.ts +0 -1
  214. package/locales/nn.js +1 -2
  215. package/locales/oc-lnc.d.ts +0 -1
  216. package/locales/oc-lnc.js +1 -2
  217. package/locales/pa-in.d.ts +0 -1
  218. package/locales/pa-in.js +1 -2
  219. package/locales/pl.d.ts +0 -1
  220. package/locales/pl.js +1 -2
  221. package/locales/pt-br.d.ts +0 -1
  222. package/locales/pt-br.js +1 -3
  223. package/locales/pt.d.ts +0 -1
  224. package/locales/pt.js +1 -2
  225. package/locales/rn.d.ts +0 -1
  226. package/locales/rn.js +1 -2
  227. package/locales/ro.d.ts +0 -1
  228. package/locales/ro.js +1 -2
  229. package/locales/ru.d.ts +0 -1
  230. package/locales/ru.js +1 -2
  231. package/locales/rw.d.ts +0 -1
  232. package/locales/rw.js +1 -2
  233. package/locales/sd.d.ts +0 -1
  234. package/locales/sd.js +1 -2
  235. package/locales/se.d.ts +0 -1
  236. package/locales/se.js +1 -2
  237. package/locales/si.d.ts +0 -1
  238. package/locales/si.js +1 -2
  239. package/locales/sk.d.ts +0 -1
  240. package/locales/sk.js +1 -2
  241. package/locales/sl.d.ts +0 -1
  242. package/locales/sl.js +1 -2
  243. package/locales/sq.d.ts +0 -1
  244. package/locales/sq.js +1 -2
  245. package/locales/sr-cyrl.d.ts +0 -1
  246. package/locales/sr-cyrl.js +1 -3
  247. package/locales/sr.d.ts +0 -1
  248. package/locales/sr.js +1 -2
  249. package/locales/ss.d.ts +0 -1
  250. package/locales/ss.js +1 -2
  251. package/locales/sv-fi.d.ts +0 -1
  252. package/locales/sv-fi.js +1 -3
  253. package/locales/sv.d.ts +0 -1
  254. package/locales/sv.js +1 -2
  255. package/locales/sw.d.ts +0 -1
  256. package/locales/sw.js +1 -2
  257. package/locales/ta.d.ts +0 -1
  258. package/locales/ta.js +1 -2
  259. package/locales/te.d.ts +0 -1
  260. package/locales/te.js +1 -2
  261. package/locales/tet.d.ts +0 -1
  262. package/locales/tet.js +1 -2
  263. package/locales/tg.d.ts +0 -1
  264. package/locales/tg.js +1 -2
  265. package/locales/th.d.ts +0 -1
  266. package/locales/th.js +1 -2
  267. package/locales/tk.d.ts +0 -1
  268. package/locales/tk.js +1 -2
  269. package/locales/tl-ph.d.ts +0 -1
  270. package/locales/tl-ph.js +1 -2
  271. package/locales/tlh.d.ts +0 -1
  272. package/locales/tlh.js +1 -2
  273. package/locales/tr.d.ts +0 -1
  274. package/locales/tr.js +1 -2
  275. package/locales/tzl.d.ts +0 -1
  276. package/locales/tzl.js +1 -2
  277. package/locales/tzm-latn.d.ts +0 -1
  278. package/locales/tzm-latn.js +1 -3
  279. package/locales/tzm.d.ts +0 -1
  280. package/locales/tzm.js +1 -2
  281. package/locales/ug-cn.d.ts +0 -1
  282. package/locales/ug-cn.js +1 -2
  283. package/locales/uk.d.ts +0 -1
  284. package/locales/uk.js +1 -2
  285. package/locales/ur.d.ts +0 -1
  286. package/locales/ur.js +1 -2
  287. package/locales/uz-latn.d.ts +0 -1
  288. package/locales/uz-latn.js +1 -3
  289. package/locales/uz.d.ts +0 -1
  290. package/locales/uz.js +1 -2
  291. package/locales/vi.d.ts +0 -1
  292. package/locales/vi.js +1 -2
  293. package/locales/x-pseudo.d.ts +0 -1
  294. package/locales/x-pseudo.js +1 -2
  295. package/locales/yo.d.ts +0 -1
  296. package/locales/yo.js +1 -2
  297. package/locales/zh-cn.d.ts +0 -1
  298. package/locales/zh-cn.js +1 -3
  299. package/locales/zh-hk.d.ts +0 -1
  300. package/locales/zh-hk.js +1 -3
  301. package/locales/zh-mo.d.ts +0 -1
  302. package/locales/zh-mo.js +1 -3
  303. package/locales/zh-tw.d.ts +0 -1
  304. package/locales/zh-tw.js +1 -3
  305. package/locales/zh.d.ts +0 -1
  306. package/locales/zh.js +1 -2
  307. package/package.json +20 -20
  308. package/plugins/advancedFormat/index.d.ts +1 -2
  309. package/plugins/advancedFormat/index.js +2 -4
  310. package/plugins/advancedParse/index.d.ts +1 -2
  311. package/plugins/advancedParse/index.js +3 -5
  312. package/plugins/calendar/index.d.ts +1 -2
  313. package/plugins/calendar/index.js +1 -2
  314. package/plugins/dayOfYear/index.d.ts +1 -2
  315. package/plugins/dayOfYear/index.js +1 -2
  316. package/plugins/duration/index.d.ts +1 -2
  317. package/plugins/duration/index.js +12 -16
  318. package/plugins/isBetween/index.d.ts +1 -2
  319. package/plugins/isBetween/index.js +2 -4
  320. package/plugins/isLeapYear/index.d.ts +1 -2
  321. package/plugins/isLeapYear/index.js +1 -2
  322. package/plugins/isSameOrAfter/index.d.ts +1 -2
  323. package/plugins/isSameOrAfter/index.js +1 -2
  324. package/plugins/isSameOrBefore/index.d.ts +1 -2
  325. package/plugins/isSameOrBefore/index.js +1 -2
  326. package/plugins/isToday/index.d.ts +1 -2
  327. package/plugins/isToday/index.js +2 -4
  328. package/plugins/isTomorrow/index.d.ts +1 -2
  329. package/plugins/isTomorrow/index.js +2 -4
  330. package/plugins/isYesterday/index.d.ts +1 -2
  331. package/plugins/isYesterday/index.js +2 -4
  332. package/plugins/isoWeek/index.d.ts +1 -2
  333. package/plugins/isoWeek/index.js +5 -7
  334. package/plugins/locale/index.d.ts +4 -2
  335. package/plugins/locale/index.js +10 -10
  336. package/plugins/localeData/index.d.ts +1 -2
  337. package/plugins/localeData/index.js +6 -6
  338. package/plugins/localizedFormat/index.d.ts +1 -2
  339. package/plugins/localizedFormat/index.js +3 -5
  340. package/plugins/localizedParse/index.d.ts +1 -2
  341. package/plugins/localizedParse/index.js +4 -5
  342. package/plugins/minMax/index.d.ts +1 -2
  343. package/plugins/minMax/index.js +2 -4
  344. package/plugins/objectSupport/index.d.ts +1 -2
  345. package/plugins/objectSupport/index.js +5 -7
  346. package/plugins/pluralGetSet/index.d.ts +1 -2
  347. package/plugins/pluralGetSet/index.js +1 -2
  348. package/plugins/quarterOfYear/index.d.ts +1 -2
  349. package/plugins/quarterOfYear/index.js +4 -6
  350. package/plugins/relativeTime/index.d.ts +1 -2
  351. package/plugins/relativeTime/index.js +3 -5
  352. package/plugins/timezone/index.d.ts +1 -2
  353. package/plugins/timezone/index.js +13 -15
  354. package/plugins/toArray/index.d.ts +1 -2
  355. package/plugins/toArray/index.js +1 -2
  356. package/plugins/toObject/index.d.ts +1 -2
  357. package/plugins/toObject/index.js +1 -2
  358. package/plugins/utc/index.d.ts +6 -2
  359. package/plugins/utc/index.js +10 -12
  360. package/plugins/week/index.d.ts +1 -2
  361. package/plugins/week/index.js +6 -8
  362. package/chunks/{v_QBn7Xm.js → DuRKUq5K.js} +1 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [1.0.1](https://github.com/BePo65/esday/compare/v1.0.0...v1.0.1) (2026-07-30)
6
+
7
+ ### Bug Fixes
8
+
9
+ * allow other types beside EsDay as first argument to diff() ([198f9da](https://github.com/BePo65/esday/commit/198f9dab0453ce6e60ec9071629197f209f36fd9))
10
+ ## [1.0.0](https://github.com/BePo65/esday/compare/v0.6.3...v1.0.0) (2026-06-04)
11
+
5
12
  ## [0.6.3](https://github.com/BePo65/esday/compare/v0.6.2...v0.6.3) (2026-03-08)
6
13
 
7
14
  ## [0.6.2](https://github.com/BePo65/esday/compare/v0.6.1...v0.6.2) (2026-03-03)
package/README.md CHANGED
@@ -1,14 +1,27 @@
1
- ## EsDay
1
+ # EsDay
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/esday)](https://www.npmjs.com/package/esday)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?cacheSeconds=2592000)](https://github.com/kessler/license-report/blob/master/LICENSE)
5
5
  [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/BePo65/esday?tab=readme-ov-file#contribute)
6
6
 
7
- # Repository changing ownership
7
+ ## Repository changing ownership
8
8
 
9
9
  On the 6th of January 2026 this repository changed the ownership to one of it's maintainers, [BePo65](https://github.com/BePo65) to reduce the workload on [g-mero](https://github.com/g-mero).
10
10
 
11
- > EsDay is a JavaScript library inspired by [Day.js](https://github.com/iamkun/dayjs), esday has a largely similar API to Day.js (v1.11.13), but it is written in TypeScript and fully supports es modules. Being compatible to Day.js, EsDay is also a good replacement for Moment.js.
11
+ ## Concepts
12
+
13
+ EsDay is a JavaScript library inspired by [Day.js](https://github.com/iamkun/dayjs).
14
+
15
+ Esday has an API largely similar to Day.js (v1.11.13), but it is written in TypeScript and fully supports es modules.
16
+
17
+ Being compatible to Day.js, EsDay is also a good replacement for Moment.js.
18
+
19
+ **Highlights**
20
+
21
+ - **Modern API**: Provides the same API as Day.js, with some features moved to plugins for a simpler core.
22
+ - **Immutable**: esday is immutable, which means that all operations will return a new instance of esday.
23
+
24
+ ## Basic use
12
25
 
13
26
  ```javascript
14
27
  import { esday } from 'esday'
@@ -21,11 +34,6 @@ esday('2024-12-10').set('year', 2025).add(1, 'month').isToday()
21
34
 
22
35
  For detailed information see the [full documentation](https://bepo65.github.io/esday/).
23
36
 
24
- ## Concepts
25
-
26
- - **Modern API**: Provides the same API as Day.js, with some features moved to plugins for a simpler core.
27
- - **Immutable**: esday is immutable, which means that all operations will return a new instance of esday.
28
-
29
37
  ## Differences to Day.js
30
38
 
31
39
  - **Locale is a Plugin**: no default locale!
@@ -145,6 +145,11 @@ type ParsingObjectPlurals = {
145
145
  milliseconds?: number | string;
146
146
  };
147
147
  type ParsingObject = ParsingObjectShort | ParsingObjectLong | ParsingObjectPlurals;
148
+ interface ConfigurationObject {
149
+ args_1?: SimpleType | string[] | Record<string, SimpleType>;
150
+ args_2?: SimpleType | string[] | Record<string, SimpleType>;
151
+ args_3?: SimpleType | string[] | Record<string, SimpleType>;
152
+ }
148
153
  //#endregion
149
154
  //#region src/core/EsDay.d.ts
150
155
  declare interface EsDay {
@@ -196,7 +201,7 @@ declare class EsDay {
196
201
  add(value: UnitsObjectTypeAddSub): EsDay;
197
202
  subtract(value: number, unit: UnitTypeAddSub): EsDay;
198
203
  subtract(value: UnitsObjectTypeAddSub): EsDay;
199
- diff(date: EsDay, units?: UnitTypeAddSub, asFloat?: boolean): number;
204
+ diff(date: DateType, units?: UnitTypeAddSub, asFloat?: boolean): number;
200
205
  /**
201
206
  * Get the utcOffset of date in minutes.
202
207
  * "Proxy" implementation (getter only); the full functionality including
@@ -228,4 +233,4 @@ declare class EsDay {
228
233
  protected $set(unit: UnitTypeGetSet | UnitsObjectTypeSet, values: number[]): this;
229
234
  }
230
235
  //#endregion
231
- export { UnitQuarter as A, UnitDay as C, UnitMin as D, UnitIsoWeeks as E, UnitTypeGetSet as F, UnitTypePlurals as I, UnitWeek as L, UnitType as M, UnitTypeAddSub as N, UnitMonth as O, UnitTypeCore as P, UnitYear as R, UnitDates as S, UnitIsoWeek as T, PrettyUnitAsPlural as _, EsDayFactoryParserFn as a, ShortUnit as b, ParsingObject as c, ParsingObjectShort as d, UnitsObjectTypeAddSub as f, LongUnit as g, SimpleType as h, EsDayFactory as i, UnitSecond as j, UnitMs as k, ParsingObjectLong as l, SimpleObject as m, DateFromDateComponents as n, EsDayPlugin as o, UnitsObjectTypeSet as p, DateType as r, FormattingTokenDefinitions as s, EsDay as t, ParsingObjectPlurals as u, PrettyUnitAsSingular as v, UnitHour as w, UnitDate as x, PrettyUnitFromPlurals as y };
236
+ export { UnitMs as A, UnitDates as C, UnitIsoWeeks as D, UnitIsoWeek as E, UnitTypeCore as F, UnitTypeGetSet as I, UnitTypePlurals as L, UnitSecond as M, UnitType as N, UnitMin as O, UnitTypeAddSub as P, UnitWeek as R, UnitDate as S, UnitHour as T, LongUnit as _, EsDayFactory as a, PrettyUnitFromPlurals as b, FormattingTokenDefinitions as c, ParsingObjectPlurals as d, ParsingObjectShort as f, SimpleType as g, SimpleObject as h, DateType as i, UnitQuarter as j, UnitMonth as k, ParsingObject as l, UnitsObjectTypeSet as m, ConfigurationObject as n, EsDayFactoryParserFn as o, UnitsObjectTypeAddSub as p, DateFromDateComponents as r, EsDayPlugin as s, EsDay as t, ParsingObjectLong as u, PrettyUnitAsPlural as v, UnitDay as w, ShortUnit as x, PrettyUnitAsSingular as y, UnitYear as z };
@@ -1,5 +1,4 @@
1
- import { i as EsDayFactory } from "./CODi8AFH.js";
2
-
1
+ import { a as EsDayFactory } from "./BB5OVV-y.js";
3
2
  //#region src/core/factory.d.ts
4
3
  declare const esday: EsDayFactory;
5
4
  //#endregion
@@ -1,25 +1,18 @@
1
- //#region src/common/constants.ts
2
- const SECONDS_A_MINUTE = 60;
3
- const SECONDS_A_HOUR = SECONDS_A_MINUTE * 60;
1
+ const SECONDS_A_HOUR = 3600;
4
2
  const SECONDS_A_DAY = SECONDS_A_HOUR * 24;
5
3
  const SECONDS_A_WEEK = SECONDS_A_DAY * 7;
6
4
  const MILLISECONDS_A_SECOND = 1e3;
7
- const MILLISECONDS_A_MINUTE = SECONDS_A_MINUTE * MILLISECONDS_A_SECOND;
5
+ const MILLISECONDS_A_MINUTE = 60 * MILLISECONDS_A_SECOND;
8
6
  const MILLISECONDS_A_HOUR = SECONDS_A_HOUR * MILLISECONDS_A_SECOND;
9
7
  const MILLISECONDS_A_DAY = SECONDS_A_DAY * MILLISECONDS_A_SECOND;
10
8
  const MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND;
11
9
  const MILLISECONDS_A_YEAR = MILLISECONDS_A_DAY * 365;
12
10
  const MILLISECONDS_A_MONTH = MILLISECONDS_A_YEAR / 12;
13
11
  const MILLISECONDS_A_QUARTER = MILLISECONDS_A_MONTH * 3;
14
- const INDEX_SUNDAY = 0;
15
- const INDEX_MONDAY = 1;
16
- const INDEX_WEDNESDAY = 3;
17
- const INDEX_THURSDAY = 4;
18
12
  const MS = "millisecond";
19
13
  const SECOND = "second";
20
14
  const MIN = "minute";
21
15
  const HOUR = "hour";
22
- const DAY = "day";
23
16
  const WEEK = "week";
24
17
  const ISOWEEK = "isoWeek";
25
18
  const MONTH = "month";
@@ -29,9 +22,8 @@ const DAY_OF_MONTH = "date";
29
22
  const FORMAT_DEFAULT = "YYYY-MM-DDTHH:mm:ssZ";
30
23
  const INVALID_DATE = /* @__PURE__ */ new Date("");
31
24
  const INVALID_DATE_STRING = "Invalid date";
32
- const REGEX_PARSE_DEFAULT = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i;
33
25
  var constants_default = {
34
- SECONDS_A_MINUTE,
26
+ SECONDS_A_MINUTE: 60,
35
27
  SECONDS_A_HOUR,
36
28
  SECONDS_A_DAY,
37
29
  SECONDS_A_WEEK,
@@ -43,15 +35,15 @@ var constants_default = {
43
35
  MILLISECONDS_A_QUARTER,
44
36
  MILLISECONDS_A_MONTH,
45
37
  MILLISECONDS_A_YEAR,
46
- INDEX_SUNDAY,
47
- INDEX_MONDAY,
48
- INDEX_WEDNESDAY,
49
- INDEX_THURSDAY,
38
+ INDEX_SUNDAY: 0,
39
+ INDEX_MONDAY: 1,
40
+ INDEX_WEDNESDAY: 3,
41
+ INDEX_THURSDAY: 4,
50
42
  MS,
51
43
  SECOND,
52
44
  MIN,
53
45
  HOUR,
54
- DAY,
46
+ DAY: "day",
55
47
  WEEK,
56
48
  ISOWEEK,
57
49
  MONTH,
@@ -61,8 +53,7 @@ var constants_default = {
61
53
  FORMAT_DEFAULT,
62
54
  INVALID_DATE,
63
55
  INVALID_DATE_STRING,
64
- REGEX_PARSE_DEFAULT
56
+ REGEX_PARSE_DEFAULT: /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i
65
57
  };
66
-
67
58
  //#endregion
68
- export { ISOWEEK as a, MS as c, WEEK as d, YEAR as f, INVALID_DATE_STRING as i, QUARTER as l, DAY_OF_MONTH as n, MIN as o, constants_default as p, HOUR as r, MONTH as s, DAY as t, SECOND as u };
59
+ export { MIN as a, QUARTER as c, YEAR as d, constants_default as f, ISOWEEK as i, SECOND as l, HOUR as n, MONTH as o, INVALID_DATE_STRING as r, MS as s, DAY_OF_MONTH as t, WEEK as u };
@@ -1,6 +1,5 @@
1
- import { t as isArray } from "./v_QBn7Xm.js";
2
- import { n as normalizeUnitWithPlurals } from "./AyQQ6US-.js";
3
-
1
+ import { t as isArray } from "./DuRKUq5K.js";
2
+ import { n as normalizeUnitWithPlurals } from "./DMdr1ZL1.js";
4
3
  //#region src/common/date-fields.ts
5
4
  /**
6
5
  * Map units to fields of a javascript Date object.
@@ -17,7 +16,8 @@ const UNIT_FIELD_MAP = {
17
16
  };
18
17
  const prettyUnitsDate = Object.keys(UNIT_FIELD_MAP);
19
18
  function unitToField(unit) {
20
- return UNIT_FIELD_MAP[normalizeUnitWithPlurals(unit)];
19
+ const p = normalizeUnitWithPlurals(unit);
20
+ return UNIT_FIELD_MAP[p];
21
21
  }
22
22
  function getUnitInDate(date, unit) {
23
23
  return date[`get${unitToField(unit)}`]();
@@ -33,6 +33,5 @@ function setUnitInDateUTC(date, unit, value) {
33
33
  date[`setUTC${unitToField(unit)}`](...isArray(value) ? value : [value]);
34
34
  return date;
35
35
  }
36
-
37
36
  //#endregion
38
- export { setUnitInDateUTC as a, setUnitInDate as i, getUnitInDateUTC as n, prettyUnitsDate as r, getUnitInDate as t };
37
+ export { setUnitInDateUTC as a, setUnitInDate as i, getUnitInDateUTC as n, prettyUnitsDate as r, getUnitInDate as t };
@@ -1,5 +1,4 @@
1
- import { a as ISOWEEK, c as MS, d as WEEK, f as YEAR, l as QUARTER, n as DAY_OF_MONTH, o as MIN, r as HOUR, s as MONTH, t as DAY, u as SECOND } from "./BkjWOpMU.js";
2
-
1
+ import { a as MIN, c as QUARTER, d as YEAR, i as ISOWEEK, l as SECOND, n as HOUR, o as MONTH, s as MS, t as DAY_OF_MONTH, u as WEEK } from "./CeKusvtV.js";
3
2
  //#region src/common/units.ts
4
3
  const UNIT_MAP_SHORT_TO_LONG = {
5
4
  y: YEAR,
@@ -8,7 +7,7 @@ const UNIT_MAP_SHORT_TO_LONG = {
8
7
  w: WEEK,
9
8
  W: ISOWEEK,
10
9
  D: DAY_OF_MONTH,
11
- d: DAY,
10
+ d: "day",
12
11
  h: HOUR,
13
12
  m: MIN,
14
13
  s: SECOND,
@@ -79,6 +78,5 @@ function normalizeUnitWithPluralsToPlural(unit) {
79
78
  }
80
79
  return normalizedUnit;
81
80
  }
82
-
83
81
  //#endregion
84
- export { normalizeUnitWithPlurals as n, normalizeUnitWithPluralsToPlural as r, normalizeUnit as t };
82
+ export { normalizeUnitWithPlurals as n, normalizeUnitWithPluralsToPlural as r, normalizeUnit as t };
@@ -51,6 +51,5 @@ function padZoneStr(utcOffset) {
51
51
  const minuteOffset = Math.trunc(minutes % 60);
52
52
  return `${negMinutes <= 0 ? "+" : "-"}${padStart(hourOffset, 2, "0")}:${padStart(minuteOffset, 2, "0")}`;
53
53
  }
54
-
55
54
  //#endregion
56
- export { padStart as n, padZoneStr as r, padNumberWithLeadingZeros as t };
55
+ export { padStart as n, padZoneStr as r, padNumberWithLeadingZeros as t };
@@ -4,6 +4,5 @@ function createInstanceFromExist(d, existInst) {
4
4
  newInst["$d"] = d;
5
5
  return newInst;
6
6
  }
7
-
8
7
  //#endregion
9
- export { createInstanceFromExist as t };
8
+ export { createInstanceFromExist as t };
@@ -1,10 +1,9 @@
1
- import { p as constants_default } from "./BkjWOpMU.js";
2
- import { a as isUndefined, n as isEmptyObject, o as isValidDate, r as isObject, t as isArray } from "./v_QBn7Xm.js";
3
- import { n as normalizeUnitWithPlurals, t as normalizeUnit } from "./AyQQ6US-.js";
4
- import { i as setUnitInDate, r as prettyUnitsDate, t as getUnitInDate } from "./xt8C2lbv.js";
5
- import { t as createInstanceFromExist } from "./Shk32pTP.js";
6
- import { n as padStart, r as padZoneStr } from "./CdvTtmWL.js";
7
-
1
+ import { f as constants_default } from "./CeKusvtV.js";
2
+ import { a as isUndefined, n as isEmptyObject, o as isValidDate, r as isObject, t as isArray } from "./DuRKUq5K.js";
3
+ import { n as normalizeUnitWithPlurals, t as normalizeUnit } from "./DMdr1ZL1.js";
4
+ import { i as setUnitInDate, r as prettyUnitsDate, t as getUnitInDate } from "./DIG_UBsE.js";
5
+ import { t as createInstanceFromExist } from "./i3oEJgL3.js";
6
+ import { n as padStart, r as padZoneStr } from "./DXFoLbHM.js";
8
7
  //#region src/core/Impl/add.ts
9
8
  function addImpl(that, value, units) {
10
9
  const $d = that["$d"];
@@ -33,7 +32,6 @@ function addImpl(that, value, units) {
33
32
  default: return that.clone();
34
33
  }
35
34
  }
36
-
37
35
  //#endregion
38
36
  //#region src/core/Impl/diff.ts
39
37
  /**
@@ -97,7 +95,6 @@ function diffImpl(that, date, units, asFloat = false) {
97
95
  }
98
96
  return asFloat ? result : absFloor(result);
99
97
  }
100
-
101
98
  //#endregion
102
99
  //#region src/core/Impl/format.ts
103
100
  const formattingSeparatorsRegex = "\\[([^\\]]+)\\]";
@@ -154,7 +151,6 @@ function formatImpl(that, formatStr) {
154
151
  };
155
152
  return activeFormatString.replace(formattingTokensRegex, (match, $1) => $1 || matches(match));
156
153
  }
157
-
158
154
  //#endregion
159
155
  //#region src/core/Impl/parse.ts
160
156
  /**
@@ -179,7 +175,6 @@ function parseArrayToDate(dateArray) {
179
175
  });
180
176
  return this.dateFromDateComponents(...dateArrayTuple);
181
177
  }
182
-
183
178
  //#endregion
184
179
  //#region src/core/Impl/startOf.ts
185
180
  function startOfImpl(that, unit, reverse = false) {
@@ -229,26 +224,22 @@ function startOfImpl(that, unit, reverse = false) {
229
224
  }
230
225
  return result;
231
226
  }
232
-
233
227
  //#endregion
234
- //#region \0@oxc-project+runtime@0.112.0/helpers/checkPrivateRedeclaration.js
228
+ //#region \0@oxc-project+runtime@0.140.0/helpers/esm/checkPrivateRedeclaration.js
235
229
  function _checkPrivateRedeclaration(e, t) {
236
230
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
237
231
  }
238
-
239
232
  //#endregion
240
- //#region \0@oxc-project+runtime@0.112.0/helpers/classPrivateMethodInitSpec.js
233
+ //#region \0@oxc-project+runtime@0.140.0/helpers/esm/classPrivateMethodInitSpec.js
241
234
  function _classPrivateMethodInitSpec(e, a) {
242
235
  _checkPrivateRedeclaration(e, a), a.add(e);
243
236
  }
244
-
245
237
  //#endregion
246
- //#region \0@oxc-project+runtime@0.112.0/helpers/assertClassBrand.js
238
+ //#region \0@oxc-project+runtime@0.140.0/helpers/esm/assertClassBrand.js
247
239
  function _assertClassBrand(e, t, n) {
248
240
  if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
249
241
  throw new TypeError("Private element is not present on this object");
250
242
  }
251
-
252
243
  //#endregion
253
244
  //#region src/core/EsDay.ts
254
245
  var _EsDay_brand = /* @__PURE__ */ new WeakSet();
@@ -342,7 +333,8 @@ var EsDay = class EsDay {
342
333
  return this.clone();
343
334
  }
344
335
  diff(date, units, asFloat = false) {
345
- return diffImpl(this, date, units, asFloat);
336
+ const parsedDate = esday(date);
337
+ return diffImpl(this, parsedDate, units, asFloat);
346
338
  }
347
339
  utcOffset(offset, _keepLocalTime) {
348
340
  if (offset !== void 0) return new EsDay(constants_default.INVALID_DATE);
@@ -452,7 +444,6 @@ for (const key of prettyUnitsDate) EsDay.prototype[key] = function(...args) {
452
444
  if (args?.length) return this.set(key, ...args);
453
445
  return this.get(key);
454
446
  };
455
-
456
447
  //#endregion
457
448
  //#region src/core/factory.ts
458
449
  const esday = (d, ...others) => {
@@ -476,6 +467,5 @@ esday.extend = (plugin, option) => {
476
467
  }
477
468
  return esday;
478
469
  };
479
-
480
470
  //#endregion
481
- export { _checkPrivateRedeclaration as i, EsDay as n, _assertClassBrand as r, esday as t };
471
+ export { _checkPrivateRedeclaration as i, EsDay as n, _assertClassBrand as r, esday as t };
package/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { A as UnitQuarter, C as UnitDay, D as UnitMin, F as UnitTypeGetSet, L as UnitWeek, M as UnitType, N as UnitTypeAddSub, O as UnitMonth, P as UnitTypeCore, R as UnitYear, T as UnitIsoWeek, _ as PrettyUnitAsPlural, a as EsDayFactoryParserFn, b as ShortUnit, c as ParsingObject, d as ParsingObjectShort, f as UnitsObjectTypeAddSub, g as LongUnit, h as SimpleType, i as EsDayFactory, j as UnitSecond, k as UnitMs, l as ParsingObjectLong, m as SimpleObject, n as DateFromDateComponents, o as EsDayPlugin, p as UnitsObjectTypeSet, r as DateType, s as FormattingTokenDefinitions, t as EsDay, u as ParsingObjectPlurals, v as PrettyUnitAsSingular, w as UnitHour, x as UnitDate, y as PrettyUnitFromPlurals } from "./chunks/CODi8AFH.js";
2
- import { t as esday } from "./chunks/C5qDMHT5.js";
3
- export { DateFromDateComponents, DateType, EsDay, EsDayFactory, EsDayFactoryParserFn, EsDayPlugin, FormattingTokenDefinitions, LongUnit, ParsingObject, ParsingObjectLong, ParsingObjectPlurals, ParsingObjectShort, PrettyUnitAsPlural, PrettyUnitAsSingular, PrettyUnitFromPlurals, ShortUnit, SimpleObject, SimpleType, UnitDate, UnitDay, UnitHour, UnitIsoWeek, UnitMin, UnitMonth, UnitMs, UnitQuarter, UnitSecond, UnitType, UnitTypeAddSub, UnitTypeCore, UnitTypeGetSet, UnitWeek, UnitYear, UnitsObjectTypeAddSub, UnitsObjectTypeSet, esday };
1
+ import { A as UnitMs, E as UnitIsoWeek, F as UnitTypeCore, I as UnitTypeGetSet, M as UnitSecond, N as UnitType, O as UnitMin, P as UnitTypeAddSub, R as UnitWeek, S as UnitDate, T as UnitHour, _ as LongUnit, a as EsDayFactory, b as PrettyUnitFromPlurals, c as FormattingTokenDefinitions, d as ParsingObjectPlurals, f as ParsingObjectShort, g as SimpleType, h as SimpleObject, i as DateType, j as UnitQuarter, k as UnitMonth, l as ParsingObject, m as UnitsObjectTypeSet, n as ConfigurationObject, o as EsDayFactoryParserFn, p as UnitsObjectTypeAddSub, r as DateFromDateComponents, s as EsDayPlugin, t as EsDay, u as ParsingObjectLong, v as PrettyUnitAsPlural, w as UnitDay, x as ShortUnit, y as PrettyUnitAsSingular, z as UnitYear } from "./chunks/BB5OVV-y.js";
2
+ import { t as esday } from "./chunks/CBlQG2yl.js";
3
+ export { ConfigurationObject, DateFromDateComponents, DateType, EsDay, EsDayFactory, EsDayFactoryParserFn, EsDayPlugin, FormattingTokenDefinitions, type LongUnit, ParsingObject, ParsingObjectLong, ParsingObjectPlurals, ParsingObjectShort, type PrettyUnitAsPlural, type PrettyUnitAsSingular, type PrettyUnitFromPlurals, type ShortUnit, type SimpleObject, type SimpleType, type UnitDate, type UnitDay, type UnitHour, type UnitIsoWeek, type UnitMin, type UnitMonth, type UnitMs, type UnitQuarter, type UnitSecond, type UnitType, type UnitTypeAddSub, type UnitTypeCore, type UnitTypeGetSet, type UnitWeek, type UnitYear, UnitsObjectTypeAddSub, UnitsObjectTypeSet, esday };
package/index.js CHANGED
@@ -1,3 +1,2 @@
1
- import { n as EsDay, t as esday } from "./chunks/CXWzCl3n.js";
2
-
3
- export { EsDay, esday };
1
+ import { n as EsDay, t as esday } from "./chunks/oiGWnahC.js";
2
+ export { EsDay, esday };
package/locales/af.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/af.d.ts
4
3
  declare const localeAf: Readonly<Locale>;
5
4
  //#endregion
package/locales/af.js CHANGED
@@ -103,6 +103,5 @@ const localeAf = {
103
103
  return isLowercase ? m.toLowerCase() : m;
104
104
  }
105
105
  };
106
-
107
106
  //#endregion
108
- export { localeAf as default };
107
+ export { localeAf as default };
package/locales/am.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/am.d.ts
4
3
  declare const localeAm: Readonly<Locale>;
5
4
  //#endregion
package/locales/am.js CHANGED
@@ -103,6 +103,5 @@ const localeAm = {
103
103
  return isLowercase ? m.toLowerCase() : m;
104
104
  }
105
105
  };
106
-
107
106
  //#endregion
108
- export { localeAm as default };
107
+ export { localeAm as default };
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/ar-dz.d.ts
4
3
  /**
5
4
  * Arabic (Algeria) [ar-DZ]
package/locales/ar-dz.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import locale from "./ar.js";
2
2
  import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
3
-
4
3
  //#region src/locales/ar-dz.ts
5
4
  /**
6
5
  * Arabic (Algeria) [ar-DZ]
@@ -25,6 +24,5 @@ setLocaleProperty(localeArDz, "months", months);
25
24
  setLocaleProperty(localeArDz, "monthsShort", months);
26
25
  setLocaleProperty(localeArDz, "weekStart", 0);
27
26
  setLocaleProperty(localeArDz, "yearStart", 4);
28
-
29
27
  //#endregion
30
- export { localeArDz as default };
28
+ export { localeArDz as default };
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/ar-iq.d.ts
4
3
  /**
5
4
  * Arabic (Iraq) [ar-IQ]
package/locales/ar-iq.js CHANGED
@@ -1,12 +1,10 @@
1
1
  import locale from "./ar.js";
2
2
  import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
3
-
4
3
  //#region src/locales/ar-iq.ts
5
4
  /**
6
5
  * Arabic (Iraq) [ar-IQ]
7
6
  */
8
7
  const localeArIq = cloneLocale(locale);
9
8
  setLocaleProperty(localeArIq, "name", "ar-IQ");
10
-
11
9
  //#endregion
12
- export { localeArIq as default };
10
+ export { localeArIq as default };
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/ar-kw.d.ts
4
3
  /**
5
4
  * Arabic (Kuwait) [ar-KW]
package/locales/ar-kw.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import locale from "./ar.js";
2
2
  import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
3
-
4
3
  //#region src/locales/ar-kw.ts
5
4
  /**
6
5
  * Arabic (Kuwait) [ar-KW]
@@ -21,6 +20,5 @@ setLocaleProperty(localeArKw, "name", "ar-KW");
21
20
  setLocaleProperty(localeArKw, "weekStart", 0);
22
21
  setLocaleProperty(localeArKw, "formats", formats);
23
22
  setLocaleProperty(localeArKw, "calendar", calendar);
24
-
25
23
  //#endregion
26
- export { localeArKw as default };
24
+ export { localeArKw as default };
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/ar-ly.d.ts
4
3
  /**
5
4
  * Arabic (Lybia) [ar-LY]
package/locales/ar-ly.js CHANGED
@@ -1,12 +1,10 @@
1
1
  import locale from "./ar.js";
2
2
  import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
3
-
4
3
  //#region src/locales/ar-ly.ts
5
4
  /**
6
5
  * Arabic (Lybia) [ar-LY]
7
6
  */
8
7
  const localeArLy = cloneLocale(locale);
9
8
  setLocaleProperty(localeArLy, "name", "ar-LY");
10
-
11
9
  //#endregion
12
- export { localeArLy as default };
10
+ export { localeArLy as default };
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/ar-ma.d.ts
4
3
  /**
5
4
  * Arabic (Morocco) [ar-MA]
package/locales/ar-ma.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import locale from "./ar.js";
2
2
  import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
3
-
4
3
  //#region src/locales/ar-ma.ts
5
4
  /**
6
5
  * Arabic (Morocco) [ar-MA]
@@ -22,6 +21,5 @@ setLocaleProperty(localeArMa, "weekStart", 1);
22
21
  setLocaleProperty(localeArMa, "yearStart", 4);
23
22
  setLocaleProperty(localeArMa, "formats", formats);
24
23
  setLocaleProperty(localeArMa, "calendar", calendar);
25
-
26
24
  //#endregion
27
- export { localeArMa as default };
25
+ export { localeArMa as default };
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/ar-sa.d.ts
4
3
  /**
5
4
  * Arabic (Saudi Arabia) [ar-SA]
package/locales/ar-sa.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import locale from "./ar.js";
2
2
  import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
3
-
4
3
  //#region src/locales/ar-sa.ts
5
4
  /**
6
5
  * Arabic (Saudi Arabia) [ar-SA]
@@ -22,6 +21,5 @@ setLocaleProperty(localeArSa, "weekStart", 0);
22
21
  setLocaleProperty(localeArSa, "yearStart", 6);
23
22
  setLocaleProperty(localeArSa, "formats", formats);
24
23
  setLocaleProperty(localeArSa, "calendar", calendar);
25
-
26
24
  //#endregion
27
- export { localeArSa as default };
25
+ export { localeArSa as default };
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/ar-tn.d.ts
4
3
  /**
5
4
  * Arabic (Tunisia) [ar-TN]
package/locales/ar-tn.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import locale from "./ar.js";
2
2
  import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
3
-
4
3
  //#region src/locales/ar-tn.ts
5
4
  /**
6
5
  * Arabic (Tunisia) [ar-TN]
@@ -22,6 +21,5 @@ setLocaleProperty(localeArTn, "weekStart", 1);
22
21
  setLocaleProperty(localeArTn, "yearStart", 4);
23
22
  setLocaleProperty(localeArTn, "formats", formats);
24
23
  setLocaleProperty(localeArTn, "calendar", calendar);
25
-
26
24
  //#endregion
27
- export { localeArTn as default };
25
+ export { localeArTn as default };
package/locales/ar.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/ar.d.ts
4
3
  declare const locale: Readonly<Locale>;
5
4
  //#endregion
package/locales/ar.js CHANGED
@@ -193,6 +193,5 @@ const locale = {
193
193
  preParse: (dateString) => dateString.replace(/[١٢٣٤٥٦٧٨٩٠]/g, (match) => arabicToEnglishNumbersMap[match]).replace(/،/g, ","),
194
194
  postFormat: (formattedDate) => formattedDate.replace(/\d/g, (match) => englishToArabicNumbersMap[Number(match)]).replace(/,/g, "،")
195
195
  };
196
-
197
196
  //#endregion
198
- export { locale as default };
197
+ export { locale as default };
package/locales/az.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/az.d.ts
4
3
  declare const localeAz: Readonly<Locale>;
5
4
  //#endregion
package/locales/az.js CHANGED
@@ -103,6 +103,5 @@ const localeAz = {
103
103
  return isLowercase ? m.toLowerCase() : m;
104
104
  }
105
105
  };
106
-
107
106
  //#endregion
108
- export { localeAz as default };
107
+ export { localeAz as default };
package/locales/be.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/be.d.ts
4
3
  declare const localeBe: Readonly<Locale>;
5
4
  //#endregion
package/locales/be.js CHANGED
@@ -131,6 +131,5 @@ const localeBe = {
131
131
  return isLowercase ? m.toLowerCase() : m;
132
132
  }
133
133
  };
134
-
135
134
  //#endregion
136
- export { localeBe as default };
135
+ export { localeBe as default };
package/locales/bg.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/bg.d.ts
4
3
  declare const localeBg: Readonly<Locale>;
5
4
  //#endregion
package/locales/bg.js CHANGED
@@ -122,6 +122,5 @@ const localeBg = {
122
122
  return isLowercase ? m.toLowerCase() : m;
123
123
  }
124
124
  };
125
-
126
125
  //#endregion
127
- export { localeBg as default };
126
+ export { localeBg as default };
package/locales/bi.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/bi.d.ts
4
3
  declare const localeBi: Readonly<Locale>;
5
4
  //#endregion
package/locales/bi.js CHANGED
@@ -103,6 +103,5 @@ const localeBi = {
103
103
  return isLowercase ? m.toLowerCase() : m;
104
104
  }
105
105
  };
106
-
107
106
  //#endregion
108
- export { localeBi as default };
107
+ export { localeBi as default };
package/locales/bm.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Locale } from "../plugins/locale/index.js";
2
-
3
2
  //#region src/locales/bm.d.ts
4
3
  declare const localeBm: Readonly<Locale>;
5
4
  //#endregion