javascript-time-ago 2.5.3 → 2.5.4
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/bin/generate-load-all-locales.js +1 -1
- package/bin/generate-locale-messages.js +57 -46
- package/bundle/javascript-time-ago.js +1 -1
- package/bundle/javascript-time-ago.js.map +1 -1
- package/bundle/javascript-time-ago.min.js +1 -1
- package/bundle/javascript-time-ago.min.js.map +1 -1
- package/commonjs/TimeAgo.js +4 -0
- package/commonjs/TimeAgo.js.map +1 -1
- package/locale/af/package.json +7 -5
- package/locale/af.json.d.ts +4 -0
- package/locale/am/package.json +7 -5
- package/locale/am.json.d.ts +4 -0
- package/locale/ar/package.json +7 -5
- package/locale/ar-AE/package.json +7 -5
- package/locale/ar-AE.json.d.ts +4 -0
- package/locale/ar.json.d.ts +4 -0
- package/locale/as/package.json +7 -5
- package/locale/as.json.d.ts +4 -0
- package/locale/ast/package.json +7 -5
- package/locale/ast.json.d.ts +4 -0
- package/locale/az/package.json +7 -5
- package/locale/az.json.d.ts +4 -0
- package/locale/be/package.json +7 -5
- package/locale/be.json.d.ts +4 -0
- package/locale/bg/package.json +7 -5
- package/locale/bg.json.d.ts +4 -0
- package/locale/bn/package.json +7 -5
- package/locale/bn.json.d.ts +4 -0
- package/locale/br/package.json +7 -5
- package/locale/br.json.d.ts +4 -0
- package/locale/brx/package.json +7 -5
- package/locale/brx.json.d.ts +4 -0
- package/locale/bs/package.json +7 -5
- package/locale/bs-Cyrl/package.json +7 -5
- package/locale/bs-Cyrl.json.d.ts +4 -0
- package/locale/bs.json.d.ts +4 -0
- package/locale/ca/package.json +7 -5
- package/locale/ca.json.d.ts +4 -0
- package/locale/ccp/package.json +7 -5
- package/locale/ccp.json.d.ts +4 -0
- package/locale/ce/package.json +7 -5
- package/locale/ce.json.d.ts +4 -0
- package/locale/ceb/package.json +7 -5
- package/locale/ceb.json.d.ts +4 -0
- package/locale/chr/package.json +7 -5
- package/locale/chr.json.d.ts +4 -0
- package/locale/cs/package.json +7 -5
- package/locale/cs.json.d.ts +4 -0
- package/locale/cy/package.json +7 -5
- package/locale/cy.json.d.ts +4 -0
- package/locale/da/package.json +7 -5
- package/locale/da.json.d.ts +4 -0
- package/locale/de/package.json +7 -5
- package/locale/de.json.d.ts +4 -0
- package/locale/dsb/package.json +7 -5
- package/locale/dsb.json.d.ts +4 -0
- package/locale/dz/package.json +7 -5
- package/locale/dz.json.d.ts +4 -0
- package/locale/ee/package.json +7 -5
- package/locale/ee.json.d.ts +4 -0
- package/locale/el/package.json +7 -5
- package/locale/el.json +0 -10
- package/locale/el.json.d.ts +4 -0
- package/locale/el.json.js +0 -10
- package/locale/en/package.json +7 -5
- package/locale/en-001/package.json +7 -5
- package/locale/en-001.json.d.ts +4 -0
- package/locale/en-150/package.json +7 -5
- package/locale/en-150.json.d.ts +4 -0
- package/locale/en-AG/package.json +7 -5
- package/locale/en-AG.json.d.ts +4 -0
- package/locale/en-AI/package.json +7 -5
- package/locale/en-AI.json.d.ts +4 -0
- package/locale/en-AT/package.json +7 -5
- package/locale/en-AT.json.d.ts +4 -0
- package/locale/en-AU/package.json +7 -5
- package/locale/en-AU.json.d.ts +4 -0
- package/locale/en-BB/package.json +7 -5
- package/locale/en-BB.json.d.ts +4 -0
- package/locale/en-BE/package.json +7 -5
- package/locale/en-BE.json.d.ts +4 -0
- package/locale/en-BM/package.json +7 -5
- package/locale/en-BM.json.d.ts +4 -0
- package/locale/en-BS/package.json +7 -5
- package/locale/en-BS.json.d.ts +4 -0
- package/locale/en-BW/package.json +7 -5
- package/locale/en-BW.json.d.ts +4 -0
- package/locale/en-BZ/package.json +7 -5
- package/locale/en-BZ.json.d.ts +4 -0
- package/locale/en-CA/package.json +7 -5
- package/locale/en-CA.json.d.ts +4 -0
- package/locale/en-CC/package.json +7 -5
- package/locale/en-CC.json.d.ts +4 -0
- package/locale/en-CH/package.json +7 -5
- package/locale/en-CH.json.d.ts +4 -0
- package/locale/en-CK/package.json +7 -5
- package/locale/en-CK.json.d.ts +4 -0
- package/locale/en-CM/package.json +7 -5
- package/locale/en-CM.json.d.ts +4 -0
- package/locale/en-CX/package.json +7 -5
- package/locale/en-CX.json.d.ts +4 -0
- package/locale/en-CY/package.json +7 -5
- package/locale/en-CY.json.d.ts +4 -0
- package/locale/en-DE/package.json +7 -5
- package/locale/en-DE.json.d.ts +4 -0
- package/locale/en-DG/package.json +7 -5
- package/locale/en-DG.json.d.ts +4 -0
- package/locale/en-DK/package.json +7 -5
- package/locale/en-DK.json.d.ts +4 -0
- package/locale/en-DM/package.json +7 -5
- package/locale/en-DM.json.d.ts +4 -0
- package/locale/en-ER/package.json +7 -5
- package/locale/en-ER.json.d.ts +4 -0
- package/locale/en-FI/package.json +7 -5
- package/locale/en-FI.json.d.ts +4 -0
- package/locale/en-FJ/package.json +7 -5
- package/locale/en-FJ.json.d.ts +4 -0
- package/locale/en-FK/package.json +7 -5
- package/locale/en-FK.json.d.ts +4 -0
- package/locale/en-FM/package.json +7 -5
- package/locale/en-FM.json.d.ts +4 -0
- package/locale/en-GB/package.json +7 -5
- package/locale/en-GB.json.d.ts +4 -0
- package/locale/en-GD/package.json +7 -5
- package/locale/en-GD.json.d.ts +4 -0
- package/locale/en-GG/package.json +7 -5
- package/locale/en-GG.json.d.ts +4 -0
- package/locale/en-GH/package.json +7 -5
- package/locale/en-GH.json.d.ts +4 -0
- package/locale/en-GI/package.json +7 -5
- package/locale/en-GI.json.d.ts +4 -0
- package/locale/en-GM/package.json +7 -5
- package/locale/en-GM.json.d.ts +4 -0
- package/locale/en-GY/package.json +7 -5
- package/locale/en-GY.json.d.ts +4 -0
- package/locale/en-HK/package.json +7 -5
- package/locale/en-HK.json.d.ts +4 -0
- package/locale/en-IE/package.json +7 -5
- package/locale/en-IE.json.d.ts +4 -0
- package/locale/en-IL/package.json +7 -5
- package/locale/en-IL.json.d.ts +4 -0
- package/locale/en-IM/package.json +7 -5
- package/locale/en-IM.json.d.ts +4 -0
- package/locale/en-IN/package.json +7 -5
- package/locale/en-IN.json.d.ts +4 -0
- package/locale/en-IO/package.json +7 -5
- package/locale/en-IO.json.d.ts +4 -0
- package/locale/en-JE/package.json +7 -5
- package/locale/en-JE.json.d.ts +4 -0
- package/locale/en-JM/package.json +7 -5
- package/locale/en-JM.json.d.ts +4 -0
- package/locale/en-KE/package.json +7 -5
- package/locale/en-KE.json.d.ts +4 -0
- package/locale/en-KI/package.json +7 -5
- package/locale/en-KI.json.d.ts +4 -0
- package/locale/en-KN/package.json +7 -5
- package/locale/en-KN.json.d.ts +4 -0
- package/locale/en-KY/package.json +7 -5
- package/locale/en-KY.json.d.ts +4 -0
- package/locale/en-LC/package.json +7 -5
- package/locale/en-LC.json.d.ts +4 -0
- package/locale/en-LR/package.json +7 -5
- package/locale/en-LR.json.d.ts +4 -0
- package/locale/en-LS/package.json +7 -5
- package/locale/en-LS.json.d.ts +4 -0
- package/locale/en-MG/package.json +7 -5
- package/locale/en-MG.json.d.ts +4 -0
- package/locale/en-MO/package.json +7 -5
- package/locale/en-MO.json.d.ts +4 -0
- package/locale/en-MS/package.json +7 -5
- package/locale/en-MS.json.d.ts +4 -0
- package/locale/en-MT/package.json +7 -5
- package/locale/en-MT.json.d.ts +4 -0
- package/locale/en-MU/package.json +7 -5
- package/locale/en-MU.json.d.ts +4 -0
- package/locale/en-MV/package.json +7 -5
- package/locale/en-MV.json.d.ts +4 -0
- package/locale/en-MW/package.json +7 -5
- package/locale/en-MW.json.d.ts +4 -0
- package/locale/en-MY/package.json +7 -5
- package/locale/en-MY.json.d.ts +4 -0
- package/locale/en-NA/package.json +7 -5
- package/locale/en-NA.json.d.ts +4 -0
- package/locale/en-NF/package.json +7 -5
- package/locale/en-NF.json.d.ts +4 -0
- package/locale/en-NG/package.json +7 -5
- package/locale/en-NG.json.d.ts +4 -0
- package/locale/en-NL/package.json +7 -5
- package/locale/en-NL.json.d.ts +4 -0
- package/locale/en-NR/package.json +7 -5
- package/locale/en-NR.json.d.ts +4 -0
- package/locale/en-NU/package.json +7 -5
- package/locale/en-NU.json.d.ts +4 -0
- package/locale/en-NZ/package.json +7 -5
- package/locale/en-NZ.json.d.ts +4 -0
- package/locale/en-PG/package.json +7 -5
- package/locale/en-PG.json.d.ts +4 -0
- package/locale/en-PK/package.json +7 -5
- package/locale/en-PK.json.d.ts +4 -0
- package/locale/en-PN/package.json +7 -5
- package/locale/en-PN.json.d.ts +4 -0
- package/locale/en-PW/package.json +7 -5
- package/locale/en-PW.json.d.ts +4 -0
- package/locale/en-RW/package.json +7 -5
- package/locale/en-RW.json.d.ts +4 -0
- package/locale/en-SB/package.json +7 -5
- package/locale/en-SB.json.d.ts +4 -0
- package/locale/en-SC/package.json +7 -5
- package/locale/en-SC.json.d.ts +4 -0
- package/locale/en-SD/package.json +7 -5
- package/locale/en-SD.json.d.ts +4 -0
- package/locale/en-SE/package.json +7 -5
- package/locale/en-SE.json.d.ts +4 -0
- package/locale/en-SG/package.json +7 -5
- package/locale/en-SG.json.d.ts +4 -0
- package/locale/en-SH/package.json +7 -5
- package/locale/en-SH.json.d.ts +4 -0
- package/locale/en-SI/package.json +7 -5
- package/locale/en-SI.json.d.ts +4 -0
- package/locale/en-SL/package.json +7 -5
- package/locale/en-SL.json.d.ts +4 -0
- package/locale/en-SS/package.json +7 -5
- package/locale/en-SS.json.d.ts +4 -0
- package/locale/en-SX/package.json +7 -5
- package/locale/en-SX.json.d.ts +4 -0
- package/locale/en-SZ/package.json +7 -5
- package/locale/en-SZ.json.d.ts +4 -0
- package/locale/en-TC/package.json +7 -5
- package/locale/en-TC.json.d.ts +4 -0
- package/locale/en-TK/package.json +7 -5
- package/locale/en-TK.json.d.ts +4 -0
- package/locale/en-TO/package.json +7 -5
- package/locale/en-TO.json.d.ts +4 -0
- package/locale/en-TT/package.json +7 -5
- package/locale/en-TT.json.d.ts +4 -0
- package/locale/en-TV/package.json +7 -5
- package/locale/en-TV.json.d.ts +4 -0
- package/locale/en-TZ/package.json +7 -5
- package/locale/en-TZ.json.d.ts +4 -0
- package/locale/en-UG/package.json +7 -5
- package/locale/en-UG.json.d.ts +4 -0
- package/locale/en-VC/package.json +7 -5
- package/locale/en-VC.json.d.ts +4 -0
- package/locale/en-VG/package.json +7 -5
- package/locale/en-VG.json.d.ts +4 -0
- package/locale/en-VU/package.json +7 -5
- package/locale/en-VU.json.d.ts +4 -0
- package/locale/en-WS/package.json +7 -5
- package/locale/en-WS.json.d.ts +4 -0
- package/locale/en-ZA/package.json +7 -5
- package/locale/en-ZA.json.d.ts +4 -0
- package/locale/en-ZM/package.json +7 -5
- package/locale/en-ZM.json.d.ts +4 -0
- package/locale/en-ZW/package.json +7 -5
- package/locale/en-ZW.json.d.ts +4 -0
- package/locale/en.json +17 -27
- package/locale/en.json.d.ts +4 -0
- package/locale/en.json.js +17 -27
- package/locale/es/package.json +7 -5
- package/locale/es-419/package.json +7 -5
- package/locale/es-419.json.d.ts +4 -0
- package/locale/es-AR/package.json +7 -5
- package/locale/es-AR.json.d.ts +4 -0
- package/locale/es-BO/package.json +7 -5
- package/locale/es-BO.json.d.ts +4 -0
- package/locale/es-BR/package.json +7 -5
- package/locale/es-BR.json.d.ts +4 -0
- package/locale/es-BZ/package.json +7 -5
- package/locale/es-BZ.json.d.ts +4 -0
- package/locale/es-CL/package.json +7 -5
- package/locale/es-CL.json.d.ts +4 -0
- package/locale/es-CO/package.json +7 -5
- package/locale/es-CO.json.d.ts +4 -0
- package/locale/es-CR/package.json +7 -5
- package/locale/es-CR.json.d.ts +4 -0
- package/locale/es-CU/package.json +7 -5
- package/locale/es-CU.json.d.ts +4 -0
- package/locale/es-DO/package.json +7 -5
- package/locale/es-DO.json.d.ts +4 -0
- package/locale/es-EC/package.json +7 -5
- package/locale/es-EC.json.d.ts +4 -0
- package/locale/es-GT/package.json +7 -5
- package/locale/es-GT.json.d.ts +4 -0
- package/locale/es-HN/package.json +7 -5
- package/locale/es-HN.json.d.ts +4 -0
- package/locale/es-MX/package.json +7 -5
- package/locale/es-MX.json.d.ts +4 -0
- package/locale/es-NI/package.json +7 -5
- package/locale/es-NI.json.d.ts +4 -0
- package/locale/es-PA/package.json +7 -5
- package/locale/es-PA.json.d.ts +4 -0
- package/locale/es-PE/package.json +7 -5
- package/locale/es-PE.json.d.ts +4 -0
- package/locale/es-PR/package.json +7 -5
- package/locale/es-PR.json.d.ts +4 -0
- package/locale/es-PY/package.json +7 -5
- package/locale/es-PY.json.d.ts +4 -0
- package/locale/es-SV/package.json +7 -5
- package/locale/es-SV.json.d.ts +4 -0
- package/locale/es-US/package.json +7 -5
- package/locale/es-US.json.d.ts +4 -0
- package/locale/es-UY/package.json +7 -5
- package/locale/es-UY.json.d.ts +4 -0
- package/locale/es-VE/package.json +7 -5
- package/locale/es-VE.json.d.ts +4 -0
- package/locale/es.json +0 -10
- package/locale/es.json.d.ts +4 -0
- package/locale/es.json.js +0 -10
- package/locale/et/package.json +7 -5
- package/locale/et.json.d.ts +4 -0
- package/locale/eu/package.json +7 -5
- package/locale/eu.json.d.ts +4 -0
- package/locale/fa/package.json +7 -5
- package/locale/fa.json.d.ts +4 -0
- package/locale/ff-Adlm/package.json +7 -5
- package/locale/ff-Adlm.json.d.ts +4 -0
- package/locale/fi/package.json +7 -5
- package/locale/fi.json.d.ts +4 -0
- package/locale/fil/package.json +7 -5
- package/locale/fil.json.d.ts +4 -0
- package/locale/fo/package.json +7 -5
- package/locale/fo.json.d.ts +4 -0
- package/locale/fr/package.json +7 -5
- package/locale/fr-CA/package.json +7 -5
- package/locale/fr-CA.json.d.ts +4 -0
- package/locale/fr.json.d.ts +4 -0
- package/locale/fur/package.json +7 -5
- package/locale/fur.json.d.ts +4 -0
- package/locale/fy/package.json +7 -5
- package/locale/fy.json.d.ts +4 -0
- package/locale/ga/package.json +7 -5
- package/locale/ga.json.d.ts +4 -0
- package/locale/gd/package.json +7 -5
- package/locale/gd.json.d.ts +4 -0
- package/locale/gl/package.json +7 -5
- package/locale/gl.json.d.ts +4 -0
- package/locale/gu/package.json +7 -5
- package/locale/gu.json.d.ts +4 -0
- package/locale/ha/package.json +7 -5
- package/locale/ha.json.d.ts +4 -0
- package/locale/he/package.json +7 -5
- package/locale/he.json.d.ts +4 -0
- package/locale/hi/package.json +7 -5
- package/locale/hi-Latn/package.json +7 -5
- package/locale/hi-Latn.json.d.ts +4 -0
- package/locale/hi.json.d.ts +4 -0
- package/locale/hr/package.json +7 -5
- package/locale/hr.json.d.ts +4 -0
- package/locale/hsb/package.json +7 -5
- package/locale/hsb.json.d.ts +4 -0
- package/locale/hu/package.json +7 -5
- package/locale/hu.json.d.ts +4 -0
- package/locale/hy/package.json +7 -5
- package/locale/hy.json.d.ts +4 -0
- package/locale/ia/package.json +7 -5
- package/locale/ia.json.d.ts +4 -0
- package/locale/id/package.json +7 -5
- package/locale/id.json.d.ts +4 -0
- package/locale/ig/package.json +7 -5
- package/locale/ig.json.d.ts +4 -0
- package/locale/is/package.json +7 -5
- package/locale/is.json.d.ts +4 -0
- package/locale/it/package.json +7 -5
- package/locale/it.json.d.ts +4 -0
- package/locale/ja/package.json +7 -5
- package/locale/ja.json.d.ts +4 -0
- package/locale/jgo/package.json +7 -5
- package/locale/jgo.json.d.ts +4 -0
- package/locale/jv/package.json +7 -5
- package/locale/jv.json.d.ts +4 -0
- package/locale/ka/package.json +7 -5
- package/locale/ka.json.d.ts +4 -0
- package/locale/kea/package.json +7 -5
- package/locale/kea.json.d.ts +4 -0
- package/locale/kgp/package.json +7 -5
- package/locale/kgp.json.d.ts +4 -0
- package/locale/kk/package.json +7 -5
- package/locale/kk.json.d.ts +4 -0
- package/locale/kl/package.json +7 -5
- package/locale/kl.json.d.ts +4 -0
- package/locale/km/package.json +7 -5
- package/locale/km.json.d.ts +4 -0
- package/locale/kn/package.json +7 -5
- package/locale/kn.json.d.ts +4 -0
- package/locale/ko/package.json +7 -5
- package/locale/ko.json +0 -11
- package/locale/ko.json.d.ts +4 -0
- package/locale/ko.json.js +0 -11
- package/locale/kok/package.json +7 -5
- package/locale/kok.json.d.ts +4 -0
- package/locale/ksh/package.json +7 -5
- package/locale/ksh.json.d.ts +4 -0
- package/locale/ku/package.json +7 -5
- package/locale/ku.json.d.ts +4 -0
- package/locale/ky/package.json +7 -5
- package/locale/ky.json.d.ts +4 -0
- package/locale/lb/package.json +7 -5
- package/locale/lb.json.d.ts +4 -0
- package/locale/lkt/package.json +7 -5
- package/locale/lkt.json.d.ts +4 -0
- package/locale/lo/package.json +7 -5
- package/locale/lo.json.d.ts +4 -0
- package/locale/lt/package.json +7 -5
- package/locale/lt.json.d.ts +4 -0
- package/locale/lv/package.json +7 -5
- package/locale/lv.json.d.ts +4 -0
- package/locale/mk/package.json +7 -5
- package/locale/mk.json.d.ts +4 -0
- package/locale/ml/package.json +7 -5
- package/locale/ml.json.d.ts +4 -0
- package/locale/mn/package.json +7 -5
- package/locale/mn.json.d.ts +4 -0
- package/locale/mni/package.json +7 -5
- package/locale/mni.json.d.ts +4 -0
- package/locale/mr/package.json +7 -5
- package/locale/mr.json.d.ts +4 -0
- package/locale/ms/package.json +7 -5
- package/locale/ms.json.d.ts +4 -0
- package/locale/mt/package.json +7 -5
- package/locale/mt.json.d.ts +4 -0
- package/locale/my/package.json +7 -5
- package/locale/my.json.d.ts +4 -0
- package/locale/mzn/package.json +7 -5
- package/locale/mzn.json.d.ts +4 -0
- package/locale/nb/package.json +7 -5
- package/locale/nb.json.d.ts +4 -0
- package/locale/ne/package.json +7 -5
- package/locale/ne.json.d.ts +4 -0
- package/locale/nl/package.json +7 -5
- package/locale/nl.json.d.ts +4 -0
- package/locale/nn/package.json +7 -5
- package/locale/nn.json.d.ts +4 -0
- package/locale/no/package.json +7 -5
- package/locale/no.json.d.ts +4 -0
- package/locale/or/package.json +7 -5
- package/locale/or.json.d.ts +4 -0
- package/locale/pa/package.json +7 -5
- package/locale/pa.json.d.ts +4 -0
- package/locale/pcm/package.json +7 -5
- package/locale/pcm.json.d.ts +4 -0
- package/locale/pl/package.json +7 -5
- package/locale/pl.json.d.ts +4 -0
- package/locale/ps/package.json +7 -5
- package/locale/ps-PK/package.json +7 -5
- package/locale/ps-PK.json.d.ts +4 -0
- package/locale/ps.json.d.ts +4 -0
- package/locale/pt/package.json +7 -5
- package/locale/pt-AO/package.json +7 -5
- package/locale/pt-AO.json.d.ts +4 -0
- package/locale/pt-CH/package.json +7 -5
- package/locale/pt-CH.json.d.ts +4 -0
- package/locale/pt-CV/package.json +7 -5
- package/locale/pt-CV.json.d.ts +4 -0
- package/locale/pt-GQ/package.json +7 -5
- package/locale/pt-GQ.json.d.ts +4 -0
- package/locale/pt-GW/package.json +7 -5
- package/locale/pt-GW.json.d.ts +4 -0
- package/locale/pt-LU/package.json +7 -5
- package/locale/pt-LU.json.d.ts +4 -0
- package/locale/pt-MO/package.json +7 -5
- package/locale/pt-MO.json.d.ts +4 -0
- package/locale/pt-MZ/package.json +7 -5
- package/locale/pt-MZ.json.d.ts +4 -0
- package/locale/pt-PT/package.json +7 -5
- package/locale/pt-PT.json.d.ts +4 -0
- package/locale/pt-ST/package.json +7 -5
- package/locale/pt-ST.json.d.ts +4 -0
- package/locale/pt-TL/package.json +7 -5
- package/locale/pt-TL.json.d.ts +4 -0
- package/locale/pt.json.d.ts +4 -0
- package/locale/qu/package.json +7 -5
- package/locale/qu.json.d.ts +4 -0
- package/locale/rm/package.json +7 -5
- package/locale/rm.json.d.ts +4 -0
- package/locale/ro/package.json +7 -5
- package/locale/ro.json.d.ts +4 -0
- package/locale/ru/package.json +7 -5
- package/locale/ru.json +20 -29
- package/locale/ru.json.d.ts +4 -0
- package/locale/ru.json.js +20 -29
- package/locale/sah/package.json +7 -5
- package/locale/sah.json.d.ts +4 -0
- package/locale/sc/package.json +7 -5
- package/locale/sc.json.d.ts +4 -0
- package/locale/sd/package.json +7 -5
- package/locale/sd.json.d.ts +4 -0
- package/locale/se/package.json +7 -5
- package/locale/se-FI/package.json +7 -5
- package/locale/se-FI.json.d.ts +4 -0
- package/locale/se.json.d.ts +4 -0
- package/locale/si/package.json +7 -5
- package/locale/si.json.d.ts +4 -0
- package/locale/sk/package.json +7 -5
- package/locale/sk.json.d.ts +4 -0
- package/locale/sl/package.json +7 -5
- package/locale/sl.json.d.ts +4 -0
- package/locale/so/package.json +7 -5
- package/locale/so.json.d.ts +4 -0
- package/locale/sq/package.json +7 -5
- package/locale/sq.json.d.ts +4 -0
- package/locale/sr/package.json +7 -5
- package/locale/sr-Cyrl-BA/package.json +7 -5
- package/locale/sr-Cyrl-BA.json.d.ts +4 -0
- package/locale/sr-Latn/package.json +7 -5
- package/locale/sr-Latn-BA/package.json +7 -5
- package/locale/sr-Latn-BA.json.d.ts +4 -0
- package/locale/sr-Latn.json.d.ts +4 -0
- package/locale/sr.json.d.ts +4 -0
- package/locale/su/package.json +7 -5
- package/locale/su.json.d.ts +4 -0
- package/locale/sv/package.json +7 -5
- package/locale/sv.json.d.ts +4 -0
- package/locale/sw/package.json +7 -5
- package/locale/sw.json.d.ts +4 -0
- package/locale/ta/package.json +7 -5
- package/locale/ta.json.d.ts +4 -0
- package/locale/te/package.json +7 -5
- package/locale/te.json.d.ts +4 -0
- package/locale/tg/package.json +7 -5
- package/locale/tg.json.d.ts +4 -0
- package/locale/th/package.json +7 -5
- package/locale/th.json.d.ts +4 -0
- package/locale/ti/package.json +7 -5
- package/locale/ti.json.d.ts +4 -0
- package/locale/tk/package.json +7 -5
- package/locale/tk.json.d.ts +4 -0
- package/locale/to/package.json +7 -5
- package/locale/to.json.d.ts +4 -0
- package/locale/tr/package.json +7 -5
- package/locale/tr.json.d.ts +4 -0
- package/locale/tt/package.json +7 -5
- package/locale/tt.json.d.ts +4 -0
- package/locale/ug/package.json +7 -5
- package/locale/ug.json.d.ts +4 -0
- package/locale/uk/package.json +7 -5
- package/locale/uk.json.d.ts +4 -0
- package/locale/ur/package.json +7 -5
- package/locale/ur-IN/package.json +7 -5
- package/locale/ur-IN.json.d.ts +4 -0
- package/locale/ur.json.d.ts +4 -0
- package/locale/uz/package.json +7 -5
- package/locale/uz-Cyrl/package.json +7 -5
- package/locale/uz-Cyrl.json.d.ts +4 -0
- package/locale/uz.json.d.ts +4 -0
- package/locale/vi/package.json +7 -5
- package/locale/vi.json.d.ts +4 -0
- package/locale/wae/package.json +7 -5
- package/locale/wae.json.d.ts +4 -0
- package/locale/wo/package.json +7 -5
- package/locale/wo.json.d.ts +4 -0
- package/locale/yi/package.json +7 -5
- package/locale/yi.json.d.ts +4 -0
- package/locale/yo/package.json +7 -5
- package/locale/yo-BJ/package.json +7 -5
- package/locale/yo-BJ.json.d.ts +4 -0
- package/locale/yo.json.d.ts +4 -0
- package/locale/yrl/package.json +7 -5
- package/locale/yrl.json.d.ts +4 -0
- package/locale/yue/package.json +7 -5
- package/locale/yue-Hans/package.json +7 -5
- package/locale/yue-Hans.json.d.ts +4 -0
- package/locale/yue.json.d.ts +4 -0
- package/locale/zh/package.json +7 -5
- package/locale/zh-Hans-HK/package.json +7 -5
- package/locale/zh-Hans-HK.json.d.ts +4 -0
- package/locale/zh-Hans-MO/package.json +7 -5
- package/locale/zh-Hans-MO.json.d.ts +4 -0
- package/locale/zh-Hans-SG/package.json +7 -5
- package/locale/zh-Hans-SG.json.d.ts +4 -0
- package/locale/zh-Hant/package.json +7 -5
- package/locale/zh-Hant-HK/package.json +7 -5
- package/locale/zh-Hant-HK.json.d.ts +4 -0
- package/locale/zh-Hant-MO/package.json +7 -5
- package/locale/zh-Hant-MO.json.d.ts +4 -0
- package/locale/zh-Hant.json.d.ts +4 -0
- package/locale/zh.json.d.ts +4 -0
- package/locale/zu/package.json +7 -5
- package/locale/zu.json.d.ts +4 -0
- package/modules/TimeAgo.js +4 -0
- package/modules/TimeAgo.js.map +1 -1
- package/package.json +2 -2
- package/locale/af/index.cjs +0 -3
- package/locale/af/index.cjs.js +0 -3
- package/locale/af/index.js +0 -1
- package/locale/am/index.cjs +0 -3
- package/locale/am/index.cjs.js +0 -3
- package/locale/am/index.js +0 -1
- package/locale/ar/index.cjs +0 -3
- package/locale/ar/index.cjs.js +0 -3
- package/locale/ar/index.js +0 -1
- package/locale/ar-AE/index.cjs +0 -3
- package/locale/ar-AE/index.cjs.js +0 -3
- package/locale/ar-AE/index.js +0 -1
- package/locale/as/index.cjs +0 -3
- package/locale/as/index.cjs.js +0 -3
- package/locale/as/index.js +0 -1
- package/locale/ast/index.cjs +0 -3
- package/locale/ast/index.cjs.js +0 -3
- package/locale/ast/index.js +0 -1
- package/locale/az/index.cjs +0 -3
- package/locale/az/index.cjs.js +0 -3
- package/locale/az/index.js +0 -1
- package/locale/be/index.cjs +0 -3
- package/locale/be/index.cjs.js +0 -3
- package/locale/be/index.js +0 -1
- package/locale/bg/index.cjs +0 -3
- package/locale/bg/index.cjs.js +0 -3
- package/locale/bg/index.js +0 -1
- package/locale/bn/index.cjs +0 -3
- package/locale/bn/index.cjs.js +0 -3
- package/locale/bn/index.js +0 -1
- package/locale/br/index.cjs +0 -3
- package/locale/br/index.cjs.js +0 -3
- package/locale/br/index.js +0 -1
- package/locale/brx/index.cjs +0 -3
- package/locale/brx/index.cjs.js +0 -3
- package/locale/brx/index.js +0 -1
- package/locale/bs/index.cjs +0 -3
- package/locale/bs/index.cjs.js +0 -3
- package/locale/bs/index.js +0 -1
- package/locale/bs-Cyrl/index.cjs +0 -3
- package/locale/bs-Cyrl/index.cjs.js +0 -3
- package/locale/bs-Cyrl/index.js +0 -1
- package/locale/ca/index.cjs +0 -3
- package/locale/ca/index.cjs.js +0 -3
- package/locale/ca/index.js +0 -1
- package/locale/ccp/index.cjs +0 -3
- package/locale/ccp/index.cjs.js +0 -3
- package/locale/ccp/index.js +0 -1
- package/locale/ce/index.cjs +0 -3
- package/locale/ce/index.cjs.js +0 -3
- package/locale/ce/index.js +0 -1
- package/locale/ceb/index.cjs +0 -3
- package/locale/ceb/index.cjs.js +0 -3
- package/locale/ceb/index.js +0 -1
- package/locale/chr/index.cjs +0 -3
- package/locale/chr/index.cjs.js +0 -3
- package/locale/chr/index.js +0 -1
- package/locale/cs/index.cjs +0 -3
- package/locale/cs/index.cjs.js +0 -3
- package/locale/cs/index.js +0 -1
- package/locale/cy/index.cjs +0 -3
- package/locale/cy/index.cjs.js +0 -3
- package/locale/cy/index.js +0 -1
- package/locale/da/index.cjs +0 -3
- package/locale/da/index.cjs.js +0 -3
- package/locale/da/index.js +0 -1
- package/locale/de/index.cjs +0 -3
- package/locale/de/index.cjs.js +0 -3
- package/locale/de/index.js +0 -1
- package/locale/dsb/index.cjs +0 -3
- package/locale/dsb/index.cjs.js +0 -3
- package/locale/dsb/index.js +0 -1
- package/locale/dz/index.cjs +0 -3
- package/locale/dz/index.cjs.js +0 -3
- package/locale/dz/index.js +0 -1
- package/locale/ee/index.cjs +0 -3
- package/locale/ee/index.cjs.js +0 -3
- package/locale/ee/index.js +0 -1
- package/locale/el/index.cjs +0 -3
- package/locale/el/index.cjs.js +0 -3
- package/locale/el/index.js +0 -1
- package/locale/en/index.cjs +0 -3
- package/locale/en/index.cjs.js +0 -3
- package/locale/en/index.js +0 -1
- package/locale/en-001/index.cjs +0 -3
- package/locale/en-001/index.cjs.js +0 -3
- package/locale/en-001/index.js +0 -1
- package/locale/en-150/index.cjs +0 -3
- package/locale/en-150/index.cjs.js +0 -3
- package/locale/en-150/index.js +0 -1
- package/locale/en-AG/index.cjs +0 -3
- package/locale/en-AG/index.cjs.js +0 -3
- package/locale/en-AG/index.js +0 -1
- package/locale/en-AI/index.cjs +0 -3
- package/locale/en-AI/index.cjs.js +0 -3
- package/locale/en-AI/index.js +0 -1
- package/locale/en-AT/index.cjs +0 -3
- package/locale/en-AT/index.cjs.js +0 -3
- package/locale/en-AT/index.js +0 -1
- package/locale/en-AU/index.cjs +0 -3
- package/locale/en-AU/index.cjs.js +0 -3
- package/locale/en-AU/index.js +0 -1
- package/locale/en-BB/index.cjs +0 -3
- package/locale/en-BB/index.cjs.js +0 -3
- package/locale/en-BB/index.js +0 -1
- package/locale/en-BE/index.cjs +0 -3
- package/locale/en-BE/index.cjs.js +0 -3
- package/locale/en-BE/index.js +0 -1
- package/locale/en-BM/index.cjs +0 -3
- package/locale/en-BM/index.cjs.js +0 -3
- package/locale/en-BM/index.js +0 -1
- package/locale/en-BS/index.cjs +0 -3
- package/locale/en-BS/index.cjs.js +0 -3
- package/locale/en-BS/index.js +0 -1
- package/locale/en-BW/index.cjs +0 -3
- package/locale/en-BW/index.cjs.js +0 -3
- package/locale/en-BW/index.js +0 -1
- package/locale/en-BZ/index.cjs +0 -3
- package/locale/en-BZ/index.cjs.js +0 -3
- package/locale/en-BZ/index.js +0 -1
- package/locale/en-CA/index.cjs +0 -3
- package/locale/en-CA/index.cjs.js +0 -3
- package/locale/en-CA/index.js +0 -1
- package/locale/en-CC/index.cjs +0 -3
- package/locale/en-CC/index.cjs.js +0 -3
- package/locale/en-CC/index.js +0 -1
- package/locale/en-CH/index.cjs +0 -3
- package/locale/en-CH/index.cjs.js +0 -3
- package/locale/en-CH/index.js +0 -1
- package/locale/en-CK/index.cjs +0 -3
- package/locale/en-CK/index.cjs.js +0 -3
- package/locale/en-CK/index.js +0 -1
- package/locale/en-CM/index.cjs +0 -3
- package/locale/en-CM/index.cjs.js +0 -3
- package/locale/en-CM/index.js +0 -1
- package/locale/en-CX/index.cjs +0 -3
- package/locale/en-CX/index.cjs.js +0 -3
- package/locale/en-CX/index.js +0 -1
- package/locale/en-CY/index.cjs +0 -3
- package/locale/en-CY/index.cjs.js +0 -3
- package/locale/en-CY/index.js +0 -1
- package/locale/en-DE/index.cjs +0 -3
- package/locale/en-DE/index.cjs.js +0 -3
- package/locale/en-DE/index.js +0 -1
- package/locale/en-DG/index.cjs +0 -3
- package/locale/en-DG/index.cjs.js +0 -3
- package/locale/en-DG/index.js +0 -1
- package/locale/en-DK/index.cjs +0 -3
- package/locale/en-DK/index.cjs.js +0 -3
- package/locale/en-DK/index.js +0 -1
- package/locale/en-DM/index.cjs +0 -3
- package/locale/en-DM/index.cjs.js +0 -3
- package/locale/en-DM/index.js +0 -1
- package/locale/en-ER/index.cjs +0 -3
- package/locale/en-ER/index.cjs.js +0 -3
- package/locale/en-ER/index.js +0 -1
- package/locale/en-FI/index.cjs +0 -3
- package/locale/en-FI/index.cjs.js +0 -3
- package/locale/en-FI/index.js +0 -1
- package/locale/en-FJ/index.cjs +0 -3
- package/locale/en-FJ/index.cjs.js +0 -3
- package/locale/en-FJ/index.js +0 -1
- package/locale/en-FK/index.cjs +0 -3
- package/locale/en-FK/index.cjs.js +0 -3
- package/locale/en-FK/index.js +0 -1
- package/locale/en-FM/index.cjs +0 -3
- package/locale/en-FM/index.cjs.js +0 -3
- package/locale/en-FM/index.js +0 -1
- package/locale/en-GB/index.cjs +0 -3
- package/locale/en-GB/index.cjs.js +0 -3
- package/locale/en-GB/index.js +0 -1
- package/locale/en-GD/index.cjs +0 -3
- package/locale/en-GD/index.cjs.js +0 -3
- package/locale/en-GD/index.js +0 -1
- package/locale/en-GG/index.cjs +0 -3
- package/locale/en-GG/index.cjs.js +0 -3
- package/locale/en-GG/index.js +0 -1
- package/locale/en-GH/index.cjs +0 -3
- package/locale/en-GH/index.cjs.js +0 -3
- package/locale/en-GH/index.js +0 -1
- package/locale/en-GI/index.cjs +0 -3
- package/locale/en-GI/index.cjs.js +0 -3
- package/locale/en-GI/index.js +0 -1
- package/locale/en-GM/index.cjs +0 -3
- package/locale/en-GM/index.cjs.js +0 -3
- package/locale/en-GM/index.js +0 -1
- package/locale/en-GY/index.cjs +0 -3
- package/locale/en-GY/index.cjs.js +0 -3
- package/locale/en-GY/index.js +0 -1
- package/locale/en-HK/index.cjs +0 -3
- package/locale/en-HK/index.cjs.js +0 -3
- package/locale/en-HK/index.js +0 -1
- package/locale/en-IE/index.cjs +0 -3
- package/locale/en-IE/index.cjs.js +0 -3
- package/locale/en-IE/index.js +0 -1
- package/locale/en-IL/index.cjs +0 -3
- package/locale/en-IL/index.cjs.js +0 -3
- package/locale/en-IL/index.js +0 -1
- package/locale/en-IM/index.cjs +0 -3
- package/locale/en-IM/index.cjs.js +0 -3
- package/locale/en-IM/index.js +0 -1
- package/locale/en-IN/index.cjs +0 -3
- package/locale/en-IN/index.cjs.js +0 -3
- package/locale/en-IN/index.js +0 -1
- package/locale/en-IO/index.cjs +0 -3
- package/locale/en-IO/index.cjs.js +0 -3
- package/locale/en-IO/index.js +0 -1
- package/locale/en-JE/index.cjs +0 -3
- package/locale/en-JE/index.cjs.js +0 -3
- package/locale/en-JE/index.js +0 -1
- package/locale/en-JM/index.cjs +0 -3
- package/locale/en-JM/index.cjs.js +0 -3
- package/locale/en-JM/index.js +0 -1
- package/locale/en-KE/index.cjs +0 -3
- package/locale/en-KE/index.cjs.js +0 -3
- package/locale/en-KE/index.js +0 -1
- package/locale/en-KI/index.cjs +0 -3
- package/locale/en-KI/index.cjs.js +0 -3
- package/locale/en-KI/index.js +0 -1
- package/locale/en-KN/index.cjs +0 -3
- package/locale/en-KN/index.cjs.js +0 -3
- package/locale/en-KN/index.js +0 -1
- package/locale/en-KY/index.cjs +0 -3
- package/locale/en-KY/index.cjs.js +0 -3
- package/locale/en-KY/index.js +0 -1
- package/locale/en-LC/index.cjs +0 -3
- package/locale/en-LC/index.cjs.js +0 -3
- package/locale/en-LC/index.js +0 -1
- package/locale/en-LR/index.cjs +0 -3
- package/locale/en-LR/index.cjs.js +0 -3
- package/locale/en-LR/index.js +0 -1
- package/locale/en-LS/index.cjs +0 -3
- package/locale/en-LS/index.cjs.js +0 -3
- package/locale/en-LS/index.js +0 -1
- package/locale/en-MG/index.cjs +0 -3
- package/locale/en-MG/index.cjs.js +0 -3
- package/locale/en-MG/index.js +0 -1
- package/locale/en-MO/index.cjs +0 -3
- package/locale/en-MO/index.cjs.js +0 -3
- package/locale/en-MO/index.js +0 -1
- package/locale/en-MS/index.cjs +0 -3
- package/locale/en-MS/index.cjs.js +0 -3
- package/locale/en-MS/index.js +0 -1
- package/locale/en-MT/index.cjs +0 -3
- package/locale/en-MT/index.cjs.js +0 -3
- package/locale/en-MT/index.js +0 -1
- package/locale/en-MU/index.cjs +0 -3
- package/locale/en-MU/index.cjs.js +0 -3
- package/locale/en-MU/index.js +0 -1
- package/locale/en-MV/index.cjs +0 -3
- package/locale/en-MV/index.cjs.js +0 -3
- package/locale/en-MV/index.js +0 -1
- package/locale/en-MW/index.cjs +0 -3
- package/locale/en-MW/index.cjs.js +0 -3
- package/locale/en-MW/index.js +0 -1
- package/locale/en-MY/index.cjs +0 -3
- package/locale/en-MY/index.cjs.js +0 -3
- package/locale/en-MY/index.js +0 -1
- package/locale/en-NA/index.cjs +0 -3
- package/locale/en-NA/index.cjs.js +0 -3
- package/locale/en-NA/index.js +0 -1
- package/locale/en-NF/index.cjs +0 -3
- package/locale/en-NF/index.cjs.js +0 -3
- package/locale/en-NF/index.js +0 -1
- package/locale/en-NG/index.cjs +0 -3
- package/locale/en-NG/index.cjs.js +0 -3
- package/locale/en-NG/index.js +0 -1
- package/locale/en-NL/index.cjs +0 -3
- package/locale/en-NL/index.cjs.js +0 -3
- package/locale/en-NL/index.js +0 -1
- package/locale/en-NR/index.cjs +0 -3
- package/locale/en-NR/index.cjs.js +0 -3
- package/locale/en-NR/index.js +0 -1
- package/locale/en-NU/index.cjs +0 -3
- package/locale/en-NU/index.cjs.js +0 -3
- package/locale/en-NU/index.js +0 -1
- package/locale/en-NZ/index.cjs +0 -3
- package/locale/en-NZ/index.cjs.js +0 -3
- package/locale/en-NZ/index.js +0 -1
- package/locale/en-PG/index.cjs +0 -3
- package/locale/en-PG/index.cjs.js +0 -3
- package/locale/en-PG/index.js +0 -1
- package/locale/en-PK/index.cjs +0 -3
- package/locale/en-PK/index.cjs.js +0 -3
- package/locale/en-PK/index.js +0 -1
- package/locale/en-PN/index.cjs +0 -3
- package/locale/en-PN/index.cjs.js +0 -3
- package/locale/en-PN/index.js +0 -1
- package/locale/en-PW/index.cjs +0 -3
- package/locale/en-PW/index.cjs.js +0 -3
- package/locale/en-PW/index.js +0 -1
- package/locale/en-RW/index.cjs +0 -3
- package/locale/en-RW/index.cjs.js +0 -3
- package/locale/en-RW/index.js +0 -1
- package/locale/en-SB/index.cjs +0 -3
- package/locale/en-SB/index.cjs.js +0 -3
- package/locale/en-SB/index.js +0 -1
- package/locale/en-SC/index.cjs +0 -3
- package/locale/en-SC/index.cjs.js +0 -3
- package/locale/en-SC/index.js +0 -1
- package/locale/en-SD/index.cjs +0 -3
- package/locale/en-SD/index.cjs.js +0 -3
- package/locale/en-SD/index.js +0 -1
- package/locale/en-SE/index.cjs +0 -3
- package/locale/en-SE/index.cjs.js +0 -3
- package/locale/en-SE/index.js +0 -1
- package/locale/en-SG/index.cjs +0 -3
- package/locale/en-SG/index.cjs.js +0 -3
- package/locale/en-SG/index.js +0 -1
- package/locale/en-SH/index.cjs +0 -3
- package/locale/en-SH/index.cjs.js +0 -3
- package/locale/en-SH/index.js +0 -1
- package/locale/en-SI/index.cjs +0 -3
- package/locale/en-SI/index.cjs.js +0 -3
- package/locale/en-SI/index.js +0 -1
- package/locale/en-SL/index.cjs +0 -3
- package/locale/en-SL/index.cjs.js +0 -3
- package/locale/en-SL/index.js +0 -1
- package/locale/en-SS/index.cjs +0 -3
- package/locale/en-SS/index.cjs.js +0 -3
- package/locale/en-SS/index.js +0 -1
- package/locale/en-SX/index.cjs +0 -3
- package/locale/en-SX/index.cjs.js +0 -3
- package/locale/en-SX/index.js +0 -1
- package/locale/en-SZ/index.cjs +0 -3
- package/locale/en-SZ/index.cjs.js +0 -3
- package/locale/en-SZ/index.js +0 -1
- package/locale/en-TC/index.cjs +0 -3
- package/locale/en-TC/index.cjs.js +0 -3
- package/locale/en-TC/index.js +0 -1
- package/locale/en-TK/index.cjs +0 -3
- package/locale/en-TK/index.cjs.js +0 -3
- package/locale/en-TK/index.js +0 -1
- package/locale/en-TO/index.cjs +0 -3
- package/locale/en-TO/index.cjs.js +0 -3
- package/locale/en-TO/index.js +0 -1
- package/locale/en-TT/index.cjs +0 -3
- package/locale/en-TT/index.cjs.js +0 -3
- package/locale/en-TT/index.js +0 -1
- package/locale/en-TV/index.cjs +0 -3
- package/locale/en-TV/index.cjs.js +0 -3
- package/locale/en-TV/index.js +0 -1
- package/locale/en-TZ/index.cjs +0 -3
- package/locale/en-TZ/index.cjs.js +0 -3
- package/locale/en-TZ/index.js +0 -1
- package/locale/en-UG/index.cjs +0 -3
- package/locale/en-UG/index.cjs.js +0 -3
- package/locale/en-UG/index.js +0 -1
- package/locale/en-VC/index.cjs +0 -3
- package/locale/en-VC/index.cjs.js +0 -3
- package/locale/en-VC/index.js +0 -1
- package/locale/en-VG/index.cjs +0 -3
- package/locale/en-VG/index.cjs.js +0 -3
- package/locale/en-VG/index.js +0 -1
- package/locale/en-VU/index.cjs +0 -3
- package/locale/en-VU/index.cjs.js +0 -3
- package/locale/en-VU/index.js +0 -1
- package/locale/en-WS/index.cjs +0 -3
- package/locale/en-WS/index.cjs.js +0 -3
- package/locale/en-WS/index.js +0 -1
- package/locale/en-ZA/index.cjs +0 -3
- package/locale/en-ZA/index.cjs.js +0 -3
- package/locale/en-ZA/index.js +0 -1
- package/locale/en-ZM/index.cjs +0 -3
- package/locale/en-ZM/index.cjs.js +0 -3
- package/locale/en-ZM/index.js +0 -1
- package/locale/en-ZW/index.cjs +0 -3
- package/locale/en-ZW/index.cjs.js +0 -3
- package/locale/en-ZW/index.js +0 -1
- package/locale/es/index.cjs +0 -3
- package/locale/es/index.cjs.js +0 -3
- package/locale/es/index.js +0 -1
- package/locale/es-419/index.cjs +0 -3
- package/locale/es-419/index.cjs.js +0 -3
- package/locale/es-419/index.js +0 -1
- package/locale/es-AR/index.cjs +0 -3
- package/locale/es-AR/index.cjs.js +0 -3
- package/locale/es-AR/index.js +0 -1
- package/locale/es-BO/index.cjs +0 -3
- package/locale/es-BO/index.cjs.js +0 -3
- package/locale/es-BO/index.js +0 -1
- package/locale/es-BR/index.cjs +0 -3
- package/locale/es-BR/index.cjs.js +0 -3
- package/locale/es-BR/index.js +0 -1
- package/locale/es-BZ/index.cjs +0 -3
- package/locale/es-BZ/index.cjs.js +0 -3
- package/locale/es-BZ/index.js +0 -1
- package/locale/es-CL/index.cjs +0 -3
- package/locale/es-CL/index.cjs.js +0 -3
- package/locale/es-CL/index.js +0 -1
- package/locale/es-CO/index.cjs +0 -3
- package/locale/es-CO/index.cjs.js +0 -3
- package/locale/es-CO/index.js +0 -1
- package/locale/es-CR/index.cjs +0 -3
- package/locale/es-CR/index.cjs.js +0 -3
- package/locale/es-CR/index.js +0 -1
- package/locale/es-CU/index.cjs +0 -3
- package/locale/es-CU/index.cjs.js +0 -3
- package/locale/es-CU/index.js +0 -1
- package/locale/es-DO/index.cjs +0 -3
- package/locale/es-DO/index.cjs.js +0 -3
- package/locale/es-DO/index.js +0 -1
- package/locale/es-EC/index.cjs +0 -3
- package/locale/es-EC/index.cjs.js +0 -3
- package/locale/es-EC/index.js +0 -1
- package/locale/es-GT/index.cjs +0 -3
- package/locale/es-GT/index.cjs.js +0 -3
- package/locale/es-GT/index.js +0 -1
- package/locale/es-HN/index.cjs +0 -3
- package/locale/es-HN/index.cjs.js +0 -3
- package/locale/es-HN/index.js +0 -1
- package/locale/es-MX/index.cjs +0 -3
- package/locale/es-MX/index.cjs.js +0 -3
- package/locale/es-MX/index.js +0 -1
- package/locale/es-NI/index.cjs +0 -3
- package/locale/es-NI/index.cjs.js +0 -3
- package/locale/es-NI/index.js +0 -1
- package/locale/es-PA/index.cjs +0 -3
- package/locale/es-PA/index.cjs.js +0 -3
- package/locale/es-PA/index.js +0 -1
- package/locale/es-PE/index.cjs +0 -3
- package/locale/es-PE/index.cjs.js +0 -3
- package/locale/es-PE/index.js +0 -1
- package/locale/es-PR/index.cjs +0 -3
- package/locale/es-PR/index.cjs.js +0 -3
- package/locale/es-PR/index.js +0 -1
- package/locale/es-PY/index.cjs +0 -3
- package/locale/es-PY/index.cjs.js +0 -3
- package/locale/es-PY/index.js +0 -1
- package/locale/es-SV/index.cjs +0 -3
- package/locale/es-SV/index.cjs.js +0 -3
- package/locale/es-SV/index.js +0 -1
- package/locale/es-US/index.cjs +0 -3
- package/locale/es-US/index.cjs.js +0 -3
- package/locale/es-US/index.js +0 -1
- package/locale/es-UY/index.cjs +0 -3
- package/locale/es-UY/index.cjs.js +0 -3
- package/locale/es-UY/index.js +0 -1
- package/locale/es-VE/index.cjs +0 -3
- package/locale/es-VE/index.cjs.js +0 -3
- package/locale/es-VE/index.js +0 -1
- package/locale/et/index.cjs +0 -3
- package/locale/et/index.cjs.js +0 -3
- package/locale/et/index.js +0 -1
- package/locale/eu/index.cjs +0 -3
- package/locale/eu/index.cjs.js +0 -3
- package/locale/eu/index.js +0 -1
- package/locale/fa/index.cjs +0 -3
- package/locale/fa/index.cjs.js +0 -3
- package/locale/fa/index.js +0 -1
- package/locale/ff-Adlm/index.cjs +0 -3
- package/locale/ff-Adlm/index.cjs.js +0 -3
- package/locale/ff-Adlm/index.js +0 -1
- package/locale/fi/index.cjs +0 -3
- package/locale/fi/index.cjs.js +0 -3
- package/locale/fi/index.js +0 -1
- package/locale/fil/index.cjs +0 -3
- package/locale/fil/index.cjs.js +0 -3
- package/locale/fil/index.js +0 -1
- package/locale/fo/index.cjs +0 -3
- package/locale/fo/index.cjs.js +0 -3
- package/locale/fo/index.js +0 -1
- package/locale/fr/index.cjs +0 -3
- package/locale/fr/index.cjs.js +0 -3
- package/locale/fr/index.js +0 -1
- package/locale/fr-CA/index.cjs +0 -3
- package/locale/fr-CA/index.cjs.js +0 -3
- package/locale/fr-CA/index.js +0 -1
- package/locale/fur/index.cjs +0 -3
- package/locale/fur/index.cjs.js +0 -3
- package/locale/fur/index.js +0 -1
- package/locale/fy/index.cjs +0 -3
- package/locale/fy/index.cjs.js +0 -3
- package/locale/fy/index.js +0 -1
- package/locale/ga/index.cjs +0 -3
- package/locale/ga/index.cjs.js +0 -3
- package/locale/ga/index.js +0 -1
- package/locale/gd/index.cjs +0 -3
- package/locale/gd/index.cjs.js +0 -3
- package/locale/gd/index.js +0 -1
- package/locale/gl/index.cjs +0 -3
- package/locale/gl/index.cjs.js +0 -3
- package/locale/gl/index.js +0 -1
- package/locale/gu/index.cjs +0 -3
- package/locale/gu/index.cjs.js +0 -3
- package/locale/gu/index.js +0 -1
- package/locale/ha/index.cjs +0 -3
- package/locale/ha/index.cjs.js +0 -3
- package/locale/ha/index.js +0 -1
- package/locale/he/index.cjs +0 -3
- package/locale/he/index.cjs.js +0 -3
- package/locale/he/index.js +0 -1
- package/locale/hi/index.cjs +0 -3
- package/locale/hi/index.cjs.js +0 -3
- package/locale/hi/index.js +0 -1
- package/locale/hi-Latn/index.cjs +0 -3
- package/locale/hi-Latn/index.cjs.js +0 -3
- package/locale/hi-Latn/index.js +0 -1
- package/locale/hr/index.cjs +0 -3
- package/locale/hr/index.cjs.js +0 -3
- package/locale/hr/index.js +0 -1
- package/locale/hsb/index.cjs +0 -3
- package/locale/hsb/index.cjs.js +0 -3
- package/locale/hsb/index.js +0 -1
- package/locale/hu/index.cjs +0 -3
- package/locale/hu/index.cjs.js +0 -3
- package/locale/hu/index.js +0 -1
- package/locale/hy/index.cjs +0 -3
- package/locale/hy/index.cjs.js +0 -3
- package/locale/hy/index.js +0 -1
- package/locale/ia/index.cjs +0 -3
- package/locale/ia/index.cjs.js +0 -3
- package/locale/ia/index.js +0 -1
- package/locale/id/index.cjs +0 -3
- package/locale/id/index.cjs.js +0 -3
- package/locale/id/index.js +0 -1
- package/locale/ig/index.cjs +0 -3
- package/locale/ig/index.cjs.js +0 -3
- package/locale/ig/index.js +0 -1
- package/locale/is/index.cjs +0 -3
- package/locale/is/index.cjs.js +0 -3
- package/locale/is/index.js +0 -1
- package/locale/it/index.cjs +0 -3
- package/locale/it/index.cjs.js +0 -3
- package/locale/it/index.js +0 -1
- package/locale/ja/index.cjs +0 -3
- package/locale/ja/index.cjs.js +0 -3
- package/locale/ja/index.js +0 -1
- package/locale/jgo/index.cjs +0 -3
- package/locale/jgo/index.cjs.js +0 -3
- package/locale/jgo/index.js +0 -1
- package/locale/jv/index.cjs +0 -3
- package/locale/jv/index.cjs.js +0 -3
- package/locale/jv/index.js +0 -1
- package/locale/ka/index.cjs +0 -3
- package/locale/ka/index.cjs.js +0 -3
- package/locale/ka/index.js +0 -1
- package/locale/kea/index.cjs +0 -3
- package/locale/kea/index.cjs.js +0 -3
- package/locale/kea/index.js +0 -1
- package/locale/kgp/index.cjs +0 -3
- package/locale/kgp/index.cjs.js +0 -3
- package/locale/kgp/index.js +0 -1
- package/locale/kk/index.cjs +0 -3
- package/locale/kk/index.cjs.js +0 -3
- package/locale/kk/index.js +0 -1
- package/locale/kl/index.cjs +0 -3
- package/locale/kl/index.cjs.js +0 -3
- package/locale/kl/index.js +0 -1
- package/locale/km/index.cjs +0 -3
- package/locale/km/index.cjs.js +0 -3
- package/locale/km/index.js +0 -1
- package/locale/kn/index.cjs +0 -3
- package/locale/kn/index.cjs.js +0 -3
- package/locale/kn/index.js +0 -1
- package/locale/ko/index.cjs +0 -3
- package/locale/ko/index.cjs.js +0 -3
- package/locale/ko/index.js +0 -1
- package/locale/kok/index.cjs +0 -3
- package/locale/kok/index.cjs.js +0 -3
- package/locale/kok/index.js +0 -1
- package/locale/ksh/index.cjs +0 -3
- package/locale/ksh/index.cjs.js +0 -3
- package/locale/ksh/index.js +0 -1
- package/locale/ku/index.cjs +0 -3
- package/locale/ku/index.cjs.js +0 -3
- package/locale/ku/index.js +0 -1
- package/locale/ky/index.cjs +0 -3
- package/locale/ky/index.cjs.js +0 -3
- package/locale/ky/index.js +0 -1
- package/locale/lb/index.cjs +0 -3
- package/locale/lb/index.cjs.js +0 -3
- package/locale/lb/index.js +0 -1
- package/locale/lkt/index.cjs +0 -3
- package/locale/lkt/index.cjs.js +0 -3
- package/locale/lkt/index.js +0 -1
- package/locale/lo/index.cjs +0 -3
- package/locale/lo/index.cjs.js +0 -3
- package/locale/lo/index.js +0 -1
- package/locale/lt/index.cjs +0 -3
- package/locale/lt/index.cjs.js +0 -3
- package/locale/lt/index.js +0 -1
- package/locale/lv/index.cjs +0 -3
- package/locale/lv/index.cjs.js +0 -3
- package/locale/lv/index.js +0 -1
- package/locale/mk/index.cjs +0 -3
- package/locale/mk/index.cjs.js +0 -3
- package/locale/mk/index.js +0 -1
- package/locale/ml/index.cjs +0 -3
- package/locale/ml/index.cjs.js +0 -3
- package/locale/ml/index.js +0 -1
- package/locale/mn/index.cjs +0 -3
- package/locale/mn/index.cjs.js +0 -3
- package/locale/mn/index.js +0 -1
- package/locale/mni/index.cjs +0 -3
- package/locale/mni/index.cjs.js +0 -3
- package/locale/mni/index.js +0 -1
- package/locale/mr/index.cjs +0 -3
- package/locale/mr/index.cjs.js +0 -3
- package/locale/mr/index.js +0 -1
- package/locale/ms/index.cjs +0 -3
- package/locale/ms/index.cjs.js +0 -3
- package/locale/ms/index.js +0 -1
- package/locale/mt/index.cjs +0 -3
- package/locale/mt/index.cjs.js +0 -3
- package/locale/mt/index.js +0 -1
- package/locale/my/index.cjs +0 -3
- package/locale/my/index.cjs.js +0 -3
- package/locale/my/index.js +0 -1
- package/locale/mzn/index.cjs +0 -3
- package/locale/mzn/index.cjs.js +0 -3
- package/locale/mzn/index.js +0 -1
- package/locale/nb/index.cjs +0 -3
- package/locale/nb/index.cjs.js +0 -3
- package/locale/nb/index.js +0 -1
- package/locale/ne/index.cjs +0 -3
- package/locale/ne/index.cjs.js +0 -3
- package/locale/ne/index.js +0 -1
- package/locale/nl/index.cjs +0 -3
- package/locale/nl/index.cjs.js +0 -3
- package/locale/nl/index.js +0 -1
- package/locale/nn/index.cjs +0 -3
- package/locale/nn/index.cjs.js +0 -3
- package/locale/nn/index.js +0 -1
- package/locale/no/index.cjs +0 -3
- package/locale/no/index.cjs.js +0 -3
- package/locale/no/index.js +0 -1
- package/locale/or/index.cjs +0 -3
- package/locale/or/index.cjs.js +0 -3
- package/locale/or/index.js +0 -1
- package/locale/pa/index.cjs +0 -3
- package/locale/pa/index.cjs.js +0 -3
- package/locale/pa/index.js +0 -1
- package/locale/pcm/index.cjs +0 -3
- package/locale/pcm/index.cjs.js +0 -3
- package/locale/pcm/index.js +0 -1
- package/locale/pl/index.cjs +0 -3
- package/locale/pl/index.cjs.js +0 -3
- package/locale/pl/index.js +0 -1
- package/locale/ps/index.cjs +0 -3
- package/locale/ps/index.cjs.js +0 -3
- package/locale/ps/index.js +0 -1
- package/locale/ps-PK/index.cjs +0 -3
- package/locale/ps-PK/index.cjs.js +0 -3
- package/locale/ps-PK/index.js +0 -1
- package/locale/pt/index.cjs +0 -3
- package/locale/pt/index.cjs.js +0 -3
- package/locale/pt/index.js +0 -1
- package/locale/pt-AO/index.cjs +0 -3
- package/locale/pt-AO/index.cjs.js +0 -3
- package/locale/pt-AO/index.js +0 -1
- package/locale/pt-CH/index.cjs +0 -3
- package/locale/pt-CH/index.cjs.js +0 -3
- package/locale/pt-CH/index.js +0 -1
- package/locale/pt-CV/index.cjs +0 -3
- package/locale/pt-CV/index.cjs.js +0 -3
- package/locale/pt-CV/index.js +0 -1
- package/locale/pt-GQ/index.cjs +0 -3
- package/locale/pt-GQ/index.cjs.js +0 -3
- package/locale/pt-GQ/index.js +0 -1
- package/locale/pt-GW/index.cjs +0 -3
- package/locale/pt-GW/index.cjs.js +0 -3
- package/locale/pt-GW/index.js +0 -1
- package/locale/pt-LU/index.cjs +0 -3
- package/locale/pt-LU/index.cjs.js +0 -3
- package/locale/pt-LU/index.js +0 -1
- package/locale/pt-MO/index.cjs +0 -3
- package/locale/pt-MO/index.cjs.js +0 -3
- package/locale/pt-MO/index.js +0 -1
- package/locale/pt-MZ/index.cjs +0 -3
- package/locale/pt-MZ/index.cjs.js +0 -3
- package/locale/pt-MZ/index.js +0 -1
- package/locale/pt-PT/index.cjs +0 -3
- package/locale/pt-PT/index.cjs.js +0 -3
- package/locale/pt-PT/index.js +0 -1
- package/locale/pt-ST/index.cjs +0 -3
- package/locale/pt-ST/index.cjs.js +0 -3
- package/locale/pt-ST/index.js +0 -1
- package/locale/pt-TL/index.cjs +0 -3
- package/locale/pt-TL/index.cjs.js +0 -3
- package/locale/pt-TL/index.js +0 -1
- package/locale/qu/index.cjs +0 -3
- package/locale/qu/index.cjs.js +0 -3
- package/locale/qu/index.js +0 -1
- package/locale/rm/index.cjs +0 -3
- package/locale/rm/index.cjs.js +0 -3
- package/locale/rm/index.js +0 -1
- package/locale/ro/index.cjs +0 -3
- package/locale/ro/index.cjs.js +0 -3
- package/locale/ro/index.js +0 -1
- package/locale/ru/index.cjs +0 -3
- package/locale/ru/index.cjs.js +0 -3
- package/locale/ru/index.js +0 -1
- package/locale/sah/index.cjs +0 -3
- package/locale/sah/index.cjs.js +0 -3
- package/locale/sah/index.js +0 -1
- package/locale/sc/index.cjs +0 -3
- package/locale/sc/index.cjs.js +0 -3
- package/locale/sc/index.js +0 -1
- package/locale/sd/index.cjs +0 -3
- package/locale/sd/index.cjs.js +0 -3
- package/locale/sd/index.js +0 -1
- package/locale/se/index.cjs +0 -3
- package/locale/se/index.cjs.js +0 -3
- package/locale/se/index.js +0 -1
- package/locale/se-FI/index.cjs +0 -3
- package/locale/se-FI/index.cjs.js +0 -3
- package/locale/se-FI/index.js +0 -1
- package/locale/si/index.cjs +0 -3
- package/locale/si/index.cjs.js +0 -3
- package/locale/si/index.js +0 -1
- package/locale/sk/index.cjs +0 -3
- package/locale/sk/index.cjs.js +0 -3
- package/locale/sk/index.js +0 -1
- package/locale/sl/index.cjs +0 -3
- package/locale/sl/index.cjs.js +0 -3
- package/locale/sl/index.js +0 -1
- package/locale/so/index.cjs +0 -3
- package/locale/so/index.cjs.js +0 -3
- package/locale/so/index.js +0 -1
- package/locale/sq/index.cjs +0 -3
- package/locale/sq/index.cjs.js +0 -3
- package/locale/sq/index.js +0 -1
- package/locale/sr/index.cjs +0 -3
- package/locale/sr/index.cjs.js +0 -3
- package/locale/sr/index.js +0 -1
- package/locale/sr-Cyrl-BA/index.cjs +0 -3
- package/locale/sr-Cyrl-BA/index.cjs.js +0 -3
- package/locale/sr-Cyrl-BA/index.js +0 -1
- package/locale/sr-Latn/index.cjs +0 -3
- package/locale/sr-Latn/index.cjs.js +0 -3
- package/locale/sr-Latn/index.js +0 -1
- package/locale/sr-Latn-BA/index.cjs +0 -3
- package/locale/sr-Latn-BA/index.cjs.js +0 -3
- package/locale/sr-Latn-BA/index.js +0 -1
- package/locale/su/index.cjs +0 -3
- package/locale/su/index.cjs.js +0 -3
- package/locale/su/index.js +0 -1
- package/locale/sv/index.cjs +0 -3
- package/locale/sv/index.cjs.js +0 -3
- package/locale/sv/index.js +0 -1
- package/locale/sw/index.cjs +0 -3
- package/locale/sw/index.cjs.js +0 -3
- package/locale/sw/index.js +0 -1
- package/locale/ta/index.cjs +0 -3
- package/locale/ta/index.cjs.js +0 -3
- package/locale/ta/index.js +0 -1
- package/locale/te/index.cjs +0 -3
- package/locale/te/index.cjs.js +0 -3
- package/locale/te/index.js +0 -1
- package/locale/tg/index.cjs +0 -3
- package/locale/tg/index.cjs.js +0 -3
- package/locale/tg/index.js +0 -1
- package/locale/th/index.cjs +0 -3
- package/locale/th/index.cjs.js +0 -3
- package/locale/th/index.js +0 -1
- package/locale/ti/index.cjs +0 -3
- package/locale/ti/index.cjs.js +0 -3
- package/locale/ti/index.js +0 -1
- package/locale/tk/index.cjs +0 -3
- package/locale/tk/index.cjs.js +0 -3
- package/locale/tk/index.js +0 -1
- package/locale/to/index.cjs +0 -3
- package/locale/to/index.cjs.js +0 -3
- package/locale/to/index.js +0 -1
- package/locale/tr/index.cjs +0 -3
- package/locale/tr/index.cjs.js +0 -3
- package/locale/tr/index.js +0 -1
- package/locale/tt/index.cjs +0 -3
- package/locale/tt/index.cjs.js +0 -3
- package/locale/tt/index.js +0 -1
- package/locale/ug/index.cjs +0 -3
- package/locale/ug/index.cjs.js +0 -3
- package/locale/ug/index.js +0 -1
- package/locale/uk/index.cjs +0 -3
- package/locale/uk/index.cjs.js +0 -3
- package/locale/uk/index.js +0 -1
- package/locale/ur/index.cjs +0 -3
- package/locale/ur/index.cjs.js +0 -3
- package/locale/ur/index.js +0 -1
- package/locale/ur-IN/index.cjs +0 -3
- package/locale/ur-IN/index.cjs.js +0 -3
- package/locale/ur-IN/index.js +0 -1
- package/locale/uz/index.cjs +0 -3
- package/locale/uz/index.cjs.js +0 -3
- package/locale/uz/index.js +0 -1
- package/locale/uz-Cyrl/index.cjs +0 -3
- package/locale/uz-Cyrl/index.cjs.js +0 -3
- package/locale/uz-Cyrl/index.js +0 -1
- package/locale/vi/index.cjs +0 -3
- package/locale/vi/index.cjs.js +0 -3
- package/locale/vi/index.js +0 -1
- package/locale/wae/index.cjs +0 -3
- package/locale/wae/index.cjs.js +0 -3
- package/locale/wae/index.js +0 -1
- package/locale/wo/index.cjs +0 -3
- package/locale/wo/index.cjs.js +0 -3
- package/locale/wo/index.js +0 -1
- package/locale/yi/index.cjs +0 -3
- package/locale/yi/index.cjs.js +0 -3
- package/locale/yi/index.js +0 -1
- package/locale/yo/index.cjs +0 -3
- package/locale/yo/index.cjs.js +0 -3
- package/locale/yo/index.js +0 -1
- package/locale/yo-BJ/index.cjs +0 -3
- package/locale/yo-BJ/index.cjs.js +0 -3
- package/locale/yo-BJ/index.js +0 -1
- package/locale/yrl/index.cjs +0 -3
- package/locale/yrl/index.cjs.js +0 -3
- package/locale/yrl/index.js +0 -1
- package/locale/yue/index.cjs +0 -3
- package/locale/yue/index.cjs.js +0 -3
- package/locale/yue/index.js +0 -1
- package/locale/yue-Hans/index.cjs +0 -3
- package/locale/yue-Hans/index.cjs.js +0 -3
- package/locale/yue-Hans/index.js +0 -1
- package/locale/zh/index.cjs +0 -3
- package/locale/zh/index.cjs.js +0 -3
- package/locale/zh/index.js +0 -1
- package/locale/zh-Hans-HK/index.cjs +0 -3
- package/locale/zh-Hans-HK/index.cjs.js +0 -3
- package/locale/zh-Hans-HK/index.js +0 -1
- package/locale/zh-Hans-MO/index.cjs +0 -3
- package/locale/zh-Hans-MO/index.cjs.js +0 -3
- package/locale/zh-Hans-MO/index.js +0 -1
- package/locale/zh-Hans-SG/index.cjs +0 -3
- package/locale/zh-Hans-SG/index.cjs.js +0 -3
- package/locale/zh-Hans-SG/index.js +0 -1
- package/locale/zh-Hant/index.cjs +0 -3
- package/locale/zh-Hant/index.cjs.js +0 -3
- package/locale/zh-Hant/index.js +0 -1
- package/locale/zh-Hant-HK/index.cjs +0 -3
- package/locale/zh-Hant-HK/index.cjs.js +0 -3
- package/locale/zh-Hant-HK/index.js +0 -1
- package/locale/zh-Hant-MO/index.cjs +0 -3
- package/locale/zh-Hant-MO/index.cjs.js +0 -3
- package/locale/zh-Hant-MO/index.js +0 -1
- package/locale/zu/index.cjs +0 -3
- package/locale/zu/index.cjs.js +0 -3
- package/locale/zu/index.js +0 -1
package/commonjs/TimeAgo.js
CHANGED
|
@@ -105,6 +105,10 @@ var TimeAgo = /*#__PURE__*/function () {
|
|
|
105
105
|
/**
|
|
106
106
|
* Formats relative date/time.
|
|
107
107
|
*
|
|
108
|
+
* @param {(number|Date)} input — A `Date` or a javascript timestamp.
|
|
109
|
+
*
|
|
110
|
+
* @param {(string|object)} style — Date/time formatting style. Either one of the built-in style names or a "custom" style definition object having `steps: object[]` and `labels: string[]`.
|
|
111
|
+
*
|
|
108
112
|
* @param {number} [options.now] - Sets the current date timestamp.
|
|
109
113
|
*
|
|
110
114
|
* @param {boolean} [options.future] — Tells how to format value `0`:
|
package/commonjs/TimeAgo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeAgo.js","names":["UNITS","TimeAgo","locales","polyfill","locale","chooseLocale","concat","getDefaultLocale","getLocaleData","Intl","NumberFormat","numberFormat","IntlRelativeTimeFormat","RelativeTimeFormat","IntlPluralRules","PluralRules","RelativeTimeFormatPolyfill","relativeTimeFormatCache","Cache","pluralRulesCache","input","style","options","isStyle","undefined","defaultStyle","getStyleByName","timestamp","getTimestamp","getLabels","flavour","labels","labelsType","now","Date","secondsPassed","future","nowLabel","getNowLabel","custom","date","time","elapsed","units","getTimeIntervalMeasurementUnits","round","getStep","gradation","steps","getNextStep","prevStep","step","nextStep","formattedDate","formatDateForStep","getTimeToNextUpdate","timeToNextUpdate","format","formatAs","unit","value","formatValue","Error","JSON","stringify","amount","Math","abs","getStepDenominator","granularity","getRoundFunction","valueForFormatting","sign","getFormatter","getFormattingRule","replace","formatNumber","formattingRules","pastOrFuture","quantifierRules","quantifier","getPluralRules","select","other","number","String","get","put","map","localeData","_labelsType","defaultLocale","setDefaultLocale","addDefaultLocale","defaultLocaleHasBeenSpecified","console","error","addLocale","addLocaleData","addLabels","name","constructor","isMockedDate","getTime","object","allowedUnits","Object","keys","push","filter","indexOf","nowLabels","longLabels","past","second","current","variable","isStyleObject"],"sources":["../source/TimeAgo.js"],"sourcesContent":["import RelativeTimeFormatPolyfill from 'relative-time-format'\r\n\r\nimport Cache from './cache.js'\r\nimport chooseLocale from './locale.js'\r\nimport isStyleObject from './isStyleObject.js'\r\n\r\nimport getStep from './steps/getStep.js'\r\nimport getStepDenominator from './steps/getStepDenominator.js'\r\nimport getTimeToNextUpdate from './steps/getTimeToNextUpdate.js'\r\n\r\nimport {\r\n\taddLocaleData,\r\n\tgetLocaleData\r\n} from './LocaleDataStore.js'\r\n\r\nimport defaultStyle from './style/roundMinute.js'\r\nimport getStyleByName from './style/getStyleByName.js'\r\n\r\nimport { getRoundFunction } from './round.js'\r\n\r\n// Valid time units.\r\nconst UNITS = [\r\n\t'now',\r\n\t// The rest are the same as in `Intl.RelativeTimeFormat`.\r\n\t'second',\r\n\t'minute',\r\n\t'hour',\r\n\t'day',\r\n\t'week',\r\n\t'month',\r\n\t'quarter',\r\n\t'year'\r\n]\r\n\r\nexport default class TimeAgo {\r\n\t/**\r\n\t * @param {(string|string[])} locales=[] - Preferred locales (or locale).\r\n\t * @param {boolean} [polyfill] — Pass `false` to use native `Intl.RelativeTimeFormat` and `Intl.PluralRules` instead of the polyfills.\r\n\t */\r\n\tconstructor(locales = [], { polyfill } = {}) {\r\n\t\t// Convert `locales` to an array.\r\n\t\tif (typeof locales === 'string') {\r\n\t\t\tlocales = [locales]\r\n\t\t}\r\n\r\n\t\t// Choose the most appropriate locale\r\n\t\t// from the list of `locales` added by the user.\r\n\t\t// For example, new TimeAgo(\"en-US\") -> \"en\".\r\n\t\tthis.locale = chooseLocale(\r\n\t\t\tlocales.concat(TimeAgo.getDefaultLocale()),\r\n\t\t\tgetLocaleData\r\n\t\t)\r\n\r\n\t\tif (typeof Intl !== 'undefined') {\r\n\t\t\t// Use `Intl.NumberFormat` for formatting numbers (when available).\r\n\t\t\tif (Intl.NumberFormat) {\r\n\t\t\t\tthis.numberFormat = new Intl.NumberFormat(this.locale)\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Some people have requested the ability to use native\r\n\t\t// `Intl.RelativeTimeFormat` and `Intl.PluralRules`\r\n\t\t// instead of the polyfills.\r\n\t\t// https://github.com/catamphetamine/javascript-time-ago/issues/21\r\n\t\tif (polyfill === false) {\r\n\t\t\tthis.IntlRelativeTimeFormat = Intl.RelativeTimeFormat\r\n\t\t\tthis.IntlPluralRules = Intl.PluralRules\r\n\t\t} else {\r\n\t\t\tthis.IntlRelativeTimeFormat = RelativeTimeFormatPolyfill\r\n\t\t\tthis.IntlPluralRules = RelativeTimeFormatPolyfill.PluralRules\r\n\t\t}\r\n\r\n\t\t// Cache `Intl.RelativeTimeFormat` instance.\r\n\t\tthis.relativeTimeFormatCache = new Cache()\r\n\r\n\t\t// Cache `Intl.PluralRules` instance.\r\n\t\tthis.pluralRulesCache = new Cache()\r\n\t}\r\n\r\n\t/**\r\n\t * Formats relative date/time.\r\n\t *\r\n\t * @param {number} [options.now] - Sets the current date timestamp.\r\n\t *\r\n\t * @param {boolean} [options.future] — Tells how to format value `0`:\r\n\t * as \"future\" (`true`) or \"past\" (`false`).\r\n\t * Is `false` by default, but should have been `true` actually,\r\n\t * in order to correspond to `Intl.RelativeTimeFormat`\r\n\t * that uses `future` formatting for `0` unless `-0` is passed.\r\n\t *\r\n\t * @param {string} [options.round] — Rounding method. Overrides the style's one.\r\n\t *\r\n\t * @param {boolean} [options.getTimeToNextUpdate] — Pass `true` to return `[formattedDate, timeToNextUpdate]` instead of just `formattedDate`.\r\n\t *\r\n\t * @return {string} The formatted relative date/time. If no eligible `step` is found, then an empty string is returned.\r\n\t */\r\n\tformat(input, style, options) {\r\n\t\tif (!options) {\r\n\t\t\tif (style && !isStyle(style)) {\r\n\t\t\t\toptions = style\r\n\t\t\t\tstyle = undefined\r\n\t\t\t} else {\r\n\t\t\t\toptions = {}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!style) {\r\n\t\t\tstyle = defaultStyle\r\n\t\t}\r\n\r\n\t\tif (typeof style === 'string') {\r\n\t\t\tstyle = getStyleByName(style)\r\n\t\t}\r\n\r\n\t\tconst timestamp = getTimestamp(input)\r\n\r\n\t\t// Get locale messages for this type of labels.\r\n\t\t// \"flavour\" is a legacy name for \"labels\".\r\n\t\tconst { labels, labelsType } = this.getLabels(style.flavour || style.labels)\r\n\r\n\t\tlet now\r\n\t\t// Can pass a custom `now`, e.g. for testing purposes.\r\n\t\t//\r\n\t\t// Legacy way was passing `now` in `style`.\r\n\t\t// That way is deprecated.\r\n\t\tif (style.now !== undefined) {\r\n\t\t\tnow = style.now\r\n\t\t}\r\n\t\t// The new way is passing `now` option to `.format()`.\r\n\t\tif (now === undefined && options.now !== undefined) {\r\n\t\t\tnow = options.now\r\n\t\t}\r\n\t\tif (now === undefined) {\r\n\t\t\tnow = Date.now()\r\n\t\t}\r\n\r\n\t\t// how much time has passed (in seconds)\r\n\t\tconst secondsPassed = (now - timestamp) / 1000 // in seconds\r\n\r\n\t\tconst future = options.future || secondsPassed < 0\r\n\r\n\t\tconst nowLabel = getNowLabel(\r\n\t\t\tlabels,\r\n\t\t\tgetLocaleData(this.locale).now,\r\n\t\t\tgetLocaleData(this.locale).long,\r\n\t\t\tfuture\r\n\t\t)\r\n\r\n\t\t// `custom` – A function of `{ elapsed, time, date, now, locale }`.\r\n\t\t//\r\n\t\t// Looks like `custom` function is deprecated and will be removed\r\n\t\t// in the next major version.\r\n\t\t//\r\n\t\t// If this function returns a value, then the `.format()` call will return that value.\r\n\t\t// Otherwise the relative date/time is formatted as usual.\r\n\t\t// This feature is currently not used anywhere and is here\r\n\t\t// just for providing the ultimate customization point\r\n\t\t// in case anyone would ever need that. Prefer using\r\n\t\t// `steps[step].format(value, locale)` instead.\r\n\t\t//\r\n\t\tif (style.custom) {\r\n\t\t\tconst custom = style.custom({\r\n\t\t\t\tnow,\r\n\t\t\t\tdate: new Date(timestamp),\r\n\t\t\t\ttime: timestamp,\r\n\t\t\t\telapsed: secondsPassed,\r\n\t\t\t\tlocale: this.locale\r\n\t\t\t})\r\n\t\t\tif (custom !== undefined) {\r\n\t\t\t\t// Won't return `timeToNextUpdate` here\r\n\t\t\t\t// because `custom()` seems deprecated.\r\n\t\t\t\treturn custom\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Get the list of available time interval units.\r\n\t\tconst units = getTimeIntervalMeasurementUnits(\r\n\t\t\t// Controlling `style.steps` through `style.units` seems to be deprecated:\r\n\t\t\t// create a new custom `style` instead.\r\n\t\t\tstyle.units,\r\n\t\t\tlabels,\r\n\t\t\tnowLabel\r\n\t\t)\r\n\r\n\t\t// // If no available time unit is suitable, just output an empty string.\r\n\t\t// if (units.length === 0) {\r\n\t\t// \tconsole.error(`None of the \"${units.join(', ')}\" time units have been found in \"${labelsType}\" labels for \"${this.locale}\" locale.`)\r\n\t\t// \treturn ''\r\n\t\t// }\r\n\r\n\t\tconst round = options.round || style.round\r\n\r\n\t\t// Choose the appropriate time measurement unit\r\n\t\t// and get the corresponding rounded time amount.\r\n\t\tconst [prevStep, step, nextStep] = getStep(\r\n\t\t\t// \"gradation\" is a legacy name for \"steps\".\r\n\t\t\t// For historical reasons, \"approximate\" steps are used by default.\r\n\t\t\t// In the next major version, there'll be no default for `steps`.\r\n\t\t\tstyle.gradation || style.steps || defaultStyle.steps,\r\n\t\t\tsecondsPassed,\r\n\t\t\t{ now, units, round, future, getNextStep: true }\r\n\t\t)\r\n\r\n\t\tconst formattedDate = this.formatDateForStep(timestamp, step, secondsPassed, {\r\n\t\t\tlabels,\r\n\t\t\tlabelsType,\r\n\t\t\tnowLabel,\r\n\t\t\tnow,\r\n\t\t\tfuture,\r\n\t\t\tround\r\n\t\t}) || ''\r\n\r\n\t\tif (options.getTimeToNextUpdate) {\r\n\t\t\tconst timeToNextUpdate = getTimeToNextUpdate(timestamp, step, {\r\n\t\t\t\tnextStep,\r\n\t\t\t\tprevStep,\r\n\t\t\t\tnow,\r\n\t\t\t\tfuture,\r\n\t\t\t\tround\r\n\t\t\t})\r\n\t\t\treturn [formattedDate, timeToNextUpdate]\r\n\t\t}\r\n\r\n\t\treturn formattedDate\r\n\t}\r\n\r\n\tformatDateForStep(timestamp, step, secondsPassed, {\r\n\t\tlabels,\r\n\t\tlabelsType,\r\n\t\tnowLabel,\r\n\t\tnow,\r\n\t\tfuture,\r\n\t\tround\r\n\t}) {\r\n\t\t// If no step matches, then output an empty string.\r\n\t\tif (!step) {\r\n\t\t\treturn\r\n\t\t}\r\n\r\n\t\tif (step.format) {\r\n\t\t\treturn step.format(timestamp, this.locale, {\r\n\t\t\t\tformatAs: (unit, value) => {\r\n\t\t\t\t\t// Mimicks `Intl.RelativeTimeFormat.format()`.\r\n\t\t\t\t\treturn this.formatValue(value, unit, {\r\n\t\t\t\t\t\tlabels,\r\n\t\t\t\t\t\tfuture\r\n\t\t\t\t\t})\r\n\t\t\t\t},\r\n\t\t\t\tnow,\r\n\t\t\t\tfuture\r\n\t\t\t})\r\n\t\t}\r\n\r\n\t\t// \"unit\" is now called \"formatAs\".\r\n\t\tconst unit = step.unit || step.formatAs\r\n\r\n\t\tif (!unit) {\r\n\t\t\tthrow new Error(`[javascript-time-ago] Each step must define either \\`formatAs\\` or \\`format()\\`. Step: ${JSON.stringify(step)}`)\r\n\t\t}\r\n\r\n\t\t// `Intl.RelativeTimeFormat` doesn't operate in \"now\" units.\r\n\t\t// Therefore, threat \"now\" as a special case.\r\n\t\tif (unit === 'now') {\r\n\t\t\treturn nowLabel\r\n\t\t}\r\n\r\n\t\t// Amount in units.\r\n\t\tlet amount = Math.abs(secondsPassed) / getStepDenominator(step)\r\n\r\n\t\t// Apply granularity to the time amount\r\n\t\t// (and fallback to the previous step\r\n\t\t// if the first level of granularity\r\n\t\t// isn't met by this amount)\r\n\t\t//\r\n\t\t// `granularity` — (advanced) Time interval value \"granularity\".\r\n\t\t// For example, it could be set to `5` for minutes to allow only 5-minute increments\r\n\t\t// when formatting time intervals: `0 minutes`, `5 minutes`, `10 minutes`, etc.\r\n\t\t// Perhaps this feature will be removed because there seem to be no use cases\r\n\t\t// of it in the real world.\r\n\t\t//\r\n\t\tif (step.granularity) {\r\n\t\t\t// Recalculate the amount of seconds passed based on granularity\r\n\t\t\tamount = getRoundFunction(round)(amount / step.granularity) * step.granularity\r\n\t\t}\r\n\r\n\t\tlet valueForFormatting = -1 * Math.sign(secondsPassed) * getRoundFunction(round)(amount)\r\n\r\n\t\t// By default, this library formats a `0` in \"past\" mode,\r\n\t\t// unless `future: true` option is passed.\r\n\t\t// This is different to `relative-time-format`'s behavior\r\n\t\t// which formats a `0` in \"future\" mode by default, unless it's a `-0`.\r\n\t\t// So, convert `0` to `-0` if `future: true` option wasn't passed.\r\n\t\t// `=== 0` matches both `0` and `-0`.\r\n\t\tif (valueForFormatting === 0) {\r\n\t\t\tif (future) {\r\n\t\t\t\tvalueForFormatting = 0\r\n\t\t\t} else {\r\n\t\t\t\tvalueForFormatting = -0\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tswitch (labelsType) {\r\n\t\t\tcase 'long':\r\n\t\t\tcase 'short':\r\n\t\t\tcase 'narrow':\r\n\t\t\t\t// Format the amount using `Intl.RelativeTimeFormat`.\r\n\t\t\t\treturn this.getFormatter(labelsType).format(valueForFormatting, unit)\r\n\t\t\tdefault:\r\n\t\t\t\t// Format the amount.\r\n\t\t\t\t// (mimicks `Intl.RelativeTimeFormat` behavior for other time label styles)\r\n\t\t\t\treturn this.formatValue(valueForFormatting, unit, {\r\n\t\t\t\t\tlabels,\r\n\t\t\t\t\tfuture\r\n\t\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Mimicks what `Intl.RelativeTimeFormat` does for additional locale styles.\r\n\t * @param {number} value\r\n\t * @param {string} unit\r\n\t * @param {object} options.labels — Relative time labels.\r\n\t * @param {boolean} [options.future] — Tells how to format value `0`: as \"future\" (`true`) or \"past\" (`false`). Is `false` by default, but should have been `true` actually.\r\n\t * @return {string}\r\n\t */\r\n\tformatValue(value, unit, { labels, future }) {\r\n\t\treturn this.getFormattingRule(labels, unit, value, { future })\r\n\t\t\t.replace('{0}', this.formatNumber(Math.abs(value)))\r\n\t}\r\n\r\n\t/**\r\n\t * Returns formatting rule for `value` in `units` (either in past or in future).\r\n\t * @param {object} formattingRules — Relative time labels for different units.\r\n\t * @param {string} unit - Time interval measurement unit.\r\n\t * @param {number} value - Time interval value.\r\n\t * @param {boolean} [options.future] — Tells how to format value `0`: as \"future\" (`true`) or \"past\" (`false`). Is `false` by default.\r\n\t * @return {string}\r\n\t * @example\r\n\t * // Returns \"{0} days ago\"\r\n\t * getFormattingRule(en.long, \"day\", -2, 'en')\r\n\t */\r\n\tgetFormattingRule(formattingRules, unit, value, { future }) {\r\n\t\t// Passing the language is required in order to\r\n\t\t// be able to correctly classify the `value` as a number.\r\n\t\tconst locale = this.locale\r\n\t\tformattingRules = formattingRules[unit]\r\n\t\t// Check for a special \"compacted\" rules case:\r\n\t\t// if formatting rules are the same for \"past\" and \"future\",\r\n\t\t// and also for all possible `value`s, then those rules are\r\n\t\t// stored as a single string.\r\n\t\tif (typeof formattingRules === 'string') {\r\n\t\t\treturn formattingRules\r\n\t\t}\r\n\t\t// Choose either \"past\" or \"future\" based on time `value` sign.\r\n\t\t// If \"past\" is same as \"future\" then they're stored as \"other\".\r\n\t\t// If there's only \"other\" then it's being collapsed.\r\n\t\tconst pastOrFuture = value === 0 ? (future ? 'future' : 'past') : (value < 0 ? 'past' : 'future')\r\n\t\tconst quantifierRules = formattingRules[pastOrFuture] || formattingRules\r\n\t\t// Bundle size optimization technique.\r\n\t\tif (typeof quantifierRules === 'string') {\r\n\t\t\treturn quantifierRules\r\n\t\t}\r\n\t\t// Quantify `value`.\r\n\t\tconst quantifier = this.getPluralRules().select(Math.abs(value))\r\n\t\t// \"other\" rule is supposed to always be present.\r\n\t\t// If only \"other\" rule is present then \"rules\" is not an object and is a string.\r\n\t\treturn quantifierRules[quantifier] || quantifierRules.other\r\n\t}\r\n\r\n\t/**\r\n\t * Formats a number into a string.\r\n\t * Uses `Intl.NumberFormat` when available.\r\n\t * @param {number} number\r\n\t * @return {string}\r\n\t */\r\n\tformatNumber(number) {\r\n\t\treturn this.numberFormat ? this.numberFormat.format(number) : String(number)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns an `Intl.RelativeTimeFormat` for a given `labelsType`.\r\n\t * @param {string} labelsType\r\n\t * @return {object} `Intl.RelativeTimeFormat` instance\r\n\t */\r\n\tgetFormatter(labelsType) {\r\n\t\t// `Intl.RelativeTimeFormat` instance creation is (hypothetically) assumed\r\n\t\t// a lengthy operation so the instances are cached and reused.\r\n\t\treturn this.relativeTimeFormatCache.get(this.locale, labelsType) ||\r\n\t\t\tthis.relativeTimeFormatCache.put(this.locale, labelsType, new this.IntlRelativeTimeFormat(this.locale, { style: labelsType }))\r\n\t}\r\n\r\n\t/**\r\n\t * Returns an `Intl.PluralRules` instance.\r\n\t * @return {object} `Intl.PluralRules` instance\r\n\t */\r\n\tgetPluralRules() {\r\n\t\t// `Intl.PluralRules` instance creation is (hypothetically) assumed\r\n\t\t// a lengthy operation so the instances are cached and reused.\r\n\t\treturn this.pluralRulesCache.get(this.locale) ||\r\n\t\t\tthis.pluralRulesCache.put(this.locale, new this.IntlPluralRules(this.locale))\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * Gets localized labels for this type of labels.\r\n\t *\r\n\t * @param {(string|string[])} labelsType - Relative date/time labels type.\r\n\t * If it's an array then all label types are tried\r\n\t * until a suitable one is found.\r\n\t *\r\n\t * @returns {Object} Returns an object of shape { labelsType, labels }\r\n\t */\r\n\tgetLabels(labelsType = []) {\r\n\t\t// Convert `labels` to an array.\r\n\t\tif (typeof labelsType === 'string') {\r\n\t\t\tlabelsType = [labelsType]\r\n\t\t}\r\n\r\n\t\t// Supports legacy \"tiny\" and \"mini-time\" label styles.\r\n\t\tlabelsType = labelsType.map((labelsType) => {\r\n\t\t\tswitch (labelsType) {\r\n\t\t\t\tcase 'tiny':\r\n\t\t\t\tcase 'mini-time':\r\n\t\t\t\t\treturn 'mini'\r\n\t\t\t\tdefault:\r\n\t\t\t\t\treturn labelsType\r\n\t\t\t}\r\n\t\t})\r\n\r\n\t\t// \"long\" labels type is the default one.\r\n\t\t// (it's always present for all languages)\r\n\t\tlabelsType = labelsType.concat('long')\r\n\r\n\t\t// Find a suitable labels type.\r\n\t\tconst localeData = getLocaleData(this.locale)\r\n\t\tfor (const _labelsType of labelsType) {\r\n\t\t\tif (localeData[_labelsType]) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tlabelsType: _labelsType,\r\n\t\t\t\t\tlabels: localeData[_labelsType]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/**\r\n * Default locale global variable.\r\n */\r\nlet defaultLocale = 'en'\r\n\r\n/**\r\n * Gets default locale.\r\n * @return {string} locale\r\n */\r\nTimeAgo.getDefaultLocale = () => defaultLocale\r\n\r\n/**\r\n * Sets default locale.\r\n * @param {string} locale\r\n */\r\nTimeAgo.setDefaultLocale = (locale) => defaultLocale = locale\r\n\r\n/**\r\n * Adds locale data for a specific locale and marks the locale as default.\r\n * @param {Object} localeData\r\n */\r\nTimeAgo.addDefaultLocale = function(localeData) {\r\n\tif (defaultLocaleHasBeenSpecified) {\r\n\t\treturn console.error('[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.')\r\n\t}\r\n\tdefaultLocaleHasBeenSpecified = true\r\n\tTimeAgo.setDefaultLocale(localeData.locale)\r\n\tTimeAgo.addLocale(localeData)\r\n}\r\n\r\nlet defaultLocaleHasBeenSpecified\r\n\r\n/**\r\n * Adds locale data for a specific locale.\r\n * @param {Object} localeData\r\n */\r\nTimeAgo.addLocale = function(localeData) {\r\n\taddLocaleData(localeData)\r\n\tRelativeTimeFormatPolyfill.addLocale(localeData)\r\n}\r\n\r\n/**\r\n * (legacy alias)\r\n * Adds locale data for a specific locale.\r\n * @param {Object} localeData\r\n * @deprecated\r\n */\r\nTimeAgo.locale = TimeAgo.addLocale\r\n\r\n/**\r\n * Adds custom labels to locale data.\r\n * @param {string} locale\r\n * @param {string} name\r\n * @param {object} labels\r\n */\r\nTimeAgo.addLabels = (locale, name, labels) => {\r\n\tlet localeData = getLocaleData(locale)\r\n\tif (!localeData) {\r\n\t\taddLocaleData({\r\n\t\t\tlocale\r\n\t\t})\r\n\t\tlocaleData = getLocaleData(locale)\r\n\t\t// throw new Error(`[javascript-time-ago] No data for locale \"${locale}\"`)\r\n\t}\r\n\tlocaleData[name] = labels\r\n}\r\n\r\n// Normalizes `.format()` `time` argument.\r\nfunction getTimestamp(input) {\r\n\tif (input.constructor === Date || isMockedDate(input)) {\r\n\t\treturn input.getTime()\r\n\t}\r\n\r\n\tif (typeof input === 'number') {\r\n\t\treturn input\r\n\t}\r\n\r\n\t// For some weird reason istanbul doesn't see this `throw` covered.\r\n\t/* istanbul ignore next */\r\n\tthrow new Error(`Unsupported relative time formatter input: ${typeof input}, ${input}`)\r\n}\r\n\r\n// During testing via some testing libraries `Date`s aren't actually `Date`s.\r\n// https://github.com/catamphetamine/javascript-time-ago/issues/22\r\nfunction isMockedDate(object) {\r\n\treturn typeof object === 'object' && typeof object.getTime === 'function'\r\n}\r\n\r\n// Get available time interval measurement units.\r\nfunction getTimeIntervalMeasurementUnits(allowedUnits, labels, nowLabel) {\r\n\t// Get all time interval measurement units that're available\r\n\t// in locale data for a given time labels style.\r\n\tlet units = Object.keys(labels)\r\n\r\n\t// `now` unit is handled separately and is shipped in its own `now.json` file.\r\n\t// `now.json` isn't present for all locales, so it could be substituted with\r\n\t// \".second.current\".\r\n\t// Add `now` unit if it's available in locale data.\r\n\tif (nowLabel) {\r\n\t\tunits.push('now')\r\n\t}\r\n\r\n\t// If only a specific set of available time measurement units can be used\r\n\t// then only those units are allowed (if they're present in locale data).\r\n\tif (allowedUnits) {\r\n\t\tunits = allowedUnits.filter(unit => unit === 'now' || units.indexOf(unit) >= 0)\r\n\t}\r\n\r\n\treturn units\r\n}\r\n\r\nfunction getNowLabel(labels, nowLabels, longLabels, future) {\r\n\tconst nowLabel = labels.now || (nowLabels && nowLabels.now)\r\n\t// Specific \"now\" message form extended locale data (if present).\r\n\tif (nowLabel) {\r\n\t\t// Bundle size optimization technique.\r\n\t\tif (typeof nowLabel === 'string') {\r\n\t\t\treturn nowLabel\r\n\t\t}\r\n\t\t// Not handling `value === 0` as `localeData.now.current` here\r\n\t\t// because it wouldn't make sense: \"now\" is a moment,\r\n\t\t// so one can't possibly differentiate between a\r\n\t\t// \"previous\" moment, a \"current\" moment and a \"next moment\".\r\n\t\t// It can only be differentiated between \"past\" and \"future\".\r\n\t\tif (future) {\r\n\t\t\treturn nowLabel.future\r\n\t\t} else {\r\n\t\t\treturn nowLabel.past\r\n\t\t}\r\n\t}\r\n\t// Use \".second.current\" as \"now\" message.\r\n\tif (longLabels && longLabels.second && longLabels.second.current) {\r\n\t\treturn longLabels.second.current\r\n\t}\r\n}\r\n\r\nfunction isStyle(variable) {\r\n\treturn typeof variable === 'string' || isStyleObject(variable)\r\n}"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AAEA;;AAKA;;AACA;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AACA,IAAMA,KAAK,GAAG,CACb,KADa,EAEb;AACA,QAHa,E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A,CAXuE,CAaxE;EACA;;;EACA,IAAIH,YAAJ,EAAkB;IACjB9D,KAAK,GAAG8D,YAAY,CAACI,MAAb,CAAoB,UAAAlD,IAAI;MAAA,OAAIA,IAAI,KAAK,KAAT,IAAkBhB,KAAK,CAACmE,OAAN,CAAcnD,IAAd,KAAuB,CAA7C;IAAA,CAAxB,CAAR;EACA;;EAED,OAAOhB,KAAP;AACA;;AAED,SAASL,WAAT,CAAqBP,MAArB,EAA6BgF,SAA7B,EAAwCC,UAAxC,EAAoD5E,MAApD,EAA4D;EAC3D,IAAMC,QAAQ,GAAGN,MAAM,CAACE,GAAP,IAAe8E,SAAS,IAAIA,SAAS,CAAC9E,GAAvD,CAD2D,CAE3D;;EACA,IAAII,QAAJ,EAAc;IACb;IACA,IAAI,OAAOA,QAAP,KAAoB,QAAxB,EAAkC;MACjC,OAAOA,QAAP;IACA,CAJY,CAKb;IACA;IACA;IACA;IACA;;;IACA,IAAID,MAAJ,EAAY;MACX,OAAOC,QAAQ,CAACD,MAAhB;IACA,CAFD,MAEO;MACN,OAAOC,QAAQ,CAAC4E,IAAhB;IACA;EACD,CAlB0D,CAmB3D;;;EACA,IAAID,UAAU,IAAIA,UAAU,CAACE,MAAzB,IAAmCF,UAAU,CAACE,MAAX,CAAkBC,OAAzD,EAAkE;IACjE,OAAOH,UAAU,CAACE,MAAX,CAAkBC,OAAzB;EACA;AACD;;AAED,SAAS5F,OAAT,CAAiB6F,QAAjB,EAA2B;EAC1B,OAAO,OAAOA,QAAP,KAAoB,QAApB,IAAgC,IAAAC,yBAAA,EAAcD,QAAd,CAAvC;AACA"}
|
|
1
|
+
{"version":3,"file":"TimeAgo.js","names":["UNITS","TimeAgo","locales","polyfill","locale","chooseLocale","concat","getDefaultLocale","getLocaleData","Intl","NumberFormat","numberFormat","IntlRelativeTimeFormat","RelativeTimeFormat","IntlPluralRules","PluralRules","RelativeTimeFormatPolyfill","relativeTimeFormatCache","Cache","pluralRulesCache","input","style","options","isStyle","undefined","defaultStyle","getStyleByName","timestamp","getTimestamp","getLabels","flavour","labels","labelsType","now","Date","secondsPassed","future","nowLabel","getNowLabel","custom","date","time","elapsed","units","getTimeIntervalMeasurementUnits","round","getStep","gradation","steps","getNextStep","prevStep","step","nextStep","formattedDate","formatDateForStep","getTimeToNextUpdate","timeToNextUpdate","format","formatAs","unit","value","formatValue","Error","JSON","stringify","amount","Math","abs","getStepDenominator","granularity","getRoundFunction","valueForFormatting","sign","getFormatter","getFormattingRule","replace","formatNumber","formattingRules","pastOrFuture","quantifierRules","quantifier","getPluralRules","select","other","number","String","get","put","map","localeData","_labelsType","defaultLocale","setDefaultLocale","addDefaultLocale","defaultLocaleHasBeenSpecified","console","error","addLocale","addLocaleData","addLabels","name","constructor","isMockedDate","getTime","object","allowedUnits","Object","keys","push","filter","indexOf","nowLabels","longLabels","past","second","current","variable","isStyleObject"],"sources":["../source/TimeAgo.js"],"sourcesContent":["import RelativeTimeFormatPolyfill from 'relative-time-format'\r\n\r\nimport Cache from './cache.js'\r\nimport chooseLocale from './locale.js'\r\nimport isStyleObject from './isStyleObject.js'\r\n\r\nimport getStep from './steps/getStep.js'\r\nimport getStepDenominator from './steps/getStepDenominator.js'\r\nimport getTimeToNextUpdate from './steps/getTimeToNextUpdate.js'\r\n\r\nimport {\r\n\taddLocaleData,\r\n\tgetLocaleData\r\n} from './LocaleDataStore.js'\r\n\r\nimport defaultStyle from './style/roundMinute.js'\r\nimport getStyleByName from './style/getStyleByName.js'\r\n\r\nimport { getRoundFunction } from './round.js'\r\n\r\n// Valid time units.\r\nconst UNITS = [\r\n\t'now',\r\n\t// The rest are the same as in `Intl.RelativeTimeFormat`.\r\n\t'second',\r\n\t'minute',\r\n\t'hour',\r\n\t'day',\r\n\t'week',\r\n\t'month',\r\n\t'quarter',\r\n\t'year'\r\n]\r\n\r\nexport default class TimeAgo {\r\n\t/**\r\n\t * @param {(string|string[])} locales=[] - Preferred locales (or locale).\r\n\t * @param {boolean} [polyfill] — Pass `false` to use native `Intl.RelativeTimeFormat` and `Intl.PluralRules` instead of the polyfills.\r\n\t */\r\n\tconstructor(locales = [], { polyfill } = {}) {\r\n\t\t// Convert `locales` to an array.\r\n\t\tif (typeof locales === 'string') {\r\n\t\t\tlocales = [locales]\r\n\t\t}\r\n\r\n\t\t// Choose the most appropriate locale\r\n\t\t// from the list of `locales` added by the user.\r\n\t\t// For example, new TimeAgo(\"en-US\") -> \"en\".\r\n\t\tthis.locale = chooseLocale(\r\n\t\t\tlocales.concat(TimeAgo.getDefaultLocale()),\r\n\t\t\tgetLocaleData\r\n\t\t)\r\n\r\n\t\tif (typeof Intl !== 'undefined') {\r\n\t\t\t// Use `Intl.NumberFormat` for formatting numbers (when available).\r\n\t\t\tif (Intl.NumberFormat) {\r\n\t\t\t\tthis.numberFormat = new Intl.NumberFormat(this.locale)\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Some people have requested the ability to use native\r\n\t\t// `Intl.RelativeTimeFormat` and `Intl.PluralRules`\r\n\t\t// instead of the polyfills.\r\n\t\t// https://github.com/catamphetamine/javascript-time-ago/issues/21\r\n\t\tif (polyfill === false) {\r\n\t\t\tthis.IntlRelativeTimeFormat = Intl.RelativeTimeFormat\r\n\t\t\tthis.IntlPluralRules = Intl.PluralRules\r\n\t\t} else {\r\n\t\t\tthis.IntlRelativeTimeFormat = RelativeTimeFormatPolyfill\r\n\t\t\tthis.IntlPluralRules = RelativeTimeFormatPolyfill.PluralRules\r\n\t\t}\r\n\r\n\t\t// Cache `Intl.RelativeTimeFormat` instance.\r\n\t\tthis.relativeTimeFormatCache = new Cache()\r\n\r\n\t\t// Cache `Intl.PluralRules` instance.\r\n\t\tthis.pluralRulesCache = new Cache()\r\n\t}\r\n\r\n\t/**\r\n\t * Formats relative date/time.\r\n\t *\r\n\t * @param {(number|Date)} input — A `Date` or a javascript timestamp.\r\n\t *\r\n\t * @param {(string|object)} style — Date/time formatting style. Either one of the built-in style names or a \"custom\" style definition object having `steps: object[]` and `labels: string[]`.\r\n\t *\r\n\t * @param {number} [options.now] - Sets the current date timestamp.\r\n\t *\r\n\t * @param {boolean} [options.future] — Tells how to format value `0`:\r\n\t * as \"future\" (`true`) or \"past\" (`false`).\r\n\t * Is `false` by default, but should have been `true` actually,\r\n\t * in order to correspond to `Intl.RelativeTimeFormat`\r\n\t * that uses `future` formatting for `0` unless `-0` is passed.\r\n\t *\r\n\t * @param {string} [options.round] — Rounding method. Overrides the style's one.\r\n\t *\r\n\t * @param {boolean} [options.getTimeToNextUpdate] — Pass `true` to return `[formattedDate, timeToNextUpdate]` instead of just `formattedDate`.\r\n\t *\r\n\t * @return {string} The formatted relative date/time. If no eligible `step` is found, then an empty string is returned.\r\n\t */\r\n\tformat(input, style, options) {\r\n\t\tif (!options) {\r\n\t\t\tif (style && !isStyle(style)) {\r\n\t\t\t\toptions = style\r\n\t\t\t\tstyle = undefined\r\n\t\t\t} else {\r\n\t\t\t\toptions = {}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!style) {\r\n\t\t\tstyle = defaultStyle\r\n\t\t}\r\n\r\n\t\tif (typeof style === 'string') {\r\n\t\t\tstyle = getStyleByName(style)\r\n\t\t}\r\n\r\n\t\tconst timestamp = getTimestamp(input)\r\n\r\n\t\t// Get locale messages for this type of labels.\r\n\t\t// \"flavour\" is a legacy name for \"labels\".\r\n\t\tconst { labels, labelsType } = this.getLabels(style.flavour || style.labels)\r\n\r\n\t\tlet now\r\n\t\t// Can pass a custom `now`, e.g. for testing purposes.\r\n\t\t//\r\n\t\t// Legacy way was passing `now` in `style`.\r\n\t\t// That way is deprecated.\r\n\t\tif (style.now !== undefined) {\r\n\t\t\tnow = style.now\r\n\t\t}\r\n\t\t// The new way is passing `now` option to `.format()`.\r\n\t\tif (now === undefined && options.now !== undefined) {\r\n\t\t\tnow = options.now\r\n\t\t}\r\n\t\tif (now === undefined) {\r\n\t\t\tnow = Date.now()\r\n\t\t}\r\n\r\n\t\t// how much time has passed (in seconds)\r\n\t\tconst secondsPassed = (now - timestamp) / 1000 // in seconds\r\n\r\n\t\tconst future = options.future || secondsPassed < 0\r\n\r\n\t\tconst nowLabel = getNowLabel(\r\n\t\t\tlabels,\r\n\t\t\tgetLocaleData(this.locale).now,\r\n\t\t\tgetLocaleData(this.locale).long,\r\n\t\t\tfuture\r\n\t\t)\r\n\r\n\t\t// `custom` – A function of `{ elapsed, time, date, now, locale }`.\r\n\t\t//\r\n\t\t// Looks like `custom` function is deprecated and will be removed\r\n\t\t// in the next major version.\r\n\t\t//\r\n\t\t// If this function returns a value, then the `.format()` call will return that value.\r\n\t\t// Otherwise the relative date/time is formatted as usual.\r\n\t\t// This feature is currently not used anywhere and is here\r\n\t\t// just for providing the ultimate customization point\r\n\t\t// in case anyone would ever need that. Prefer using\r\n\t\t// `steps[step].format(value, locale)` instead.\r\n\t\t//\r\n\t\tif (style.custom) {\r\n\t\t\tconst custom = style.custom({\r\n\t\t\t\tnow,\r\n\t\t\t\tdate: new Date(timestamp),\r\n\t\t\t\ttime: timestamp,\r\n\t\t\t\telapsed: secondsPassed,\r\n\t\t\t\tlocale: this.locale\r\n\t\t\t})\r\n\t\t\tif (custom !== undefined) {\r\n\t\t\t\t// Won't return `timeToNextUpdate` here\r\n\t\t\t\t// because `custom()` seems deprecated.\r\n\t\t\t\treturn custom\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Get the list of available time interval units.\r\n\t\tconst units = getTimeIntervalMeasurementUnits(\r\n\t\t\t// Controlling `style.steps` through `style.units` seems to be deprecated:\r\n\t\t\t// create a new custom `style` instead.\r\n\t\t\tstyle.units,\r\n\t\t\tlabels,\r\n\t\t\tnowLabel\r\n\t\t)\r\n\r\n\t\t// // If no available time unit is suitable, just output an empty string.\r\n\t\t// if (units.length === 0) {\r\n\t\t// \tconsole.error(`None of the \"${units.join(', ')}\" time units have been found in \"${labelsType}\" labels for \"${this.locale}\" locale.`)\r\n\t\t// \treturn ''\r\n\t\t// }\r\n\r\n\t\tconst round = options.round || style.round\r\n\r\n\t\t// Choose the appropriate time measurement unit\r\n\t\t// and get the corresponding rounded time amount.\r\n\t\tconst [prevStep, step, nextStep] = getStep(\r\n\t\t\t// \"gradation\" is a legacy name for \"steps\".\r\n\t\t\t// For historical reasons, \"approximate\" steps are used by default.\r\n\t\t\t// In the next major version, there'll be no default for `steps`.\r\n\t\t\tstyle.gradation || style.steps || defaultStyle.steps,\r\n\t\t\tsecondsPassed,\r\n\t\t\t{ now, units, round, future, getNextStep: true }\r\n\t\t)\r\n\r\n\t\tconst formattedDate = this.formatDateForStep(timestamp, step, secondsPassed, {\r\n\t\t\tlabels,\r\n\t\t\tlabelsType,\r\n\t\t\tnowLabel,\r\n\t\t\tnow,\r\n\t\t\tfuture,\r\n\t\t\tround\r\n\t\t}) || ''\r\n\r\n\t\tif (options.getTimeToNextUpdate) {\r\n\t\t\tconst timeToNextUpdate = getTimeToNextUpdate(timestamp, step, {\r\n\t\t\t\tnextStep,\r\n\t\t\t\tprevStep,\r\n\t\t\t\tnow,\r\n\t\t\t\tfuture,\r\n\t\t\t\tround\r\n\t\t\t})\r\n\t\t\treturn [formattedDate, timeToNextUpdate]\r\n\t\t}\r\n\r\n\t\treturn formattedDate\r\n\t}\r\n\r\n\tformatDateForStep(timestamp, step, secondsPassed, {\r\n\t\tlabels,\r\n\t\tlabelsType,\r\n\t\tnowLabel,\r\n\t\tnow,\r\n\t\tfuture,\r\n\t\tround\r\n\t}) {\r\n\t\t// If no step matches, then output an empty string.\r\n\t\tif (!step) {\r\n\t\t\treturn\r\n\t\t}\r\n\r\n\t\tif (step.format) {\r\n\t\t\treturn step.format(timestamp, this.locale, {\r\n\t\t\t\tformatAs: (unit, value) => {\r\n\t\t\t\t\t// Mimicks `Intl.RelativeTimeFormat.format()`.\r\n\t\t\t\t\treturn this.formatValue(value, unit, {\r\n\t\t\t\t\t\tlabels,\r\n\t\t\t\t\t\tfuture\r\n\t\t\t\t\t})\r\n\t\t\t\t},\r\n\t\t\t\tnow,\r\n\t\t\t\tfuture\r\n\t\t\t})\r\n\t\t}\r\n\r\n\t\t// \"unit\" is now called \"formatAs\".\r\n\t\tconst unit = step.unit || step.formatAs\r\n\r\n\t\tif (!unit) {\r\n\t\t\tthrow new Error(`[javascript-time-ago] Each step must define either \\`formatAs\\` or \\`format()\\`. Step: ${JSON.stringify(step)}`)\r\n\t\t}\r\n\r\n\t\t// `Intl.RelativeTimeFormat` doesn't operate in \"now\" units.\r\n\t\t// Therefore, threat \"now\" as a special case.\r\n\t\tif (unit === 'now') {\r\n\t\t\treturn nowLabel\r\n\t\t}\r\n\r\n\t\t// Amount in units.\r\n\t\tlet amount = Math.abs(secondsPassed) / getStepDenominator(step)\r\n\r\n\t\t// Apply granularity to the time amount\r\n\t\t// (and fallback to the previous step\r\n\t\t// if the first level of granularity\r\n\t\t// isn't met by this amount)\r\n\t\t//\r\n\t\t// `granularity` — (advanced) Time interval value \"granularity\".\r\n\t\t// For example, it could be set to `5` for minutes to allow only 5-minute increments\r\n\t\t// when formatting time intervals: `0 minutes`, `5 minutes`, `10 minutes`, etc.\r\n\t\t// Perhaps this feature will be removed because there seem to be no use cases\r\n\t\t// of it in the real world.\r\n\t\t//\r\n\t\tif (step.granularity) {\r\n\t\t\t// Recalculate the amount of seconds passed based on granularity\r\n\t\t\tamount = getRoundFunction(round)(amount / step.granularity) * step.granularity\r\n\t\t}\r\n\r\n\t\tlet valueForFormatting = -1 * Math.sign(secondsPassed) * getRoundFunction(round)(amount)\r\n\r\n\t\t// By default, this library formats a `0` in \"past\" mode,\r\n\t\t// unless `future: true` option is passed.\r\n\t\t// This is different to `relative-time-format`'s behavior\r\n\t\t// which formats a `0` in \"future\" mode by default, unless it's a `-0`.\r\n\t\t// So, convert `0` to `-0` if `future: true` option wasn't passed.\r\n\t\t// `=== 0` matches both `0` and `-0`.\r\n\t\tif (valueForFormatting === 0) {\r\n\t\t\tif (future) {\r\n\t\t\t\tvalueForFormatting = 0\r\n\t\t\t} else {\r\n\t\t\t\tvalueForFormatting = -0\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tswitch (labelsType) {\r\n\t\t\tcase 'long':\r\n\t\t\tcase 'short':\r\n\t\t\tcase 'narrow':\r\n\t\t\t\t// Format the amount using `Intl.RelativeTimeFormat`.\r\n\t\t\t\treturn this.getFormatter(labelsType).format(valueForFormatting, unit)\r\n\t\t\tdefault:\r\n\t\t\t\t// Format the amount.\r\n\t\t\t\t// (mimicks `Intl.RelativeTimeFormat` behavior for other time label styles)\r\n\t\t\t\treturn this.formatValue(valueForFormatting, unit, {\r\n\t\t\t\t\tlabels,\r\n\t\t\t\t\tfuture\r\n\t\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Mimicks what `Intl.RelativeTimeFormat` does for additional locale styles.\r\n\t * @param {number} value\r\n\t * @param {string} unit\r\n\t * @param {object} options.labels — Relative time labels.\r\n\t * @param {boolean} [options.future] — Tells how to format value `0`: as \"future\" (`true`) or \"past\" (`false`). Is `false` by default, but should have been `true` actually.\r\n\t * @return {string}\r\n\t */\r\n\tformatValue(value, unit, { labels, future }) {\r\n\t\treturn this.getFormattingRule(labels, unit, value, { future })\r\n\t\t\t.replace('{0}', this.formatNumber(Math.abs(value)))\r\n\t}\r\n\r\n\t/**\r\n\t * Returns formatting rule for `value` in `units` (either in past or in future).\r\n\t * @param {object} formattingRules — Relative time labels for different units.\r\n\t * @param {string} unit - Time interval measurement unit.\r\n\t * @param {number} value - Time interval value.\r\n\t * @param {boolean} [options.future] — Tells how to format value `0`: as \"future\" (`true`) or \"past\" (`false`). Is `false` by default.\r\n\t * @return {string}\r\n\t * @example\r\n\t * // Returns \"{0} days ago\"\r\n\t * getFormattingRule(en.long, \"day\", -2, 'en')\r\n\t */\r\n\tgetFormattingRule(formattingRules, unit, value, { future }) {\r\n\t\t// Passing the language is required in order to\r\n\t\t// be able to correctly classify the `value` as a number.\r\n\t\tconst locale = this.locale\r\n\t\tformattingRules = formattingRules[unit]\r\n\t\t// Check for a special \"compacted\" rules case:\r\n\t\t// if formatting rules are the same for \"past\" and \"future\",\r\n\t\t// and also for all possible `value`s, then those rules are\r\n\t\t// stored as a single string.\r\n\t\tif (typeof formattingRules === 'string') {\r\n\t\t\treturn formattingRules\r\n\t\t}\r\n\t\t// Choose either \"past\" or \"future\" based on time `value` sign.\r\n\t\t// If \"past\" is same as \"future\" then they're stored as \"other\".\r\n\t\t// If there's only \"other\" then it's being collapsed.\r\n\t\tconst pastOrFuture = value === 0 ? (future ? 'future' : 'past') : (value < 0 ? 'past' : 'future')\r\n\t\tconst quantifierRules = formattingRules[pastOrFuture] || formattingRules\r\n\t\t// Bundle size optimization technique.\r\n\t\tif (typeof quantifierRules === 'string') {\r\n\t\t\treturn quantifierRules\r\n\t\t}\r\n\t\t// Quantify `value`.\r\n\t\tconst quantifier = this.getPluralRules().select(Math.abs(value))\r\n\t\t// \"other\" rule is supposed to always be present.\r\n\t\t// If only \"other\" rule is present then \"rules\" is not an object and is a string.\r\n\t\treturn quantifierRules[quantifier] || quantifierRules.other\r\n\t}\r\n\r\n\t/**\r\n\t * Formats a number into a string.\r\n\t * Uses `Intl.NumberFormat` when available.\r\n\t * @param {number} number\r\n\t * @return {string}\r\n\t */\r\n\tformatNumber(number) {\r\n\t\treturn this.numberFormat ? this.numberFormat.format(number) : String(number)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns an `Intl.RelativeTimeFormat` for a given `labelsType`.\r\n\t * @param {string} labelsType\r\n\t * @return {object} `Intl.RelativeTimeFormat` instance\r\n\t */\r\n\tgetFormatter(labelsType) {\r\n\t\t// `Intl.RelativeTimeFormat` instance creation is (hypothetically) assumed\r\n\t\t// a lengthy operation so the instances are cached and reused.\r\n\t\treturn this.relativeTimeFormatCache.get(this.locale, labelsType) ||\r\n\t\t\tthis.relativeTimeFormatCache.put(this.locale, labelsType, new this.IntlRelativeTimeFormat(this.locale, { style: labelsType }))\r\n\t}\r\n\r\n\t/**\r\n\t * Returns an `Intl.PluralRules` instance.\r\n\t * @return {object} `Intl.PluralRules` instance\r\n\t */\r\n\tgetPluralRules() {\r\n\t\t// `Intl.PluralRules` instance creation is (hypothetically) assumed\r\n\t\t// a lengthy operation so the instances are cached and reused.\r\n\t\treturn this.pluralRulesCache.get(this.locale) ||\r\n\t\t\tthis.pluralRulesCache.put(this.locale, new this.IntlPluralRules(this.locale))\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * Gets localized labels for this type of labels.\r\n\t *\r\n\t * @param {(string|string[])} labelsType - Relative date/time labels type.\r\n\t * If it's an array then all label types are tried\r\n\t * until a suitable one is found.\r\n\t *\r\n\t * @returns {Object} Returns an object of shape { labelsType, labels }\r\n\t */\r\n\tgetLabels(labelsType = []) {\r\n\t\t// Convert `labels` to an array.\r\n\t\tif (typeof labelsType === 'string') {\r\n\t\t\tlabelsType = [labelsType]\r\n\t\t}\r\n\r\n\t\t// Supports legacy \"tiny\" and \"mini-time\" label styles.\r\n\t\tlabelsType = labelsType.map((labelsType) => {\r\n\t\t\tswitch (labelsType) {\r\n\t\t\t\tcase 'tiny':\r\n\t\t\t\tcase 'mini-time':\r\n\t\t\t\t\treturn 'mini'\r\n\t\t\t\tdefault:\r\n\t\t\t\t\treturn labelsType\r\n\t\t\t}\r\n\t\t})\r\n\r\n\t\t// \"long\" labels type is the default one.\r\n\t\t// (it's always present for all languages)\r\n\t\tlabelsType = labelsType.concat('long')\r\n\r\n\t\t// Find a suitable labels type.\r\n\t\tconst localeData = getLocaleData(this.locale)\r\n\t\tfor (const _labelsType of labelsType) {\r\n\t\t\tif (localeData[_labelsType]) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tlabelsType: _labelsType,\r\n\t\t\t\t\tlabels: localeData[_labelsType]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/**\r\n * Default locale global variable.\r\n */\r\nlet defaultLocale = 'en'\r\n\r\n/**\r\n * Gets default locale.\r\n * @return {string} locale\r\n */\r\nTimeAgo.getDefaultLocale = () => defaultLocale\r\n\r\n/**\r\n * Sets default locale.\r\n * @param {string} locale\r\n */\r\nTimeAgo.setDefaultLocale = (locale) => defaultLocale = locale\r\n\r\n/**\r\n * Adds locale data for a specific locale and marks the locale as default.\r\n * @param {Object} localeData\r\n */\r\nTimeAgo.addDefaultLocale = function(localeData) {\r\n\tif (defaultLocaleHasBeenSpecified) {\r\n\t\treturn console.error('[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.')\r\n\t}\r\n\tdefaultLocaleHasBeenSpecified = true\r\n\tTimeAgo.setDefaultLocale(localeData.locale)\r\n\tTimeAgo.addLocale(localeData)\r\n}\r\n\r\nlet defaultLocaleHasBeenSpecified\r\n\r\n/**\r\n * Adds locale data for a specific locale.\r\n * @param {Object} localeData\r\n */\r\nTimeAgo.addLocale = function(localeData) {\r\n\taddLocaleData(localeData)\r\n\tRelativeTimeFormatPolyfill.addLocale(localeData)\r\n}\r\n\r\n/**\r\n * (legacy alias)\r\n * Adds locale data for a specific locale.\r\n * @param {Object} localeData\r\n * @deprecated\r\n */\r\nTimeAgo.locale = TimeAgo.addLocale\r\n\r\n/**\r\n * Adds custom labels to locale data.\r\n * @param {string} locale\r\n * @param {string} name\r\n * @param {object} labels\r\n */\r\nTimeAgo.addLabels = (locale, name, labels) => {\r\n\tlet localeData = getLocaleData(locale)\r\n\tif (!localeData) {\r\n\t\taddLocaleData({\r\n\t\t\tlocale\r\n\t\t})\r\n\t\tlocaleData = getLocaleData(locale)\r\n\t\t// throw new Error(`[javascript-time-ago] No data for locale \"${locale}\"`)\r\n\t}\r\n\tlocaleData[name] = labels\r\n}\r\n\r\n// Normalizes `.format()` `time` argument.\r\nfunction getTimestamp(input) {\r\n\tif (input.constructor === Date || isMockedDate(input)) {\r\n\t\treturn input.getTime()\r\n\t}\r\n\r\n\tif (typeof input === 'number') {\r\n\t\treturn input\r\n\t}\r\n\r\n\t// For some weird reason istanbul doesn't see this `throw` covered.\r\n\t/* istanbul ignore next */\r\n\tthrow new Error(`Unsupported relative time formatter input: ${typeof input}, ${input}`)\r\n}\r\n\r\n// During testing via some testing libraries `Date`s aren't actually `Date`s.\r\n// https://github.com/catamphetamine/javascript-time-ago/issues/22\r\nfunction isMockedDate(object) {\r\n\treturn typeof object === 'object' && typeof object.getTime === 'function'\r\n}\r\n\r\n// Get available time interval measurement units.\r\nfunction getTimeIntervalMeasurementUnits(allowedUnits, labels, nowLabel) {\r\n\t// Get all time interval measurement units that're available\r\n\t// in locale data for a given time labels style.\r\n\tlet units = Object.keys(labels)\r\n\r\n\t// `now` unit is handled separately and is shipped in its own `now.json` file.\r\n\t// `now.json` isn't present for all locales, so it could be substituted with\r\n\t// \".second.current\".\r\n\t// Add `now` unit if it's available in locale data.\r\n\tif (nowLabel) {\r\n\t\tunits.push('now')\r\n\t}\r\n\r\n\t// If only a specific set of available time measurement units can be used\r\n\t// then only those units are allowed (if they're present in locale data).\r\n\tif (allowedUnits) {\r\n\t\tunits = allowedUnits.filter(unit => unit === 'now' || units.indexOf(unit) >= 0)\r\n\t}\r\n\r\n\treturn units\r\n}\r\n\r\nfunction getNowLabel(labels, nowLabels, longLabels, future) {\r\n\tconst nowLabel = labels.now || (nowLabels && nowLabels.now)\r\n\t// Specific \"now\" message form extended locale data (if present).\r\n\tif (nowLabel) {\r\n\t\t// Bundle size optimization technique.\r\n\t\tif (typeof nowLabel === 'string') {\r\n\t\t\treturn nowLabel\r\n\t\t}\r\n\t\t// Not handling `value === 0` as `localeData.now.current` here\r\n\t\t// because it wouldn't make sense: \"now\" is a moment,\r\n\t\t// so one can't possibly differentiate between a\r\n\t\t// \"previous\" moment, a \"current\" moment and a \"next moment\".\r\n\t\t// It can only be differentiated between \"past\" and \"future\".\r\n\t\tif (future) {\r\n\t\t\treturn nowLabel.future\r\n\t\t} else {\r\n\t\t\treturn nowLabel.past\r\n\t\t}\r\n\t}\r\n\t// Use \".second.current\" as \"now\" message.\r\n\tif (longLabels && longLabels.second && longLabels.second.current) {\r\n\t\treturn longLabels.second.current\r\n\t}\r\n}\r\n\r\nfunction isStyle(variable) {\r\n\treturn typeof variable === 'string' || isStyleObject(variable)\r\n}"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AAEA;;AAKA;;AACA;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AACA,IAAMA,KAAK,GAAG,CACb,KADa,EAEb;AACA,QAHa,EAIb,QAJa,EAKb,MALa,EAMb,KANa,EAOb,MAPa,EAQb,OARa,EASb,SATa,EAUb,MAVa,CAAd;;IAaqBC,O;EACpB;AACD;AACA;AACA;EACC,mBAA6C;IAAA,IAAjCC,OAAiC,uEAAvB,EAAuB;;IAAA,+EAAJ,EAAI;IAAA,IAAjBC,QAAiB,QAAjBA,QAAiB;;IAAA;;IAC5C;IACA,IAAI,OAAOD,OAAP,KAAmB,QAAvB,EAAiC;MAChCA,OAAO,GAAG,CAACA,OAAD,CAAV;IACA,CAJ2C,CAM5C;IACA;IACA;;;IACA,KAAKE,MAAL,GAAc,IAAAC,kBAAA,EACbH,OAAO,CAACI,MAAR,CAAeL,OAAO,CAACM,gBAAR,EAAf,CADa,EAEbC,8BAFa,CAAd;;IAKA,IAAI,OAAOC,IAAP,KAAgB,WAApB,EAAiC;MAChC;MACA,IAAIA,IAAI,CAACC,YAAT,EAAuB;QACtB,KAAKC,YAAL,GAAoB,IAAIF,IAAI,CAACC,YAAT,CAAsB,KAAKN,MAA3B,CAApB;MACA;IACD,CAnB2C,CAqB5C;IACA;IACA;IACA;;;IACA,IAAID,QAAQ,KAAK,KAAjB,EAAwB;MACvB,KAAKS,sBAAL,GAA8BH,IAAI,CAACI,kBAAnC;MACA,KAAKC,eAAL,GAAuBL,IAAI,CAACM,WAA5B;IACA,CAHD,MAGO;MACN,KAAKH,sBAAL,GAA8BI,8BAA9B;MACA,KAAKF,eAAL,GAAuBE,8BAAA,CAA2BD,WAAlD;IACA,CA/B2C,CA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OAAOA,QAAP,KAAoB,QAApB,IAAgC,IAAAC,yBAAA,EAAcD,QAAd,CAAvC;AACA"}
|
package/locale/af/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/af",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/af",
|
|
4
|
+
"main": "../af.json",
|
|
5
|
+
"module": "../af.json.js",
|
|
6
|
+
"types": "../af.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../af.json.d.ts",
|
|
11
|
+
"import": "../af.json.js",
|
|
12
|
+
"require": "../af.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
package/locale/am/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/am",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/am",
|
|
4
|
+
"main": "../am.json",
|
|
5
|
+
"module": "../am.json.js",
|
|
6
|
+
"types": "../am.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../am.json.d.ts",
|
|
11
|
+
"import": "../am.json.js",
|
|
12
|
+
"require": "../am.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
package/locale/ar/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/ar",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/ar",
|
|
4
|
+
"main": "../ar.json",
|
|
5
|
+
"module": "../ar.json.js",
|
|
6
|
+
"types": "../ar.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../ar.json.d.ts",
|
|
11
|
+
"import": "../ar.json.js",
|
|
12
|
+
"require": "../ar.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/ar-AE",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/ar-AE",
|
|
4
|
+
"main": "../ar-AE.json",
|
|
5
|
+
"module": "../ar-AE.json.js",
|
|
6
|
+
"types": "../ar-AE.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../ar-AE.json.d.ts",
|
|
11
|
+
"import": "../ar-AE.json.js",
|
|
12
|
+
"require": "../ar-AE.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
package/locale/as/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/as",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/as",
|
|
4
|
+
"main": "../as.json",
|
|
5
|
+
"module": "../as.json.js",
|
|
6
|
+
"types": "../as.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../as.json.d.ts",
|
|
11
|
+
"import": "../as.json.js",
|
|
12
|
+
"require": "../as.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
package/locale/ast/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/ast",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/ast",
|
|
4
|
+
"main": "../ast.json",
|
|
5
|
+
"module": "../ast.json.js",
|
|
6
|
+
"types": "../ast.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../ast.json.d.ts",
|
|
11
|
+
"import": "../ast.json.js",
|
|
12
|
+
"require": "../ast.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
package/locale/az/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/az",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/az",
|
|
4
|
+
"main": "../az.json",
|
|
5
|
+
"module": "../az.json.js",
|
|
6
|
+
"types": "../az.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../az.json.d.ts",
|
|
11
|
+
"import": "../az.json.js",
|
|
12
|
+
"require": "../az.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
package/locale/be/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/be",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/be",
|
|
4
|
+
"main": "../be.json",
|
|
5
|
+
"module": "../be.json.js",
|
|
6
|
+
"types": "../be.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../be.json.d.ts",
|
|
11
|
+
"import": "../be.json.js",
|
|
12
|
+
"require": "../be.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
package/locale/bg/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/bg",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/bg",
|
|
4
|
+
"main": "../bg.json",
|
|
5
|
+
"module": "../bg.json.js",
|
|
6
|
+
"types": "../bg.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../bg.json.d.ts",
|
|
11
|
+
"import": "../bg.json.js",
|
|
12
|
+
"require": "../bg.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
package/locale/bn/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/bn",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/bn",
|
|
4
|
+
"main": "../bn.json",
|
|
5
|
+
"module": "../bn.json.js",
|
|
6
|
+
"types": "../bn.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../bn.json.d.ts",
|
|
11
|
+
"import": "../bn.json.js",
|
|
12
|
+
"require": "../bn.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
package/locale/br/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/br",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/br",
|
|
4
|
+
"main": "../br.json",
|
|
5
|
+
"module": "../br.json.js",
|
|
6
|
+
"types": "../br.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../br.json.d.ts",
|
|
11
|
+
"import": "../br.json.js",
|
|
12
|
+
"require": "../br.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
package/locale/brx/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/brx",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/brx",
|
|
4
|
+
"main": "../brx.json",
|
|
5
|
+
"module": "../brx.json.js",
|
|
6
|
+
"types": "../brx.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../brx.json.d.ts",
|
|
11
|
+
"import": "../brx.json.js",
|
|
12
|
+
"require": "../brx.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
package/locale/bs/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/bs",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/bs",
|
|
4
|
+
"main": "../bs.json",
|
|
5
|
+
"module": "../bs.json.js",
|
|
6
|
+
"types": "../bs.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../bs.json.d.ts",
|
|
11
|
+
"import": "../bs.json.js",
|
|
12
|
+
"require": "../bs.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/bs-Cyrl",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/bs-Cyrl",
|
|
4
|
+
"main": "../bs-Cyrl.json",
|
|
5
|
+
"module": "../bs-Cyrl.json.js",
|
|
6
|
+
"types": "../bs-Cyrl.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../bs-Cyrl.json.d.ts",
|
|
11
|
+
"import": "../bs-Cyrl.json.js",
|
|
12
|
+
"require": "../bs-Cyrl.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|
package/locale/ca/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "javascript-time-ago/locale/ca",
|
|
3
2
|
"private": true,
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"name": "javascript-time-ago/locale/ca",
|
|
4
|
+
"main": "../ca.json",
|
|
5
|
+
"module": "../ca.json.js",
|
|
6
|
+
"types": "../ca.json.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "../ca.json.d.ts",
|
|
11
|
+
"import": "../ca.json.js",
|
|
12
|
+
"require": "../ca.json"
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
"sideEffects": false
|