javascript-time-ago 2.3.13 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +27 -1
- package/bin/create-commonjs-package-json.js +11 -0
- package/bin/generate-load-all-locales.js +38 -6
- package/bin/generate-locale-messages.js +106 -21
- 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/cache/index.cjs +2 -0
- package/cache/index.cjs.js +7 -0
- package/cache/index.js +1 -1
- package/cache/package.json +9 -3
- package/commonjs/LocaleDataStore.js +1 -1
- package/commonjs/LocaleDataStore.js.map +1 -1
- package/commonjs/PropTypes.js +26 -18
- package/commonjs/PropTypes.js.map +1 -1
- package/commonjs/TimeAgo.js +41 -48
- package/commonjs/TimeAgo.js.map +1 -1
- package/commonjs/TimeAgo.test.js +70 -70
- package/commonjs/TimeAgo.test.js.map +1 -1
- package/commonjs/cache.js +10 -14
- package/commonjs/cache.js.map +1 -1
- package/commonjs/cache.test.js +3 -3
- package/commonjs/cache.test.js.map +1 -1
- package/commonjs/isStyleObject.js +2 -2
- package/commonjs/isStyleObject.js.map +1 -1
- package/commonjs/isStyleObject.test.js +11 -11
- package/commonjs/isStyleObject.test.js.map +1 -1
- package/commonjs/locale.js +11 -16
- package/commonjs/locale.js.map +1 -1
- package/commonjs/locale.test.js +8 -4
- package/commonjs/locale.test.js.map +1 -1
- package/commonjs/package.json +5 -0
- package/commonjs/round.js +1 -1
- package/commonjs/round.js.map +1 -1
- package/commonjs/steps/approximate.js +3 -3
- package/commonjs/steps/approximate.js.map +1 -1
- package/commonjs/steps/approximate.test.js +5 -5
- package/commonjs/steps/approximate.test.js.map +1 -1
- package/commonjs/steps/getStep.js +10 -8
- package/commonjs/steps/getStep.js.map +1 -1
- package/commonjs/steps/getStep.test.js +16 -16
- package/commonjs/steps/getStep.test.js.map +1 -1
- package/commonjs/steps/getStepDenominator.js +2 -2
- package/commonjs/steps/getStepDenominator.js.map +1 -1
- package/commonjs/steps/getStepDenominator.test.js +4 -4
- package/commonjs/steps/getStepDenominator.test.js.map +1 -1
- package/commonjs/steps/getStepMinTime.js +5 -5
- package/commonjs/steps/getStepMinTime.js.map +1 -1
- package/commonjs/steps/getStepMinTime.test.js +4 -4
- package/commonjs/steps/getStepMinTime.test.js.map +1 -1
- package/commonjs/steps/getTimeToNextUpdate.js +8 -8
- package/commonjs/steps/getTimeToNextUpdate.js.map +1 -1
- package/commonjs/steps/getTimeToNextUpdate.test.js +18 -14
- package/commonjs/steps/getTimeToNextUpdate.test.js.map +1 -1
- package/commonjs/steps/getTimeToNextUpdateForUnit.js +3 -3
- package/commonjs/steps/getTimeToNextUpdateForUnit.js.map +1 -1
- package/commonjs/steps/getTimeToNextUpdateForUnit.test.js +8 -8
- package/commonjs/steps/getTimeToNextUpdateForUnit.test.js.map +1 -1
- package/commonjs/steps/helpers.js.map +1 -1
- package/commonjs/steps/helpers.test.js +1 -1
- package/commonjs/steps/helpers.test.js.map +1 -1
- package/commonjs/steps/index.js +24 -24
- package/commonjs/steps/index.js.map +1 -1
- package/commonjs/steps/renameLegacyProperties.js +8 -8
- package/commonjs/steps/renameLegacyProperties.js.map +1 -1
- package/commonjs/steps/renameLegacyProperties.test.js +6 -6
- package/commonjs/steps/renameLegacyProperties.test.js.map +1 -1
- package/commonjs/steps/round.js +2 -2
- package/commonjs/steps/round.js.map +1 -1
- package/commonjs/steps/round.test.js +6 -6
- package/commonjs/steps/round.test.js.map +1 -1
- package/commonjs/steps/units.js +2 -1
- package/commonjs/steps/units.js.map +1 -1
- package/commonjs/style/approximate.js +5 -5
- package/commonjs/style/approximate.js.map +1 -1
- package/commonjs/style/approximateTime.js +5 -5
- package/commonjs/style/approximateTime.js.map +1 -1
- package/commonjs/style/approximateTime.test.js +13 -18
- package/commonjs/style/approximateTime.test.js.map +1 -1
- package/commonjs/style/getStyleByName.js +29 -29
- package/commonjs/style/getStyleByName.js.map +1 -1
- package/commonjs/style/mini.js +2 -2
- package/commonjs/style/mini.js.map +1 -1
- package/commonjs/style/mini.test.js +62 -60
- package/commonjs/style/mini.test.js.map +1 -1
- package/commonjs/style/miniMinute.js +9 -7
- package/commonjs/style/miniMinute.js.map +1 -1
- package/commonjs/style/miniMinute.test.js +30 -28
- package/commonjs/style/miniMinute.test.js.map +1 -1
- package/commonjs/style/miniMinuteNow.js +9 -7
- package/commonjs/style/miniMinuteNow.js.map +1 -1
- package/commonjs/style/miniMinuteNow.test.js +30 -28
- package/commonjs/style/miniMinuteNow.test.js.map +1 -1
- package/commonjs/style/miniNow.js +9 -7
- package/commonjs/style/miniNow.js.map +1 -1
- package/commonjs/style/miniNow.test.js +30 -28
- package/commonjs/style/miniNow.test.js.map +1 -1
- package/commonjs/style/renameLegacyProperties.js +7 -5
- package/commonjs/style/renameLegacyProperties.js.map +1 -1
- package/commonjs/style/renameLegacyProperties.test.js +5 -5
- package/commonjs/style/renameLegacyProperties.test.js.map +1 -1
- package/commonjs/style/round.js +5 -5
- package/commonjs/style/round.js.map +1 -1
- package/commonjs/style/round.test.js +66 -60
- package/commonjs/style/round.test.js.map +1 -1
- package/commonjs/style/roundMinute.js +9 -7
- package/commonjs/style/roundMinute.js.map +1 -1
- package/commonjs/style/roundMinute.test.js +33 -31
- package/commonjs/style/roundMinute.test.js.map +1 -1
- package/commonjs/style/twitter.js +18 -18
- package/commonjs/style/twitter.js.map +1 -1
- package/commonjs/style/twitter.test.js +76 -74
- package/commonjs/style/twitter.test.js.map +1 -1
- package/commonjs/style/twitterFirstMinute.js +11 -9
- package/commonjs/style/twitterFirstMinute.js.map +1 -1
- package/commonjs/style/twitterFirstMinute.test.js +35 -33
- package/commonjs/style/twitterFirstMinute.test.js.map +1 -1
- package/commonjs/style/twitterMinute.js +9 -7
- package/commonjs/style/twitterMinute.js.map +1 -1
- package/commonjs/style/twitterMinute.test.js +36 -34
- package/commonjs/style/twitterMinute.test.js.map +1 -1
- package/commonjs/style/twitterMinuteNow.js +9 -7
- package/commonjs/style/twitterMinuteNow.js.map +1 -1
- package/commonjs/style/twitterMinuteNow.test.js +36 -34
- package/commonjs/style/twitterMinuteNow.test.js.map +1 -1
- package/commonjs/style/twitterNow.js +9 -7
- package/commonjs/style/twitterNow.js.map +1 -1
- package/commonjs/style/twitterNow.test.js +35 -33
- package/commonjs/style/twitterNow.test.js.map +1 -1
- package/gradation/index.cjs +2 -0
- package/gradation/index.cjs.js +7 -0
- package/gradation/index.js +1 -1
- package/gradation/package.json +9 -3
- package/index.cjs +9 -0
- package/index.cjs.js +14 -0
- package/index.d.ts +6 -0
- package/index.js +2 -2
- package/load-all-locales/index.cjs +281 -0
- package/load-all-locales/index.cjs.js +286 -0
- package/load-all-locales/index.js +563 -0
- package/load-all-locales/package.json +18 -0
- package/locale/af/index.cjs +3 -0
- package/locale/af/index.cjs.js +3 -0
- package/locale/af/index.js +1 -3
- package/locale/af/package.json +14 -0
- package/locale/am/index.cjs +3 -0
- package/locale/am/index.cjs.js +3 -0
- package/locale/am/index.js +1 -3
- package/locale/am/package.json +14 -0
- package/locale/ar/index.cjs +3 -0
- package/locale/ar/index.cjs.js +3 -0
- package/locale/ar/index.js +1 -3
- package/locale/ar/package.json +14 -0
- package/locale/ar-AE/index.cjs +3 -0
- package/locale/ar-AE/index.cjs.js +3 -0
- package/locale/ar-AE/index.js +1 -3
- package/locale/ar-AE/package.json +14 -0
- package/locale/as/index.cjs +3 -0
- package/locale/as/index.cjs.js +3 -0
- package/locale/as/index.js +1 -3
- package/locale/as/package.json +14 -0
- package/locale/ast/index.cjs +3 -0
- package/locale/ast/index.cjs.js +3 -0
- package/locale/ast/index.js +1 -3
- package/locale/ast/package.json +14 -0
- package/locale/az/index.cjs +3 -0
- package/locale/az/index.cjs.js +3 -0
- package/locale/az/index.js +1 -3
- package/locale/az/package.json +14 -0
- package/locale/be/index.cjs +3 -0
- package/locale/be/index.cjs.js +3 -0
- package/locale/be/index.js +1 -3
- package/locale/be/package.json +14 -0
- package/locale/bg/index.cjs +3 -0
- package/locale/bg/index.cjs.js +3 -0
- package/locale/bg/index.js +1 -3
- package/locale/bg/package.json +14 -0
- package/locale/bn/index.cjs +3 -0
- package/locale/bn/index.cjs.js +3 -0
- package/locale/bn/index.js +1 -3
- package/locale/bn/package.json +14 -0
- package/locale/br/index.cjs +3 -0
- package/locale/br/index.cjs.js +3 -0
- package/locale/br/index.js +1 -3
- package/locale/br/package.json +14 -0
- package/locale/brx/index.cjs +3 -0
- package/locale/brx/index.cjs.js +3 -0
- package/locale/brx/index.js +1 -0
- package/locale/brx/package.json +14 -0
- package/locale/brx.json +159 -0
- package/locale/bs/index.cjs +3 -0
- package/locale/bs/index.cjs.js +3 -0
- package/locale/bs/index.js +1 -3
- package/locale/bs/package.json +14 -0
- package/locale/bs-Cyrl/index.cjs +3 -0
- package/locale/bs-Cyrl/index.cjs.js +3 -0
- package/locale/bs-Cyrl/index.js +1 -3
- package/locale/bs-Cyrl/package.json +14 -0
- package/locale/ca/index.cjs +3 -0
- package/locale/ca/index.cjs.js +3 -0
- package/locale/ca/index.js +1 -3
- package/locale/ca/package.json +14 -0
- package/locale/ccp/index.cjs +3 -0
- package/locale/ccp/index.cjs.js +3 -0
- package/locale/ccp/index.js +1 -3
- package/locale/ccp/package.json +14 -0
- package/locale/ce/index.cjs +3 -0
- package/locale/ce/index.cjs.js +3 -0
- package/locale/ce/index.js +1 -3
- package/locale/ce/package.json +14 -0
- package/locale/ceb/index.cjs +3 -0
- package/locale/ceb/index.cjs.js +3 -0
- package/locale/ceb/index.js +1 -3
- package/locale/ceb/package.json +14 -0
- package/locale/chr/index.cjs +3 -0
- package/locale/chr/index.cjs.js +3 -0
- package/locale/chr/index.js +1 -3
- package/locale/chr/package.json +14 -0
- package/locale/cs/index.cjs +3 -0
- package/locale/cs/index.cjs.js +3 -0
- package/locale/cs/index.js +1 -3
- package/locale/cs/package.json +14 -0
- package/locale/cy/index.cjs +3 -0
- package/locale/cy/index.cjs.js +3 -0
- package/locale/cy/index.js +1 -3
- package/locale/cy/package.json +14 -0
- package/locale/da/index.cjs +3 -0
- package/locale/da/index.cjs.js +3 -0
- package/locale/da/index.js +1 -3
- package/locale/da/package.json +14 -0
- package/locale/de/index.cjs +3 -0
- package/locale/de/index.cjs.js +3 -0
- package/locale/de/index.js +1 -3
- package/locale/de/package.json +14 -0
- package/locale/dsb/index.cjs +3 -0
- package/locale/dsb/index.cjs.js +3 -0
- package/locale/dsb/index.js +1 -3
- package/locale/dsb/package.json +14 -0
- package/locale/dz/index.cjs +3 -0
- package/locale/dz/index.cjs.js +3 -0
- package/locale/dz/index.js +1 -3
- package/locale/dz/package.json +14 -0
- package/locale/ee/index.cjs +3 -0
- package/locale/ee/index.cjs.js +3 -0
- package/locale/ee/index.js +1 -3
- package/locale/ee/package.json +14 -0
- package/locale/el/index.cjs +3 -0
- package/locale/el/index.cjs.js +3 -0
- package/locale/el/index.js +1 -3
- package/locale/el/package.json +14 -0
- package/locale/en/index.cjs +3 -0
- package/locale/en/index.cjs.js +3 -0
- package/locale/en/index.js +1 -3
- package/locale/en/package.json +14 -0
- package/locale/en-001/index.cjs +3 -0
- package/locale/en-001/index.cjs.js +3 -0
- package/locale/en-001/index.js +1 -3
- package/locale/en-001/package.json +14 -0
- package/locale/en-150/index.cjs +3 -0
- package/locale/en-150/index.cjs.js +3 -0
- package/locale/en-150/index.js +1 -3
- package/locale/en-150/package.json +14 -0
- package/locale/en-AG/index.cjs +3 -0
- package/locale/en-AG/index.cjs.js +3 -0
- package/locale/en-AG/index.js +1 -3
- package/locale/en-AG/package.json +14 -0
- package/locale/en-AI/index.cjs +3 -0
- package/locale/en-AI/index.cjs.js +3 -0
- package/locale/en-AI/index.js +1 -3
- package/locale/en-AI/package.json +14 -0
- package/locale/en-AT/index.cjs +3 -0
- package/locale/en-AT/index.cjs.js +3 -0
- package/locale/en-AT/index.js +1 -3
- package/locale/en-AT/package.json +14 -0
- package/locale/en-AU/index.cjs +3 -0
- package/locale/en-AU/index.cjs.js +3 -0
- package/locale/en-AU/index.js +1 -3
- package/locale/en-AU/package.json +14 -0
- package/locale/en-BB/index.cjs +3 -0
- package/locale/en-BB/index.cjs.js +3 -0
- package/locale/en-BB/index.js +1 -3
- package/locale/en-BB/package.json +14 -0
- package/locale/en-BE/index.cjs +3 -0
- package/locale/en-BE/index.cjs.js +3 -0
- package/locale/en-BE/index.js +1 -3
- package/locale/en-BE/package.json +14 -0
- package/locale/en-BM/index.cjs +3 -0
- package/locale/en-BM/index.cjs.js +3 -0
- package/locale/en-BM/index.js +1 -3
- package/locale/en-BM/package.json +14 -0
- package/locale/en-BS/index.cjs +3 -0
- package/locale/en-BS/index.cjs.js +3 -0
- package/locale/en-BS/index.js +1 -3
- package/locale/en-BS/package.json +14 -0
- package/locale/en-BW/index.cjs +3 -0
- package/locale/en-BW/index.cjs.js +3 -0
- package/locale/en-BW/index.js +1 -3
- package/locale/en-BW/package.json +14 -0
- package/locale/en-BZ/index.cjs +3 -0
- package/locale/en-BZ/index.cjs.js +3 -0
- package/locale/en-BZ/index.js +1 -3
- package/locale/en-BZ/package.json +14 -0
- package/locale/en-CA/index.cjs +3 -0
- package/locale/en-CA/index.cjs.js +3 -0
- package/locale/en-CA/index.js +1 -3
- package/locale/en-CA/package.json +14 -0
- package/locale/en-CC/index.cjs +3 -0
- package/locale/en-CC/index.cjs.js +3 -0
- package/locale/en-CC/index.js +1 -3
- package/locale/en-CC/package.json +14 -0
- package/locale/en-CH/index.cjs +3 -0
- package/locale/en-CH/index.cjs.js +3 -0
- package/locale/en-CH/index.js +1 -3
- package/locale/en-CH/package.json +14 -0
- package/locale/en-CK/index.cjs +3 -0
- package/locale/en-CK/index.cjs.js +3 -0
- package/locale/en-CK/index.js +1 -3
- package/locale/en-CK/package.json +14 -0
- package/locale/en-CM/index.cjs +3 -0
- package/locale/en-CM/index.cjs.js +3 -0
- package/locale/en-CM/index.js +1 -3
- package/locale/en-CM/package.json +14 -0
- package/locale/en-CX/index.cjs +3 -0
- package/locale/en-CX/index.cjs.js +3 -0
- package/locale/en-CX/index.js +1 -3
- package/locale/en-CX/package.json +14 -0
- package/locale/en-CY/index.cjs +3 -0
- package/locale/en-CY/index.cjs.js +3 -0
- package/locale/en-CY/index.js +1 -3
- package/locale/en-CY/package.json +14 -0
- package/locale/en-DE/index.cjs +3 -0
- package/locale/en-DE/index.cjs.js +3 -0
- package/locale/en-DE/index.js +1 -3
- package/locale/en-DE/package.json +14 -0
- package/locale/en-DG/index.cjs +3 -0
- package/locale/en-DG/index.cjs.js +3 -0
- package/locale/en-DG/index.js +1 -3
- package/locale/en-DG/package.json +14 -0
- package/locale/en-DK/index.cjs +3 -0
- package/locale/en-DK/index.cjs.js +3 -0
- package/locale/en-DK/index.js +1 -3
- package/locale/en-DK/package.json +14 -0
- package/locale/en-DM/index.cjs +3 -0
- package/locale/en-DM/index.cjs.js +3 -0
- package/locale/en-DM/index.js +1 -3
- package/locale/en-DM/package.json +14 -0
- package/locale/en-ER/index.cjs +3 -0
- package/locale/en-ER/index.cjs.js +3 -0
- package/locale/en-ER/index.js +1 -3
- package/locale/en-ER/package.json +14 -0
- package/locale/en-FI/index.cjs +3 -0
- package/locale/en-FI/index.cjs.js +3 -0
- package/locale/en-FI/index.js +1 -3
- package/locale/en-FI/package.json +14 -0
- package/locale/en-FJ/index.cjs +3 -0
- package/locale/en-FJ/index.cjs.js +3 -0
- package/locale/en-FJ/index.js +1 -3
- package/locale/en-FJ/package.json +14 -0
- package/locale/en-FK/index.cjs +3 -0
- package/locale/en-FK/index.cjs.js +3 -0
- package/locale/en-FK/index.js +1 -3
- package/locale/en-FK/package.json +14 -0
- package/locale/en-FM/index.cjs +3 -0
- package/locale/en-FM/index.cjs.js +3 -0
- package/locale/en-FM/index.js +1 -3
- package/locale/en-FM/package.json +14 -0
- package/locale/en-GB/index.cjs +3 -0
- package/locale/en-GB/index.cjs.js +3 -0
- package/locale/en-GB/index.js +1 -3
- package/locale/en-GB/package.json +14 -0
- package/locale/en-GD/index.cjs +3 -0
- package/locale/en-GD/index.cjs.js +3 -0
- package/locale/en-GD/index.js +1 -3
- package/locale/en-GD/package.json +14 -0
- package/locale/en-GG/index.cjs +3 -0
- package/locale/en-GG/index.cjs.js +3 -0
- package/locale/en-GG/index.js +1 -3
- package/locale/en-GG/package.json +14 -0
- package/locale/en-GH/index.cjs +3 -0
- package/locale/en-GH/index.cjs.js +3 -0
- package/locale/en-GH/index.js +1 -3
- package/locale/en-GH/package.json +14 -0
- package/locale/en-GI/index.cjs +3 -0
- package/locale/en-GI/index.cjs.js +3 -0
- package/locale/en-GI/index.js +1 -3
- package/locale/en-GI/package.json +14 -0
- package/locale/en-GM/index.cjs +3 -0
- package/locale/en-GM/index.cjs.js +3 -0
- package/locale/en-GM/index.js +1 -3
- package/locale/en-GM/package.json +14 -0
- package/locale/en-GY/index.cjs +3 -0
- package/locale/en-GY/index.cjs.js +3 -0
- package/locale/en-GY/index.js +1 -3
- package/locale/en-GY/package.json +14 -0
- package/locale/en-HK/index.cjs +3 -0
- package/locale/en-HK/index.cjs.js +3 -0
- package/locale/en-HK/index.js +1 -3
- package/locale/en-HK/package.json +14 -0
- package/locale/en-IE/index.cjs +3 -0
- package/locale/en-IE/index.cjs.js +3 -0
- package/locale/en-IE/index.js +1 -3
- package/locale/en-IE/package.json +14 -0
- package/locale/en-IL/index.cjs +3 -0
- package/locale/en-IL/index.cjs.js +3 -0
- package/locale/en-IL/index.js +1 -3
- package/locale/en-IL/package.json +14 -0
- package/locale/en-IM/index.cjs +3 -0
- package/locale/en-IM/index.cjs.js +3 -0
- package/locale/en-IM/index.js +1 -3
- package/locale/en-IM/package.json +14 -0
- package/locale/en-IN/index.cjs +3 -0
- package/locale/en-IN/index.cjs.js +3 -0
- package/locale/en-IN/index.js +1 -3
- package/locale/en-IN/package.json +14 -0
- package/locale/en-IO/index.cjs +3 -0
- package/locale/en-IO/index.cjs.js +3 -0
- package/locale/en-IO/index.js +1 -3
- package/locale/en-IO/package.json +14 -0
- package/locale/en-JE/index.cjs +3 -0
- package/locale/en-JE/index.cjs.js +3 -0
- package/locale/en-JE/index.js +1 -3
- package/locale/en-JE/package.json +14 -0
- package/locale/en-JM/index.cjs +3 -0
- package/locale/en-JM/index.cjs.js +3 -0
- package/locale/en-JM/index.js +1 -3
- package/locale/en-JM/package.json +14 -0
- package/locale/en-KE/index.cjs +3 -0
- package/locale/en-KE/index.cjs.js +3 -0
- package/locale/en-KE/index.js +1 -3
- package/locale/en-KE/package.json +14 -0
- package/locale/en-KI/index.cjs +3 -0
- package/locale/en-KI/index.cjs.js +3 -0
- package/locale/en-KI/index.js +1 -3
- package/locale/en-KI/package.json +14 -0
- package/locale/en-KN/index.cjs +3 -0
- package/locale/en-KN/index.cjs.js +3 -0
- package/locale/en-KN/index.js +1 -3
- package/locale/en-KN/package.json +14 -0
- package/locale/en-KY/index.cjs +3 -0
- package/locale/en-KY/index.cjs.js +3 -0
- package/locale/en-KY/index.js +1 -3
- package/locale/en-KY/package.json +14 -0
- package/locale/en-LC/index.cjs +3 -0
- package/locale/en-LC/index.cjs.js +3 -0
- package/locale/en-LC/index.js +1 -3
- package/locale/en-LC/package.json +14 -0
- package/locale/en-LR/index.cjs +3 -0
- package/locale/en-LR/index.cjs.js +3 -0
- package/locale/en-LR/index.js +1 -3
- package/locale/en-LR/package.json +14 -0
- package/locale/en-LS/index.cjs +3 -0
- package/locale/en-LS/index.cjs.js +3 -0
- package/locale/en-LS/index.js +1 -3
- package/locale/en-LS/package.json +14 -0
- package/locale/en-MG/index.cjs +3 -0
- package/locale/en-MG/index.cjs.js +3 -0
- package/locale/en-MG/index.js +1 -3
- package/locale/en-MG/package.json +14 -0
- package/locale/en-MO/index.cjs +3 -0
- package/locale/en-MO/index.cjs.js +3 -0
- package/locale/en-MO/index.js +1 -3
- package/locale/en-MO/package.json +14 -0
- package/locale/en-MS/index.cjs +3 -0
- package/locale/en-MS/index.cjs.js +3 -0
- package/locale/en-MS/index.js +1 -3
- package/locale/en-MS/package.json +14 -0
- package/locale/en-MT/index.cjs +3 -0
- package/locale/en-MT/index.cjs.js +3 -0
- package/locale/en-MT/index.js +1 -3
- package/locale/en-MT/package.json +14 -0
- package/locale/en-MU/index.cjs +3 -0
- package/locale/en-MU/index.cjs.js +3 -0
- package/locale/en-MU/index.js +1 -3
- package/locale/en-MU/package.json +14 -0
- package/locale/en-MV/index.cjs +3 -0
- package/locale/en-MV/index.cjs.js +3 -0
- package/locale/en-MV/index.js +1 -0
- package/locale/en-MV/package.json +14 -0
- package/locale/en-MV.json +219 -0
- package/locale/en-MW/index.cjs +3 -0
- package/locale/en-MW/index.cjs.js +3 -0
- package/locale/en-MW/index.js +1 -3
- package/locale/en-MW/package.json +14 -0
- package/locale/en-MY/index.cjs +3 -0
- package/locale/en-MY/index.cjs.js +3 -0
- package/locale/en-MY/index.js +1 -3
- package/locale/en-MY/package.json +14 -0
- package/locale/en-NA/index.cjs +3 -0
- package/locale/en-NA/index.cjs.js +3 -0
- package/locale/en-NA/index.js +1 -3
- package/locale/en-NA/package.json +14 -0
- package/locale/en-NF/index.cjs +3 -0
- package/locale/en-NF/index.cjs.js +3 -0
- package/locale/en-NF/index.js +1 -3
- package/locale/en-NF/package.json +14 -0
- package/locale/en-NG/index.cjs +3 -0
- package/locale/en-NG/index.cjs.js +3 -0
- package/locale/en-NG/index.js +1 -3
- package/locale/en-NG/package.json +14 -0
- package/locale/en-NL/index.cjs +3 -0
- package/locale/en-NL/index.cjs.js +3 -0
- package/locale/en-NL/index.js +1 -3
- package/locale/en-NL/package.json +14 -0
- package/locale/en-NR/index.cjs +3 -0
- package/locale/en-NR/index.cjs.js +3 -0
- package/locale/en-NR/index.js +1 -3
- package/locale/en-NR/package.json +14 -0
- package/locale/en-NU/index.cjs +3 -0
- package/locale/en-NU/index.cjs.js +3 -0
- package/locale/en-NU/index.js +1 -3
- package/locale/en-NU/package.json +14 -0
- package/locale/en-NZ/index.cjs +3 -0
- package/locale/en-NZ/index.cjs.js +3 -0
- package/locale/en-NZ/index.js +1 -3
- package/locale/en-NZ/package.json +14 -0
- package/locale/en-PG/index.cjs +3 -0
- package/locale/en-PG/index.cjs.js +3 -0
- package/locale/en-PG/index.js +1 -3
- package/locale/en-PG/package.json +14 -0
- package/locale/en-PK/index.cjs +3 -0
- package/locale/en-PK/index.cjs.js +3 -0
- package/locale/en-PK/index.js +1 -3
- package/locale/en-PK/package.json +14 -0
- package/locale/en-PN/index.cjs +3 -0
- package/locale/en-PN/index.cjs.js +3 -0
- package/locale/en-PN/index.js +1 -3
- package/locale/en-PN/package.json +14 -0
- package/locale/en-PW/index.cjs +3 -0
- package/locale/en-PW/index.cjs.js +3 -0
- package/locale/en-PW/index.js +1 -3
- package/locale/en-PW/package.json +14 -0
- package/locale/en-RW/index.cjs +3 -0
- package/locale/en-RW/index.cjs.js +3 -0
- package/locale/en-RW/index.js +1 -3
- package/locale/en-RW/package.json +14 -0
- package/locale/en-SB/index.cjs +3 -0
- package/locale/en-SB/index.cjs.js +3 -0
- package/locale/en-SB/index.js +1 -3
- package/locale/en-SB/package.json +14 -0
- package/locale/en-SC/index.cjs +3 -0
- package/locale/en-SC/index.cjs.js +3 -0
- package/locale/en-SC/index.js +1 -3
- package/locale/en-SC/package.json +14 -0
- package/locale/en-SD/index.cjs +3 -0
- package/locale/en-SD/index.cjs.js +3 -0
- package/locale/en-SD/index.js +1 -3
- package/locale/en-SD/package.json +14 -0
- package/locale/en-SE/index.cjs +3 -0
- package/locale/en-SE/index.cjs.js +3 -0
- package/locale/en-SE/index.js +1 -3
- package/locale/en-SE/package.json +14 -0
- package/locale/en-SG/index.cjs +3 -0
- package/locale/en-SG/index.cjs.js +3 -0
- package/locale/en-SG/index.js +1 -3
- package/locale/en-SG/package.json +14 -0
- package/locale/en-SH/index.cjs +3 -0
- package/locale/en-SH/index.cjs.js +3 -0
- package/locale/en-SH/index.js +1 -3
- package/locale/en-SH/package.json +14 -0
- package/locale/en-SI/index.cjs +3 -0
- package/locale/en-SI/index.cjs.js +3 -0
- package/locale/en-SI/index.js +1 -3
- package/locale/en-SI/package.json +14 -0
- package/locale/en-SL/index.cjs +3 -0
- package/locale/en-SL/index.cjs.js +3 -0
- package/locale/en-SL/index.js +1 -3
- package/locale/en-SL/package.json +14 -0
- package/locale/en-SS/index.cjs +3 -0
- package/locale/en-SS/index.cjs.js +3 -0
- package/locale/en-SS/index.js +1 -3
- package/locale/en-SS/package.json +14 -0
- package/locale/en-SX/index.cjs +3 -0
- package/locale/en-SX/index.cjs.js +3 -0
- package/locale/en-SX/index.js +1 -3
- package/locale/en-SX/package.json +14 -0
- package/locale/en-SZ/index.cjs +3 -0
- package/locale/en-SZ/index.cjs.js +3 -0
- package/locale/en-SZ/index.js +1 -3
- package/locale/en-SZ/package.json +14 -0
- package/locale/en-TC/index.cjs +3 -0
- package/locale/en-TC/index.cjs.js +3 -0
- package/locale/en-TC/index.js +1 -3
- package/locale/en-TC/package.json +14 -0
- package/locale/en-TK/index.cjs +3 -0
- package/locale/en-TK/index.cjs.js +3 -0
- package/locale/en-TK/index.js +1 -3
- package/locale/en-TK/package.json +14 -0
- package/locale/en-TO/index.cjs +3 -0
- package/locale/en-TO/index.cjs.js +3 -0
- package/locale/en-TO/index.js +1 -3
- package/locale/en-TO/package.json +14 -0
- package/locale/en-TT/index.cjs +3 -0
- package/locale/en-TT/index.cjs.js +3 -0
- package/locale/en-TT/index.js +1 -3
- package/locale/en-TT/package.json +14 -0
- package/locale/en-TV/index.cjs +3 -0
- package/locale/en-TV/index.cjs.js +3 -0
- package/locale/en-TV/index.js +1 -3
- package/locale/en-TV/package.json +14 -0
- package/locale/en-TZ/index.cjs +3 -0
- package/locale/en-TZ/index.cjs.js +3 -0
- package/locale/en-TZ/index.js +1 -3
- package/locale/en-TZ/package.json +14 -0
- package/locale/en-UG/index.cjs +3 -0
- package/locale/en-UG/index.cjs.js +3 -0
- package/locale/en-UG/index.js +1 -3
- package/locale/en-UG/package.json +14 -0
- package/locale/en-VC/index.cjs +3 -0
- package/locale/en-VC/index.cjs.js +3 -0
- package/locale/en-VC/index.js +1 -3
- package/locale/en-VC/package.json +14 -0
- package/locale/en-VG/index.cjs +3 -0
- package/locale/en-VG/index.cjs.js +3 -0
- package/locale/en-VG/index.js +1 -3
- package/locale/en-VG/package.json +14 -0
- package/locale/en-VU/index.cjs +3 -0
- package/locale/en-VU/index.cjs.js +3 -0
- package/locale/en-VU/index.js +1 -3
- package/locale/en-VU/package.json +14 -0
- package/locale/en-WS/index.cjs +3 -0
- package/locale/en-WS/index.cjs.js +3 -0
- package/locale/en-WS/index.js +1 -3
- package/locale/en-WS/package.json +14 -0
- package/locale/en-ZA/index.cjs +3 -0
- package/locale/en-ZA/index.cjs.js +3 -0
- package/locale/en-ZA/index.js +1 -3
- package/locale/en-ZA/package.json +14 -0
- package/locale/en-ZM/index.cjs +3 -0
- package/locale/en-ZM/index.cjs.js +3 -0
- package/locale/en-ZM/index.js +1 -3
- package/locale/en-ZM/package.json +14 -0
- package/locale/en-ZW/index.cjs +3 -0
- package/locale/en-ZW/index.cjs.js +3 -0
- package/locale/en-ZW/index.js +1 -3
- package/locale/en-ZW/package.json +14 -0
- package/locale/es/index.cjs +3 -0
- package/locale/es/index.cjs.js +3 -0
- package/locale/es/index.js +1 -3
- package/locale/es/package.json +14 -0
- package/locale/es-419/index.cjs +3 -0
- package/locale/es-419/index.cjs.js +3 -0
- package/locale/es-419/index.js +1 -3
- package/locale/es-419/package.json +14 -0
- package/locale/es-AR/index.cjs +3 -0
- package/locale/es-AR/index.cjs.js +3 -0
- package/locale/es-AR/index.js +1 -3
- package/locale/es-AR/package.json +14 -0
- package/locale/es-BO/index.cjs +3 -0
- package/locale/es-BO/index.cjs.js +3 -0
- package/locale/es-BO/index.js +1 -3
- package/locale/es-BO/package.json +14 -0
- package/locale/es-BR/index.cjs +3 -0
- package/locale/es-BR/index.cjs.js +3 -0
- package/locale/es-BR/index.js +1 -3
- package/locale/es-BR/package.json +14 -0
- package/locale/es-BZ/index.cjs +3 -0
- package/locale/es-BZ/index.cjs.js +3 -0
- package/locale/es-BZ/index.js +1 -3
- package/locale/es-BZ/package.json +14 -0
- package/locale/es-CL/index.cjs +3 -0
- package/locale/es-CL/index.cjs.js +3 -0
- package/locale/es-CL/index.js +1 -3
- package/locale/es-CL/package.json +14 -0
- package/locale/es-CO/index.cjs +3 -0
- package/locale/es-CO/index.cjs.js +3 -0
- package/locale/es-CO/index.js +1 -3
- package/locale/es-CO/package.json +14 -0
- package/locale/es-CR/index.cjs +3 -0
- package/locale/es-CR/index.cjs.js +3 -0
- package/locale/es-CR/index.js +1 -3
- package/locale/es-CR/package.json +14 -0
- package/locale/es-CU/index.cjs +3 -0
- package/locale/es-CU/index.cjs.js +3 -0
- package/locale/es-CU/index.js +1 -3
- package/locale/es-CU/package.json +14 -0
- package/locale/es-DO/index.cjs +3 -0
- package/locale/es-DO/index.cjs.js +3 -0
- package/locale/es-DO/index.js +1 -3
- package/locale/es-DO/package.json +14 -0
- package/locale/es-EC/index.cjs +3 -0
- package/locale/es-EC/index.cjs.js +3 -0
- package/locale/es-EC/index.js +1 -3
- package/locale/es-EC/package.json +14 -0
- package/locale/es-GT/index.cjs +3 -0
- package/locale/es-GT/index.cjs.js +3 -0
- package/locale/es-GT/index.js +1 -3
- package/locale/es-GT/package.json +14 -0
- package/locale/es-HN/index.cjs +3 -0
- package/locale/es-HN/index.cjs.js +3 -0
- package/locale/es-HN/index.js +1 -3
- package/locale/es-HN/package.json +14 -0
- package/locale/es-MX/index.cjs +3 -0
- package/locale/es-MX/index.cjs.js +3 -0
- package/locale/es-MX/index.js +1 -3
- package/locale/es-MX/package.json +14 -0
- package/locale/es-NI/index.cjs +3 -0
- package/locale/es-NI/index.cjs.js +3 -0
- package/locale/es-NI/index.js +1 -3
- package/locale/es-NI/package.json +14 -0
- package/locale/es-PA/index.cjs +3 -0
- package/locale/es-PA/index.cjs.js +3 -0
- package/locale/es-PA/index.js +1 -3
- package/locale/es-PA/package.json +14 -0
- package/locale/es-PE/index.cjs +3 -0
- package/locale/es-PE/index.cjs.js +3 -0
- package/locale/es-PE/index.js +1 -3
- package/locale/es-PE/package.json +14 -0
- package/locale/es-PR/index.cjs +3 -0
- package/locale/es-PR/index.cjs.js +3 -0
- package/locale/es-PR/index.js +1 -3
- package/locale/es-PR/package.json +14 -0
- package/locale/es-PY/index.cjs +3 -0
- package/locale/es-PY/index.cjs.js +3 -0
- package/locale/es-PY/index.js +1 -3
- package/locale/es-PY/package.json +14 -0
- package/locale/es-SV/index.cjs +3 -0
- package/locale/es-SV/index.cjs.js +3 -0
- package/locale/es-SV/index.js +1 -3
- package/locale/es-SV/package.json +14 -0
- package/locale/es-US/index.cjs +3 -0
- package/locale/es-US/index.cjs.js +3 -0
- package/locale/es-US/index.js +1 -3
- package/locale/es-US/package.json +14 -0
- package/locale/es-UY/index.cjs +3 -0
- package/locale/es-UY/index.cjs.js +3 -0
- package/locale/es-UY/index.js +1 -3
- package/locale/es-UY/package.json +14 -0
- package/locale/es-VE/index.cjs +3 -0
- package/locale/es-VE/index.cjs.js +3 -0
- package/locale/es-VE/index.js +1 -3
- package/locale/es-VE/package.json +14 -0
- package/locale/et/index.cjs +3 -0
- package/locale/et/index.cjs.js +3 -0
- package/locale/et/index.js +1 -3
- package/locale/et/package.json +14 -0
- package/locale/eu/index.cjs +3 -0
- package/locale/eu/index.cjs.js +3 -0
- package/locale/eu/index.js +1 -3
- package/locale/eu/package.json +14 -0
- package/locale/fa/index.cjs +3 -0
- package/locale/fa/index.cjs.js +3 -0
- package/locale/fa/index.js +1 -3
- package/locale/fa/package.json +14 -0
- package/locale/ff-Adlm/index.cjs +3 -0
- package/locale/ff-Adlm/index.cjs.js +3 -0
- package/locale/ff-Adlm/index.js +1 -3
- package/locale/ff-Adlm/package.json +14 -0
- package/locale/fi/index.cjs +3 -0
- package/locale/fi/index.cjs.js +3 -0
- package/locale/fi/index.js +1 -3
- package/locale/fi/package.json +14 -0
- package/locale/fil/index.cjs +3 -0
- package/locale/fil/index.cjs.js +3 -0
- package/locale/fil/index.js +1 -3
- package/locale/fil/package.json +14 -0
- package/locale/fo/index.cjs +3 -0
- package/locale/fo/index.cjs.js +3 -0
- package/locale/fo/index.js +1 -3
- package/locale/fo/package.json +14 -0
- package/locale/fr/index.cjs +3 -0
- package/locale/fr/index.cjs.js +3 -0
- package/locale/fr/index.js +1 -3
- package/locale/fr/package.json +14 -0
- package/locale/fr-CA/index.cjs +3 -0
- package/locale/fr-CA/index.cjs.js +3 -0
- package/locale/fr-CA/index.js +1 -3
- package/locale/fr-CA/package.json +14 -0
- package/locale/fur/index.cjs +3 -0
- package/locale/fur/index.cjs.js +3 -0
- package/locale/fur/index.js +1 -3
- package/locale/fur/package.json +14 -0
- package/locale/fy/index.cjs +3 -0
- package/locale/fy/index.cjs.js +3 -0
- package/locale/fy/index.js +1 -3
- package/locale/fy/package.json +14 -0
- package/locale/ga/index.cjs +3 -0
- package/locale/ga/index.cjs.js +3 -0
- package/locale/ga/index.js +1 -3
- package/locale/ga/package.json +14 -0
- package/locale/gd/index.cjs +3 -0
- package/locale/gd/index.cjs.js +3 -0
- package/locale/gd/index.js +1 -3
- package/locale/gd/package.json +14 -0
- package/locale/gl/index.cjs +3 -0
- package/locale/gl/index.cjs.js +3 -0
- package/locale/gl/index.js +1 -3
- package/locale/gl/package.json +14 -0
- package/locale/gu/index.cjs +3 -0
- package/locale/gu/index.cjs.js +3 -0
- package/locale/gu/index.js +1 -3
- package/locale/gu/package.json +14 -0
- package/locale/ha/index.cjs +3 -0
- package/locale/ha/index.cjs.js +3 -0
- package/locale/ha/index.js +1 -3
- package/locale/ha/package.json +14 -0
- package/locale/he/index.cjs +3 -0
- package/locale/he/index.cjs.js +3 -0
- package/locale/he/index.js +1 -3
- package/locale/he/package.json +14 -0
- package/locale/hi/index.cjs +3 -0
- package/locale/hi/index.cjs.js +3 -0
- package/locale/hi/index.js +1 -3
- package/locale/hi/package.json +14 -0
- package/locale/hi-Latn/index.cjs +3 -0
- package/locale/hi-Latn/index.cjs.js +3 -0
- package/locale/hi-Latn/index.js +1 -0
- package/locale/hi-Latn/package.json +14 -0
- package/locale/hi-Latn.json +183 -0
- package/locale/hr/index.cjs +3 -0
- package/locale/hr/index.cjs.js +3 -0
- package/locale/hr/index.js +1 -3
- package/locale/hr/package.json +14 -0
- package/locale/hsb/index.cjs +3 -0
- package/locale/hsb/index.cjs.js +3 -0
- package/locale/hsb/index.js +1 -3
- package/locale/hsb/package.json +14 -0
- package/locale/hu/index.cjs +3 -0
- package/locale/hu/index.cjs.js +3 -0
- package/locale/hu/index.js +1 -3
- package/locale/hu/package.json +14 -0
- package/locale/hy/index.cjs +3 -0
- package/locale/hy/index.cjs.js +3 -0
- package/locale/hy/index.js +1 -3
- package/locale/hy/package.json +14 -0
- package/locale/ia/index.cjs +3 -0
- package/locale/ia/index.cjs.js +3 -0
- package/locale/ia/index.js +1 -3
- package/locale/ia/package.json +14 -0
- package/locale/id/index.cjs +3 -0
- package/locale/id/index.cjs.js +3 -0
- package/locale/id/index.js +1 -3
- package/locale/id/package.json +14 -0
- package/locale/ig/index.cjs +3 -0
- package/locale/ig/index.cjs.js +3 -0
- package/locale/ig/index.js +1 -3
- package/locale/ig/package.json +14 -0
- package/locale/is/index.cjs +3 -0
- package/locale/is/index.cjs.js +3 -0
- package/locale/is/index.js +1 -3
- package/locale/is/package.json +14 -0
- package/locale/it/index.cjs +3 -0
- package/locale/it/index.cjs.js +3 -0
- package/locale/it/index.js +1 -3
- package/locale/it/package.json +14 -0
- package/locale/ja/index.cjs +3 -0
- package/locale/ja/index.cjs.js +3 -0
- package/locale/ja/index.js +1 -3
- package/locale/ja/package.json +14 -0
- package/locale/jgo/index.cjs +3 -0
- package/locale/jgo/index.cjs.js +3 -0
- package/locale/jgo/index.js +1 -3
- package/locale/jgo/package.json +14 -0
- package/locale/jv/index.cjs +3 -0
- package/locale/jv/index.cjs.js +3 -0
- package/locale/jv/index.js +1 -3
- package/locale/jv/package.json +14 -0
- package/locale/ka/index.cjs +3 -0
- package/locale/ka/index.cjs.js +3 -0
- package/locale/ka/index.js +1 -3
- package/locale/ka/package.json +14 -0
- package/locale/kea/index.cjs +3 -0
- package/locale/kea/index.cjs.js +3 -0
- package/locale/kea/index.js +1 -3
- package/locale/kea/package.json +14 -0
- package/locale/kgp/index.cjs +3 -0
- package/locale/kgp/index.cjs.js +3 -0
- package/locale/kgp/index.js +1 -3
- package/locale/kgp/package.json +14 -0
- package/locale/kk/index.cjs +3 -0
- package/locale/kk/index.cjs.js +3 -0
- package/locale/kk/index.js +1 -3
- package/locale/kk/package.json +14 -0
- package/locale/kl/index.cjs +3 -0
- package/locale/kl/index.cjs.js +3 -0
- package/locale/kl/index.js +1 -3
- package/locale/kl/package.json +14 -0
- package/locale/km/index.cjs +3 -0
- package/locale/km/index.cjs.js +3 -0
- package/locale/km/index.js +1 -3
- package/locale/km/package.json +14 -0
- package/locale/kn/index.cjs +3 -0
- package/locale/kn/index.cjs.js +3 -0
- package/locale/kn/index.js +1 -3
- package/locale/kn/package.json +14 -0
- package/locale/ko/index.cjs +3 -0
- package/locale/ko/index.cjs.js +3 -0
- package/locale/ko/index.js +1 -3
- package/locale/ko/package.json +14 -0
- package/locale/kok/index.cjs +3 -0
- package/locale/kok/index.cjs.js +3 -0
- package/locale/kok/index.js +1 -3
- package/locale/kok/package.json +14 -0
- package/locale/ksh/index.cjs +3 -0
- package/locale/ksh/index.cjs.js +3 -0
- package/locale/ksh/index.js +1 -3
- package/locale/ksh/package.json +14 -0
- package/locale/ku/index.cjs +3 -0
- package/locale/ku/index.cjs.js +3 -0
- package/locale/ku/index.js +1 -3
- package/locale/ku/package.json +14 -0
- package/locale/ky/index.cjs +3 -0
- package/locale/ky/index.cjs.js +3 -0
- package/locale/ky/index.js +1 -3
- package/locale/ky/package.json +14 -0
- package/locale/lb/index.cjs +3 -0
- package/locale/lb/index.cjs.js +3 -0
- package/locale/lb/index.js +1 -3
- package/locale/lb/package.json +14 -0
- package/locale/lkt/index.cjs +3 -0
- package/locale/lkt/index.cjs.js +3 -0
- package/locale/lkt/index.js +1 -3
- package/locale/lkt/package.json +14 -0
- package/locale/lo/index.cjs +3 -0
- package/locale/lo/index.cjs.js +3 -0
- package/locale/lo/index.js +1 -3
- package/locale/lo/package.json +14 -0
- package/locale/lt/index.cjs +3 -0
- package/locale/lt/index.cjs.js +3 -0
- package/locale/lt/index.js +1 -3
- package/locale/lt/package.json +14 -0
- package/locale/lv/index.cjs +3 -0
- package/locale/lv/index.cjs.js +3 -0
- package/locale/lv/index.js +1 -3
- package/locale/lv/package.json +14 -0
- package/locale/mk/index.cjs +3 -0
- package/locale/mk/index.cjs.js +3 -0
- package/locale/mk/index.js +1 -3
- package/locale/mk/package.json +14 -0
- package/locale/ml/index.cjs +3 -0
- package/locale/ml/index.cjs.js +3 -0
- package/locale/ml/index.js +1 -3
- package/locale/ml/package.json +14 -0
- package/locale/mn/index.cjs +3 -0
- package/locale/mn/index.cjs.js +3 -0
- package/locale/mn/index.js +1 -3
- package/locale/mn/package.json +14 -0
- package/locale/mni/index.cjs +3 -0
- package/locale/mni/index.cjs.js +3 -0
- package/locale/mni/index.js +1 -3
- package/locale/mni/package.json +14 -0
- package/locale/mr/index.cjs +3 -0
- package/locale/mr/index.cjs.js +3 -0
- package/locale/mr/index.js +1 -3
- package/locale/mr/package.json +14 -0
- package/locale/ms/index.cjs +3 -0
- package/locale/ms/index.cjs.js +3 -0
- package/locale/ms/index.js +1 -3
- package/locale/ms/package.json +14 -0
- package/locale/mt/index.cjs +3 -0
- package/locale/mt/index.cjs.js +3 -0
- package/locale/mt/index.js +1 -3
- package/locale/mt/package.json +14 -0
- package/locale/my/index.cjs +3 -0
- package/locale/my/index.cjs.js +3 -0
- package/locale/my/index.js +1 -3
- package/locale/my/package.json +14 -0
- package/locale/mzn/index.cjs +3 -0
- package/locale/mzn/index.cjs.js +3 -0
- package/locale/mzn/index.js +1 -3
- package/locale/mzn/package.json +14 -0
- package/locale/nb/index.cjs +3 -0
- package/locale/nb/index.cjs.js +3 -0
- package/locale/nb/index.js +1 -3
- package/locale/nb/package.json +14 -0
- package/locale/ne/index.cjs +3 -0
- package/locale/ne/index.cjs.js +3 -0
- package/locale/ne/index.js +1 -3
- package/locale/ne/package.json +14 -0
- package/locale/nl/index.cjs +3 -0
- package/locale/nl/index.cjs.js +3 -0
- package/locale/nl/index.js +1 -3
- package/locale/nl/package.json +14 -0
- package/locale/nn/index.cjs +3 -0
- package/locale/nn/index.cjs.js +3 -0
- package/locale/nn/index.js +1 -3
- package/locale/nn/package.json +14 -0
- package/locale/no/index.cjs +3 -0
- package/locale/no/index.cjs.js +3 -0
- package/locale/no/index.js +1 -3
- package/locale/no/package.json +14 -0
- package/locale/or/index.cjs +3 -0
- package/locale/or/index.cjs.js +3 -0
- package/locale/or/index.js +1 -3
- package/locale/or/package.json +14 -0
- package/locale/pa/index.cjs +3 -0
- package/locale/pa/index.cjs.js +3 -0
- package/locale/pa/index.js +1 -3
- package/locale/pa/package.json +14 -0
- package/locale/pcm/index.cjs +3 -0
- package/locale/pcm/index.cjs.js +3 -0
- package/locale/pcm/index.js +1 -3
- package/locale/pcm/package.json +14 -0
- package/locale/pl/index.cjs +3 -0
- package/locale/pl/index.cjs.js +3 -0
- package/locale/pl/index.js +1 -3
- package/locale/pl/package.json +14 -0
- package/locale/ps/index.cjs +3 -0
- package/locale/ps/index.cjs.js +3 -0
- package/locale/ps/index.js +1 -3
- package/locale/ps/package.json +14 -0
- package/locale/ps-PK/index.cjs +3 -0
- package/locale/ps-PK/index.cjs.js +3 -0
- package/locale/ps-PK/index.js +1 -3
- package/locale/ps-PK/package.json +14 -0
- package/locale/pt/index.cjs +3 -0
- package/locale/pt/index.cjs.js +3 -0
- package/locale/pt/index.js +1 -3
- package/locale/pt/package.json +14 -0
- package/locale/pt-AO/index.cjs +3 -0
- package/locale/pt-AO/index.cjs.js +3 -0
- package/locale/pt-AO/index.js +1 -3
- package/locale/pt-AO/package.json +14 -0
- package/locale/pt-CH/index.cjs +3 -0
- package/locale/pt-CH/index.cjs.js +3 -0
- package/locale/pt-CH/index.js +1 -3
- package/locale/pt-CH/package.json +14 -0
- package/locale/pt-CV/index.cjs +3 -0
- package/locale/pt-CV/index.cjs.js +3 -0
- package/locale/pt-CV/index.js +1 -3
- package/locale/pt-CV/package.json +14 -0
- package/locale/pt-GQ/index.cjs +3 -0
- package/locale/pt-GQ/index.cjs.js +3 -0
- package/locale/pt-GQ/index.js +1 -3
- package/locale/pt-GQ/package.json +14 -0
- package/locale/pt-GW/index.cjs +3 -0
- package/locale/pt-GW/index.cjs.js +3 -0
- package/locale/pt-GW/index.js +1 -3
- package/locale/pt-GW/package.json +14 -0
- package/locale/pt-LU/index.cjs +3 -0
- package/locale/pt-LU/index.cjs.js +3 -0
- package/locale/pt-LU/index.js +1 -3
- package/locale/pt-LU/package.json +14 -0
- package/locale/pt-MO/index.cjs +3 -0
- package/locale/pt-MO/index.cjs.js +3 -0
- package/locale/pt-MO/index.js +1 -3
- package/locale/pt-MO/package.json +14 -0
- package/locale/pt-MZ/index.cjs +3 -0
- package/locale/pt-MZ/index.cjs.js +3 -0
- package/locale/pt-MZ/index.js +1 -3
- package/locale/pt-MZ/package.json +14 -0
- package/locale/pt-PT/index.cjs +3 -0
- package/locale/pt-PT/index.cjs.js +3 -0
- package/locale/pt-PT/index.js +1 -3
- package/locale/pt-PT/package.json +14 -0
- package/locale/pt-ST/index.cjs +3 -0
- package/locale/pt-ST/index.cjs.js +3 -0
- package/locale/pt-ST/index.js +1 -3
- package/locale/pt-ST/package.json +14 -0
- package/locale/pt-TL/index.cjs +3 -0
- package/locale/pt-TL/index.cjs.js +3 -0
- package/locale/pt-TL/index.js +1 -3
- package/locale/pt-TL/package.json +14 -0
- package/locale/qu/index.cjs +3 -0
- package/locale/qu/index.cjs.js +3 -0
- package/locale/qu/index.js +1 -3
- package/locale/qu/package.json +14 -0
- package/locale/rm/index.cjs +3 -0
- package/locale/rm/index.cjs.js +3 -0
- package/locale/rm/index.js +1 -3
- package/locale/rm/package.json +14 -0
- package/locale/ro/index.cjs +3 -0
- package/locale/ro/index.cjs.js +3 -0
- package/locale/ro/index.js +1 -3
- package/locale/ro/package.json +14 -0
- package/locale/ru/index.cjs +3 -0
- package/locale/ru/index.cjs.js +3 -0
- package/locale/ru/index.js +1 -3
- package/locale/ru/package.json +14 -0
- package/locale/sah/index.cjs +3 -0
- package/locale/sah/index.cjs.js +3 -0
- package/locale/sah/index.js +1 -3
- package/locale/sah/package.json +14 -0
- package/locale/sc/index.cjs +3 -0
- package/locale/sc/index.cjs.js +3 -0
- package/locale/sc/index.js +1 -3
- package/locale/sc/package.json +14 -0
- package/locale/sd/index.cjs +3 -0
- package/locale/sd/index.cjs.js +3 -0
- package/locale/sd/index.js +1 -3
- package/locale/sd/package.json +14 -0
- package/locale/se/index.cjs +3 -0
- package/locale/se/index.cjs.js +3 -0
- package/locale/se/index.js +1 -3
- package/locale/se/package.json +14 -0
- package/locale/se-FI/index.cjs +3 -0
- package/locale/se-FI/index.cjs.js +3 -0
- package/locale/se-FI/index.js +1 -3
- package/locale/se-FI/package.json +14 -0
- package/locale/si/index.cjs +3 -0
- package/locale/si/index.cjs.js +3 -0
- package/locale/si/index.js +1 -3
- package/locale/si/package.json +14 -0
- package/locale/sk/index.cjs +3 -0
- package/locale/sk/index.cjs.js +3 -0
- package/locale/sk/index.js +1 -3
- package/locale/sk/package.json +14 -0
- package/locale/sl/index.cjs +3 -0
- package/locale/sl/index.cjs.js +3 -0
- package/locale/sl/index.js +1 -3
- package/locale/sl/package.json +14 -0
- package/locale/so/index.cjs +3 -0
- package/locale/so/index.cjs.js +3 -0
- package/locale/so/index.js +1 -3
- package/locale/so/package.json +14 -0
- package/locale/sq/index.cjs +3 -0
- package/locale/sq/index.cjs.js +3 -0
- package/locale/sq/index.js +1 -3
- package/locale/sq/package.json +14 -0
- package/locale/sr/index.cjs +3 -0
- package/locale/sr/index.cjs.js +3 -0
- package/locale/sr/index.js +1 -3
- package/locale/sr/package.json +14 -0
- package/locale/sr-Cyrl-BA/index.cjs +3 -0
- package/locale/sr-Cyrl-BA/index.cjs.js +3 -0
- package/locale/sr-Cyrl-BA/index.js +1 -3
- package/locale/sr-Cyrl-BA/package.json +14 -0
- package/locale/sr-Latn/index.cjs +3 -0
- package/locale/sr-Latn/index.cjs.js +3 -0
- package/locale/sr-Latn/index.js +1 -3
- package/locale/sr-Latn/package.json +14 -0
- package/locale/sr-Latn-BA/index.cjs +3 -0
- package/locale/sr-Latn-BA/index.cjs.js +3 -0
- package/locale/sr-Latn-BA/index.js +1 -3
- package/locale/sr-Latn-BA/package.json +14 -0
- package/locale/su/index.cjs +3 -0
- package/locale/su/index.cjs.js +3 -0
- package/locale/su/index.js +1 -3
- package/locale/su/package.json +14 -0
- package/locale/sv/index.cjs +3 -0
- package/locale/sv/index.cjs.js +3 -0
- package/locale/sv/index.js +1 -3
- package/locale/sv/package.json +14 -0
- package/locale/sw/index.cjs +3 -0
- package/locale/sw/index.cjs.js +3 -0
- package/locale/sw/index.js +1 -3
- package/locale/sw/package.json +14 -0
- package/locale/ta/index.cjs +3 -0
- package/locale/ta/index.cjs.js +3 -0
- package/locale/ta/index.js +1 -3
- package/locale/ta/package.json +14 -0
- package/locale/te/index.cjs +3 -0
- package/locale/te/index.cjs.js +3 -0
- package/locale/te/index.js +1 -3
- package/locale/te/package.json +14 -0
- package/locale/tg/index.cjs +3 -0
- package/locale/tg/index.cjs.js +3 -0
- package/locale/tg/index.js +1 -3
- package/locale/tg/package.json +14 -0
- package/locale/th/index.cjs +3 -0
- package/locale/th/index.cjs.js +3 -0
- package/locale/th/index.js +1 -3
- package/locale/th/package.json +14 -0
- package/locale/ti/index.cjs +3 -0
- package/locale/ti/index.cjs.js +3 -0
- package/locale/ti/index.js +1 -3
- package/locale/ti/package.json +14 -0
- package/locale/tk/index.cjs +3 -0
- package/locale/tk/index.cjs.js +3 -0
- package/locale/tk/index.js +1 -3
- package/locale/tk/package.json +14 -0
- package/locale/to/index.cjs +3 -0
- package/locale/to/index.cjs.js +3 -0
- package/locale/to/index.js +1 -3
- package/locale/to/package.json +14 -0
- package/locale/tr/index.cjs +3 -0
- package/locale/tr/index.cjs.js +3 -0
- package/locale/tr/index.js +1 -3
- package/locale/tr/package.json +14 -0
- package/locale/tt/index.cjs +3 -0
- package/locale/tt/index.cjs.js +3 -0
- package/locale/tt/index.js +1 -3
- package/locale/tt/package.json +14 -0
- package/locale/ug/index.cjs +3 -0
- package/locale/ug/index.cjs.js +3 -0
- package/locale/ug/index.js +1 -3
- package/locale/ug/package.json +14 -0
- package/locale/uk/index.cjs +3 -0
- package/locale/uk/index.cjs.js +3 -0
- package/locale/uk/index.js +1 -3
- package/locale/uk/package.json +14 -0
- package/locale/ur/index.cjs +3 -0
- package/locale/ur/index.cjs.js +3 -0
- package/locale/ur/index.js +1 -3
- package/locale/ur/package.json +14 -0
- package/locale/ur-IN/index.cjs +3 -0
- package/locale/ur-IN/index.cjs.js +3 -0
- package/locale/ur-IN/index.js +1 -3
- package/locale/ur-IN/package.json +14 -0
- package/locale/uz/index.cjs +3 -0
- package/locale/uz/index.cjs.js +3 -0
- package/locale/uz/index.js +1 -3
- package/locale/uz/package.json +14 -0
- package/locale/uz-Cyrl/index.cjs +3 -0
- package/locale/uz-Cyrl/index.cjs.js +3 -0
- package/locale/uz-Cyrl/index.js +1 -3
- package/locale/uz-Cyrl/package.json +14 -0
- package/locale/vi/index.cjs +3 -0
- package/locale/vi/index.cjs.js +3 -0
- package/locale/vi/index.js +1 -3
- package/locale/vi/package.json +14 -0
- package/locale/wae/index.cjs +3 -0
- package/locale/wae/index.cjs.js +3 -0
- package/locale/wae/index.js +1 -3
- package/locale/wae/package.json +14 -0
- package/locale/wo/index.cjs +3 -0
- package/locale/wo/index.cjs.js +3 -0
- package/locale/wo/index.js +1 -3
- package/locale/wo/package.json +14 -0
- package/locale/yi/index.cjs +3 -0
- package/locale/yi/index.cjs.js +3 -0
- package/locale/yi/index.js +1 -3
- package/locale/yi/package.json +14 -0
- package/locale/yo/index.cjs +3 -0
- package/locale/yo/index.cjs.js +3 -0
- package/locale/yo/index.js +1 -3
- package/locale/yo/package.json +14 -0
- package/locale/yo-BJ/index.cjs +3 -0
- package/locale/yo-BJ/index.cjs.js +3 -0
- package/locale/yo-BJ/index.js +1 -3
- package/locale/yo-BJ/package.json +14 -0
- package/locale/yrl/index.cjs +3 -0
- package/locale/yrl/index.cjs.js +3 -0
- package/locale/yrl/index.js +1 -3
- package/locale/yrl/package.json +14 -0
- package/locale/yue/index.cjs +3 -0
- package/locale/yue/index.cjs.js +3 -0
- package/locale/yue/index.js +1 -3
- package/locale/yue/package.json +14 -0
- package/locale/yue-Hans/index.cjs +3 -0
- package/locale/yue-Hans/index.cjs.js +3 -0
- package/locale/yue-Hans/index.js +1 -3
- package/locale/yue-Hans/package.json +14 -0
- package/locale/zh/index.cjs +3 -0
- package/locale/zh/index.cjs.js +3 -0
- package/locale/zh/index.js +1 -3
- package/locale/zh/package.json +14 -0
- package/locale/zh-Hans-HK/index.cjs +3 -0
- package/locale/zh-Hans-HK/index.cjs.js +3 -0
- package/locale/zh-Hans-HK/index.js +1 -3
- package/locale/zh-Hans-HK/package.json +14 -0
- package/locale/zh-Hans-MO/index.cjs +3 -0
- package/locale/zh-Hans-MO/index.cjs.js +3 -0
- package/locale/zh-Hans-MO/index.js +1 -3
- package/locale/zh-Hans-MO/package.json +14 -0
- package/locale/zh-Hans-SG/index.cjs +3 -0
- package/locale/zh-Hans-SG/index.cjs.js +3 -0
- package/locale/zh-Hans-SG/index.js +1 -3
- package/locale/zh-Hans-SG/package.json +14 -0
- package/locale/zh-Hant/index.cjs +3 -0
- package/locale/zh-Hant/index.cjs.js +3 -0
- package/locale/zh-Hant/index.js +1 -3
- package/locale/zh-Hant/package.json +14 -0
- package/locale/zh-Hant-HK/index.cjs +3 -0
- package/locale/zh-Hant-HK/index.cjs.js +3 -0
- package/locale/zh-Hant-HK/index.js +1 -3
- package/locale/zh-Hant-HK/package.json +14 -0
- package/locale/zh-Hant-MO/index.cjs +3 -0
- package/locale/zh-Hant-MO/index.cjs.js +3 -0
- package/locale/zh-Hant-MO/index.js +1 -3
- package/locale/zh-Hant-MO/package.json +14 -0
- package/locale/zu/index.cjs +3 -0
- package/locale/zu/index.cjs.js +3 -0
- package/locale/zu/index.js +1 -3
- package/locale/zu/package.json +14 -0
- package/modules/LocaleDataStore.js.map +1 -1
- package/modules/PropTypes.js +7 -1
- package/modules/PropTypes.js.map +1 -1
- package/modules/TimeAgo.js +25 -32
- package/modules/TimeAgo.js.map +1 -1
- package/modules/TimeAgo.test.js +7 -7
- package/modules/TimeAgo.test.js.map +1 -1
- package/modules/cache.js +8 -12
- package/modules/cache.js.map +1 -1
- package/modules/cache.test.js +1 -1
- package/modules/cache.test.js.map +1 -1
- package/modules/isStyleObject.js +1 -1
- package/modules/isStyleObject.js.map +1 -1
- package/modules/isStyleObject.test.js +1 -1
- package/modules/isStyleObject.test.js.map +1 -1
- package/modules/locale.js +9 -14
- package/modules/locale.js.map +1 -1
- package/modules/locale.test.js +2 -2
- package/modules/locale.test.js.map +1 -1
- package/modules/round.js.map +1 -1
- package/modules/steps/approximate.js +1 -1
- package/modules/steps/approximate.js.map +1 -1
- package/modules/steps/approximate.test.js +2 -2
- package/modules/steps/approximate.test.js.map +1 -1
- package/modules/steps/getStep.js +6 -4
- package/modules/steps/getStep.js.map +1 -1
- package/modules/steps/getStep.test.js +5 -5
- package/modules/steps/getStep.test.js.map +1 -1
- package/modules/steps/getStepDenominator.js +1 -1
- package/modules/steps/getStepDenominator.js.map +1 -1
- package/modules/steps/getStepDenominator.test.js +1 -1
- package/modules/steps/getStepDenominator.test.js.map +1 -1
- package/modules/steps/getStepMinTime.js +4 -4
- package/modules/steps/getStepMinTime.js.map +1 -1
- package/modules/steps/getStepMinTime.test.js +1 -1
- package/modules/steps/getStepMinTime.test.js.map +1 -1
- package/modules/steps/getTimeToNextUpdate.js +3 -3
- package/modules/steps/getTimeToNextUpdate.js.map +1 -1
- package/modules/steps/getTimeToNextUpdate.test.js +1 -1
- package/modules/steps/getTimeToNextUpdate.test.js.map +1 -1
- package/modules/steps/getTimeToNextUpdateForUnit.js +2 -2
- package/modules/steps/getTimeToNextUpdateForUnit.js.map +1 -1
- package/modules/steps/getTimeToNextUpdateForUnit.test.js +1 -1
- package/modules/steps/getTimeToNextUpdateForUnit.test.js.map +1 -1
- package/modules/steps/helpers.js.map +1 -1
- package/modules/steps/helpers.test.js +1 -1
- package/modules/steps/helpers.test.js.map +1 -1
- package/modules/steps/index.js +4 -4
- package/modules/steps/index.js.map +1 -1
- package/modules/steps/renameLegacyProperties.js +7 -7
- package/modules/steps/renameLegacyProperties.js.map +1 -1
- package/modules/steps/renameLegacyProperties.test.js +2 -2
- package/modules/steps/renameLegacyProperties.test.js.map +1 -1
- package/modules/steps/round.js.map +1 -1
- package/modules/steps/round.test.js +2 -2
- package/modules/steps/round.test.js.map +1 -1
- package/modules/steps/units.js.map +1 -1
- package/modules/style/approximate.js +1 -1
- package/modules/style/approximate.js.map +1 -1
- package/modules/style/approximateTime.js +1 -1
- package/modules/style/approximateTime.js.map +1 -1
- package/modules/style/approximateTime.test.js +11 -16
- package/modules/style/approximateTime.test.js.map +1 -1
- package/modules/style/getStyleByName.js +13 -13
- package/modules/style/getStyleByName.js.map +1 -1
- package/modules/style/mini.js.map +1 -1
- package/modules/style/mini.test.js +8 -6
- package/modules/style/mini.test.js.map +1 -1
- package/modules/style/miniMinute.js +5 -3
- package/modules/style/miniMinute.js.map +1 -1
- package/modules/style/miniMinute.test.js +8 -6
- package/modules/style/miniMinute.test.js.map +1 -1
- package/modules/style/miniMinuteNow.js +5 -3
- package/modules/style/miniMinuteNow.js.map +1 -1
- package/modules/style/miniMinuteNow.test.js +8 -6
- package/modules/style/miniMinuteNow.test.js.map +1 -1
- package/modules/style/miniNow.js +5 -3
- package/modules/style/miniNow.js.map +1 -1
- package/modules/style/miniNow.test.js +8 -6
- package/modules/style/miniNow.test.js.map +1 -1
- package/modules/style/renameLegacyProperties.js +4 -2
- package/modules/style/renameLegacyProperties.js.map +1 -1
- package/modules/style/renameLegacyProperties.test.js +2 -2
- package/modules/style/renameLegacyProperties.test.js.map +1 -1
- package/modules/style/round.js +1 -1
- package/modules/style/round.js.map +1 -1
- package/modules/style/round.test.js +17 -11
- package/modules/style/round.test.js.map +1 -1
- package/modules/style/roundMinute.js +5 -3
- package/modules/style/roundMinute.js.map +1 -1
- package/modules/style/roundMinute.test.js +8 -6
- package/modules/style/roundMinute.test.js.map +1 -1
- package/modules/style/twitter.js +13 -13
- package/modules/style/twitter.js.map +1 -1
- package/modules/style/twitter.test.js +9 -7
- package/modules/style/twitter.test.js.map +1 -1
- package/modules/style/twitterFirstMinute.js +7 -5
- package/modules/style/twitterFirstMinute.js.map +1 -1
- package/modules/style/twitterFirstMinute.test.js +10 -8
- package/modules/style/twitterFirstMinute.test.js.map +1 -1
- package/modules/style/twitterMinute.js +5 -3
- package/modules/style/twitterMinute.js.map +1 -1
- package/modules/style/twitterMinute.test.js +10 -8
- package/modules/style/twitterMinute.test.js.map +1 -1
- package/modules/style/twitterMinuteNow.js +5 -3
- package/modules/style/twitterMinuteNow.js.map +1 -1
- package/modules/style/twitterMinuteNow.test.js +10 -8
- package/modules/style/twitterMinuteNow.test.js.map +1 -1
- package/modules/style/twitterNow.js +5 -3
- package/modules/style/twitterNow.js.map +1 -1
- package/modules/style/twitterNow.test.js +10 -8
- package/modules/style/twitterNow.test.js.map +1 -1
- package/package.json +671 -75
- package/prop-types/index.cjs +2 -0
- package/prop-types/index.cjs.js +7 -0
- package/prop-types/index.js +1 -1
- package/prop-types/package.json +9 -3
- package/{rollup.config.js → rollup.config.mjs} +0 -0
- package/steps/index.cjs +1 -0
- package/steps/index.cjs.js +6 -0
- package/steps/index.js +1 -1
- package/steps/package.json +9 -3
- package/cache/index.commonjs.js +0 -2
- package/gradation/index.commonjs.js +0 -2
- package/index.commonjs.js +0 -9
- package/load-all-locales.js +0 -278
- package/prop-types/index.commonjs.js +0 -2
- package/steps/index.commonjs.js +0 -2
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _twitterMinuteNow = _interopRequireDefault(require("./twitterMinuteNow"));
|
|
3
|
+
var _twitterMinuteNow = _interopRequireDefault(require("./twitterMinuteNow.js"));
|
|
4
4
|
|
|
5
|
-
var _TimeAgo = _interopRequireDefault(require("../TimeAgo"));
|
|
5
|
+
var _TimeAgo = _interopRequireDefault(require("../TimeAgo.js"));
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _index = require("../steps/index.js");
|
|
8
8
|
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
10
|
|
|
11
|
-
function
|
|
11
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
+
|
|
13
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
14
|
|
|
13
15
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
16
|
|
|
15
17
|
describe('style/twitterNow', function () {
|
|
16
18
|
it('should format Twitter style relative time (English) (round: "floor")', function () {
|
|
17
|
-
var timeAgo = new _TimeAgo
|
|
19
|
+
var timeAgo = new _TimeAgo["default"]('en'); // April 10th, 2016.
|
|
18
20
|
|
|
19
21
|
var now = new Date(2016, 3, 10, 22, 59).getTime();
|
|
20
22
|
|
|
21
23
|
var formatInterval = function formatInterval(secondsPassed) {
|
|
22
|
-
return timeAgo.format(now - secondsPassed * 1000, _objectSpread({
|
|
24
|
+
return timeAgo.format(now - secondsPassed * 1000, _objectSpread(_objectSpread({
|
|
23
25
|
now: now
|
|
24
|
-
}, _twitterMinuteNow
|
|
26
|
+
}, _twitterMinuteNow["default"]), {}, {
|
|
25
27
|
round: 'floor'
|
|
26
28
|
}));
|
|
27
29
|
};
|
|
@@ -29,39 +31,39 @@ describe('style/twitterNow', function () {
|
|
|
29
31
|
formatInterval(0).should.equal('now');
|
|
30
32
|
formatInterval(59.9).should.equal('now');
|
|
31
33
|
formatInterval(60).should.equal('1m');
|
|
32
|
-
formatInterval(1.9 *
|
|
33
|
-
formatInterval(2 *
|
|
34
|
-
formatInterval(2.9 *
|
|
35
|
-
formatInterval(3 *
|
|
36
|
-
|
|
37
|
-
formatInterval(59.9 *
|
|
38
|
-
formatInterval(60 *
|
|
39
|
-
formatInterval(1.9 *
|
|
40
|
-
formatInterval(2 *
|
|
41
|
-
formatInterval(2.9 *
|
|
42
|
-
formatInterval(3 *
|
|
43
|
-
|
|
44
|
-
formatInterval(23.9 *
|
|
45
|
-
formatInterval(
|
|
34
|
+
formatInterval(1.9 * _index.minute).should.equal('1m');
|
|
35
|
+
formatInterval(2 * _index.minute).should.equal('2m');
|
|
36
|
+
formatInterval(2.9 * _index.minute).should.equal('2m');
|
|
37
|
+
formatInterval(3 * _index.minute).should.equal('3m'); // …
|
|
38
|
+
|
|
39
|
+
formatInterval(59.9 * _index.minute).should.equal('59m');
|
|
40
|
+
formatInterval(60 * _index.minute).should.equal('1h');
|
|
41
|
+
formatInterval(1.9 * _index.hour).should.equal('1h');
|
|
42
|
+
formatInterval(2 * _index.hour).should.equal('2h');
|
|
43
|
+
formatInterval(2.9 * _index.hour).should.equal('2h');
|
|
44
|
+
formatInterval(3 * _index.hour).should.equal('3h'); // …
|
|
45
|
+
|
|
46
|
+
formatInterval(23.9 * _index.hour).should.equal('23h');
|
|
47
|
+
formatInterval(_index.day + 2 * _index.minute + _index.hour).should.equal('Apr 9'); // …
|
|
46
48
|
// `month` is about 30.5 days.
|
|
47
49
|
|
|
48
|
-
formatInterval(
|
|
49
|
-
formatInterval(
|
|
50
|
-
formatInterval(
|
|
50
|
+
formatInterval(_index.month * 3).should.equal('Jan 10');
|
|
51
|
+
formatInterval(_index.month * 4).should.equal('Dec 11, 2015');
|
|
52
|
+
formatInterval(_index.year).should.equal('Apr 11, 2015'); // Test future dates.
|
|
51
53
|
// `month` is about 30.5 days.
|
|
52
54
|
|
|
53
|
-
formatInterval(-1 *
|
|
54
|
-
formatInterval(-1 *
|
|
55
|
+
formatInterval(-1 * _index.month * 8).should.equal('Dec 10');
|
|
56
|
+
formatInterval(-1 * _index.month * 9).should.equal('Jan 9, 2017');
|
|
55
57
|
});
|
|
56
58
|
it('should format Twitter style relative time (English) (round: "round")', function () {
|
|
57
|
-
var timeAgo = new _TimeAgo
|
|
59
|
+
var timeAgo = new _TimeAgo["default"]('en'); // April 10th, 2016.
|
|
58
60
|
|
|
59
61
|
var now = new Date(2016, 3, 10, 22, 59).getTime();
|
|
60
62
|
|
|
61
63
|
var formatInterval = function formatInterval(secondsPassed) {
|
|
62
|
-
return timeAgo.format(now - secondsPassed * 1000, _objectSpread({
|
|
64
|
+
return timeAgo.format(now - secondsPassed * 1000, _objectSpread(_objectSpread({
|
|
63
65
|
now: now
|
|
64
|
-
}, _twitterMinuteNow
|
|
66
|
+
}, _twitterMinuteNow["default"]), {}, {
|
|
65
67
|
round: 'round'
|
|
66
68
|
}));
|
|
67
69
|
};
|
|
@@ -69,10 +71,10 @@ describe('style/twitterNow', function () {
|
|
|
69
71
|
formatInterval(0).should.equal('now');
|
|
70
72
|
formatInterval(29.9).should.equal('now');
|
|
71
73
|
formatInterval(30).should.equal('1m');
|
|
72
|
-
formatInterval(1.49 *
|
|
73
|
-
formatInterval(1.5 *
|
|
74
|
-
formatInterval(2.49 *
|
|
75
|
-
formatInterval(2.5 *
|
|
74
|
+
formatInterval(1.49 * _index.minute).should.equal('1m');
|
|
75
|
+
formatInterval(1.5 * _index.minute).should.equal('2m');
|
|
76
|
+
formatInterval(2.49 * _index.minute).should.equal('2m');
|
|
77
|
+
formatInterval(2.5 * _index.minute).should.equal('3m');
|
|
76
78
|
});
|
|
77
79
|
});
|
|
78
80
|
//# sourceMappingURL=twitterMinuteNow.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"twitterMinuteNow.test.js","names":["describe","it","timeAgo","TimeAgo","now","Date","getTime","formatInterval","secondsPassed","format","twitter","round","should","equal","minute","hour","day","month","year"],"sources":["../../source/style/twitterMinuteNow.test.js"],"sourcesContent":["import twitter from './twitterMinuteNow.js'\r\nimport TimeAgo from '../TimeAgo.js'\r\nimport { hour, minute, day, month, year } from '../steps/index.js'\r\n\r\ndescribe('style/twitterNow', () => {\r\n\tit('should format Twitter style relative time (English) (round: \"floor\")', () => {\r\n\t\tconst timeAgo = new TimeAgo('en')\r\n\r\n\t\t// April 10th, 2016.\r\n\t\tconst now = new Date(2016, 3, 10, 22, 59).getTime()\r\n\t\tconst formatInterval = (secondsPassed) => timeAgo.format(now - secondsPassed * 1000, { now, ...twitter, round: 'floor' })\r\n\r\n\t\tformatInterval(0).should.equal('now')\r\n\t\tformatInterval(59.9).should.equal('now')\r\n\t\tformatInterval(60).should.equal('1m')\r\n\t\tformatInterval(1.9 * minute).should.equal('1m')\r\n\t\tformatInterval(2 * minute).should.equal('2m')\r\n\t\tformatInterval(2.9 * minute).should.equal('2m')\r\n\t\tformatInterval(3 * minute).should.equal('3m')\r\n\t\t// …\r\n\t\tformatInterval(59.9 * minute).should.equal('59m')\r\n\t\tformatInterval(60 * minute).should.equal('1h')\r\n\t\tformatInterval(1.9 * hour).should.equal('1h')\r\n\t\tformatInterval(2 * hour).should.equal('2h')\r\n\t\tformatInterval(2.9 * hour).should.equal('2h')\r\n\t\tformatInterval(3 * hour).should.equal('3h')\r\n\t\t// …\r\n\t\tformatInterval(23.9 * hour).should.equal('23h')\r\n\t\tformatInterval(day + 2 * minute + hour).should.equal('Apr 9')\r\n\t\t// …\r\n\t\t// `month` is about 30.5 days.\r\n\t\tformatInterval(month * 3).should.equal('Jan 10')\r\n\t\tformatInterval(month * 4).should.equal('Dec 11, 2015')\r\n\t\tformatInterval(year).should.equal('Apr 11, 2015')\r\n\r\n\t\t// Test future dates.\r\n\t\t// `month` is about 30.5 days.\r\n\t\tformatInterval(-1 * month * 8).should.equal('Dec 10')\r\n\t\tformatInterval(-1 * month * 9).should.equal('Jan 9, 2017')\r\n\t})\r\n\r\n\tit('should format Twitter style relative time (English) (round: \"round\")', () => {\r\n\t\tconst timeAgo = new TimeAgo('en')\r\n\r\n\t\t// April 10th, 2016.\r\n\t\tconst now = new Date(2016, 3, 10, 22, 59).getTime()\r\n\t\tconst formatInterval = (secondsPassed) => timeAgo.format(now - secondsPassed * 1000, { now, ...twitter, round: 'round' })\r\n\r\n\t\tformatInterval(0).should.equal('now')\r\n\t\tformatInterval(29.9).should.equal('now')\r\n\t\tformatInterval(30).should.equal('1m')\r\n\t\tformatInterval(1.49 * minute).should.equal('1m')\r\n\t\tformatInterval(1.5 * minute).should.equal('2m')\r\n\t\tformatInterval(2.49 * minute).should.equal('2m')\r\n\t\tformatInterval(2.5 * minute).should.equal('3m')\r\n\t})\r\n})"],"mappings":"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"}
|
|
@@ -3,22 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
|
|
8
|
-
var _twitter = _interopRequireDefault(require("./twitter"));
|
|
8
|
+
var _twitter = _interopRequireDefault(require("./twitter.js"));
|
|
9
9
|
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
|
|
12
|
-
function
|
|
12
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13
|
+
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
15
|
|
|
14
16
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
17
|
|
|
16
|
-
var _default = _objectSpread({}, _twitter
|
|
18
|
+
var _default = _objectSpread(_objectSpread({}, _twitter["default"]), {}, {
|
|
17
19
|
// Add "now".
|
|
18
20
|
steps: [{
|
|
19
21
|
formatAs: 'now'
|
|
20
|
-
}].concat(_twitter
|
|
22
|
+
}].concat(_twitter["default"].steps)
|
|
21
23
|
});
|
|
22
24
|
|
|
23
|
-
exports
|
|
25
|
+
exports["default"] = _default;
|
|
24
26
|
//# sourceMappingURL=twitterNow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"twitterNow.js","names":["twitter","steps","formatAs","concat"],"sources":["../../source/style/twitterNow.js"],"sourcesContent":["import twitter from './twitter.js'\r\n\r\nexport default {\r\n\t...twitter,\r\n\t// Add \"now\".\r\n\tsteps: [{ formatAs: 'now' }].concat(twitter.steps)\r\n}"],"mappings":";;;;;;;AAAA;;;;;;;;;;+CAGIA,mB;EACH;EACAC,KAAK,EAAE,CAAC;IAAEC,QAAQ,EAAE;EAAZ,CAAD,EAAsBC,MAAtB,CAA6BH,mBAAA,CAAQC,KAArC"}
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _twitterNow = _interopRequireDefault(require("./twitterNow"));
|
|
3
|
+
var _twitterNow = _interopRequireDefault(require("./twitterNow.js"));
|
|
4
4
|
|
|
5
|
-
var _TimeAgo = _interopRequireDefault(require("../TimeAgo"));
|
|
5
|
+
var _TimeAgo = _interopRequireDefault(require("../TimeAgo.js"));
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _index = require("../steps/index.js");
|
|
8
8
|
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
10
|
|
|
11
|
-
function
|
|
11
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
+
|
|
13
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
14
|
|
|
13
15
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
16
|
|
|
15
17
|
describe('style/twitterNow', function () {
|
|
16
18
|
it('should format Twitter style relative time (English) (round: "floor")', function () {
|
|
17
|
-
var timeAgo = new _TimeAgo
|
|
19
|
+
var timeAgo = new _TimeAgo["default"]('en'); // April 10th, 2016.
|
|
18
20
|
|
|
19
21
|
var now = new Date(2016, 3, 10, 22, 59).getTime();
|
|
20
22
|
|
|
21
23
|
var formatInterval = function formatInterval(secondsPassed) {
|
|
22
|
-
return timeAgo.format(now - secondsPassed * 1000, _objectSpread({
|
|
24
|
+
return timeAgo.format(now - secondsPassed * 1000, _objectSpread(_objectSpread({
|
|
23
25
|
now: now
|
|
24
|
-
}, _twitterNow
|
|
26
|
+
}, _twitterNow["default"]), {}, {
|
|
25
27
|
round: 'floor'
|
|
26
28
|
}));
|
|
27
29
|
};
|
|
@@ -31,38 +33,38 @@ describe('style/twitterNow', function () {
|
|
|
31
33
|
formatInterval(1).should.equal('1s');
|
|
32
34
|
formatInterval(59.9).should.equal('59s');
|
|
33
35
|
formatInterval(60).should.equal('1m');
|
|
34
|
-
formatInterval(1.9 *
|
|
35
|
-
formatInterval(2 *
|
|
36
|
-
formatInterval(2.9 *
|
|
37
|
-
formatInterval(3 *
|
|
38
|
-
|
|
39
|
-
formatInterval(59.9 *
|
|
40
|
-
formatInterval(60 *
|
|
41
|
-
formatInterval(1.9 *
|
|
42
|
-
formatInterval(2 *
|
|
43
|
-
formatInterval(2.9 *
|
|
44
|
-
formatInterval(3 *
|
|
45
|
-
|
|
46
|
-
formatInterval(23.9 *
|
|
47
|
-
formatInterval(
|
|
36
|
+
formatInterval(1.9 * _index.minute).should.equal('1m');
|
|
37
|
+
formatInterval(2 * _index.minute).should.equal('2m');
|
|
38
|
+
formatInterval(2.9 * _index.minute).should.equal('2m');
|
|
39
|
+
formatInterval(3 * _index.minute).should.equal('3m'); // …
|
|
40
|
+
|
|
41
|
+
formatInterval(59.9 * _index.minute).should.equal('59m');
|
|
42
|
+
formatInterval(60 * _index.minute).should.equal('1h');
|
|
43
|
+
formatInterval(1.9 * _index.hour).should.equal('1h');
|
|
44
|
+
formatInterval(2 * _index.hour).should.equal('2h');
|
|
45
|
+
formatInterval(2.9 * _index.hour).should.equal('2h');
|
|
46
|
+
formatInterval(3 * _index.hour).should.equal('3h'); // …
|
|
47
|
+
|
|
48
|
+
formatInterval(23.9 * _index.hour).should.equal('23h');
|
|
49
|
+
formatInterval(_index.day + 2 * _index.minute + _index.hour).should.equal('Apr 9'); // …
|
|
48
50
|
// `month` is about 30.5 days.
|
|
49
51
|
|
|
50
|
-
formatInterval(
|
|
51
|
-
formatInterval(
|
|
52
|
-
formatInterval(
|
|
52
|
+
formatInterval(_index.month * 3).should.equal('Jan 10');
|
|
53
|
+
formatInterval(_index.month * 4).should.equal('Dec 11, 2015');
|
|
54
|
+
formatInterval(_index.year).should.equal('Apr 11, 2015'); // Test future dates.
|
|
53
55
|
// `month` is about 30.5 days.
|
|
54
56
|
|
|
55
|
-
formatInterval(-1 *
|
|
56
|
-
formatInterval(-1 *
|
|
57
|
+
formatInterval(-1 * _index.month * 8).should.equal('Dec 10');
|
|
58
|
+
formatInterval(-1 * _index.month * 9).should.equal('Jan 9, 2017');
|
|
57
59
|
});
|
|
58
60
|
it('should format Twitter style relative time (Russian) (round: "floor")', function () {
|
|
59
|
-
var timeAgo = new _TimeAgo
|
|
61
|
+
var timeAgo = new _TimeAgo["default"]('ru');
|
|
60
62
|
var now = new Date(2016, 3, 10, 22, 59).getTime();
|
|
61
63
|
|
|
62
64
|
var formatInterval = function formatInterval(secondsPassed) {
|
|
63
|
-
return timeAgo.format(now - secondsPassed * 1000, _objectSpread({
|
|
65
|
+
return timeAgo.format(now - secondsPassed * 1000, _objectSpread(_objectSpread({
|
|
64
66
|
now: now
|
|
65
|
-
}, _twitterNow
|
|
67
|
+
}, _twitterNow["default"]), {}, {
|
|
66
68
|
round: 'floor'
|
|
67
69
|
}));
|
|
68
70
|
};
|
|
@@ -71,9 +73,9 @@ describe('style/twitterNow', function () {
|
|
|
71
73
|
formatInterval(0.9).should.equal('сейчас');
|
|
72
74
|
formatInterval(1).should.equal('1 с');
|
|
73
75
|
formatInterval(60).should.equal('1 мин');
|
|
74
|
-
formatInterval(60 *
|
|
75
|
-
formatInterval(
|
|
76
|
-
formatInterval(
|
|
76
|
+
formatInterval(60 * _index.minute).should.equal('1 ч');
|
|
77
|
+
formatInterval(_index.day + 62 * _index.minute).should.equal('9 апр.');
|
|
78
|
+
formatInterval(_index.year).should.equal('11 апр. 2015 г.');
|
|
77
79
|
});
|
|
78
80
|
});
|
|
79
81
|
//# sourceMappingURL=twitterNow.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"twitterNow.test.js","names":["describe","it","timeAgo","TimeAgo","now","Date","getTime","formatInterval","secondsPassed","format","twitter","round","should","equal","minute","hour","day","month","year"],"sources":["../../source/style/twitterNow.test.js"],"sourcesContent":["import twitter from './twitterNow.js'\r\nimport TimeAgo from '../TimeAgo.js'\r\nimport { hour, minute, day, month, year } from '../steps/index.js'\r\n\r\ndescribe('style/twitterNow', () => {\r\n\tit('should format Twitter style relative time (English) (round: \"floor\")', () => {\r\n\t\tconst timeAgo = new TimeAgo('en')\r\n\r\n\t\t// April 10th, 2016.\r\n\t\tconst now = new Date(2016, 3, 10, 22, 59).getTime()\r\n\t\tconst formatInterval = (secondsPassed) => timeAgo.format(now - secondsPassed * 1000, { now, ...twitter, round: 'floor' })\r\n\r\n\t\tformatInterval(0).should.equal('now')\r\n\t\tformatInterval(0.9).should.equal('now')\r\n\t\tformatInterval(1).should.equal('1s')\r\n\t\tformatInterval(59.9).should.equal('59s')\r\n\t\tformatInterval(60).should.equal('1m')\r\n\t\tformatInterval(1.9 * minute).should.equal('1m')\r\n\t\tformatInterval(2 * minute).should.equal('2m')\r\n\t\tformatInterval(2.9 * minute).should.equal('2m')\r\n\t\tformatInterval(3 * minute).should.equal('3m')\r\n\t\t// …\r\n\t\tformatInterval(59.9 * minute).should.equal('59m')\r\n\t\tformatInterval(60 * minute).should.equal('1h')\r\n\t\tformatInterval(1.9 * hour).should.equal('1h')\r\n\t\tformatInterval(2 * hour).should.equal('2h')\r\n\t\tformatInterval(2.9 * hour).should.equal('2h')\r\n\t\tformatInterval(3 * hour).should.equal('3h')\r\n\t\t// …\r\n\t\tformatInterval(23.9 * hour).should.equal('23h')\r\n\t\tformatInterval(day + 2 * minute + hour).should.equal('Apr 9')\r\n\t\t// …\r\n\t\t// `month` is about 30.5 days.\r\n\t\tformatInterval(month * 3).should.equal('Jan 10')\r\n\t\tformatInterval(month * 4).should.equal('Dec 11, 2015')\r\n\t\tformatInterval(year).should.equal('Apr 11, 2015')\r\n\r\n\t\t// Test future dates.\r\n\t\t// `month` is about 30.5 days.\r\n\t\tformatInterval(-1 * month * 8).should.equal('Dec 10')\r\n\t\tformatInterval(-1 * month * 9).should.equal('Jan 9, 2017')\r\n\t})\r\n\r\n\tit('should format Twitter style relative time (Russian) (round: \"floor\")', () => {\r\n\t\tconst timeAgo = new TimeAgo('ru')\r\n\r\n\t\tconst now = new Date(2016, 3, 10, 22, 59).getTime()\r\n\t\tconst formatInterval = (secondsPassed) => timeAgo.format(now - secondsPassed * 1000, { now, ...twitter, round: 'floor' })\r\n\r\n\t\tformatInterval(0).should.equal('сейчас')\r\n\t\tformatInterval(0.9).should.equal('сейчас')\r\n\t\tformatInterval(1).should.equal('1 с')\r\n\t\tformatInterval(60).should.equal('1 мин')\r\n\t\tformatInterval(60 * minute).should.equal('1 ч')\r\n\t\tformatInterval(day + 62 * minute).should.equal('9 апр.')\r\n\t\tformatInterval(year).should.equal('11 апр. 2015 г.')\r\n\t})\r\n})"],"mappings":"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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file id deprecated.
|
|
2
|
+
// It's the same as `index.cjs`, just with an added `.js` file extension.
|
|
3
|
+
// It only exists for compatibility with the software that doesn't like `*.cjs` file extension.
|
|
4
|
+
// https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/61#note_950728292
|
|
5
|
+
|
|
6
|
+
exports = module.exports = require('../commonjs/steps/index.js')
|
|
7
|
+
exports['default'] = require('../commonjs/steps/index.js')
|
package/gradation/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '../modules/steps'
|
|
1
|
+
export * from '../modules/steps/index.js'
|
package/gradation/package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": true,
|
|
3
|
-
"name": "javascript-time-ago
|
|
4
|
-
"
|
|
5
|
-
"main": "index.commonjs.js",
|
|
3
|
+
"name": "javascript-time-ago/gradation",
|
|
4
|
+
"main": "index.cjs",
|
|
6
5
|
"module": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./index.js",
|
|
10
|
+
"require": "./index.cjs"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
7
13
|
"sideEffects": false
|
|
8
14
|
}
|
package/index.cjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
exports = module.exports = require('./commonjs/TimeAgo.js').default
|
|
4
|
+
exports['default'] = require('./commonjs/TimeAgo.js').default
|
|
5
|
+
|
|
6
|
+
var locale = require('./commonjs/locale.js')
|
|
7
|
+
|
|
8
|
+
exports.intlDateTimeFormatSupported = locale.intlDateTimeFormatSupported
|
|
9
|
+
exports.intlDateTimeFormatSupportedLocale = locale.intlDateTimeFormatSupportedLocale
|
package/index.cjs.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
// This file id deprecated.
|
|
4
|
+
// It's the same as `index.cjs`, just with an added `.js` file extension.
|
|
5
|
+
// It only exists for compatibility with the software that doesn't like `*.cjs` file extension.
|
|
6
|
+
// https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/61#note_950728292
|
|
7
|
+
|
|
8
|
+
exports = module.exports = require('./commonjs/TimeAgo.js').default
|
|
9
|
+
exports['default'] = require('./commonjs/TimeAgo.js').default
|
|
10
|
+
|
|
11
|
+
var locale = require('./commonjs/locale.js')
|
|
12
|
+
|
|
13
|
+
exports.intlDateTimeFormatSupported = locale.intlDateTimeFormatSupported
|
|
14
|
+
exports.intlDateTimeFormatSupportedLocale = locale.intlDateTimeFormatSupportedLocale
|
package/index.d.ts
CHANGED
|
@@ -120,6 +120,12 @@ interface FormatOptions {
|
|
|
120
120
|
|
|
121
121
|
export default class TimeAgo {
|
|
122
122
|
constructor(locale: Locale | Locale[], options?: { polyfill?: boolean });
|
|
123
|
+
// When `getTimeToNextUpdate: true` option is passed to `.format()`,
|
|
124
|
+
// it returns an array containing the formatted time and the "time to next update" interval.
|
|
125
|
+
// https://gitlab.com/catamphetamine/javascript-time-ago#update-interval
|
|
126
|
+
// Perhaps it's not the best solution, and it would be better to introduce a new function called
|
|
127
|
+
// `.formatAndGetTimeToNextUpdate()`. But at this stage that would require a "major" version number update,
|
|
128
|
+
// and I wouldn't prefer doing that for such an insignificant change.
|
|
123
129
|
format(date: DateInput, style?: FormatStyleName | Style, options?: FormatOptions): string | [string, number?];
|
|
124
130
|
format(date: DateInput, options: FormatOptions): string | [string, number?];
|
|
125
131
|
getLabels(labelsType: LabelStyleName | LabelStyleName[]): Labels;
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { default } from './modules/TimeAgo'
|
|
1
|
+
export { default } from './modules/TimeAgo.js'
|
|
2
2
|
|
|
3
3
|
// I guess these two are deprecated.
|
|
4
4
|
export {
|
|
5
5
|
intlDateTimeFormatSupported as intlDateTimeFormatSupported,
|
|
6
6
|
intlDateTimeFormatSupportedLocale as intlDateTimeFormatSupportedLocale
|
|
7
|
-
} from './modules/locale'
|
|
7
|
+
} from './modules/locale.js'
|