@herowcode/utils 1.3.4 → 1.4.8
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/README.md +3 -5
- package/dist/api/index.cjs +12 -0
- package/dist/api/index.cjs.map +1 -0
- package/dist/api/{client.d.ts → index.d.mts} +19 -8
- package/dist/api/index.d.ts +36 -3
- package/dist/api/index.js +3 -0
- package/dist/api/index.js.map +1 -0
- package/dist/array/index.cjs +16 -0
- package/dist/array/index.cjs.map +1 -0
- package/dist/array/index.d.mts +5 -0
- package/dist/array/index.d.ts +5 -3
- package/dist/array/index.js +3 -0
- package/dist/array/index.js.map +1 -0
- package/dist/chunk-2MANLCNG.cjs +23 -0
- package/dist/chunk-2MANLCNG.cjs.map +1 -0
- package/dist/chunk-2RTW37WD.js +20 -0
- package/dist/chunk-2RTW37WD.js.map +1 -0
- package/dist/chunk-2Y6M7IOG.js +250 -0
- package/dist/chunk-2Y6M7IOG.js.map +1 -0
- package/dist/chunk-3JUB2OJL.js +3 -0
- package/dist/chunk-3JUB2OJL.js.map +1 -0
- package/dist/chunk-53JMVGIG.js +187 -0
- package/dist/chunk-53JMVGIG.js.map +1 -0
- package/dist/chunk-56NHIM5J.js +151 -0
- package/dist/chunk-56NHIM5J.js.map +1 -0
- package/dist/chunk-5OLQJUNS.js +66 -0
- package/dist/chunk-5OLQJUNS.js.map +1 -0
- package/dist/chunk-5YOEKMTJ.cjs +321 -0
- package/dist/chunk-5YOEKMTJ.cjs.map +1 -0
- package/dist/chunk-6TWPZ6LL.cjs +4 -0
- package/dist/chunk-6TWPZ6LL.cjs.map +1 -0
- package/dist/chunk-AQZBHMTO.js +96 -0
- package/dist/chunk-AQZBHMTO.js.map +1 -0
- package/dist/chunk-ATWN4SRX.js +29 -0
- package/dist/chunk-ATWN4SRX.js.map +1 -0
- package/dist/chunk-GRSF4RY2.cjs +20 -0
- package/dist/chunk-GRSF4RY2.cjs.map +1 -0
- package/dist/chunk-GX5E5B4L.cjs +70 -0
- package/dist/chunk-GX5E5B4L.cjs.map +1 -0
- package/dist/chunk-HK727IAV.cjs +201 -0
- package/dist/chunk-HK727IAV.cjs.map +1 -0
- package/dist/chunk-LJ6KOZD4.cjs +154 -0
- package/dist/chunk-LJ6KOZD4.cjs.map +1 -0
- package/dist/chunk-N2DRAZ3A.cjs +29 -0
- package/dist/chunk-N2DRAZ3A.cjs.map +1 -0
- package/dist/chunk-O7SH3E3T.js +18 -0
- package/dist/chunk-O7SH3E3T.js.map +1 -0
- package/dist/chunk-P5YNRND6.cjs +4 -0
- package/dist/chunk-P5YNRND6.cjs.map +1 -0
- package/dist/chunk-QAE6Q2SA.js +317 -0
- package/dist/chunk-QAE6Q2SA.js.map +1 -0
- package/dist/chunk-QRXVUXGJ.js +378 -0
- package/dist/chunk-QRXVUXGJ.js.map +1 -0
- package/dist/chunk-SLYUARZG.cjs +99 -0
- package/dist/chunk-SLYUARZG.cjs.map +1 -0
- package/dist/chunk-SWRIT7EE.js +3 -0
- package/dist/chunk-SWRIT7EE.js.map +1 -0
- package/dist/chunk-UXEUYHBD.cjs +401 -0
- package/dist/chunk-UXEUYHBD.cjs.map +1 -0
- package/dist/chunk-V6OKXUBQ.js +22 -0
- package/dist/chunk-V6OKXUBQ.js.map +1 -0
- package/dist/chunk-VAZJXZU5.cjs +31 -0
- package/dist/chunk-VAZJXZU5.cjs.map +1 -0
- package/dist/chunk-WGSFRFRO.cjs +252 -0
- package/dist/chunk-WGSFRFRO.cjs.map +1 -0
- package/dist/date/index.cjs +56 -0
- package/dist/date/index.cjs.map +1 -0
- package/dist/date/index.d.mts +63 -0
- package/dist/date/index.d.ts +63 -8
- package/dist/date/index.js +3 -0
- package/dist/date/index.js.map +1 -0
- package/dist/extract-youtube-video-id-HSYMYXIZ.js +3 -0
- package/dist/extract-youtube-video-id-HSYMYXIZ.js.map +1 -0
- package/dist/extract-youtube-video-id-XVGNPUDX.cjs +12 -0
- package/dist/extract-youtube-video-id-XVGNPUDX.cjs.map +1 -0
- package/dist/files/index.browser.cjs +21 -0
- package/dist/files/index.browser.cjs.map +1 -0
- package/dist/files/index.browser.d.mts +14 -0
- package/dist/files/index.browser.d.ts +14 -0
- package/dist/files/index.browser.js +4 -0
- package/dist/files/index.browser.js.map +1 -0
- package/dist/files/index.cjs +31 -0
- package/dist/files/index.cjs.map +1 -0
- package/dist/files/index.d.mts +3 -0
- package/dist/files/index.d.ts +3 -6
- package/dist/files/index.js +6 -0
- package/dist/files/index.js.map +1 -0
- package/dist/files/index.node.cjs +21 -0
- package/dist/files/index.node.cjs.map +1 -0
- package/dist/files/index.node.d.mts +7 -0
- package/dist/files/index.node.d.ts +7 -0
- package/dist/files/index.node.js +4 -0
- package/dist/files/index.node.js.map +1 -0
- package/dist/format-bytes-BGjeDnvM.d.mts +3 -0
- package/dist/format-bytes-BGjeDnvM.d.ts +3 -0
- package/dist/function/index.cjs +20 -0
- package/dist/function/index.cjs.map +1 -0
- package/dist/function/index.d.mts +22 -0
- package/dist/function/index.d.ts +22 -4
- package/dist/function/index.js +3 -0
- package/dist/function/index.js.map +1 -0
- package/dist/index.cjs +188 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -8
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/string/index.cjs +60 -0
- package/dist/string/index.cjs.map +1 -0
- package/dist/string/index.d.mts +28 -0
- package/dist/string/index.d.ts +28 -14
- package/dist/string/index.js +3 -0
- package/dist/string/index.js.map +1 -0
- package/dist/{cjs/function/try-catch.d.ts → try-catch-B7WzqcPU.d.mts} +4 -4
- package/dist/{function/try-catch.d.ts → try-catch-B7WzqcPU.d.ts} +4 -4
- package/dist/youtube/index.browser.cjs +35 -0
- package/dist/youtube/index.browser.cjs.map +1 -0
- package/dist/youtube/index.browser.d.mts +2 -0
- package/dist/youtube/index.browser.d.ts +2 -0
- package/dist/youtube/index.browser.js +6 -0
- package/dist/youtube/index.browser.js.map +1 -0
- package/dist/youtube/index.cjs +36 -0
- package/dist/youtube/index.cjs.map +1 -0
- package/dist/youtube/index.d.mts +12 -0
- package/dist/youtube/index.d.ts +12 -7
- package/dist/youtube/index.js +7 -0
- package/dist/youtube/index.js.map +1 -0
- package/dist/youtube/index.node.cjs +26 -0
- package/dist/youtube/index.node.cjs.map +1 -0
- package/dist/youtube/index.node.d.mts +49 -0
- package/dist/youtube/index.node.d.ts +49 -0
- package/dist/youtube/index.node.js +5 -0
- package/dist/youtube/index.node.js.map +1 -0
- package/package.json +134 -47
- package/dist/api/client.d.ts.map +0 -1
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/wrapper.d.ts +0 -27
- package/dist/api/wrapper.d.ts.map +0 -1
- package/dist/array/index.d.ts.map +0 -1
- package/dist/array/shuffle.d.ts +0 -2
- package/dist/array/shuffle.d.ts.map +0 -1
- package/dist/array/unique.d.ts +0 -2
- package/dist/array/unique.d.ts.map +0 -1
- package/dist/cjs/api/client.d.ts +0 -25
- package/dist/cjs/api/client.d.ts.map +0 -1
- package/dist/cjs/api/client.js +0 -148
- package/dist/cjs/api/client.js.map +0 -1
- package/dist/cjs/api/index.d.ts +0 -3
- package/dist/cjs/api/index.d.ts.map +0 -1
- package/dist/cjs/api/index.js +0 -6
- package/dist/cjs/api/index.js.map +0 -1
- package/dist/cjs/api/wrapper.d.ts +0 -27
- package/dist/cjs/api/wrapper.d.ts.map +0 -1
- package/dist/cjs/api/wrapper.js +0 -152
- package/dist/cjs/api/wrapper.js.map +0 -1
- package/dist/cjs/array/index.d.ts +0 -3
- package/dist/cjs/array/index.d.ts.map +0 -1
- package/dist/cjs/array/index.js +0 -19
- package/dist/cjs/array/index.js.map +0 -1
- package/dist/cjs/array/shuffle.d.ts +0 -2
- package/dist/cjs/array/shuffle.d.ts.map +0 -1
- package/dist/cjs/array/shuffle.js +0 -16
- package/dist/cjs/array/shuffle.js.map +0 -1
- package/dist/cjs/array/unique.d.ts +0 -2
- package/dist/cjs/array/unique.d.ts.map +0 -1
- package/dist/cjs/array/unique.js +0 -7
- package/dist/cjs/array/unique.js.map +0 -1
- package/dist/cjs/array.js +0 -1
- package/dist/cjs/date/dayjs.d.ts +0 -20
- package/dist/cjs/date/dayjs.d.ts.map +0 -1
- package/dist/cjs/date/dayjs.js +0 -123
- package/dist/cjs/date/dayjs.js.map +0 -1
- package/dist/cjs/date/fix-timezone-offset.d.ts +0 -3
- package/dist/cjs/date/fix-timezone-offset.d.ts.map +0 -1
- package/dist/cjs/date/fix-timezone-offset.js +0 -9
- package/dist/cjs/date/fix-timezone-offset.js.map +0 -1
- package/dist/cjs/date/format-date.d.ts +0 -23
- package/dist/cjs/date/format-date.d.ts.map +0 -1
- package/dist/cjs/date/format-date.js +0 -71
- package/dist/cjs/date/format-date.js.map +0 -1
- package/dist/cjs/date/get-current-date-in-utc.d.ts +0 -3
- package/dist/cjs/date/get-current-date-in-utc.d.ts.map +0 -1
- package/dist/cjs/date/get-current-date-in-utc.js +0 -8
- package/dist/cjs/date/get-current-date-in-utc.js.map +0 -1
- package/dist/cjs/date/get-date-in-utc.d.ts +0 -3
- package/dist/cjs/date/get-date-in-utc.d.ts.map +0 -1
- package/dist/cjs/date/get-date-in-utc.js +0 -8
- package/dist/cjs/date/get-date-in-utc.js.map +0 -1
- package/dist/cjs/date/get-relative-time.d.ts +0 -3
- package/dist/cjs/date/get-relative-time.d.ts.map +0 -1
- package/dist/cjs/date/get-relative-time.js +0 -8
- package/dist/cjs/date/get-relative-time.js.map +0 -1
- package/dist/cjs/date/index.d.ts +0 -8
- package/dist/cjs/date/index.d.ts.map +0 -1
- package/dist/cjs/date/index.js +0 -24
- package/dist/cjs/date/index.js.map +0 -1
- package/dist/cjs/date/parse-time-spent.d.ts +0 -15
- package/dist/cjs/date/parse-time-spent.d.ts.map +0 -1
- package/dist/cjs/date/parse-time-spent.js +0 -207
- package/dist/cjs/date/parse-time-spent.js.map +0 -1
- package/dist/cjs/date.js +0 -1
- package/dist/cjs/files/compress-image.d.ts +0 -10
- package/dist/cjs/files/compress-image.d.ts.map +0 -1
- package/dist/cjs/files/compress-image.js +0 -61
- package/dist/cjs/files/compress-image.js.map +0 -1
- package/dist/cjs/files/download-url.d.ts +0 -2
- package/dist/cjs/files/download-url.d.ts.map +0 -1
- package/dist/cjs/files/download-url.js +0 -29
- package/dist/cjs/files/download-url.js.map +0 -1
- package/dist/cjs/files/file-delete.d.ts +0 -2
- package/dist/cjs/files/file-delete.d.ts.map +0 -1
- package/dist/cjs/files/file-delete.js +0 -20
- package/dist/cjs/files/file-delete.js.map +0 -1
- package/dist/cjs/files/file-exists.d.ts +0 -2
- package/dist/cjs/files/file-exists.d.ts.map +0 -1
- package/dist/cjs/files/file-exists.js +0 -18
- package/dist/cjs/files/file-exists.js.map +0 -1
- package/dist/cjs/files/format-bytes.d.ts +0 -2
- package/dist/cjs/files/format-bytes.d.ts.map +0 -1
- package/dist/cjs/files/format-bytes.js +0 -17
- package/dist/cjs/files/format-bytes.js.map +0 -1
- package/dist/cjs/files/index.d.ts +0 -6
- package/dist/cjs/files/index.d.ts.map +0 -1
- package/dist/cjs/files/index.js +0 -22
- package/dist/cjs/files/index.js.map +0 -1
- package/dist/cjs/files.js +0 -1
- package/dist/cjs/function/debounce.d.ts +0 -11
- package/dist/cjs/function/debounce.d.ts.map +0 -1
- package/dist/cjs/function/debounce.js +0 -26
- package/dist/cjs/function/debounce.js.map +0 -1
- package/dist/cjs/function/index.d.ts +0 -4
- package/dist/cjs/function/index.d.ts.map +0 -1
- package/dist/cjs/function/index.js +0 -20
- package/dist/cjs/function/index.js.map +0 -1
- package/dist/cjs/function/throttle.d.ts +0 -10
- package/dist/cjs/function/throttle.d.ts.map +0 -1
- package/dist/cjs/function/throttle.js +0 -36
- package/dist/cjs/function/throttle.js.map +0 -1
- package/dist/cjs/function/try-catch.d.ts.map +0 -1
- package/dist/cjs/function/try-catch.js +0 -39
- package/dist/cjs/function/try-catch.js.map +0 -1
- package/dist/cjs/function.js +0 -1
- package/dist/cjs/index.d.ts +0 -8
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -24
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/string/camel-case.d.ts +0 -2
- package/dist/cjs/string/camel-case.d.ts.map +0 -1
- package/dist/cjs/string/camel-case.js +0 -25
- package/dist/cjs/string/camel-case.js.map +0 -1
- package/dist/cjs/string/capitalize.d.ts +0 -2
- package/dist/cjs/string/capitalize.d.ts.map +0 -1
- package/dist/cjs/string/capitalize.js +0 -13
- package/dist/cjs/string/capitalize.js.map +0 -1
- package/dist/cjs/string/format-hms-to-seconds.d.ts +0 -2
- package/dist/cjs/string/format-hms-to-seconds.d.ts.map +0 -1
- package/dist/cjs/string/format-hms-to-seconds.js +0 -30
- package/dist/cjs/string/format-hms-to-seconds.js.map +0 -1
- package/dist/cjs/string/format-seconds-to-fragment.d.ts +0 -3
- package/dist/cjs/string/format-seconds-to-fragment.d.ts.map +0 -1
- package/dist/cjs/string/format-seconds-to-fragment.js +0 -20
- package/dist/cjs/string/format-seconds-to-fragment.js.map +0 -1
- package/dist/cjs/string/format-seconds-to-hms.d.ts +0 -2
- package/dist/cjs/string/format-seconds-to-hms.d.ts.map +0 -1
- package/dist/cjs/string/format-seconds-to-hms.js +0 -17
- package/dist/cjs/string/format-seconds-to-hms.js.map +0 -1
- package/dist/cjs/string/format-string-to-time.d.ts +0 -2
- package/dist/cjs/string/format-string-to-time.d.ts.map +0 -1
- package/dist/cjs/string/format-string-to-time.js +0 -15
- package/dist/cjs/string/format-string-to-time.js.map +0 -1
- package/dist/cjs/string/index.d.ts +0 -14
- package/dist/cjs/string/index.d.ts.map +0 -1
- package/dist/cjs/string/index.js +0 -30
- package/dist/cjs/string/index.js.map +0 -1
- package/dist/cjs/string/kebab-case.d.ts +0 -2
- package/dist/cjs/string/kebab-case.d.ts.map +0 -1
- package/dist/cjs/string/kebab-case.js +0 -15
- package/dist/cjs/string/kebab-case.js.map +0 -1
- package/dist/cjs/string/markdown-to-text.d.ts +0 -2
- package/dist/cjs/string/markdown-to-text.d.ts.map +0 -1
- package/dist/cjs/string/markdown-to-text.js +0 -70
- package/dist/cjs/string/markdown-to-text.js.map +0 -1
- package/dist/cjs/string/remove-html-tags.d.ts +0 -2
- package/dist/cjs/string/remove-html-tags.d.ts.map +0 -1
- package/dist/cjs/string/remove-html-tags.js +0 -18
- package/dist/cjs/string/remove-html-tags.js.map +0 -1
- package/dist/cjs/string/slugify.d.ts +0 -2
- package/dist/cjs/string/slugify.d.ts.map +0 -1
- package/dist/cjs/string/slugify.js +0 -13
- package/dist/cjs/string/slugify.js.map +0 -1
- package/dist/cjs/string/snake-case.d.ts +0 -2
- package/dist/cjs/string/snake-case.d.ts.map +0 -1
- package/dist/cjs/string/snake-case.js +0 -15
- package/dist/cjs/string/snake-case.js.map +0 -1
- package/dist/cjs/string/to-sentence-case.d.ts +0 -2
- package/dist/cjs/string/to-sentence-case.d.ts.map +0 -1
- package/dist/cjs/string/to-sentence-case.js +0 -13
- package/dist/cjs/string/to-sentence-case.js.map +0 -1
- package/dist/cjs/string/truncate.d.ts +0 -2
- package/dist/cjs/string/truncate.d.ts.map +0 -1
- package/dist/cjs/string/truncate.js +0 -19
- package/dist/cjs/string/truncate.js.map +0 -1
- package/dist/cjs/string.js +0 -1
- package/dist/cjs/youtube/extract-youtube-video-id.d.ts +0 -2
- package/dist/cjs/youtube/extract-youtube-video-id.d.ts.map +0 -1
- package/dist/cjs/youtube/extract-youtube-video-id.js +0 -30
- package/dist/cjs/youtube/extract-youtube-video-id.js.map +0 -1
- package/dist/cjs/youtube/generate-youtube-url.d.ts +0 -20
- package/dist/cjs/youtube/generate-youtube-url.d.ts.map +0 -1
- package/dist/cjs/youtube/generate-youtube-url.js +0 -86
- package/dist/cjs/youtube/generate-youtube-url.js.map +0 -1
- package/dist/cjs/youtube/get-youtube-thumbnail.d.ts +0 -2
- package/dist/cjs/youtube/get-youtube-thumbnail.d.ts.map +0 -1
- package/dist/cjs/youtube/get-youtube-thumbnail.js +0 -68
- package/dist/cjs/youtube/get-youtube-thumbnail.js.map +0 -1
- package/dist/cjs/youtube/get-youtube-video-info.d.ts +0 -26
- package/dist/cjs/youtube/get-youtube-video-info.d.ts.map +0 -1
- package/dist/cjs/youtube/get-youtube-video-info.js +0 -244
- package/dist/cjs/youtube/get-youtube-video-info.js.map +0 -1
- package/dist/cjs/youtube/index.d.ts +0 -7
- package/dist/cjs/youtube/index.d.ts.map +0 -1
- package/dist/cjs/youtube/index.js +0 -23
- package/dist/cjs/youtube/index.js.map +0 -1
- package/dist/cjs/youtube/use-get-video-duration.d.ts +0 -7
- package/dist/cjs/youtube/use-get-video-duration.d.ts.map +0 -1
- package/dist/cjs/youtube/use-get-video-duration.js +0 -153
- package/dist/cjs/youtube/use-get-video-duration.js.map +0 -1
- package/dist/cjs/youtube/validate-youtube-link.d.ts +0 -2
- package/dist/cjs/youtube/validate-youtube-link.d.ts.map +0 -1
- package/dist/cjs/youtube/validate-youtube-link.js +0 -77
- package/dist/cjs/youtube/validate-youtube-link.js.map +0 -1
- package/dist/cjs/youtube.js +0 -1
- package/dist/date/dayjs.d.ts +0 -20
- package/dist/date/dayjs.d.ts.map +0 -1
- package/dist/date/fix-timezone-offset.d.ts +0 -3
- package/dist/date/fix-timezone-offset.d.ts.map +0 -1
- package/dist/date/format-date.d.ts +0 -23
- package/dist/date/format-date.d.ts.map +0 -1
- package/dist/date/get-current-date-in-utc.d.ts +0 -3
- package/dist/date/get-current-date-in-utc.d.ts.map +0 -1
- package/dist/date/get-date-in-utc.d.ts +0 -3
- package/dist/date/get-date-in-utc.d.ts.map +0 -1
- package/dist/date/get-relative-time.d.ts +0 -3
- package/dist/date/get-relative-time.d.ts.map +0 -1
- package/dist/date/index.d.ts.map +0 -1
- package/dist/date/parse-time-spent.d.ts +0 -15
- package/dist/date/parse-time-spent.d.ts.map +0 -1
- package/dist/esm/api/client.js +0 -143
- package/dist/esm/api/index.js +0 -1
- package/dist/esm/api/wrapper.js +0 -148
- package/dist/esm/array/index.js +0 -2
- package/dist/esm/array/shuffle.js +0 -12
- package/dist/esm/array/unique.js +0 -3
- package/dist/esm/array.js +0 -1
- package/dist/esm/date/dayjs.js +0 -111
- package/dist/esm/date/fix-timezone-offset.js +0 -5
- package/dist/esm/date/format-date.js +0 -67
- package/dist/esm/date/get-current-date-in-utc.js +0 -4
- package/dist/esm/date/get-date-in-utc.js +0 -4
- package/dist/esm/date/get-relative-time.js +0 -4
- package/dist/esm/date/index.js +0 -7
- package/dist/esm/date/parse-time-spent.js +0 -203
- package/dist/esm/date.js +0 -1
- package/dist/esm/files/compress-image.js +0 -57
- package/dist/esm/files/download-url.js +0 -24
- package/dist/esm/files/file-delete.js +0 -12
- package/dist/esm/files/file-exists.js +0 -10
- package/dist/esm/files/format-bytes.js +0 -13
- package/dist/esm/files/index.js +0 -5
- package/dist/esm/files.js +0 -1
- package/dist/esm/function/debounce.js +0 -22
- package/dist/esm/function/index.js +0 -3
- package/dist/esm/function/throttle.js +0 -32
- package/dist/esm/function/try-catch.js +0 -35
- package/dist/esm/function.js +0 -1
- package/dist/esm/index.js +0 -7
- package/dist/esm/string/camel-case.js +0 -21
- package/dist/esm/string/capitalize.js +0 -9
- package/dist/esm/string/format-hms-to-seconds.js +0 -25
- package/dist/esm/string/format-seconds-to-fragment.js +0 -15
- package/dist/esm/string/format-seconds-to-hms.js +0 -13
- package/dist/esm/string/format-string-to-time.js +0 -10
- package/dist/esm/string/index.js +0 -13
- package/dist/esm/string/kebab-case.js +0 -11
- package/dist/esm/string/markdown-to-text.js +0 -66
- package/dist/esm/string/remove-html-tags.js +0 -14
- package/dist/esm/string/slugify.js +0 -9
- package/dist/esm/string/snake-case.js +0 -11
- package/dist/esm/string/to-sentence-case.js +0 -9
- package/dist/esm/string/truncate.js +0 -15
- package/dist/esm/string.js +0 -1
- package/dist/esm/youtube/extract-youtube-video-id.js +0 -26
- package/dist/esm/youtube/generate-youtube-url.js +0 -81
- package/dist/esm/youtube/get-youtube-thumbnail.js +0 -31
- package/dist/esm/youtube/get-youtube-video-info.js +0 -207
- package/dist/esm/youtube/index.js +0 -6
- package/dist/esm/youtube/use-get-video-duration.js +0 -149
- package/dist/esm/youtube/validate-youtube-link.js +0 -40
- package/dist/esm/youtube.js +0 -1
- package/dist/files/compress-image.d.ts +0 -10
- package/dist/files/compress-image.d.ts.map +0 -1
- package/dist/files/download-url.d.ts +0 -2
- package/dist/files/download-url.d.ts.map +0 -1
- package/dist/files/file-delete.d.ts +0 -2
- package/dist/files/file-delete.d.ts.map +0 -1
- package/dist/files/file-exists.d.ts +0 -2
- package/dist/files/file-exists.d.ts.map +0 -1
- package/dist/files/format-bytes.d.ts +0 -2
- package/dist/files/format-bytes.d.ts.map +0 -1
- package/dist/files/index.d.ts.map +0 -1
- package/dist/function/debounce.d.ts +0 -11
- package/dist/function/debounce.d.ts.map +0 -1
- package/dist/function/index.d.ts.map +0 -1
- package/dist/function/throttle.d.ts +0 -10
- package/dist/function/throttle.d.ts.map +0 -1
- package/dist/function/try-catch.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/string/camel-case.d.ts +0 -2
- package/dist/string/camel-case.d.ts.map +0 -1
- package/dist/string/capitalize.d.ts +0 -2
- package/dist/string/capitalize.d.ts.map +0 -1
- package/dist/string/format-hms-to-seconds.d.ts +0 -2
- package/dist/string/format-hms-to-seconds.d.ts.map +0 -1
- package/dist/string/format-seconds-to-fragment.d.ts +0 -3
- package/dist/string/format-seconds-to-fragment.d.ts.map +0 -1
- package/dist/string/format-seconds-to-hms.d.ts +0 -2
- package/dist/string/format-seconds-to-hms.d.ts.map +0 -1
- package/dist/string/format-string-to-time.d.ts +0 -2
- package/dist/string/format-string-to-time.d.ts.map +0 -1
- package/dist/string/index.d.ts.map +0 -1
- package/dist/string/kebab-case.d.ts +0 -2
- package/dist/string/kebab-case.d.ts.map +0 -1
- package/dist/string/markdown-to-text.d.ts +0 -2
- package/dist/string/markdown-to-text.d.ts.map +0 -1
- package/dist/string/remove-html-tags.d.ts +0 -2
- package/dist/string/remove-html-tags.d.ts.map +0 -1
- package/dist/string/slugify.d.ts +0 -2
- package/dist/string/slugify.d.ts.map +0 -1
- package/dist/string/snake-case.d.ts +0 -2
- package/dist/string/snake-case.d.ts.map +0 -1
- package/dist/string/to-sentence-case.d.ts +0 -2
- package/dist/string/to-sentence-case.d.ts.map +0 -1
- package/dist/string/truncate.d.ts +0 -2
- package/dist/string/truncate.d.ts.map +0 -1
- package/dist/youtube/extract-youtube-video-id.d.ts +0 -2
- package/dist/youtube/extract-youtube-video-id.d.ts.map +0 -1
- package/dist/youtube/generate-youtube-url.d.ts +0 -20
- package/dist/youtube/generate-youtube-url.d.ts.map +0 -1
- package/dist/youtube/get-youtube-thumbnail.d.ts +0 -2
- package/dist/youtube/get-youtube-thumbnail.d.ts.map +0 -1
- package/dist/youtube/get-youtube-video-info.d.ts +0 -26
- package/dist/youtube/get-youtube-video-info.d.ts.map +0 -1
- package/dist/youtube/index.d.ts.map +0 -1
- package/dist/youtube/use-get-video-duration.d.ts +0 -7
- package/dist/youtube/use-get-video-duration.d.ts.map +0 -1
- package/dist/youtube/validate-youtube-link.d.ts +0 -2
- package/dist/youtube/validate-youtube-link.d.ts.map +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkN2DRAZ3A_cjs = require('../chunk-N2DRAZ3A.cjs');
|
|
4
|
+
var chunkGRSF4RY2_cjs = require('../chunk-GRSF4RY2.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "fileDelete", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkN2DRAZ3A_cjs.fileDelete; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "fileExists", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkN2DRAZ3A_cjs.fileExists; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "formatBytes", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkGRSF4RY2_cjs.formatBytes; }
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=index.node.cjs.map
|
|
21
|
+
//# sourceMappingURL=index.node.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.node.cjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.node.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkGX5E5B4L_cjs = require('../chunk-GX5E5B4L.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "debounce", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkGX5E5B4L_cjs.debounce; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "throttle", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkGX5E5B4L_cjs.throttle; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "tryCatch", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkGX5E5B4L_cjs.tryCatch; }
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
20
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { T as TTryCatchResult, t as tryCatch } from '../try-catch-B7WzqcPU.mjs';
|
|
2
|
+
|
|
3
|
+
type TAnyFunction$1 = (...args: unknown[]) => unknown;
|
|
4
|
+
/**
|
|
5
|
+
* Creates a debounced function that delays invoking func until after delay milliseconds
|
|
6
|
+
* have elapsed since the last time the debounced function was invoked
|
|
7
|
+
* @param fn - The function to debounce
|
|
8
|
+
* @param delay - The number of milliseconds to delay
|
|
9
|
+
* @returns The debounced function
|
|
10
|
+
*/
|
|
11
|
+
declare function debounce<T extends TAnyFunction$1>(fn: T, delay: number): (...args: Parameters<T>) => void;
|
|
12
|
+
|
|
13
|
+
type TAnyFunction = (...args: unknown[]) => unknown;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a throttled function that only invokes func at most once per every delay milliseconds
|
|
16
|
+
* @param fn - The function to throttle
|
|
17
|
+
* @param delay - The number of milliseconds to throttle invocations to
|
|
18
|
+
* @returns The throttled function
|
|
19
|
+
*/
|
|
20
|
+
declare function throttle<T extends TAnyFunction>(fn: T, delay: number): (...args: Parameters<T>) => void;
|
|
21
|
+
|
|
22
|
+
export { debounce, throttle };
|
package/dist/function/index.d.ts
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export { T as TTryCatchResult, t as tryCatch } from '../try-catch-B7WzqcPU.js';
|
|
2
|
+
|
|
3
|
+
type TAnyFunction$1 = (...args: unknown[]) => unknown;
|
|
4
|
+
/**
|
|
5
|
+
* Creates a debounced function that delays invoking func until after delay milliseconds
|
|
6
|
+
* have elapsed since the last time the debounced function was invoked
|
|
7
|
+
* @param fn - The function to debounce
|
|
8
|
+
* @param delay - The number of milliseconds to delay
|
|
9
|
+
* @returns The debounced function
|
|
10
|
+
*/
|
|
11
|
+
declare function debounce<T extends TAnyFunction$1>(fn: T, delay: number): (...args: Parameters<T>) => void;
|
|
12
|
+
|
|
13
|
+
type TAnyFunction = (...args: unknown[]) => unknown;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a throttled function that only invokes func at most once per every delay milliseconds
|
|
16
|
+
* @param fn - The function to throttle
|
|
17
|
+
* @param delay - The number of milliseconds to throttle invocations to
|
|
18
|
+
* @returns The throttled function
|
|
19
|
+
*/
|
|
20
|
+
declare function throttle<T extends TAnyFunction>(fn: T, delay: number): (...args: Parameters<T>) => void;
|
|
21
|
+
|
|
22
|
+
export { debounce, throttle };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('./chunk-P5YNRND6.cjs');
|
|
4
|
+
var chunkLJ6KOZD4_cjs = require('./chunk-LJ6KOZD4.cjs');
|
|
5
|
+
var chunk5YOEKMTJ_cjs = require('./chunk-5YOEKMTJ.cjs');
|
|
6
|
+
var chunkHK727IAV_cjs = require('./chunk-HK727IAV.cjs');
|
|
7
|
+
var chunkVAZJXZU5_cjs = require('./chunk-VAZJXZU5.cjs');
|
|
8
|
+
var chunkWGSFRFRO_cjs = require('./chunk-WGSFRFRO.cjs');
|
|
9
|
+
var chunk2MANLCNG_cjs = require('./chunk-2MANLCNG.cjs');
|
|
10
|
+
var chunkUXEUYHBD_cjs = require('./chunk-UXEUYHBD.cjs');
|
|
11
|
+
require('./chunk-6TWPZ6LL.cjs');
|
|
12
|
+
var chunkSLYUARZG_cjs = require('./chunk-SLYUARZG.cjs');
|
|
13
|
+
var chunkN2DRAZ3A_cjs = require('./chunk-N2DRAZ3A.cjs');
|
|
14
|
+
var chunkGRSF4RY2_cjs = require('./chunk-GRSF4RY2.cjs');
|
|
15
|
+
var chunkGX5E5B4L_cjs = require('./chunk-GX5E5B4L.cjs');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
Object.defineProperty(exports, "getYoutubeThumbnail", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkLJ6KOZD4_cjs.getYoutubeThumbnail; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "getYoutubeVideoDuration", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkLJ6KOZD4_cjs.getYoutubeVideoDuration; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "generateYoutubeURL", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunk5YOEKMTJ_cjs.generateYoutubeURL; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "getYoutubeVideoInfo", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunk5YOEKMTJ_cjs.getYoutubeVideoInfo; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "validateYoutubeLink", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunk5YOEKMTJ_cjs.validateYoutubeLink; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "camelCase", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkHK727IAV_cjs.camelCase; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "capitalize", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkHK727IAV_cjs.capitalize; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "formatHMSToSeconds", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkHK727IAV_cjs.formatHMSToSeconds; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "formatSecondsToFragment", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkHK727IAV_cjs.formatSecondsToFragment; }
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "formatSecondsToHMS", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return chunkHK727IAV_cjs.formatSecondsToHMS; }
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(exports, "formatStringToTime", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () { return chunkHK727IAV_cjs.formatStringToTime; }
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, "kebabCase", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () { return chunkHK727IAV_cjs.kebabCase; }
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, "markdownToText", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () { return chunkHK727IAV_cjs.markdownToText; }
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, "removeHtmlTags", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () { return chunkHK727IAV_cjs.removeHtmlTags; }
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(exports, "slugify", {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function () { return chunkHK727IAV_cjs.slugify; }
|
|
78
|
+
});
|
|
79
|
+
Object.defineProperty(exports, "snakeCase", {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function () { return chunkHK727IAV_cjs.snakeCase; }
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(exports, "toSentenceCase", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function () { return chunkHK727IAV_cjs.toSentenceCase; }
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(exports, "truncate", {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () { return chunkHK727IAV_cjs.truncate; }
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(exports, "extractYouTubeId", {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
get: function () { return chunkVAZJXZU5_cjs.extractYouTubeId; }
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(exports, "apiClient", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function () { return chunkWGSFRFRO_cjs.apiClient; }
|
|
98
|
+
});
|
|
99
|
+
Object.defineProperty(exports, "shuffle", {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function () { return chunk2MANLCNG_cjs.shuffle; }
|
|
102
|
+
});
|
|
103
|
+
Object.defineProperty(exports, "unique", {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
get: function () { return chunk2MANLCNG_cjs.unique; }
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(exports, "dayjs", {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: function () { return chunkUXEUYHBD_cjs.dayjs; }
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(exports, "fixTimezoneOffset", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () { return chunkUXEUYHBD_cjs.fixTimezoneOffset; }
|
|
114
|
+
});
|
|
115
|
+
Object.defineProperty(exports, "formatDate", {
|
|
116
|
+
enumerable: true,
|
|
117
|
+
get: function () { return chunkUXEUYHBD_cjs.formatDate; }
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(exports, "getCurrentDateInUTC", {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function () { return chunkUXEUYHBD_cjs.getCurrentDateInUTC; }
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(exports, "getDateInUTC", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () { return chunkUXEUYHBD_cjs.getDateInUTC; }
|
|
126
|
+
});
|
|
127
|
+
Object.defineProperty(exports, "getDayjsGlobalIntl", {
|
|
128
|
+
enumerable: true,
|
|
129
|
+
get: function () { return chunkUXEUYHBD_cjs.getDayjsGlobalIntl; }
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, "getRelativeTime", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () { return chunkUXEUYHBD_cjs.getRelativeTime; }
|
|
134
|
+
});
|
|
135
|
+
Object.defineProperty(exports, "parseTimeSpent", {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
get: function () { return chunkUXEUYHBD_cjs.parseTimeSpent; }
|
|
138
|
+
});
|
|
139
|
+
Object.defineProperty(exports, "resetDayjsGlobalIntl", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function () { return chunkUXEUYHBD_cjs.resetDayjsGlobalIntl; }
|
|
142
|
+
});
|
|
143
|
+
Object.defineProperty(exports, "resolveDayjsIntlConfig", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function () { return chunkUXEUYHBD_cjs.resolveDayjsIntlConfig; }
|
|
146
|
+
});
|
|
147
|
+
Object.defineProperty(exports, "setDayjsGlobalIntl", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function () { return chunkUXEUYHBD_cjs.setDayjsGlobalIntl; }
|
|
150
|
+
});
|
|
151
|
+
Object.defineProperty(exports, "withDayjsGlobalIntl", {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: function () { return chunkUXEUYHBD_cjs.withDayjsGlobalIntl; }
|
|
154
|
+
});
|
|
155
|
+
Object.defineProperty(exports, "compressImage", {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function () { return chunkSLYUARZG_cjs.compressImage; }
|
|
158
|
+
});
|
|
159
|
+
Object.defineProperty(exports, "downloadUrl", {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get: function () { return chunkSLYUARZG_cjs.downloadUrl; }
|
|
162
|
+
});
|
|
163
|
+
Object.defineProperty(exports, "fileDelete", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function () { return chunkN2DRAZ3A_cjs.fileDelete; }
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, "fileExists", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return chunkN2DRAZ3A_cjs.fileExists; }
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, "formatBytes", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () { return chunkGRSF4RY2_cjs.formatBytes; }
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(exports, "debounce", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () { return chunkGX5E5B4L_cjs.debounce; }
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, "throttle", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function () { return chunkGX5E5B4L_cjs.throttle; }
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, "tryCatch", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () { return chunkGX5E5B4L_cjs.tryCatch; }
|
|
186
|
+
});
|
|
187
|
+
//# sourceMappingURL=index.cjs.map
|
|
188
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { IApiError, apiClient } from './api/index.mjs';
|
|
2
|
+
export { shuffle, unique } from './array/index.mjs';
|
|
3
|
+
export { IDayjsIntlConfig, IDayjsIntlResolvedConfig, IFormatDateConfig, ITimeSpent, dayjs, fixTimezoneOffset, formatDate, getCurrentDateInUTC, getDateInUTC, getDayjsGlobalIntl, getRelativeTime, parseTimeSpent, resetDayjsGlobalIntl, resolveDayjsIntlConfig, setDayjsGlobalIntl, withDayjsGlobalIntl } from './date/index.mjs';
|
|
4
|
+
export { compressImage, downloadUrl } from './files/index.browser.mjs';
|
|
5
|
+
export { fileDelete, fileExists } from './files/index.node.mjs';
|
|
6
|
+
export { f as formatBytes } from './format-bytes-BGjeDnvM.mjs';
|
|
7
|
+
export { debounce, throttle } from './function/index.mjs';
|
|
8
|
+
export { T as TTryCatchResult, t as tryCatch } from './try-catch-B7WzqcPU.mjs';
|
|
9
|
+
export { camelCase, capitalize, formatHMSToSeconds, formatSecondsToFragment, formatSecondsToHMS, formatStringToTime, kebabCase, markdownToText, removeHtmlTags, slugify, snakeCase, toSentenceCase, truncate } from './string/index.mjs';
|
|
10
|
+
export { TYouTubeVideoInfo, extractYouTubeId, generateYoutubeURL, getYoutubeVideoInfo, validateYoutubeLink } from './youtube/index.node.mjs';
|
|
11
|
+
export { getYoutubeThumbnail, getYoutubeVideoDuration } from './youtube/index.mjs';
|
|
12
|
+
import 'dayjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
|
|
1
|
+
export { IApiError, apiClient } from './api/index.js';
|
|
2
|
+
export { shuffle, unique } from './array/index.js';
|
|
3
|
+
export { IDayjsIntlConfig, IDayjsIntlResolvedConfig, IFormatDateConfig, ITimeSpent, dayjs, fixTimezoneOffset, formatDate, getCurrentDateInUTC, getDateInUTC, getDayjsGlobalIntl, getRelativeTime, parseTimeSpent, resetDayjsGlobalIntl, resolveDayjsIntlConfig, setDayjsGlobalIntl, withDayjsGlobalIntl } from './date/index.js';
|
|
4
|
+
export { compressImage, downloadUrl } from './files/index.browser.js';
|
|
5
|
+
export { fileDelete, fileExists } from './files/index.node.js';
|
|
6
|
+
export { f as formatBytes } from './format-bytes-BGjeDnvM.js';
|
|
7
|
+
export { debounce, throttle } from './function/index.js';
|
|
8
|
+
export { T as TTryCatchResult, t as tryCatch } from './try-catch-B7WzqcPU.js';
|
|
9
|
+
export { camelCase, capitalize, formatHMSToSeconds, formatSecondsToFragment, formatSecondsToHMS, formatStringToTime, kebabCase, markdownToText, removeHtmlTags, slugify, snakeCase, toSentenceCase, truncate } from './string/index.js';
|
|
10
|
+
export { TYouTubeVideoInfo, extractYouTubeId, generateYoutubeURL, getYoutubeVideoInfo, validateYoutubeLink } from './youtube/index.node.js';
|
|
11
|
+
export { getYoutubeThumbnail, getYoutubeVideoDuration } from './youtube/index.js';
|
|
12
|
+
import 'dayjs';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './chunk-SWRIT7EE.js';
|
|
2
|
+
export { getYoutubeThumbnail, getYoutubeVideoDuration } from './chunk-56NHIM5J.js';
|
|
3
|
+
export { generateYoutubeURL, getYoutubeVideoInfo, validateYoutubeLink } from './chunk-QAE6Q2SA.js';
|
|
4
|
+
export { camelCase, capitalize, formatHMSToSeconds, formatSecondsToFragment, formatSecondsToHMS, formatStringToTime, kebabCase, markdownToText, removeHtmlTags, slugify, snakeCase, toSentenceCase, truncate } from './chunk-53JMVGIG.js';
|
|
5
|
+
export { extractYouTubeId } from './chunk-ATWN4SRX.js';
|
|
6
|
+
export { apiClient } from './chunk-2Y6M7IOG.js';
|
|
7
|
+
export { shuffle, unique } from './chunk-2RTW37WD.js';
|
|
8
|
+
export { dayjs, fixTimezoneOffset, formatDate, getCurrentDateInUTC, getDateInUTC, getDayjsGlobalIntl, getRelativeTime, parseTimeSpent, resetDayjsGlobalIntl, resolveDayjsIntlConfig, setDayjsGlobalIntl, withDayjsGlobalIntl } from './chunk-QRXVUXGJ.js';
|
|
9
|
+
import './chunk-3JUB2OJL.js';
|
|
10
|
+
export { compressImage, downloadUrl } from './chunk-AQZBHMTO.js';
|
|
11
|
+
export { fileDelete, fileExists } from './chunk-V6OKXUBQ.js';
|
|
12
|
+
export { formatBytes } from './chunk-O7SH3E3T.js';
|
|
13
|
+
export { debounce, throttle, tryCatch } from './chunk-5OLQJUNS.js';
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkHK727IAV_cjs = require('../chunk-HK727IAV.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "camelCase", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkHK727IAV_cjs.camelCase; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "capitalize", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkHK727IAV_cjs.capitalize; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "formatHMSToSeconds", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkHK727IAV_cjs.formatHMSToSeconds; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "formatSecondsToFragment", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkHK727IAV_cjs.formatSecondsToFragment; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "formatSecondsToHMS", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkHK727IAV_cjs.formatSecondsToHMS; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "formatStringToTime", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkHK727IAV_cjs.formatStringToTime; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "kebabCase", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkHK727IAV_cjs.kebabCase; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "markdownToText", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkHK727IAV_cjs.markdownToText; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "removeHtmlTags", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkHK727IAV_cjs.removeHtmlTags; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "slugify", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkHK727IAV_cjs.slugify; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "snakeCase", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkHK727IAV_cjs.snakeCase; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "toSentenceCase", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkHK727IAV_cjs.toSentenceCase; }
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "truncate", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return chunkHK727IAV_cjs.truncate; }
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=index.cjs.map
|
|
60
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare function camelCase(str: string): string;
|
|
2
|
+
|
|
3
|
+
declare function capitalize(str: string): string;
|
|
4
|
+
|
|
5
|
+
declare const formatHMSToSeconds: (val?: number | string) => number | null;
|
|
6
|
+
|
|
7
|
+
/** convert seconds to "1h2m3s" or "42s" style for fragment */
|
|
8
|
+
declare const formatSecondsToFragment: (secs: number) => string;
|
|
9
|
+
|
|
10
|
+
declare function formatSecondsToHMS(totalSeconds: number): string;
|
|
11
|
+
|
|
12
|
+
declare const formatStringToTime: (str: string) => string;
|
|
13
|
+
|
|
14
|
+
declare function kebabCase(str: string): string;
|
|
15
|
+
|
|
16
|
+
declare function markdownToText(markdown: string): string;
|
|
17
|
+
|
|
18
|
+
declare function removeHtmlTags(input: string): string;
|
|
19
|
+
|
|
20
|
+
declare function slugify(text: string): string;
|
|
21
|
+
|
|
22
|
+
declare function snakeCase(str: string): string;
|
|
23
|
+
|
|
24
|
+
declare function toSentenceCase(str: string): string;
|
|
25
|
+
|
|
26
|
+
declare function truncate(str: string, length: number, suffix?: string): string;
|
|
27
|
+
|
|
28
|
+
export { camelCase, capitalize, formatHMSToSeconds, formatSecondsToFragment, formatSecondsToHMS, formatStringToTime, kebabCase, markdownToText, removeHtmlTags, slugify, snakeCase, toSentenceCase, truncate };
|
package/dist/string/index.d.ts
CHANGED
|
@@ -1,14 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
declare function camelCase(str: string): string;
|
|
2
|
+
|
|
3
|
+
declare function capitalize(str: string): string;
|
|
4
|
+
|
|
5
|
+
declare const formatHMSToSeconds: (val?: number | string) => number | null;
|
|
6
|
+
|
|
7
|
+
/** convert seconds to "1h2m3s" or "42s" style for fragment */
|
|
8
|
+
declare const formatSecondsToFragment: (secs: number) => string;
|
|
9
|
+
|
|
10
|
+
declare function formatSecondsToHMS(totalSeconds: number): string;
|
|
11
|
+
|
|
12
|
+
declare const formatStringToTime: (str: string) => string;
|
|
13
|
+
|
|
14
|
+
declare function kebabCase(str: string): string;
|
|
15
|
+
|
|
16
|
+
declare function markdownToText(markdown: string): string;
|
|
17
|
+
|
|
18
|
+
declare function removeHtmlTags(input: string): string;
|
|
19
|
+
|
|
20
|
+
declare function slugify(text: string): string;
|
|
21
|
+
|
|
22
|
+
declare function snakeCase(str: string): string;
|
|
23
|
+
|
|
24
|
+
declare function toSentenceCase(str: string): string;
|
|
25
|
+
|
|
26
|
+
declare function truncate(str: string, length: number, suffix?: string): string;
|
|
27
|
+
|
|
28
|
+
export { camelCase, capitalize, formatHMSToSeconds, formatSecondsToFragment, formatSecondsToHMS, formatStringToTime, kebabCase, markdownToText, removeHtmlTags, slugify, snakeCase, toSentenceCase, truncate };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { camelCase, capitalize, formatHMSToSeconds, formatSecondsToFragment, formatSecondsToHMS, formatStringToTime, kebabCase, markdownToText, removeHtmlTags, slugify, snakeCase, toSentenceCase, truncate } from '../chunk-53JMVGIG.js';
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -6,7 +6,7 @@ type TFailure<E, D = null> = {
|
|
|
6
6
|
data: D;
|
|
7
7
|
error: E;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type TTryCatchResult<T, E = Error, D = null> = TSuccess<T> | TFailure<E, D>;
|
|
10
10
|
/**
|
|
11
11
|
* Enhanced try-catch utility that handles async operations and provides typed results
|
|
12
12
|
*
|
|
@@ -27,6 +27,6 @@ export type TTryCatchResult<T, E = Error, D = null> = TSuccess<T> | TFailure<E,
|
|
|
27
27
|
* const result = await tryCatch(fetchItems(), []);
|
|
28
28
|
* // result.data will be an empty array instead of null when error occurs
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
declare function tryCatch<T, E = Error, D = null>(fn: Promise<T> | (() => Promise<T> | T), defaultData?: D): Promise<TTryCatchResult<T, E, D extends null ? null : D>>;
|
|
31
|
+
|
|
32
|
+
export { type TTryCatchResult as T, tryCatch as t };
|
|
@@ -6,7 +6,7 @@ type TFailure<E, D = null> = {
|
|
|
6
6
|
data: D;
|
|
7
7
|
error: E;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type TTryCatchResult<T, E = Error, D = null> = TSuccess<T> | TFailure<E, D>;
|
|
10
10
|
/**
|
|
11
11
|
* Enhanced try-catch utility that handles async operations and provides typed results
|
|
12
12
|
*
|
|
@@ -27,6 +27,6 @@ export type TTryCatchResult<T, E = Error, D = null> = TSuccess<T> | TFailure<E,
|
|
|
27
27
|
* const result = await tryCatch(fetchItems(), []);
|
|
28
28
|
* // result.data will be an empty array instead of null when error occurs
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
declare function tryCatch<T, E = Error, D = null>(fn: Promise<T> | (() => Promise<T> | T), defaultData?: D): Promise<TTryCatchResult<T, E, D extends null ? null : D>>;
|
|
31
|
+
|
|
32
|
+
export { type TTryCatchResult as T, tryCatch as t };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkLJ6KOZD4_cjs = require('../chunk-LJ6KOZD4.cjs');
|
|
4
|
+
var chunk5YOEKMTJ_cjs = require('../chunk-5YOEKMTJ.cjs');
|
|
5
|
+
require('../chunk-HK727IAV.cjs');
|
|
6
|
+
var chunkVAZJXZU5_cjs = require('../chunk-VAZJXZU5.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "getYoutubeThumbnail", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkLJ6KOZD4_cjs.getYoutubeThumbnail; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "getYoutubeVideoDuration", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkLJ6KOZD4_cjs.getYoutubeVideoDuration; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "generateYoutubeURL", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunk5YOEKMTJ_cjs.generateYoutubeURL; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "getYoutubeVideoInfo", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunk5YOEKMTJ_cjs.getYoutubeVideoInfo; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "validateYoutubeLink", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunk5YOEKMTJ_cjs.validateYoutubeLink; }
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "extractYouTubeId", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return chunkVAZJXZU5_cjs.extractYouTubeId; }
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=index.browser.cjs.map
|
|
35
|
+
//# sourceMappingURL=index.browser.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.browser.cjs"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { getYoutubeThumbnail, getYoutubeVideoDuration } from '../chunk-56NHIM5J.js';
|
|
2
|
+
export { generateYoutubeURL, getYoutubeVideoInfo, validateYoutubeLink } from '../chunk-QAE6Q2SA.js';
|
|
3
|
+
import '../chunk-53JMVGIG.js';
|
|
4
|
+
export { extractYouTubeId } from '../chunk-ATWN4SRX.js';
|
|
5
|
+
//# sourceMappingURL=index.browser.js.map
|
|
6
|
+
//# sourceMappingURL=index.browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.browser.js"}
|