esday 0.6.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/chunks/{xt8C2lbv.js → CNIy0PdR.js} +3 -5
- package/chunks/{BkjWOpMU.js → CeKusvtV.js} +10 -19
- package/chunks/{CXWzCl3n.js → D2Xh96oz.js} +10 -21
- package/chunks/{AyQQ6US-.js → DMdr1ZL1.js} +3 -5
- package/chunks/{CdvTtmWL.js → DXFoLbHM.js} +1 -2
- package/chunks/{C5qDMHT5.d.ts → Dc43cziu.d.ts} +1 -1
- package/chunks/{CODi8AFH.d.ts → DuP2qVZn.d.ts} +6 -1
- package/chunks/{Shk32pTP.js → i3oEJgL3.js} +1 -2
- package/index.d.ts +3 -0
- package/index.js +2 -0
- package/locales/{af.d.mts → af.d.ts} +1 -1
- package/locales/{af.mjs → af.js} +1 -2
- package/locales/{am.d.mts → am.d.ts} +1 -1
- package/locales/{am.mjs → am.js} +1 -2
- package/locales/{ar-dz.d.mts → ar-dz.d.ts} +1 -1
- package/locales/{ar-dz.mjs → ar-dz.js} +3 -5
- package/locales/{ar-iq.d.mts → ar-iq.d.ts} +1 -1
- package/locales/{ar-iq.mjs → ar-iq.js} +3 -5
- package/locales/{ar-kw.d.mts → ar-kw.d.ts} +1 -1
- package/locales/{ar-kw.mjs → ar-kw.js} +3 -5
- package/locales/{ar-ly.d.mts → ar-ly.d.ts} +1 -1
- package/locales/{ar-ly.mjs → ar-ly.js} +3 -5
- package/locales/{ar-ma.d.mts → ar-ma.d.ts} +1 -1
- package/locales/{ar-ma.mjs → ar-ma.js} +3 -5
- package/locales/{ar-sa.d.mts → ar-sa.d.ts} +1 -1
- package/locales/{ar-sa.mjs → ar-sa.js} +3 -5
- package/locales/{ar-tn.d.mts → ar-tn.d.ts} +1 -1
- package/locales/{ar-tn.mjs → ar-tn.js} +3 -5
- package/locales/{ar.d.mts → ar.d.ts} +1 -1
- package/locales/{ar.mjs → ar.js} +1 -2
- package/locales/{az.d.mts → az.d.ts} +1 -1
- package/locales/{az.mjs → az.js} +1 -2
- package/locales/{be.d.mts → be.d.ts} +1 -1
- package/locales/{be.mjs → be.js} +1 -2
- package/locales/{bg.d.mts → bg.d.ts} +1 -1
- package/locales/{bg.mjs → bg.js} +1 -2
- package/locales/{bi.d.mts → bi.d.ts} +1 -1
- package/locales/{bi.mjs → bi.js} +1 -2
- package/locales/{bm.d.mts → bm.d.ts} +1 -1
- package/locales/{bm.mjs → bm.js} +1 -2
- package/locales/{bn-bd.d.mts → bn-bd.d.ts} +1 -1
- package/locales/{bn-bd.mjs → bn-bd.js} +3 -5
- package/locales/{bn.d.mts → bn.d.ts} +1 -1
- package/locales/{bn.mjs → bn.js} +1 -2
- package/locales/{bo.d.mts → bo.d.ts} +1 -1
- package/locales/{bo.mjs → bo.js} +1 -2
- package/locales/{br.d.mts → br.d.ts} +1 -1
- package/locales/{br.mjs → br.js} +1 -2
- package/locales/{bs.d.mts → bs.d.ts} +1 -1
- package/locales/{bs.mjs → bs.js} +1 -2
- package/locales/{ca.d.mts → ca.d.ts} +1 -1
- package/locales/{ca.mjs → ca.js} +1 -2
- package/locales/{cs.d.mts → cs.d.ts} +1 -1
- package/locales/{cs.mjs → cs.js} +1 -2
- package/locales/{cv.d.mts → cv.d.ts} +1 -1
- package/locales/{cv.mjs → cv.js} +1 -2
- package/locales/{cy.d.mts → cy.d.ts} +1 -1
- package/locales/{cy.mjs → cy.js} +1 -2
- package/locales/{da.d.mts → da.d.ts} +1 -1
- package/locales/{da.mjs → da.js} +1 -2
- package/locales/{de-at.d.mts → de-at.d.ts} +1 -1
- package/locales/{de-at.mjs → de-at.js} +3 -5
- package/locales/{de-ch.d.mts → de-ch.d.ts} +1 -1
- package/locales/{de-ch.mjs → de-ch.js} +3 -5
- package/locales/{de.d.mts → de.d.ts} +1 -1
- package/locales/{de.mjs → de.js} +1 -2
- package/locales/{dv.d.mts → dv.d.ts} +1 -1
- package/locales/{dv.mjs → dv.js} +1 -2
- package/locales/{el.d.mts → el.d.ts} +1 -1
- package/locales/{el.mjs → el.js} +1 -2
- package/locales/{en-au.d.mts → en-au.d.ts} +1 -1
- package/locales/{en-au.mjs → en-au.js} +3 -5
- package/locales/{en-ca.d.mts → en-ca.d.ts} +1 -1
- package/locales/{en-ca.mjs → en-ca.js} +3 -5
- package/locales/{en-gb.d.mts → en-gb.d.ts} +1 -1
- package/locales/{en-gb.mjs → en-gb.js} +3 -5
- package/locales/{en-ie.d.mts → en-ie.d.ts} +1 -1
- package/locales/{en-ie.mjs → en-ie.js} +3 -5
- package/locales/{en-il.d.mts → en-il.d.ts} +1 -1
- package/locales/{en-il.mjs → en-il.js} +3 -5
- package/locales/{en-in.d.mts → en-in.d.ts} +1 -1
- package/locales/{en-in.mjs → en-in.js} +3 -5
- package/locales/{en-nz.d.mts → en-nz.d.ts} +1 -1
- package/locales/{en-nz.mjs → en-nz.js} +3 -5
- package/locales/{en-sg.d.mts → en-sg.d.ts} +1 -1
- package/locales/{en-sg.mjs → en-sg.js} +3 -5
- package/locales/{en-tt.d.mts → en-tt.d.ts} +1 -1
- package/locales/{en-tt.mjs → en-tt.js} +3 -5
- package/locales/{en-us.d.mts → en-us.d.ts} +1 -1
- package/locales/{en-us.mjs → en-us.js} +3 -5
- package/locales/{en.d.mts → en.d.ts} +1 -1
- package/locales/{en.mjs → en.js} +1 -2
- package/locales/{eo.d.mts → eo.d.ts} +1 -1
- package/locales/{eo.mjs → eo.js} +1 -2
- package/locales/{es-do.d.mts → es-do.d.ts} +1 -1
- package/locales/{es-do.mjs → es-do.js} +3 -5
- package/locales/{es-mx.d.mts → es-mx.d.ts} +1 -1
- package/locales/{es-mx.mjs → es-mx.js} +3 -5
- package/locales/{es-pr.d.mts → es-pr.d.ts} +1 -1
- package/locales/{es-pr.mjs → es-pr.js} +3 -5
- package/locales/{es-us.d.mts → es-us.d.ts} +1 -1
- package/locales/{es-us.mjs → es-us.js} +3 -5
- package/locales/{es.d.mts → es.d.ts} +1 -1
- package/locales/{es.mjs → es.js} +1 -2
- package/locales/{et.d.mts → et.d.ts} +1 -1
- package/locales/{et.mjs → et.js} +1 -2
- package/locales/{eu.d.mts → eu.d.ts} +1 -1
- package/locales/{eu.mjs → eu.js} +1 -2
- package/locales/fa.d.ts +6 -0
- package/locales/{fa.mjs → fa.js} +1 -2
- package/locales/{fi.d.mts → fi.d.ts} +1 -1
- package/locales/{fi.mjs → fi.js} +1 -2
- package/locales/{fil.d.mts → fil.d.ts} +1 -1
- package/locales/{fil.mjs → fil.js} +1 -2
- package/locales/{fo.d.mts → fo.d.ts} +1 -1
- package/locales/{fo.mjs → fo.js} +1 -2
- package/locales/{fr-ca.d.mts → fr-ca.d.ts} +1 -1
- package/locales/{fr-ca.mjs → fr-ca.js} +3 -5
- package/locales/{fr-ch.d.mts → fr-ch.d.ts} +1 -1
- package/locales/{fr-ch.mjs → fr-ch.js} +3 -5
- package/locales/{fr.d.mts → fr.d.ts} +1 -1
- package/locales/{fr.mjs → fr.js} +1 -2
- package/locales/{fy.d.mts → fy.d.ts} +1 -1
- package/locales/{fy.mjs → fy.js} +1 -2
- package/locales/{ga.d.mts → ga.d.ts} +1 -1
- package/locales/{ga.mjs → ga.js} +1 -2
- package/locales/{gd.d.mts → gd.d.ts} +1 -1
- package/locales/{gd.mjs → gd.js} +1 -2
- package/locales/{gl.d.mts → gl.d.ts} +1 -1
- package/locales/{gl.mjs → gl.js} +1 -2
- package/locales/{gom-deva.d.mts → gom-deva.d.ts} +1 -1
- package/locales/{gom-deva.mjs → gom-deva.js} +1 -2
- package/locales/{gom-latn.d.mts → gom-latn.d.ts} +1 -1
- package/locales/{gom-latn.mjs → gom-latn.js} +1 -2
- package/locales/{gu.d.mts → gu.d.ts} +1 -1
- package/locales/{gu.mjs → gu.js} +1 -2
- package/locales/{he.d.mts → he.d.ts} +1 -1
- package/locales/{he.mjs → he.js} +1 -2
- package/locales/{hi.d.mts → hi.d.ts} +1 -1
- package/locales/{hi.mjs → hi.js} +1 -2
- package/locales/{hr.d.mts → hr.d.ts} +1 -1
- package/locales/{hr.mjs → hr.js} +1 -2
- package/locales/{ht.d.mts → ht.d.ts} +1 -1
- package/locales/{ht.mjs → ht.js} +1 -2
- package/locales/{hu.d.mts → hu.d.ts} +1 -1
- package/locales/{hu.mjs → hu.js} +1 -2
- package/locales/{hy-am.d.mts → hy-am.d.ts} +1 -1
- package/locales/{hy-am.mjs → hy-am.js} +1 -2
- package/locales/{id.d.mts → id.d.ts} +1 -1
- package/locales/{id.mjs → id.js} +1 -2
- package/locales/{is.d.mts → is.d.ts} +1 -1
- package/locales/{is.mjs → is.js} +1 -2
- package/locales/{it-ch.d.mts → it-ch.d.ts} +1 -1
- package/locales/{it-ch.mjs → it-ch.js} +3 -5
- package/locales/{it.d.mts → it.d.ts} +1 -1
- package/locales/{it.mjs → it.js} +1 -2
- package/locales/{ja.d.mts → ja.d.ts} +1 -1
- package/locales/{ja.mjs → ja.js} +1 -2
- package/locales/jv.d.ts +6 -0
- package/locales/{jv.mjs → jv.js} +1 -2
- package/locales/{ka.d.mts → ka.d.ts} +1 -1
- package/locales/{ka.mjs → ka.js} +1 -2
- package/locales/{kk.d.mts → kk.d.ts} +1 -1
- package/locales/{kk.mjs → kk.js} +1 -2
- package/locales/{km.d.mts → km.d.ts} +1 -1
- package/locales/{km.mjs → km.js} +1 -2
- package/locales/{kn.d.mts → kn.d.ts} +1 -1
- package/locales/{kn.mjs → kn.js} +1 -2
- package/locales/{ko.d.mts → ko.d.ts} +1 -1
- package/locales/{ko.mjs → ko.js} +1 -2
- package/locales/{ku.d.mts → ku.d.ts} +1 -1
- package/locales/{ku.mjs → ku.js} +1 -2
- package/locales/{ky.d.mts → ky.d.ts} +1 -1
- package/locales/{ky.mjs → ky.js} +1 -2
- package/locales/{lb.d.mts → lb.d.ts} +1 -1
- package/locales/{lb.mjs → lb.js} +1 -2
- package/locales/{lo.d.mts → lo.d.ts} +1 -1
- package/locales/{lo.mjs → lo.js} +1 -2
- package/locales/lt.d.ts +6 -0
- package/locales/{lt.mjs → lt.js} +1 -2
- package/locales/lv.d.ts +6 -0
- package/locales/{lv.mjs → lv.js} +1 -2
- package/locales/{me.d.mts → me.d.ts} +1 -1
- package/locales/{me.mjs → me.js} +1 -2
- package/locales/{mi.d.mts → mi.d.ts} +1 -1
- package/locales/{mi.mjs → mi.js} +1 -2
- package/locales/{mk.d.mts → mk.d.ts} +1 -1
- package/locales/{mk.mjs → mk.js} +1 -2
- package/locales/{ml.d.mts → ml.d.ts} +1 -1
- package/locales/{ml.mjs → ml.js} +1 -2
- package/locales/{mn.d.mts → mn.d.ts} +1 -1
- package/locales/{mn.mjs → mn.js} +1 -2
- package/locales/{mr.d.mts → mr.d.ts} +1 -1
- package/locales/{mr.mjs → mr.js} +1 -2
- package/locales/{ms-my.d.mts → ms-my.d.ts} +1 -1
- package/locales/{ms-my.mjs → ms-my.js} +3 -5
- package/locales/{ms.d.mts → ms.d.ts} +1 -1
- package/locales/{ms.mjs → ms.js} +1 -2
- package/locales/{mt.d.mts → mt.d.ts} +1 -1
- package/locales/{mt.mjs → mt.js} +1 -2
- package/locales/{my.d.mts → my.d.ts} +1 -1
- package/locales/{my.mjs → my.js} +1 -2
- package/locales/{nb.d.mts → nb.d.ts} +1 -1
- package/locales/{nb.mjs → nb.js} +1 -2
- package/locales/{ne.d.mts → ne.d.ts} +1 -1
- package/locales/{ne.mjs → ne.js} +1 -2
- package/locales/{nl-be.d.mts → nl-be.d.ts} +1 -1
- package/locales/{nl-be.mjs → nl-be.js} +3 -5
- package/locales/{nl.d.mts → nl.d.ts} +1 -1
- package/locales/{nl.mjs → nl.js} +1 -2
- package/locales/{nn.d.mts → nn.d.ts} +1 -1
- package/locales/{nn.mjs → nn.js} +1 -2
- package/locales/{oc-lnc.d.mts → oc-lnc.d.ts} +1 -1
- package/locales/{oc-lnc.mjs → oc-lnc.js} +1 -2
- package/locales/{pa-in.d.mts → pa-in.d.ts} +1 -1
- package/locales/{pa-in.mjs → pa-in.js} +1 -2
- package/locales/{pl.d.mts → pl.d.ts} +1 -1
- package/locales/{pl.mjs → pl.js} +1 -2
- package/locales/{pt-br.d.mts → pt-br.d.ts} +1 -1
- package/locales/{pt-br.mjs → pt-br.js} +3 -5
- package/locales/{pt.d.mts → pt.d.ts} +1 -1
- package/locales/{pt.mjs → pt.js} +1 -2
- package/locales/{rn.d.mts → rn.d.ts} +1 -1
- package/locales/{rn.mjs → rn.js} +1 -2
- package/locales/{ro.d.mts → ro.d.ts} +1 -1
- package/locales/{ro.mjs → ro.js} +1 -2
- package/locales/{ru.d.mts → ru.d.ts} +1 -1
- package/locales/{ru.mjs → ru.js} +1 -2
- package/locales/{rw.d.mts → rw.d.ts} +1 -1
- package/locales/{rw.mjs → rw.js} +1 -2
- package/locales/{sd.d.mts → sd.d.ts} +1 -1
- package/locales/{sd.mjs → sd.js} +1 -2
- package/locales/{se.d.mts → se.d.ts} +1 -1
- package/locales/{se.mjs → se.js} +1 -2
- package/locales/{si.d.mts → si.d.ts} +1 -1
- package/locales/{si.mjs → si.js} +1 -2
- package/locales/{sk.d.mts → sk.d.ts} +1 -1
- package/locales/{sk.mjs → sk.js} +1 -2
- package/locales/{sl.d.mts → sl.d.ts} +1 -1
- package/locales/{sl.mjs → sl.js} +1 -2
- package/locales/{sq.d.mts → sq.d.ts} +1 -1
- package/locales/{sq.mjs → sq.js} +1 -2
- package/locales/{sr-cyrl.d.mts → sr-cyrl.d.ts} +1 -1
- package/locales/{sr-cyrl.mjs → sr-cyrl.js} +3 -5
- package/locales/{sr.d.mts → sr.d.ts} +1 -1
- package/locales/{sr.mjs → sr.js} +1 -2
- package/locales/{ss.d.mts → ss.d.ts} +1 -1
- package/locales/{ss.mjs → ss.js} +1 -2
- package/locales/{sv-fi.d.mts → sv-fi.d.ts} +1 -1
- package/locales/{sv-fi.mjs → sv-fi.js} +3 -5
- package/locales/{sv.d.mts → sv.d.ts} +1 -1
- package/locales/{sv.mjs → sv.js} +1 -2
- package/locales/{sw.d.mts → sw.d.ts} +1 -1
- package/locales/{sw.mjs → sw.js} +1 -2
- package/locales/{ta.d.mts → ta.d.ts} +1 -1
- package/locales/{ta.mjs → ta.js} +1 -2
- package/locales/{te.d.mts → te.d.ts} +1 -1
- package/locales/{te.mjs → te.js} +1 -2
- package/locales/{tet.d.mts → tet.d.ts} +1 -1
- package/locales/{tet.mjs → tet.js} +1 -2
- package/locales/{tg.d.mts → tg.d.ts} +1 -1
- package/locales/{tg.mjs → tg.js} +1 -2
- package/locales/{th.d.mts → th.d.ts} +1 -1
- package/locales/{th.mjs → th.js} +1 -2
- package/locales/{tk.d.mts → tk.d.ts} +1 -1
- package/locales/{tk.mjs → tk.js} +1 -2
- package/locales/{tl-ph.d.mts → tl-ph.d.ts} +1 -1
- package/locales/{tl-ph.mjs → tl-ph.js} +1 -2
- package/locales/{tlh.d.mts → tlh.d.ts} +1 -1
- package/locales/{tlh.mjs → tlh.js} +1 -2
- package/locales/{tr.d.mts → tr.d.ts} +1 -1
- package/locales/{tr.mjs → tr.js} +1 -2
- package/locales/{tzl.d.mts → tzl.d.ts} +1 -1
- package/locales/{tzl.mjs → tzl.js} +1 -2
- package/locales/{tzm-latn.d.mts → tzm-latn.d.ts} +1 -1
- package/locales/{tzm-latn.mjs → tzm-latn.js} +3 -5
- package/locales/{tzm.d.mts → tzm.d.ts} +1 -1
- package/locales/{tzm.mjs → tzm.js} +1 -2
- package/locales/{ug-cn.d.mts → ug-cn.d.ts} +1 -1
- package/locales/{ug-cn.mjs → ug-cn.js} +1 -2
- package/locales/{uk.d.mts → uk.d.ts} +1 -1
- package/locales/{uk.mjs → uk.js} +1 -2
- package/locales/{ur.d.mts → ur.d.ts} +1 -1
- package/locales/{ur.mjs → ur.js} +1 -2
- package/locales/{uz-latn.d.mts → uz-latn.d.ts} +1 -1
- package/locales/{uz-latn.mjs → uz-latn.js} +3 -5
- package/locales/{uz.d.mts → uz.d.ts} +1 -1
- package/locales/{uz.mjs → uz.js} +1 -2
- package/locales/{vi.d.mts → vi.d.ts} +1 -1
- package/locales/{vi.mjs → vi.js} +1 -2
- package/locales/{x-pseudo.d.mts → x-pseudo.d.ts} +1 -1
- package/locales/{x-pseudo.mjs → x-pseudo.js} +1 -2
- package/locales/{yo.d.mts → yo.d.ts} +1 -1
- package/locales/{yo.mjs → yo.js} +1 -2
- package/locales/{zh-cn.d.mts → zh-cn.d.ts} +1 -1
- package/locales/{zh-cn.mjs → zh-cn.js} +3 -5
- package/locales/{zh-hk.d.mts → zh-hk.d.ts} +1 -1
- package/locales/{zh-hk.mjs → zh-hk.js} +3 -5
- package/locales/{zh-mo.d.mts → zh-mo.d.ts} +1 -1
- package/locales/{zh-mo.mjs → zh-mo.js} +3 -5
- package/locales/{zh-tw.d.mts → zh-tw.d.ts} +1 -1
- package/locales/{zh-tw.mjs → zh-tw.js} +3 -5
- package/locales/{zh.d.mts → zh.d.ts} +1 -1
- package/locales/{zh.mjs → zh.js} +1 -2
- package/package.json +20 -20
- package/plugins/advancedFormat/{index.d.mts → index.d.ts} +1 -1
- package/plugins/advancedFormat/{index.mjs → index.js} +2 -4
- package/plugins/advancedParse/{index.d.mts → index.d.ts} +1 -1
- package/plugins/advancedParse/{index.mjs → index.js} +3 -5
- package/plugins/calendar/{index.d.mts → index.d.ts} +2 -2
- package/plugins/calendar/{index.mjs → index.js} +1 -2
- package/plugins/dayOfYear/{index.d.mts → index.d.ts} +1 -1
- package/plugins/dayOfYear/{index.mjs → index.js} +1 -2
- package/plugins/duration/{index.d.mts → index.d.ts} +3 -3
- package/plugins/duration/{index.mjs → index.js} +9 -14
- package/plugins/isBetween/{index.d.mts → index.d.ts} +1 -1
- package/plugins/isBetween/{index.mjs → index.js} +2 -4
- package/plugins/isLeapYear/{index.d.mts → index.d.ts} +1 -1
- package/plugins/isLeapYear/{index.mjs → index.js} +1 -2
- package/plugins/isSameOrAfter/{index.d.mts → index.d.ts} +1 -1
- package/plugins/isSameOrAfter/{index.mjs → index.js} +1 -2
- package/plugins/isSameOrBefore/{index.d.mts → index.d.ts} +1 -1
- package/plugins/isSameOrBefore/{index.mjs → index.js} +1 -2
- package/plugins/isToday/{index.d.mts → index.d.ts} +1 -1
- package/plugins/isToday/{index.mjs → index.js} +2 -4
- package/plugins/isTomorrow/{index.d.mts → index.d.ts} +1 -1
- package/plugins/isTomorrow/{index.mjs → index.js} +2 -4
- package/plugins/isYesterday/{index.d.mts → index.d.ts} +1 -1
- package/plugins/isYesterday/{index.mjs → index.js} +2 -4
- package/plugins/isoWeek/{index.d.mts → index.d.ts} +1 -1
- package/plugins/isoWeek/{index.mjs → index.js} +5 -7
- package/plugins/locale/{index.d.mts → index.d.ts} +4 -1
- package/plugins/locale/{index.mjs → index.js} +7 -9
- package/plugins/localeData/{index.d.mts → index.d.ts} +1 -1
- package/plugins/localeData/{index.mjs → index.js} +2 -4
- package/plugins/localizedFormat/{index.d.mts → index.d.ts} +1 -1
- package/plugins/localizedFormat/{index.mjs → index.js} +3 -5
- package/plugins/localizedParse/{index.d.mts → index.d.ts} +1 -1
- package/plugins/localizedParse/{index.mjs → index.js} +2 -4
- package/plugins/minMax/{index.d.mts → index.d.ts} +1 -1
- package/plugins/minMax/{index.mjs → index.js} +2 -4
- package/plugins/objectSupport/{index.d.mts → index.d.ts} +1 -1
- package/plugins/objectSupport/{index.mjs → index.js} +5 -7
- package/plugins/pluralGetSet/{index.d.mts → index.d.ts} +1 -1
- package/plugins/pluralGetSet/{index.mjs → index.js} +1 -2
- package/plugins/quarterOfYear/{index.d.mts → index.d.ts} +1 -1
- package/plugins/quarterOfYear/{index.mjs → index.js} +4 -6
- package/plugins/relativeTime/{index.d.mts → index.d.ts} +2 -2
- package/plugins/relativeTime/{index.mjs → index.js} +3 -5
- package/plugins/timezone/{index.d.mts → index.d.ts} +1 -1
- package/plugins/timezone/{index.mjs → index.js} +13 -15
- package/plugins/toArray/{index.d.mts → index.d.ts} +1 -1
- package/plugins/toArray/{index.mjs → index.js} +1 -2
- package/plugins/toObject/{index.d.mts → index.d.ts} +1 -1
- package/plugins/toObject/{index.mjs → index.js} +1 -2
- package/plugins/utc/{index.d.mts → index.d.ts} +6 -1
- package/plugins/utc/{index.mjs → index.js} +10 -12
- package/plugins/week/{index.d.mts → index.d.ts} +1 -1
- package/plugins/week/{index.mjs → index.js} +6 -8
- package/index.d.mts +0 -3
- package/index.mjs +0 -3
- package/locales/fa.d.mts +0 -6
- package/locales/jv.d.mts +0 -6
- package/locales/lt.d.mts +0 -6
- package/locales/lv.d.mts +0 -6
- package/chunks/{v_QBn7Xm.js → DuRKUq5K.js} +1 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Locale } from "../locale/index.
|
|
3
|
-
import { ThresholdRelativeTime } from "../relativeTime/index.
|
|
1
|
+
import { C as UnitDates, D as UnitIsoWeeks, L as UnitTypePlurals, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
|
|
2
|
+
import { Locale } from "../locale/index.js";
|
|
3
|
+
import { ThresholdRelativeTime } from "../relativeTime/index.js";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/duration/index.d.ts
|
|
6
6
|
declare module 'esday' {
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as isUndefined, r as isObject } from "../../chunks/
|
|
3
|
-
import { n as normalizeUnitWithPlurals, r as normalizeUnitWithPluralsToPlural } from "../../chunks/
|
|
4
|
-
import { n as padStart } from "../../chunks/
|
|
5
|
-
import { i as _checkPrivateRedeclaration, r as _assertClassBrand, t as esday } from "../../chunks/
|
|
6
|
-
|
|
7
|
-
//#region \0@oxc-project+runtime@0.112.0/helpers/classPrivateFieldInitSpec.js
|
|
1
|
+
import { r as INVALID_DATE_STRING } from "../../chunks/CeKusvtV.js";
|
|
2
|
+
import { a as isUndefined, r as isObject } from "../../chunks/DuRKUq5K.js";
|
|
3
|
+
import { n as normalizeUnitWithPlurals, r as normalizeUnitWithPluralsToPlural } from "../../chunks/DMdr1ZL1.js";
|
|
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
|
|
8
7
|
function _classPrivateFieldInitSpec(e, t, a) {
|
|
9
8
|
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
10
9
|
}
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
//#region \0@oxc-project+runtime@0.
|
|
11
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldSet2.js
|
|
14
12
|
function _classPrivateFieldSet2(s, a, r) {
|
|
15
13
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
16
14
|
}
|
|
17
|
-
|
|
18
15
|
//#endregion
|
|
19
|
-
//#region \0@oxc-project+runtime@0.
|
|
16
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldGet2.js
|
|
20
17
|
function _classPrivateFieldGet2(s, a) {
|
|
21
18
|
return s.get(_assertClassBrand(s, a));
|
|
22
19
|
}
|
|
23
|
-
|
|
24
20
|
//#endregion
|
|
25
21
|
//#region src/plugins/duration/index.ts
|
|
26
22
|
/** = 0:
|
|
@@ -472,6 +468,5 @@ const durationPlugin = (_, _dayClass, dayFactory) => {
|
|
|
472
468
|
return d instanceof DurationImpl;
|
|
473
469
|
};
|
|
474
470
|
};
|
|
475
|
-
|
|
476
471
|
//#endregion
|
|
477
|
-
export { durationPlugin as default };
|
|
472
|
+
export { durationPlugin as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
3
2
|
//#region src/plugins/isBetween/index.ts
|
|
4
3
|
const isBetweenPlugin = (_, dayClass) => {
|
|
5
4
|
dayClass.prototype.isBetween = function(from, to, unit = constants_default.MS, inclusivity = "()") {
|
|
@@ -10,6 +9,5 @@ const isBetweenPlugin = (_, dayClass) => {
|
|
|
10
9
|
return isAfterFrom && isBeforeTo;
|
|
11
10
|
};
|
|
12
11
|
};
|
|
13
|
-
|
|
14
12
|
//#endregion
|
|
15
|
-
export { isBetweenPlugin as default };
|
|
13
|
+
export { isBetweenPlugin as default };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
3
2
|
//#region src/plugins/isToday/index.ts
|
|
4
3
|
const isTodayPlugin = (_, dayClass) => {
|
|
5
4
|
dayClass.prototype.isToday = function() {
|
|
6
5
|
return this.isSame(/* @__PURE__ */ new Date(), constants_default.DAY);
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
|
-
|
|
10
8
|
//#endregion
|
|
11
|
-
export { isTodayPlugin as default };
|
|
9
|
+
export { isTodayPlugin as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
3
2
|
//#region src/plugins/isTomorrow/index.ts
|
|
4
3
|
const isTomorrowPlugin = (_, dayClass, d) => {
|
|
5
4
|
dayClass.prototype.isTomorrow = function() {
|
|
@@ -8,6 +7,5 @@ const isTomorrowPlugin = (_, dayClass, d) => {
|
|
|
8
7
|
return this.format(comparisonTemplate) === tomorrow.format(comparisonTemplate);
|
|
9
8
|
};
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
export { isTomorrowPlugin as default };
|
|
11
|
+
export { isTomorrowPlugin as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
3
2
|
//#region src/plugins/isYesterday/index.ts
|
|
4
3
|
const isYesterdayPlugin = (_, dayClass, d) => {
|
|
5
4
|
dayClass.prototype.isYesterday = function() {
|
|
@@ -8,6 +7,5 @@ const isYesterdayPlugin = (_, dayClass, d) => {
|
|
|
8
7
|
return this.format(comparisonTemplate) === yesterday.format(comparisonTemplate);
|
|
9
8
|
};
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
export { isYesterdayPlugin as default };
|
|
11
|
+
export { isYesterdayPlugin as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as isUndefined } from "../../chunks/
|
|
3
|
-
import { t as createInstanceFromExist } from "../../chunks/
|
|
4
|
-
import { n as padStart } from "../../chunks/
|
|
5
|
-
|
|
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";
|
|
6
5
|
//#region src/plugins/isoWeek/index.ts
|
|
7
6
|
const weekStart = constants_default.INDEX_MONDAY;
|
|
8
7
|
const yearStart = 4;
|
|
@@ -223,6 +222,5 @@ const isoWeekPlugin = (_, dayClass, dayFactory) => {
|
|
|
223
222
|
};
|
|
224
223
|
dayFactory.addParseTokenDefinitions?.(parseTokensDefinitions);
|
|
225
224
|
};
|
|
226
|
-
|
|
227
225
|
//#endregion
|
|
228
|
-
export { isoWeekPlugin as default };
|
|
226
|
+
export { isoWeekPlugin as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as EsDayPlugin, t as EsDay } from "../../chunks/DuP2qVZn.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/locale/types.d.ts
|
|
4
4
|
type ReadonlyTuple<T, N extends number, R extends readonly T[] = []> = R['length'] extends N ? R : ReadonlyTuple<T, N, readonly [T, ...R]>;
|
|
@@ -16,6 +16,9 @@ declare module 'esday' {
|
|
|
16
16
|
getLocale: (localeName: string) => Locale;
|
|
17
17
|
updateLocale: (localeName: string, newLocale: Partial<Locale>) => EsDayFactory;
|
|
18
18
|
}
|
|
19
|
+
interface ConfigurationObject {
|
|
20
|
+
localeName?: string;
|
|
21
|
+
}
|
|
19
22
|
}
|
|
20
23
|
type DayNames<T = string> = ReadonlyTuple<T, 7>;
|
|
21
24
|
interface DayNamesStandaloneFormat<T = DayNames<string>> {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as undefinedOr } from "../../chunks/
|
|
3
|
-
import { t as normalizeUnit } from "../../chunks/
|
|
4
|
-
import localeEn from "../../locales/en.
|
|
5
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
2
|
+
import { s as undefinedOr } from "../../chunks/DuRKUq5K.js";
|
|
3
|
+
import { t as normalizeUnit } from "../../chunks/DMdr1ZL1.js";
|
|
4
|
+
import localeEn from "../../locales/en.js";
|
|
6
5
|
//#region src/plugins/locale/index.ts
|
|
7
6
|
const LocaleStore = /* @__PURE__ */ new Map();
|
|
8
7
|
let $localeGlobal = "en";
|
|
@@ -72,8 +71,8 @@ function cloneLocale(source) {
|
|
|
72
71
|
return cloneObject(source);
|
|
73
72
|
}
|
|
74
73
|
function getSetPrivateLocaleName(inst, newLocaleName) {
|
|
75
|
-
if (newLocaleName) inst["$conf"]
|
|
76
|
-
return inst["$conf"]
|
|
74
|
+
if (newLocaleName) inst["$conf"].localeName = newLocaleName;
|
|
75
|
+
return inst["$conf"].localeName || "";
|
|
77
76
|
}
|
|
78
77
|
const localePlugin = (_, dayClass, dayFactory) => {
|
|
79
78
|
dayClass.prototype.localeObject = function() {
|
|
@@ -136,6 +135,5 @@ const localePlugin = (_, dayClass, dayFactory) => {
|
|
|
136
135
|
return dayFactory;
|
|
137
136
|
};
|
|
138
137
|
};
|
|
139
|
-
|
|
140
138
|
//#endregion
|
|
141
|
-
export { cloneLocale, localePlugin as default, setLocaleProperty };
|
|
139
|
+
export { cloneLocale, localePlugin as default, setLocaleProperty };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as esday } from "../../chunks/
|
|
2
|
-
|
|
1
|
+
import { t as esday } from "../../chunks/D2Xh96oz.js";
|
|
3
2
|
//#region src/plugins/localeData/index.ts
|
|
4
3
|
/**
|
|
5
4
|
* LocaleData plugin
|
|
@@ -150,6 +149,5 @@ const localeDataPlugin = (_, dayClass, dayFactory) => {
|
|
|
150
149
|
dayFactory.weekdaysShort = () => getWeekdays(dayFactory.getLocale(dayFactory.locale()), "weekdaysShort");
|
|
151
150
|
dayFactory.weekdaysMin = () => getWeekdays(dayFactory.getLocale(dayFactory.locale()), "weekdaysMin");
|
|
152
151
|
};
|
|
153
|
-
|
|
154
152
|
//#endregion
|
|
155
|
-
export { localeDataPlugin as default };
|
|
153
|
+
export { localeDataPlugin as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { i as isString, t as isArray } from "../../chunks/
|
|
2
|
-
import { t as padNumberWithLeadingZeros } from "../../chunks/
|
|
3
|
-
|
|
1
|
+
import { i as isString, t as isArray } from "../../chunks/DuRKUq5K.js";
|
|
2
|
+
import { t as padNumberWithLeadingZeros } from "../../chunks/DXFoLbHM.js";
|
|
4
3
|
//#region src/plugins/localizedFormat/index.ts
|
|
5
4
|
/**
|
|
6
5
|
* Create a function that will format the day of week value from the sourceDate
|
|
@@ -78,6 +77,5 @@ const localizedFormatPlugin = (_, dayClass, dayFactory) => {
|
|
|
78
77
|
return this.localeObject?.().postFormat?.(formattedValue) ?? formattedValue;
|
|
79
78
|
};
|
|
80
79
|
};
|
|
81
|
-
|
|
82
80
|
//#endregion
|
|
83
|
-
export { localizedFormatPlugin as default };
|
|
81
|
+
export { localizedFormatPlugin as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as isUndefined, i as isString, t as isArray } from "../../chunks/
|
|
2
|
-
|
|
1
|
+
import { a as isUndefined, i as isString, t as isArray } from "../../chunks/DuRKUq5K.js";
|
|
3
2
|
//#region src/plugins/localizedParse/index.ts
|
|
4
3
|
const match2 = /\d{2}/;
|
|
5
4
|
const match1to2 = /\d\d?/;
|
|
@@ -212,6 +211,5 @@ const localizedParsePlugin = (_, dayClass, dayFactory) => {
|
|
|
212
211
|
}
|
|
213
212
|
};
|
|
214
213
|
};
|
|
215
|
-
|
|
216
214
|
//#endregion
|
|
217
|
-
export { localizedParsePlugin as default };
|
|
215
|
+
export { localizedParsePlugin as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as isArray } from "../../chunks/
|
|
2
|
-
|
|
1
|
+
import { t as isArray } from "../../chunks/DuRKUq5K.js";
|
|
3
2
|
//#region src/plugins/minMax/index.ts
|
|
4
3
|
const minMaxPlugin = (_, _dayClass, dayFactory) => {
|
|
5
4
|
const sortBy = (method, dates) => {
|
|
@@ -16,6 +15,5 @@ const minMaxPlugin = (_, _dayClass, dayFactory) => {
|
|
|
16
15
|
dayFactory.max = (...dates) => sortBy("isAfter", dates);
|
|
17
16
|
dayFactory.min = (...dates) => sortBy("isBefore", dates);
|
|
18
17
|
};
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
|
-
export { minMaxPlugin as default };
|
|
19
|
+
export { minMaxPlugin as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as isEmptyObject, r as isObject } from "../../chunks/
|
|
3
|
-
import { n as normalizeUnitWithPlurals } from "../../chunks/
|
|
4
|
-
import { t as createInstanceFromExist } from "../../chunks/
|
|
5
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
2
|
+
import { n as isEmptyObject, r as isObject } from "../../chunks/DuRKUq5K.js";
|
|
3
|
+
import { n as normalizeUnitWithPlurals } from "../../chunks/DMdr1ZL1.js";
|
|
4
|
+
import { t as createInstanceFromExist } from "../../chunks/i3oEJgL3.js";
|
|
6
5
|
//#region src/plugins/objectSupport/index.ts
|
|
7
6
|
const objectSupportPlugin = (_, dayClass, _dayFactory) => {
|
|
8
7
|
const proto = dayClass.prototype;
|
|
@@ -94,6 +93,5 @@ const objectSupportPlugin = (_, dayClass, _dayFactory) => {
|
|
|
94
93
|
return oldSubtract.call(this, value, unit);
|
|
95
94
|
};
|
|
96
95
|
};
|
|
97
|
-
|
|
98
96
|
//#endregion
|
|
99
|
-
export { objectSupportPlugin as default };
|
|
97
|
+
export { objectSupportPlugin as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as isObject } from "../../chunks/
|
|
3
|
-
import { n as normalizeUnitWithPlurals } from "../../chunks/
|
|
4
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
2
|
+
import { r as isObject } from "../../chunks/DuRKUq5K.js";
|
|
3
|
+
import { n as normalizeUnitWithPlurals } from "../../chunks/DMdr1ZL1.js";
|
|
5
4
|
//#region src/plugins/quarterOfYear/index.ts
|
|
6
5
|
const quarterOfYearPlugin = (_, dayClass, dayFactory) => {
|
|
7
6
|
const proto = dayClass.prototype;
|
|
@@ -46,6 +45,5 @@ const quarterOfYearPlugin = (_, dayClass, dayFactory) => {
|
|
|
46
45
|
};
|
|
47
46
|
dayFactory.addFormatTokenDefinitions({ Q: (sourceDate) => sourceDate.quarter().toString() });
|
|
48
47
|
};
|
|
49
|
-
|
|
50
48
|
//#endregion
|
|
51
|
-
export { quarterOfYearPlugin as default };
|
|
49
|
+
export { quarterOfYearPlugin as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Locale } from "../locale/index.
|
|
1
|
+
import { i as DateType, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
|
|
2
|
+
import { Locale } from "../locale/index.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/relativeTime/index.d.ts
|
|
5
5
|
declare module 'esday' {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as createInstanceFromExist } from "../../chunks/
|
|
3
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
2
|
+
import { t as createInstanceFromExist } from "../../chunks/i3oEJgL3.js";
|
|
4
3
|
//#region src/plugins/relativeTime/index.ts
|
|
5
4
|
const relativeTimePlugin = (options, dayClass, dayFactory) => {
|
|
6
5
|
const defaultRelativeTimeDef = {
|
|
@@ -182,6 +181,5 @@ const relativeTimePlugin = (options, dayClass, dayFactory) => {
|
|
|
182
181
|
return this.from(now, withoutSuffix);
|
|
183
182
|
};
|
|
184
183
|
};
|
|
185
|
-
|
|
186
184
|
//#endregion
|
|
187
|
-
export { relativeTimePlugin as default };
|
|
185
|
+
export { relativeTimePlugin as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as isEmptyObject, r as isObject } from "../../chunks/
|
|
3
|
-
import { n as normalizeUnitWithPlurals } from "../../chunks/
|
|
4
|
-
import { t as esday } from "../../chunks/
|
|
5
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
2
|
+
import { n as isEmptyObject, r as isObject } from "../../chunks/DuRKUq5K.js";
|
|
3
|
+
import { n as normalizeUnitWithPlurals } from "../../chunks/DMdr1ZL1.js";
|
|
4
|
+
import { t as esday } from "../../chunks/D2Xh96oz.js";
|
|
6
5
|
//#region src/plugins/timezone/timezone-util.ts
|
|
7
6
|
/**
|
|
8
7
|
* Cache for Intl.DateTimeFormat instances for formatting date and time
|
|
@@ -69,7 +68,6 @@ function getTimezoneNameFormat(timezone, localeName = TzDefaultTimezoneLocale) {
|
|
|
69
68
|
}
|
|
70
69
|
return dtf;
|
|
71
70
|
}
|
|
72
|
-
|
|
73
71
|
//#endregion
|
|
74
72
|
//#region src/plugins/timezone/index.ts
|
|
75
73
|
/**
|
|
@@ -146,6 +144,7 @@ function weekdayNameToNumber(shortWeekdayName) {
|
|
|
146
144
|
case "Thu": return 4;
|
|
147
145
|
case "Fri": return 5;
|
|
148
146
|
case "Sat": return 6;
|
|
147
|
+
/* v8 ignore next -- @preserve */
|
|
149
148
|
default: return -1;
|
|
150
149
|
}
|
|
151
150
|
}
|
|
@@ -331,7 +330,7 @@ const timezonePLugin = (_, dayClass, esdayFactory) => {
|
|
|
331
330
|
const [targetTimestamp, targetOffset] = fixOffsetConvert(parsedInput.valueOf(), 0, offsetParsedInput, timezone ?? noTimezone);
|
|
332
331
|
const result = esdayFactory.utc(targetTimestamp, ...others);
|
|
333
332
|
result["$conf"].utcOffset = targetOffset;
|
|
334
|
-
result["$conf"].localOffset = result.toDate().getTimezoneOffset();
|
|
333
|
+
result["$conf"].localOffset = -1 * result.toDate().getTimezoneOffset();
|
|
335
334
|
result["$conf"].utc = targetOffset === 0;
|
|
336
335
|
if (result["$conf"].localeName !== void 0 && parsedInput["$conf"].localeName !== void 0) result["$conf"].localeName = parsedInput["$conf"].localeName;
|
|
337
336
|
result["$conf"].timezone = timezone;
|
|
@@ -349,7 +348,7 @@ const timezonePLugin = (_, dayClass, esdayFactory) => {
|
|
|
349
348
|
if (timezone === void 0) return this["$conf"].timezone;
|
|
350
349
|
const result = this.clone();
|
|
351
350
|
const tzOffsetTarget = tzOffset(this.valueOf(), timezone);
|
|
352
|
-
const localOffset = this.toDate().getTimezoneOffset();
|
|
351
|
+
const localOffset = -1 * this.toDate().getTimezoneOffset();
|
|
353
352
|
result["$conf"].localOffset = localOffset;
|
|
354
353
|
result["$conf"].utcOffset = tzOffsetTarget;
|
|
355
354
|
result["$conf"].utc = tzOffsetTarget === 0;
|
|
@@ -357,7 +356,7 @@ const timezonePLugin = (_, dayClass, esdayFactory) => {
|
|
|
357
356
|
if (keepLocalTime) {
|
|
358
357
|
const timestampSource = result.valueOf();
|
|
359
358
|
let tzOffsetSource = 0;
|
|
360
|
-
if (!this["$conf"].utc) tzOffsetSource = this["$conf"].timezone ? Number(this["$conf"].utcOffset) :
|
|
359
|
+
if (!this["$conf"].utc) tzOffsetSource = this["$conf"].timezone ? Number(this["$conf"].utcOffset) : localOffset;
|
|
361
360
|
const [timestampFixed, tzOffsetFixed] = fixOffsetConvert(timestampSource, tzOffsetSource, tzOffsetTarget, timezone);
|
|
362
361
|
result["$conf"].utcOffset = tzOffsetFixed;
|
|
363
362
|
result["$conf"].utc = tzOffsetFixed === 0;
|
|
@@ -395,19 +394,19 @@ const timezonePLugin = (_, dayClass, esdayFactory) => {
|
|
|
395
394
|
const [timestampFixed, tzOffsetFixed] = fixOffsetConvert(utcAsLocal, 0, tzOffset(utcAsLocal, timezone), timezone);
|
|
396
395
|
this.$d = new Date(timestampFixed);
|
|
397
396
|
this["$conf"].utcOffset = tzOffsetFixed;
|
|
398
|
-
this["$conf"].localOffset = this.$d.getTimezoneOffset();
|
|
397
|
+
this["$conf"].localOffset = -1 * this.$d.getTimezoneOffset();
|
|
399
398
|
this["$conf"].utc = tzOffsetFixed === 0;
|
|
400
399
|
return this;
|
|
401
400
|
};
|
|
402
401
|
const oldStartOf = dayClass.prototype.startOf;
|
|
403
402
|
proto.startOf = function(units) {
|
|
404
|
-
if (!this["$conf"]
|
|
403
|
+
if (!this["$conf"]?.["timezone"]) return oldStartOf.call(this, units);
|
|
405
404
|
const withoutTz = esdayFactory(this.format("YYYY-MM-DD HH:mm:ss:SSS"));
|
|
406
405
|
return oldStartOf.call(withoutTz, units).tz(this["$conf"]["timezone"], true);
|
|
407
406
|
};
|
|
408
407
|
const oldEndOf = dayClass.prototype.endOf;
|
|
409
408
|
proto.endOf = function(units) {
|
|
410
|
-
if (!this["$conf"]
|
|
409
|
+
if (!this["$conf"]?.["timezone"]) return oldEndOf.call(this, units);
|
|
411
410
|
const withoutTz = esdayFactory(this.format("YYYY-MM-DD HH:mm:ss:SSS"));
|
|
412
411
|
return oldEndOf.call(withoutTz, units).tz(this["$conf"]["timezone"], true);
|
|
413
412
|
};
|
|
@@ -435,7 +434,7 @@ const timezonePLugin = (_, dayClass, esdayFactory) => {
|
|
|
435
434
|
const [timestampFixed, tzOffsetFixed] = fixOffsetConvert(timestamp, tzOldOffset, tzOffset(timestamp, timezone), timezone);
|
|
436
435
|
newValue.$d = new Date(timestampFixed);
|
|
437
436
|
newValue["$conf"].utcOffset = tzOffsetFixed;
|
|
438
|
-
newValue["$conf"].localOffset = newValue.$d.getTimezoneOffset();
|
|
437
|
+
newValue["$conf"].localOffset = -1 * newValue.$d.getTimezoneOffset();
|
|
439
438
|
newValue["$conf"].utc = tzOffsetFixed === 0;
|
|
440
439
|
return newValue;
|
|
441
440
|
};
|
|
@@ -451,6 +450,5 @@ const timezonePLugin = (_, dayClass, esdayFactory) => {
|
|
|
451
450
|
};
|
|
452
451
|
esdayFactory.addFormatTokenDefinitions(additionalTokens);
|
|
453
452
|
};
|
|
454
|
-
|
|
455
453
|
//#endregion
|
|
456
|
-
export { timezonePLugin as default };
|
|
454
|
+
export { timezonePLugin as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as SimpleType, i as DateType, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/utc/index.d.ts
|
|
4
4
|
declare module 'esday' {
|
|
@@ -12,6 +12,11 @@ declare module 'esday' {
|
|
|
12
12
|
[key: string]: SimpleType;
|
|
13
13
|
})[]) => EsDay;
|
|
14
14
|
}
|
|
15
|
+
interface ConfigurationObject {
|
|
16
|
+
utc?: boolean;
|
|
17
|
+
utcOffset?: number;
|
|
18
|
+
localOffset?: number;
|
|
19
|
+
}
|
|
15
20
|
}
|
|
16
21
|
declare const utcPlugin: EsDayPlugin<{}>;
|
|
17
22
|
//#endregion
|