@dub/utils 0.1.45 → 0.1.47
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/dist/array-equal-DBO5cTVq.mjs +2 -0
- package/dist/array-equal-DBO5cTVq.mjs.map +1 -0
- package/dist/array-equal-I7RH2929.d.mts +9 -0
- package/dist/array-equal-I7RH2929.d.mts.map +1 -0
- package/dist/billing-utils-Ajfw8K8K.d.mts +7 -0
- package/dist/billing-utils-Ajfw8K8K.d.mts.map +1 -0
- package/dist/billing-utils-eMTiGLzG.mjs +2 -0
- package/dist/billing-utils-eMTiGLzG.mjs.map +1 -0
- package/dist/camel-case-BAzkYO0i.d.mts +5 -0
- package/dist/camel-case-BAzkYO0i.d.mts.map +1 -0
- package/dist/camel-case-C8EXnrVO.mjs +2 -0
- package/dist/camel-case-C8EXnrVO.mjs.map +1 -0
- package/dist/capitalize-DGA5yhLU.mjs +2 -0
- package/dist/capitalize-DGA5yhLU.mjs.map +1 -0
- package/dist/capitalize-DISwJgmA.d.mts +5 -0
- package/dist/capitalize-DISwJgmA.d.mts.map +1 -0
- package/dist/cctlds-DMPxi7pF.d.mts +5 -0
- package/dist/cctlds-DMPxi7pF.d.mts.map +1 -0
- package/dist/cctlds-DXCBpkmb.mjs +2 -0
- package/dist/cctlds-DXCBpkmb.mjs.map +1 -0
- package/dist/chunk-2SUO5ED7.mjs +1 -0
- package/dist/chunk-3D47OFQ4.mjs +1 -0
- package/dist/chunk-3H2VYASP.mjs +1 -0
- package/dist/chunk-3IOEJYPF.mjs +1 -0
- package/dist/chunk-3WJ3B3A3.mjs +1 -0
- package/dist/chunk-42JGIUBR.mjs +1 -0
- package/dist/chunk-46IJ6UIH.mjs +1 -0
- package/dist/chunk-4ED7MKAS.mjs +1 -0
- package/dist/chunk-4IDZNKQV.mjs +1 -0
- package/dist/chunk-4KMGJKDU.mjs +1 -0
- package/dist/chunk-5GEHVOQC.mjs +1 -0
- package/dist/chunk-5KELSAOG.mjs +1 -0
- package/dist/chunk-5UUQSLIG.mjs +1 -0
- package/dist/chunk-5VEYJI62.mjs +1 -0
- package/dist/chunk-6LIICFKM.mjs +1 -0
- package/dist/chunk-6PZZFAWB.mjs +1 -0
- package/dist/chunk-6SK2R3JD.mjs +1 -0
- package/dist/chunk-773MOEVT.mjs +1 -0
- package/dist/chunk-7KMDBW5F.mjs +1 -0
- package/dist/chunk-BMESPBRA.mjs +1 -0
- package/dist/chunk-BTS3PZVK.mjs +1 -0
- package/dist/chunk-Bs44WO9n.d.mts +5 -0
- package/dist/chunk-Bs44WO9n.d.mts.map +1 -0
- package/dist/chunk-CT63K7Y4.mjs +1 -0
- package/dist/chunk-DCOCMEMH.mjs +1 -0
- package/dist/chunk-DHBMVDIF.mjs +1 -0
- package/dist/chunk-DUQZS4IF.mjs +1 -0
- package/dist/chunk-EV2V74YL.mjs +1 -0
- package/dist/chunk-FCQXIKHJ.mjs +1 -0
- package/dist/chunk-FG7IE54U.mjs +1 -0
- package/dist/chunk-FIDVFGA2.mjs +1 -0
- package/dist/chunk-FJFDTHKA.mjs +1 -0
- package/dist/chunk-FOF4S2IU.mjs +1 -0
- package/dist/chunk-FRLPLCKN.mjs +1 -0
- package/dist/chunk-FSQIOTWL.mjs +1 -0
- package/dist/chunk-G5LHCV5W.mjs +1 -0
- package/dist/chunk-GAZHN4WQ.mjs +1 -0
- package/dist/chunk-GBDGF7EF.mjs +1 -0
- package/dist/chunk-GQJPX3D2.mjs +1 -0
- package/dist/chunk-GR4TLX6Q.mjs +1 -0
- package/dist/chunk-GURGZ7QY.mjs +1 -0
- package/dist/chunk-GV75SOJY.mjs +1 -0
- package/dist/chunk-HPPMI4D3.mjs +1 -0
- package/dist/chunk-JFQ3HCMK.mjs +1 -0
- package/dist/chunk-KCMLTM3P.mjs +1 -0
- package/dist/chunk-KDMJUM2I.mjs +1 -0
- package/dist/chunk-KMX6APZN.mjs +1 -0
- package/dist/chunk-L2U2GMY5.mjs +1 -0
- package/dist/chunk-L36NECHU.mjs +1 -0
- package/dist/chunk-LBVPSZED.mjs +1 -0
- package/dist/chunk-LPWMMOGV.mjs +1 -0
- package/dist/chunk-MWDHT2QR.mjs +1 -0
- package/dist/chunk-MWXZWALP.mjs +1 -0
- package/dist/chunk-MXK5FFNJ.mjs +1 -0
- package/dist/chunk-N4OJWEWU.mjs +1 -0
- package/dist/chunk-N5E6WGFW.mjs +1 -0
- package/dist/chunk-NALLJ4DN.mjs +1 -0
- package/dist/chunk-NFQB22EC.mjs +1 -0
- package/dist/chunk-NTIWVBKK.mjs +1 -0
- package/dist/chunk-O77TTQJR.mjs +1 -0
- package/dist/chunk-OUFPCU5E.mjs +1 -0
- package/dist/chunk-OZ5XXSGA.mjs +1 -0
- package/dist/chunk-PZKXL75U.mjs +1 -0
- package/dist/chunk-QMOXTC65.mjs +1 -0
- package/dist/chunk-QWZ6SNRA.mjs +1 -0
- package/dist/chunk-RFSS3EW3.mjs +1 -0
- package/dist/chunk-RIMPQ2IS.mjs +1 -0
- package/dist/chunk-RZVLVGJX.mjs +1 -0
- package/dist/chunk-SHJEHU3K.mjs +1 -0
- package/dist/chunk-SYRFGND4.mjs +1 -0
- package/dist/chunk-TOE4FWLM.mjs +1 -0
- package/dist/chunk-TZVYM6XK.mjs +1 -0
- package/dist/chunk-UHKMTSRR.mjs +1 -0
- package/dist/chunk-UNMXX46D.mjs +1 -0
- package/dist/chunk-UP5ANTW6.mjs +1 -0
- package/dist/chunk-V3U3HUVW.mjs +1 -0
- package/dist/chunk-V6ARAIKV.mjs +1 -0
- package/dist/chunk-VKLOD6M3.mjs +1 -0
- package/dist/chunk-VO6C24FG.mjs +1 -0
- package/dist/chunk-VQ66X74V.mjs +1 -0
- package/dist/chunk-VZIZCZGN.mjs +1 -0
- package/dist/chunk-WCSMOSHJ.mjs +1 -0
- package/dist/chunk-WGOCXGNU.mjs +1 -0
- package/dist/chunk-WHYPDWLF.mjs +1 -0
- package/dist/chunk-WOURDH2J.mjs +1 -0
- package/dist/chunk-XT2JOG2B.mjs +1 -0
- package/dist/chunk-XXID6HHB.mjs +1 -0
- package/dist/chunk-YFIGPAHJ.mjs +1 -0
- package/dist/chunk-YV7D66BK.mjs +1 -0
- package/dist/chunk-Z4VSQFD6.mjs +1 -0
- package/dist/chunk-ZRZIS4IN.mjs +1 -0
- package/dist/chunk-ZXK34EEV.mjs +1 -0
- package/dist/chunk-ZYT3NCX6.mjs +1 -0
- package/dist/chunk-pVrr2QRR.mjs +2 -0
- package/dist/chunk-pVrr2QRR.mjs.map +1 -0
- package/dist/cn-BTSOW7kH.mjs +2 -0
- package/dist/cn-BTSOW7kH.mjs.map +1 -0
- package/dist/cn-BiYf047b.d.mts +7 -0
- package/dist/cn-BiYf047b.d.mts.map +1 -0
- package/dist/combine-words-1pGDmuMF.d.mts +5 -0
- package/dist/combine-words-1pGDmuMF.d.mts.map +1 -0
- package/dist/combine-words-Br_lSncT.mjs +2 -0
- package/dist/combine-words-Br_lSncT.mjs.map +1 -0
- package/dist/connect-supported-countries-BD-eJcNa.d.mts +5 -0
- package/dist/connect-supported-countries-BD-eJcNa.d.mts.map +1 -0
- package/dist/connect-supported-countries-BxwwGf3y.mjs +2 -0
- package/dist/connect-supported-countries-BxwwGf3y.mjs.map +1 -0
- package/dist/constants/cctlds.d.mts +2 -0
- package/dist/constants/connect-supported-countries.d.mts +2 -0
- package/dist/constants/continents.d.mts +2 -0
- package/dist/constants/countries.d.mts +2 -0
- package/dist/constants/country-currency-codes.d.mts +2 -0
- package/dist/constants/country-phone-codes.d.mts +2 -0
- package/dist/constants/domains.d.mts +2 -0
- package/dist/constants/dub-domains.d.mts +2 -0
- package/dist/constants/dub-domains.mjs +1 -1
- package/dist/constants/index.d.mts +20 -0
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.mjs +1 -1
- package/dist/constants/integrations.d.mts +2 -0
- package/dist/constants/layout.d.mts +2 -0
- package/dist/constants/localhost.d.mts +2 -0
- package/dist/constants/main.d.mts +2 -0
- package/dist/constants/middleware.d.mts +2 -0
- package/dist/constants/misc.d.mts +2 -0
- package/dist/constants/misc.d.ts +2 -2
- package/dist/constants/misc.mjs +1 -1
- package/dist/constants/paypal-supported-countries.d.mts +2 -0
- package/dist/constants/regions.d.mts +2 -0
- package/dist/constants/reserved-slugs.d.mts +2 -0
- package/dist/constants/reserved-slugs.mjs +1 -1
- package/dist/constants/saml.d.mts +2 -0
- package/dist/constants-DfGFdd9U.mjs +2 -0
- package/dist/constants-DfGFdd9U.mjs.map +1 -0
- package/dist/construct-metadata-BN8VET-6.mjs +2 -0
- package/dist/construct-metadata-BN8VET-6.mjs.map +1 -0
- package/dist/construct-metadata-CrMm6q6l.d.mts +29 -0
- package/dist/construct-metadata-CrMm6q6l.d.mts.map +1 -0
- package/dist/continents-D6S-SHqh.d.mts +11 -0
- package/dist/continents-D6S-SHqh.d.mts.map +1 -0
- package/dist/continents-Dfk7IHcI.mjs +2 -0
- package/dist/continents-Dfk7IHcI.mjs.map +1 -0
- package/dist/countries-CaocrmXr.mjs +2 -0
- package/dist/countries-CaocrmXr.mjs.map +1 -0
- package/dist/countries-EmCwapWh.d.mts +9 -0
- package/dist/countries-EmCwapWh.d.mts.map +1 -0
- package/dist/country-currency-codes-B61rAyTK.mjs +2 -0
- package/dist/country-currency-codes-B61rAyTK.mjs.map +1 -0
- package/dist/country-currency-codes-BY8Eb6j5.d.mts +7 -0
- package/dist/country-currency-codes-BY8Eb6j5.d.mts.map +1 -0
- package/dist/country-phone-codes-Cw6Skrdf.mjs +2 -0
- package/dist/country-phone-codes-Cw6Skrdf.mjs.map +1 -0
- package/dist/country-phone-codes-DfNRdacg.d.mts +7 -0
- package/dist/country-phone-codes-DfNRdacg.d.mts.map +1 -0
- package/dist/currency-formatter-DvRObMQ-.d.mts +8 -0
- package/dist/currency-formatter-DvRObMQ-.d.mts.map +1 -0
- package/dist/currency-formatter-K4_S2-Ja.mjs +2 -0
- package/dist/currency-formatter-K4_S2-Ja.mjs.map +1 -0
- package/dist/currency-zero-decimal-2c14b925.d.ts +3 -0
- package/dist/deep-equal-DKHEsBj3.mjs +2 -0
- package/dist/deep-equal-DKHEsBj3.mjs.map +1 -0
- package/dist/deep-equal-DL7vb8Yq.d.mts +6 -0
- package/dist/deep-equal-DL7vb8Yq.d.mts.map +1 -0
- package/dist/domains-CUmgZeco.mjs +2 -0
- package/dist/domains-CUmgZeco.mjs.map +1 -0
- package/dist/domains-CaD5cUsD.mjs +2 -0
- package/dist/domains-CaD5cUsD.mjs.map +1 -0
- package/dist/domains-ClJ7JZ8G.d.mts +11 -0
- package/dist/domains-ClJ7JZ8G.d.mts.map +1 -0
- package/dist/domains-D0u9WU51.d.mts +6 -0
- package/dist/domains-D0u9WU51.d.mts.map +1 -0
- package/dist/dub-domains-DT4DbvlB.d.mts +22 -0
- package/dist/dub-domains-DT4DbvlB.d.mts.map +1 -0
- package/dist/dub-domains-cnkoM2TR.mjs +2 -0
- package/dist/dub-domains-cnkoM2TR.mjs.map +1 -0
- package/dist/fetch-with-retry-C6zApdLn.d.mts +9 -0
- package/dist/fetch-with-retry-C6zApdLn.d.mts.map +1 -0
- package/dist/fetch-with-retry-CTDDLz3Q.mjs +2 -0
- package/dist/fetch-with-retry-CTDDLz3Q.mjs.map +1 -0
- package/dist/fetch-with-timeout-Bh66T6IH.mjs +2 -0
- package/dist/fetch-with-timeout-Bh66T6IH.mjs.map +1 -0
- package/dist/fetch-with-timeout-_2qhWdGh.d.mts +5 -0
- package/dist/fetch-with-timeout-_2qhWdGh.d.mts.map +1 -0
- package/dist/fetcher-Cg7X4B6k.d.mts +7 -0
- package/dist/fetcher-Cg7X4B6k.d.mts.map +1 -0
- package/dist/fetcher-L2jCq775.mjs +2 -0
- package/dist/fetcher-L2jCq775.mjs.map +1 -0
- package/dist/format-date-B_PzoM21.d.mts +5 -0
- package/dist/format-date-B_PzoM21.d.mts.map +1 -0
- package/dist/format-date-BrsjWtQR.mjs +2 -0
- package/dist/format-date-BrsjWtQR.mjs.map +1 -0
- package/dist/format-date-smart-CRXPO-3d.d.mts +5 -0
- package/dist/format-date-smart-CRXPO-3d.d.mts.map +1 -0
- package/dist/format-date-smart-DpagPhcu.mjs +2 -0
- package/dist/format-date-smart-DpagPhcu.mjs.map +1 -0
- package/dist/format-datetime-CVqrji_7.d.mts +5 -0
- package/dist/format-datetime-CVqrji_7.d.mts.map +1 -0
- package/dist/format-datetime-DZ470JiK.mjs +2 -0
- package/dist/format-datetime-DZ470JiK.mjs.map +1 -0
- package/dist/format-datetime-smart-CVyK5qx-.mjs +2 -0
- package/dist/format-datetime-smart-CVyK5qx-.mjs.map +1 -0
- package/dist/format-datetime-smart-d22cix-d.d.mts +5 -0
- package/dist/format-datetime-smart-d22cix-d.d.mts.map +1 -0
- package/dist/format-file-size-BspZw7d5.d.mts +11 -0
- package/dist/format-file-size-BspZw7d5.d.mts.map +1 -0
- package/dist/format-file-size-CCHIbZbx.mjs +2 -0
- package/dist/format-file-size-CCHIbZbx.mjs.map +1 -0
- package/dist/format-period-DJDA7miF.d.mts +8 -0
- package/dist/format-period-DJDA7miF.d.mts.map +1 -0
- package/dist/functions/array-equal.d.mts +2 -0
- package/dist/functions/camel-case.d.mts +2 -0
- package/dist/functions/capitalize.d.mts +2 -0
- package/dist/functions/chunk.d.mts +2 -0
- package/dist/functions/cn.d.mts +2 -0
- package/dist/functions/combine-words.d.mts +2 -0
- package/dist/functions/construct-metadata.d.mts +2 -0
- package/dist/functions/currency-formatter.d.mts +2 -0
- package/dist/functions/currency-formatter.d.ts +1 -1
- package/dist/functions/currency-formatter.mjs +1 -1
- package/dist/functions/currency-zero-decimal.d.ts +3 -0
- package/dist/functions/currency-zero-decimal.mjs +1 -0
- package/dist/functions/datetime/billing-utils.d.mts +2 -0
- package/dist/functions/datetime/format-date-smart.d.mts +2 -0
- package/dist/functions/datetime/format-date.d.mts +2 -0
- package/dist/functions/datetime/format-datetime-smart.d.mts +2 -0
- package/dist/functions/datetime/format-datetime.d.mts +2 -0
- package/dist/functions/datetime/format-period.d.mts +2 -0
- package/dist/functions/datetime/format-period.mjs +1 -1
- package/dist/functions/datetime/get-datetime-local.d.mts +2 -0
- package/dist/functions/datetime/get-days-difference.d.mts +2 -0
- package/dist/functions/datetime/get-days-difference.d.ts +1 -1
- package/dist/functions/datetime/get-days-difference.mjs +1 -1
- package/dist/functions/datetime/get-first-and-last-day.d.mts +2 -0
- package/dist/functions/datetime/index.d.mts +12 -0
- package/dist/functions/datetime/index.mjs +1 -1
- package/dist/functions/datetime/parse-datetime.d.mts +2 -0
- package/dist/functions/deep-equal.d.mts +2 -0
- package/dist/functions/domains.d.mts +2 -0
- package/dist/functions/domains.mjs +1 -1
- package/dist/functions/fetch-with-retry.d.mts +2 -0
- package/dist/functions/fetch-with-timeout.d.mts +2 -0
- package/dist/functions/fetcher.d.mts +2 -0
- package/dist/functions/format-file-size.d.mts +2 -0
- package/dist/functions/hash-string.d.mts +2 -0
- package/dist/functions/index.d.mts +49 -0
- package/dist/functions/index.d.ts +5 -2
- package/dist/functions/index.mjs +1 -1
- package/dist/functions/is-click-on-interactive-child.d.mts +2 -0
- package/dist/functions/is-iframeable.d.mts +2 -0
- package/dist/functions/keys.d.mts +2 -0
- package/dist/functions/link-constructor.d.mts +2 -0
- package/dist/functions/link-constructor.mjs +1 -1
- package/dist/functions/log.d.mts +2 -0
- package/dist/functions/nanoid.d.mts +2 -0
- package/dist/functions/nformatter.d.mts +2 -0
- package/dist/functions/normalize-string.d.mts +2 -0
- package/dist/functions/pick.d.ts +3 -0
- package/dist/functions/pick.mjs +1 -0
- package/dist/functions/pluralize.d.mts +2 -0
- package/dist/functions/pretty-print.d.ts +3 -0
- package/dist/functions/pretty-print.mjs +1 -0
- package/dist/functions/promises.d.mts +2 -0
- package/dist/functions/promises.d.ts +10 -1
- package/dist/functions/promises.mjs +1 -1
- package/dist/functions/punycode.d.mts +2 -0
- package/dist/functions/random-value.d.mts +2 -0
- package/dist/functions/regex-escape.d.mts +2 -0
- package/dist/functions/resize-image.d.mts +2 -0
- package/dist/functions/smart-truncate.d.mts +2 -0
- package/dist/functions/stable-sort.d.mts +2 -0
- package/dist/functions/text-fetcher.d.mts +2 -0
- package/dist/functions/time-ago.d.mts +2 -0
- package/dist/functions/trim.d.mts +2 -0
- package/dist/functions/truncate.d.mts +2 -0
- package/dist/functions/urls.d.mts +2 -0
- package/dist/functions/urls.d.ts +2 -1
- package/dist/functions/urls.mjs +1 -1
- package/dist/get-datetime-local-C7KbfIMK.mjs +2 -0
- package/dist/get-datetime-local-C7KbfIMK.mjs.map +1 -0
- package/dist/get-datetime-local-bcjAmD-U.d.mts +5 -0
- package/dist/get-datetime-local-bcjAmD-U.d.mts.map +1 -0
- package/dist/get-days-difference--WnBYvi_.d.mts +5 -0
- package/dist/get-days-difference--WnBYvi_.d.mts.map +1 -0
- package/dist/get-days-difference-CVtk5yUe.mjs +2 -0
- package/dist/get-days-difference-CVtk5yUe.mjs.map +1 -0
- package/dist/get-first-and-last-day-CexC1yYr.d.mts +8 -0
- package/dist/get-first-and-last-day-CexC1yYr.d.mts.map +1 -0
- package/dist/get-first-and-last-day-DtD3kURS.mjs +2 -0
- package/dist/get-first-and-last-day-DtD3kURS.mjs.map +1 -0
- package/dist/hash-string-BHFn4lnc.mjs +2 -0
- package/dist/hash-string-BHFn4lnc.mjs.map +1 -0
- package/dist/hash-string-CtOpk77-.d.mts +5 -0
- package/dist/hash-string-CtOpk77-.d.mts.map +1 -0
- package/dist/index-B6T7ov8p.d.mts +1 -0
- package/dist/index-CDFDM37z.d.mts +1016 -0
- package/dist/index-CDFDM37z.d.mts.map +1 -0
- package/dist/index-DghcoV7h.d.mts +1 -0
- package/dist/index.d.mts +68 -0
- package/dist/index.d.ts +7 -4
- package/dist/index.mjs +1 -1
- package/dist/integrations-Bh8t-O3g.mjs +2 -0
- package/dist/integrations-Bh8t-O3g.mjs.map +1 -0
- package/dist/integrations-DDwL2i19.d.mts +10 -0
- package/dist/integrations-DDwL2i19.d.mts.map +1 -0
- package/dist/is-click-on-interactive-child-BiqIe6cM.mjs +2 -0
- package/dist/is-click-on-interactive-child-BiqIe6cM.mjs.map +1 -0
- package/dist/is-click-on-interactive-child-C9b9PwIE.d.mts +7 -0
- package/dist/is-click-on-interactive-child-C9b9PwIE.d.mts.map +1 -0
- package/dist/is-iframeable-Ck9l_B5X.mjs +2 -0
- package/dist/is-iframeable-Ck9l_B5X.mjs.map +1 -0
- package/dist/is-iframeable-DyfqG8lY.d.mts +11 -0
- package/dist/is-iframeable-DyfqG8lY.d.mts.map +1 -0
- package/dist/keys-Dm2_B4ZQ.mjs +2 -0
- package/dist/keys-Dm2_B4ZQ.mjs.map +1 -0
- package/dist/keys-lBgnWmIW.d.mts +7 -0
- package/dist/keys-lBgnWmIW.d.mts.map +1 -0
- package/dist/layout-BHzXziT5.d.mts +8 -0
- package/dist/layout-BHzXziT5.d.mts.map +1 -0
- package/dist/layout-Cbhjxh5i.mjs +2 -0
- package/dist/layout-Cbhjxh5i.mjs.map +1 -0
- package/dist/link-constructor-1d70H0Ke.d.mts +22 -0
- package/dist/link-constructor-1d70H0Ke.d.mts.map +1 -0
- package/dist/localhost-CfOpCdYg.d.mts +13 -0
- package/dist/localhost-CfOpCdYg.d.mts.map +1 -0
- package/dist/localhost-D7DxXpIC.mjs +2 -0
- package/dist/localhost-D7DxXpIC.mjs.map +1 -0
- package/dist/log-B19eGrt5.mjs +2 -0
- package/dist/log-B19eGrt5.mjs.map +1 -0
- package/dist/log-Cd9wRvUs.d.mts +13 -0
- package/dist/log-Cd9wRvUs.d.mts.map +1 -0
- package/dist/main-C1J_pNfu.mjs +2 -0
- package/dist/main-C1J_pNfu.mjs.map +1 -0
- package/dist/main-s8z7mt9Z.d.mts +26 -0
- package/dist/main-s8z7mt9Z.d.mts.map +1 -0
- package/dist/middleware-Bf9EP7Fw.mjs +2 -0
- package/dist/middleware-Bf9EP7Fw.mjs.map +1 -0
- package/dist/middleware-C8AhsVC2.d.mts +22 -0
- package/dist/middleware-C8AhsVC2.d.mts.map +1 -0
- package/dist/misc-CUlwIGkJ.mjs +2 -0
- package/dist/misc-CUlwIGkJ.mjs.map +1 -0
- package/dist/misc-CYVV9PKw.d.mts +11 -0
- package/dist/misc-CYVV9PKw.d.mts.map +1 -0
- package/dist/nanoid-CG3yhYEE.mjs +2 -0
- package/dist/nanoid-CG3yhYEE.mjs.map +1 -0
- package/dist/nanoid-Ccx9Tib2.d.mts +5 -0
- package/dist/nanoid-Ccx9Tib2.d.mts.map +1 -0
- package/dist/nformatter-BD3whgb_.mjs +2 -0
- package/dist/nformatter-BD3whgb_.mjs.map +1 -0
- package/dist/nformatter-CAja4QhH.d.mts +8 -0
- package/dist/nformatter-CAja4QhH.d.mts.map +1 -0
- package/dist/normalize-string-D-09W-eX.mjs +2 -0
- package/dist/normalize-string-D-09W-eX.mjs.map +1 -0
- package/dist/normalize-string-vd95aQMw.d.mts +5 -0
- package/dist/normalize-string-vd95aQMw.d.mts.map +1 -0
- package/dist/parse-datetime-Byk97s6l.d.mts +5 -0
- package/dist/parse-datetime-Byk97s6l.d.mts.map +1 -0
- package/dist/parse-datetime-mDZnUjZS.mjs +2 -0
- package/dist/parse-datetime-mDZnUjZS.mjs.map +1 -0
- package/dist/paypal-supported-countries-Bq8_WN4m.mjs +2 -0
- package/dist/paypal-supported-countries-Bq8_WN4m.mjs.map +1 -0
- package/dist/paypal-supported-countries-lqKLNq7N.d.mts +6 -0
- package/dist/paypal-supported-countries-lqKLNq7N.d.mts.map +1 -0
- package/dist/pick-b2604b42.d.ts +3 -0
- package/dist/plan-compare-27ce8e4e.d.ts +126 -0
- package/dist/plan-compare-33b84c8e.d.ts +109 -0
- package/dist/plan-compare-367d67ea.d.ts +110 -0
- package/dist/plan-compare-97700a47.d.ts +116 -0
- package/dist/plan-compare-97bc79b0.d.ts +126 -0
- package/dist/plan-compare-b173e633.d.ts +110 -0
- package/dist/plan-compare-b2d1b5ec.d.ts +155 -0
- package/dist/plan-compare-b3b80a0a.d.ts +109 -0
- package/dist/plan-compare-d6c2a413.d.ts +126 -0
- package/dist/pluralize-QqvEFeLY.d.mts +7 -0
- package/dist/pluralize-QqvEFeLY.d.mts.map +1 -0
- package/dist/pluralize-ZblMy4zT.mjs +2 -0
- package/dist/pluralize-ZblMy4zT.mjs.map +1 -0
- package/dist/pretty-print-0cc9cb8f.d.ts +3 -0
- package/dist/promises-CT9s1DJ9.d.mts +15 -0
- package/dist/promises-CT9s1DJ9.d.mts.map +1 -0
- package/dist/promises-DDmW9pcL.mjs +2 -0
- package/dist/promises-DDmW9pcL.mjs.map +1 -0
- package/dist/punycode-C53XddJy.mjs +2 -0
- package/dist/punycode-C53XddJy.mjs.map +1 -0
- package/dist/punycode-Cpm0x-BY.d.mts +6 -0
- package/dist/punycode-Cpm0x-BY.d.mts.map +1 -0
- package/dist/random-value-Cq4bOTHN.mjs +2 -0
- package/dist/random-value-Cq4bOTHN.mjs.map +1 -0
- package/dist/random-value-CrrRC--E.d.mts +5 -0
- package/dist/random-value-CrrRC--E.d.mts.map +1 -0
- package/dist/regex-escape-CK4NyBtI.d.mts +9 -0
- package/dist/regex-escape-CK4NyBtI.d.mts.map +1 -0
- package/dist/regex-escape-D-s-2YvM.mjs +2 -0
- package/dist/regex-escape-D-s-2YvM.mjs.map +1 -0
- package/dist/regions-BCfpIPZ8.mjs +2 -0
- package/dist/regions-BCfpIPZ8.mjs.map +1 -0
- package/dist/regions-XImL1JIW.d.mts +8 -0
- package/dist/regions-XImL1JIW.d.mts.map +1 -0
- package/dist/reserved-slugs-DcvFdp0j.mjs +2 -0
- package/dist/reserved-slugs-DcvFdp0j.mjs.map +1 -0
- package/dist/reserved-slugs-Pt8Mzvr6.d.mts +10 -0
- package/dist/reserved-slugs-Pt8Mzvr6.d.mts.map +1 -0
- package/dist/resize-image-C2igYbk2.mjs +2 -0
- package/dist/resize-image-C2igYbk2.mjs.map +1 -0
- package/dist/resize-image-D43n6p_q.d.mts +9 -0
- package/dist/resize-image-D43n6p_q.d.mts.map +1 -0
- package/dist/saml-CfA07QWD.mjs +2 -0
- package/dist/saml-CfA07QWD.mjs.map +1 -0
- package/dist/saml-XZ0Yugat.d.mts +16 -0
- package/dist/saml-XZ0Yugat.d.mts.map +1 -0
- package/dist/smart-truncate-ZkjOWu6I.d.mts +5 -0
- package/dist/smart-truncate-ZkjOWu6I.d.mts.map +1 -0
- package/dist/smart-truncate-rnnVmdlf.mjs +2 -0
- package/dist/smart-truncate-rnnVmdlf.mjs.map +1 -0
- package/dist/src-XRl8K33L.mjs +2 -0
- package/dist/src-XRl8K33L.mjs.map +1 -0
- package/dist/stable-sort-BuC7RxbU.mjs +2 -0
- package/dist/stable-sort-BuC7RxbU.mjs.map +1 -0
- package/dist/stable-sort-DhyKnAhf.d.mts +9 -0
- package/dist/stable-sort-DhyKnAhf.d.mts.map +1 -0
- package/dist/text-fetcher--5fqEt6h.d.mts +7 -0
- package/dist/text-fetcher--5fqEt6h.d.mts.map +1 -0
- package/dist/text-fetcher-e-DKQHg9.mjs +2 -0
- package/dist/text-fetcher-e-DKQHg9.mjs.map +1 -0
- package/dist/time-ago-3x39IVui.mjs +2 -0
- package/dist/time-ago-3x39IVui.mjs.map +1 -0
- package/dist/time-ago-BCbFEp2b.d.mts +9 -0
- package/dist/time-ago-BCbFEp2b.d.mts.map +1 -0
- package/dist/trim-CJrtQEgb.d.mts +5 -0
- package/dist/trim-CJrtQEgb.d.mts.map +1 -0
- package/dist/trim-Z_pXMru1.mjs +2 -0
- package/dist/trim-Z_pXMru1.mjs.map +1 -0
- package/dist/truncate--NEd5u1m.mjs +2 -0
- package/dist/truncate--NEd5u1m.mjs.map +1 -0
- package/dist/truncate-BXoSqKKx.d.mts +5 -0
- package/dist/truncate-BXoSqKKx.d.mts.map +1 -0
- package/dist/urls-CGNgImqv.d.mts +25 -0
- package/dist/urls-CGNgImqv.d.mts.map +1 -0
- package/dist/urls-ivBifiO_.mjs +2 -0
- package/dist/urls-ivBifiO_.mjs.map +1 -0
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{b as a}from"../../chunk-MXK5FFNJ.mjs";import"../../chunk-53SZZ2QK.mjs";import"../../chunk-UWXN5NEH.mjs";import"../../chunk-WOURDH2J.mjs";import"../../chunk-HR4YFT2T.mjs";import"../../chunk-AQPTJK67.mjs";import"../../chunk-PZ5KH242.mjs";import"../../chunk-E3EM6ARH.mjs";import"../../chunk-BMESPBRA.mjs";import"../../chunk-KIDNKMJ2.mjs";import"../../chunk-STMJW3HF.mjs";import"../../chunk-CP4WO7MM.mjs";import"../../chunk-2XEQCQCO.mjs";import"../../chunk-LPWMMOGV.mjs";import"../../chunk-IHX4EDUF.mjs";import"../../chunk-RONJDARA.mjs";import"../../chunk-3Q25XO3O.mjs";import"../../chunk-Y37NQHZ4.mjs";import"../../chunk-PPEZOXLP.mjs";import"../../chunk-FKLXONKR.mjs";import"../../chunk-NQP6WK7A.mjs";import"../../chunk-BWEJXFI3.mjs";import"../../chunk-RFDM4NES.mjs";import"../../chunk-OWYWG4M6.mjs";import"../../chunk-NWFCCRLG.mjs";import"../../chunk-GRNEXX4Q.mjs";import"../../chunk-N5E6WGFW.mjs";import"../../chunk-EHUYHMHD.mjs";import"../../chunk-NFQB22EC.mjs";import"../../chunk-EMO4MGOU.mjs";import"../../chunk-VQH3G3BC.mjs";import"../../chunk-ZTPDEOIY.mjs";import"../../chunk-F4P6WJV7.mjs";import"../../chunk-JKFE3UP3.mjs";import"../../chunk-NZ4UYKAT.mjs";import"../../chunk-WKSJXYEU.mjs";import"../../chunk-NEIHTFSW.mjs";import"../../chunk-HJD7AJT4.mjs";import"../../chunk-VZT64RAP.mjs";import"../../chunk-KDMJUM2I.mjs";import"../../chunk-FJFDTHKA.mjs";import"../../chunk-ZECUYKGD.mjs";import"../../chunk-UCO6SXQA.mjs";import"../../chunk-2N7XAD3K.mjs";import"../../chunk-KQ4NF54J.mjs";import"../../chunk-YV7D66BK.mjs";import"../../chunk-6MXH6P2P.mjs";import"../../chunk-52NREKQ5.mjs";import"../../chunk-ORB6LTBV.mjs";import"../../chunk-PMOQSSOL.mjs";import"../../chunk-2OJAP233.mjs";import"../../chunk-MWDHT2QR.mjs";import"../../chunk-2MOTUFXD.mjs";import"../../chunk-PYD75RYX.mjs";import"../../chunk-2OGPCKQX.mjs";import"../../chunk-C5CCX7UU.mjs";import"../../chunk-DEIZ6NOQ.mjs";import"../../chunk-2YQGBO42.mjs";import"../../chunk-YUMUNL66.mjs";import"../../chunk-JO76EBDG.mjs";import"../../chunk-RRVBMEYA.mjs";import"../../chunk-6YGW3G46.mjs";import"../../chunk-6OQAYXTQ.mjs";import"../../chunk-CELI6EJU.mjs";import"../../chunk-SYT2IXG6.mjs";export{a as formatPeriod};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-WOURDH2J.mjs";export{a as getDaysDifference};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { n as getBillingStartDate, r as getLastDayOfMonth, t as getAdjustedBillingCycleStart } from "../../billing-utils-Ajfw8K8K.mjs";
|
|
2
|
+
import { t as formatDateSmart } from "../../format-date-smart-CRXPO-3d.mjs";
|
|
3
|
+
import { t as formatDate } from "../../format-date-B_PzoM21.mjs";
|
|
4
|
+
import { t as formatDateTimeSmart } from "../../format-datetime-smart-d22cix-d.mjs";
|
|
5
|
+
import { t as formatDateTime } from "../../format-datetime-CVqrji_7.mjs";
|
|
6
|
+
import { t as formatPeriod } from "../../format-period-DJDA7miF.mjs";
|
|
7
|
+
import { t as getDateTimeLocal } from "../../get-datetime-local-bcjAmD-U.mjs";
|
|
8
|
+
import { t as getDaysDifference } from "../../get-days-difference--WnBYvi_.mjs";
|
|
9
|
+
import { t as getFirstAndLastDay } from "../../get-first-and-last-day-CexC1yYr.mjs";
|
|
10
|
+
import { t as parseDateTime } from "../../parse-datetime-Byk97s6l.mjs";
|
|
11
|
+
import "../../index-B6T7ov8p.mjs";
|
|
12
|
+
export { formatDate, formatDateSmart, formatDateTime, formatDateTimeSmart, formatPeriod, getAdjustedBillingCycleStart, getBillingStartDate, getDateTimeLocal, getDaysDifference, getFirstAndLastDay, getLastDayOfMonth, parseDateTime };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as h}from"../../chunk-MXK5FFNJ.mjs";import{a as f}from"../../chunk-53SZZ2QK.mjs";import{a as i}from"../../chunk-UWXN5NEH.mjs";import{a as j}from"../../chunk-WOURDH2J.mjs";import{a as k}from"../../chunk-HR4YFT2T.mjs";import{a as l}from"../../chunk-AQPTJK67.mjs";import"../../chunk-PZ5KH242.mjs";import"../../chunk-E3EM6ARH.mjs";import"../../chunk-BMESPBRA.mjs";import{a,b,c}from"../../chunk-KIDNKMJ2.mjs";import{a as e}from"../../chunk-STMJW3HF.mjs";import{a as d}from"../../chunk-CP4WO7MM.mjs";import{a as g}from"../../chunk-2XEQCQCO.mjs";import"../../chunk-LPWMMOGV.mjs";import"../../chunk-IHX4EDUF.mjs";import"../../chunk-RONJDARA.mjs";import"../../chunk-3Q25XO3O.mjs";import"../../chunk-Y37NQHZ4.mjs";import"../../chunk-PPEZOXLP.mjs";import"../../chunk-FKLXONKR.mjs";import"../../chunk-NQP6WK7A.mjs";import"../../chunk-BWEJXFI3.mjs";import"../../chunk-RFDM4NES.mjs";import"../../chunk-OWYWG4M6.mjs";import"../../chunk-NWFCCRLG.mjs";import"../../chunk-GRNEXX4Q.mjs";import"../../chunk-N5E6WGFW.mjs";import"../../chunk-EHUYHMHD.mjs";import"../../chunk-NFQB22EC.mjs";import"../../chunk-EMO4MGOU.mjs";import"../../chunk-VQH3G3BC.mjs";import"../../chunk-ZTPDEOIY.mjs";import"../../chunk-F4P6WJV7.mjs";import"../../chunk-JKFE3UP3.mjs";import"../../chunk-NZ4UYKAT.mjs";import"../../chunk-WKSJXYEU.mjs";import"../../chunk-NEIHTFSW.mjs";import"../../chunk-HJD7AJT4.mjs";import"../../chunk-VZT64RAP.mjs";import"../../chunk-KDMJUM2I.mjs";import"../../chunk-FJFDTHKA.mjs";import"../../chunk-ZECUYKGD.mjs";import"../../chunk-UCO6SXQA.mjs";import"../../chunk-2N7XAD3K.mjs";import"../../chunk-KQ4NF54J.mjs";import"../../chunk-YV7D66BK.mjs";import"../../chunk-6MXH6P2P.mjs";import"../../chunk-52NREKQ5.mjs";import"../../chunk-ORB6LTBV.mjs";import"../../chunk-PMOQSSOL.mjs";import"../../chunk-2OJAP233.mjs";import"../../chunk-MWDHT2QR.mjs";import"../../chunk-2MOTUFXD.mjs";import"../../chunk-PYD75RYX.mjs";import"../../chunk-2OGPCKQX.mjs";import"../../chunk-C5CCX7UU.mjs";import"../../chunk-DEIZ6NOQ.mjs";import"../../chunk-2YQGBO42.mjs";import"../../chunk-YUMUNL66.mjs";import"../../chunk-JO76EBDG.mjs";import"../../chunk-RRVBMEYA.mjs";import"../../chunk-6YGW3G46.mjs";import"../../chunk-6OQAYXTQ.mjs";import"../../chunk-CELI6EJU.mjs";import"../../chunk-SYT2IXG6.mjs";export{d as formatDate,e as formatDateSmart,f as formatDateTime,g as formatDateTimeSmart,h as formatPeriod,b as getAdjustedBillingCycleStart,c as getBillingStartDate,i as getDateTimeLocal,j as getDaysDifference,k as getFirstAndLastDay,a as getLastDayOfMonth,l as parseDateTime};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as isDubDomain, i as getSubdomain, n as getApexDomain, o as validDomainRegex, r as getDomainWithoutWWW, s as validSlugRegex, t as generateDomainFromName } from "../domains-ClJ7JZ8G.mjs";
|
|
2
|
+
export { generateDomainFromName, getApexDomain, getDomainWithoutWWW, getSubdomain, isDubDomain, validDomainRegex, validSlugRegex };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g}from"../chunk-
|
|
1
|
+
import{c as a,d as b,e as c,f as d,g as e,h as f,i as g}from"../chunk-MXK5FFNJ.mjs";import"../chunk-53SZZ2QK.mjs";import"../chunk-UWXN5NEH.mjs";import"../chunk-WOURDH2J.mjs";import"../chunk-HR4YFT2T.mjs";import"../chunk-AQPTJK67.mjs";import"../chunk-PZ5KH242.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-BMESPBRA.mjs";import"../chunk-KIDNKMJ2.mjs";import"../chunk-STMJW3HF.mjs";import"../chunk-CP4WO7MM.mjs";import"../chunk-2XEQCQCO.mjs";import"../chunk-LPWMMOGV.mjs";import"../chunk-IHX4EDUF.mjs";import"../chunk-RONJDARA.mjs";import"../chunk-3Q25XO3O.mjs";import"../chunk-Y37NQHZ4.mjs";import"../chunk-PPEZOXLP.mjs";import"../chunk-FKLXONKR.mjs";import"../chunk-NQP6WK7A.mjs";import"../chunk-BWEJXFI3.mjs";import"../chunk-RFDM4NES.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-NWFCCRLG.mjs";import"../chunk-GRNEXX4Q.mjs";import"../chunk-N5E6WGFW.mjs";import"../chunk-EHUYHMHD.mjs";import"../chunk-NFQB22EC.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-VQH3G3BC.mjs";import"../chunk-ZTPDEOIY.mjs";import"../chunk-F4P6WJV7.mjs";import"../chunk-JKFE3UP3.mjs";import"../chunk-NZ4UYKAT.mjs";import"../chunk-WKSJXYEU.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-HJD7AJT4.mjs";import"../chunk-VZT64RAP.mjs";import"../chunk-KDMJUM2I.mjs";import"../chunk-FJFDTHKA.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-UCO6SXQA.mjs";import"../chunk-2N7XAD3K.mjs";import"../chunk-KQ4NF54J.mjs";import"../chunk-YV7D66BK.mjs";import"../chunk-6MXH6P2P.mjs";import"../chunk-52NREKQ5.mjs";import"../chunk-ORB6LTBV.mjs";import"../chunk-PMOQSSOL.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-MWDHT2QR.mjs";import"../chunk-2MOTUFXD.mjs";import"../chunk-PYD75RYX.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-C5CCX7UU.mjs";import"../chunk-DEIZ6NOQ.mjs";import"../chunk-2YQGBO42.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-JO76EBDG.mjs";import"../chunk-RRVBMEYA.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-6OQAYXTQ.mjs";import"../chunk-CELI6EJU.mjs";import"../chunk-SYT2IXG6.mjs";export{a as generateDomainFromName,e as getApexDomain,f as getDomainWithoutWWW,d as getSubdomain,g as isDubDomain,b as validDomainRegex,c as validSlugRegex};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { t as arrayEqual } from "../array-equal-I7RH2929.mjs";
|
|
2
|
+
import { t as toCamelCase } from "../camel-case-BAzkYO0i.mjs";
|
|
3
|
+
import { t as capitalize } from "../capitalize-DISwJgmA.mjs";
|
|
4
|
+
import { t as chunk } from "../chunk-Bs44WO9n.mjs";
|
|
5
|
+
import { t as cn } from "../cn-BiYf047b.mjs";
|
|
6
|
+
import { t as combineWords } from "../combine-words-1pGDmuMF.mjs";
|
|
7
|
+
import { t as constructMetadata } from "../construct-metadata-CrMm6q6l.mjs";
|
|
8
|
+
import { t as currencyFormatter } from "../currency-formatter-DvRObMQ-.mjs";
|
|
9
|
+
import { n as getBillingStartDate, r as getLastDayOfMonth, t as getAdjustedBillingCycleStart } from "../billing-utils-Ajfw8K8K.mjs";
|
|
10
|
+
import { t as formatDateSmart } from "../format-date-smart-CRXPO-3d.mjs";
|
|
11
|
+
import { t as formatDate } from "../format-date-B_PzoM21.mjs";
|
|
12
|
+
import { t as formatDateTimeSmart } from "../format-datetime-smart-d22cix-d.mjs";
|
|
13
|
+
import { t as formatDateTime } from "../format-datetime-CVqrji_7.mjs";
|
|
14
|
+
import { t as formatPeriod } from "../format-period-DJDA7miF.mjs";
|
|
15
|
+
import { t as getDateTimeLocal } from "../get-datetime-local-bcjAmD-U.mjs";
|
|
16
|
+
import { t as getDaysDifference } from "../get-days-difference--WnBYvi_.mjs";
|
|
17
|
+
import { t as getFirstAndLastDay } from "../get-first-and-last-day-CexC1yYr.mjs";
|
|
18
|
+
import { t as parseDateTime } from "../parse-datetime-Byk97s6l.mjs";
|
|
19
|
+
import "../index-B6T7ov8p.mjs";
|
|
20
|
+
import { t as deepEqual } from "../deep-equal-DL7vb8Yq.mjs";
|
|
21
|
+
import { a as isDubDomain, i as getSubdomain, n as getApexDomain, o as validDomainRegex, r as getDomainWithoutWWW, s as validSlugRegex, t as generateDomainFromName } from "../domains-ClJ7JZ8G.mjs";
|
|
22
|
+
import { t as fetchWithRetry } from "../fetch-with-retry-C6zApdLn.mjs";
|
|
23
|
+
import { t as fetchWithTimeout } from "../fetch-with-timeout-_2qhWdGh.mjs";
|
|
24
|
+
import { t as fetcher } from "../fetcher-Cg7X4B6k.mjs";
|
|
25
|
+
import { t as formatFileSize } from "../format-file-size-BspZw7d5.mjs";
|
|
26
|
+
import { t as hashStringSHA256 } from "../hash-string-CtOpk77-.mjs";
|
|
27
|
+
import { t as isClickOnInteractiveChild } from "../is-click-on-interactive-child-C9b9PwIE.mjs";
|
|
28
|
+
import { t as isIframeable } from "../is-iframeable-DyfqG8lY.mjs";
|
|
29
|
+
import { n as isUnsupportedKey, r as validKeyRegex, t as isReservedKeyGlobal } from "../keys-lBgnWmIW.mjs";
|
|
30
|
+
import { n as linkConstructorSimple, t as linkConstructor } from "../link-constructor-1d70H0Ke.mjs";
|
|
31
|
+
import { t as log } from "../log-Cd9wRvUs.mjs";
|
|
32
|
+
import { t as nanoid } from "../nanoid-Ccx9Tib2.mjs";
|
|
33
|
+
import { t as nFormatter } from "../nformatter-CAja4QhH.mjs";
|
|
34
|
+
import { t as normalizeString } from "../normalize-string-vd95aQMw.mjs";
|
|
35
|
+
import { t as pluralize } from "../pluralize-QqvEFeLY.mjs";
|
|
36
|
+
import { n as isRejected, r as logPromiseResults, t as isFulfilled } from "../promises-CT9s1DJ9.mjs";
|
|
37
|
+
import { n as punycode, t as punyEncode } from "../punycode-Cpm0x-BY.mjs";
|
|
38
|
+
import { t as randomValue } from "../random-value-CrrRC--E.mjs";
|
|
39
|
+
import { t as regexEscape } from "../regex-escape-CK4NyBtI.mjs";
|
|
40
|
+
import { t as resizeImage } from "../resize-image-D43n6p_q.mjs";
|
|
41
|
+
import { t as smartTruncate } from "../smart-truncate-ZkjOWu6I.mjs";
|
|
42
|
+
import { t as stableSort } from "../stable-sort-DhyKnAhf.mjs";
|
|
43
|
+
import { t as textFetcher } from "../text-fetcher--5fqEt6h.mjs";
|
|
44
|
+
import { t as timeAgo } from "../time-ago-BCbFEp2b.mjs";
|
|
45
|
+
import { t as trim } from "../trim-CJrtQEgb.mjs";
|
|
46
|
+
import { t as truncate } from "../truncate-BXoSqKKx.mjs";
|
|
47
|
+
import { _ as paramsMetadata, a as getFileExtension, c as getPrettyUrl, d as getUrlFromString, f as getUrlFromStringIfValid, g as normalizeUrl, h as isValidUrl, i as createHref, l as getSearchParams, m as getUrlWithoutUTMParams, n as buildUrl, o as getParamsFromURL, p as getUrlObjFromString, r as constructURLFromUTMParams, s as getPathnameFromUrl, t as UTMTags, u as getSearchParamsWithArray } from "../urls-CGNgImqv.mjs";
|
|
48
|
+
import "../index-DghcoV7h.mjs";
|
|
49
|
+
export { UTMTags, arrayEqual, buildUrl, capitalize, chunk, cn, combineWords, constructMetadata, constructURLFromUTMParams, createHref, currencyFormatter, deepEqual, fetchWithRetry, fetchWithTimeout, fetcher, formatDate, formatDateSmart, formatDateTime, formatDateTimeSmart, formatFileSize, formatPeriod, generateDomainFromName, getAdjustedBillingCycleStart, getApexDomain, getBillingStartDate, getDateTimeLocal, getDaysDifference, getDomainWithoutWWW, getFileExtension, getFirstAndLastDay, getLastDayOfMonth, getParamsFromURL, getPathnameFromUrl, getPrettyUrl, getSearchParams, getSearchParamsWithArray, getSubdomain, getUrlFromString, getUrlFromStringIfValid, getUrlObjFromString, getUrlWithoutUTMParams, hashStringSHA256, isClickOnInteractiveChild, isDubDomain, isFulfilled, isIframeable, isRejected, isReservedKeyGlobal, isUnsupportedKey, isValidUrl, linkConstructor, linkConstructorSimple, log, logPromiseResults, nFormatter, nanoid, normalizeString, normalizeUrl, paramsMetadata, parseDateTime, pluralize, punyEncode, punycode, randomValue, regexEscape, resizeImage, smartTruncate, stableSort, textFetcher, timeAgo, toCamelCase, trim, truncate, validDomainRegex, validKeyRegex, validSlugRegex };
|
|
@@ -6,6 +6,7 @@ export { cn } from './cn.js';
|
|
|
6
6
|
export { combineWords } from './combine-words.js';
|
|
7
7
|
export { constructMetadata } from './construct-metadata.js';
|
|
8
8
|
export { currencyFormatter } from './currency-formatter.js';
|
|
9
|
+
export { isZeroDecimalCurrency } from './currency-zero-decimal.js';
|
|
9
10
|
export { getAdjustedBillingCycleStart, getBillingStartDate, getLastDayOfMonth } from './datetime/billing-utils.js';
|
|
10
11
|
export { formatDate } from './datetime/format-date.js';
|
|
11
12
|
export { formatDateSmart } from './datetime/format-date-smart.js';
|
|
@@ -31,8 +32,10 @@ export { log } from './log.js';
|
|
|
31
32
|
export { nanoid } from './nanoid.js';
|
|
32
33
|
export { nFormatter } from './nformatter.js';
|
|
33
34
|
export { normalizeString } from './normalize-string.js';
|
|
35
|
+
export { pick } from './pick.js';
|
|
34
36
|
export { pluralize } from './pluralize.js';
|
|
35
|
-
export {
|
|
37
|
+
export { prettyPrint } from './pretty-print.js';
|
|
38
|
+
export { isFulfilled, isRejected, logPromiseResults } from './promises.js';
|
|
36
39
|
export { punyEncode, punycode } from './punycode.js';
|
|
37
40
|
export { randomValue } from './random-value.js';
|
|
38
41
|
export { regexEscape } from './regex-escape.js';
|
|
@@ -43,7 +46,7 @@ export { textFetcher } from './text-fetcher.js';
|
|
|
43
46
|
export { timeAgo } from './time-ago.js';
|
|
44
47
|
export { trim } from './trim.js';
|
|
45
48
|
export { truncate } from './truncate.js';
|
|
46
|
-
export { UTMTags, buildUrl, constructURLFromUTMParams, createHref, getParamsFromURL, getPathnameFromUrl, getPrettyUrl, getSearchParams, getSearchParamsWithArray, getUrlFromString, getUrlFromStringIfValid, getUrlObjFromString, getUrlWithoutUTMParams, isValidUrl, normalizeUrl, paramsMetadata } from './urls.js';
|
|
49
|
+
export { UTMTags, buildUrl, constructURLFromUTMParams, createHref, getFileExtension, getParamsFromURL, getPathnameFromUrl, getPrettyUrl, getSearchParams, getSearchParamsWithArray, getUrlFromString, getUrlFromStringIfValid, getUrlObjFromString, getUrlWithoutUTMParams, isValidUrl, normalizeUrl, paramsMetadata } from './urls.js';
|
|
47
50
|
import 'clsx';
|
|
48
51
|
import 'next';
|
|
49
52
|
import 'react';
|
package/dist/functions/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as r,c as O,d as P,e as Q,f as R,g as S,h as T,i as U,j as da,k as ea}from"../chunk-MXK5FFNJ.mjs";import{a as p}from"../chunk-53SZZ2QK.mjs";import{a as s}from"../chunk-UWXN5NEH.mjs";import{a as t}from"../chunk-WOURDH2J.mjs";import{a as u}from"../chunk-HR4YFT2T.mjs";import{a as v}from"../chunk-AQPTJK67.mjs";import{a as xa}from"../chunk-PZ5KH242.mjs";import{a as ya}from"../chunk-E3EM6ARH.mjs";import{a as x,b as y,c as z,d as A,e as B,f as C,g as D,h as E,i as F,j as G,k as H,l as I,m as J,n as K,o as L,p as M,q as N}from"../chunk-BMESPBRA.mjs";import{a as k,b as l,c as m}from"../chunk-KIDNKMJ2.mjs";import{a as o}from"../chunk-STMJW3HF.mjs";import{a as n}from"../chunk-CP4WO7MM.mjs";import{a as q}from"../chunk-2XEQCQCO.mjs";import{a as la,b as ma,c as na}from"../chunk-LPWMMOGV.mjs";import{a as oa,b as pa}from"../chunk-IHX4EDUF.mjs";import{a as qa}from"../chunk-RONJDARA.mjs";import{a as ra}from"../chunk-3Q25XO3O.mjs";import{a as sa}from"../chunk-Y37NQHZ4.mjs";import{a as ua}from"../chunk-PPEZOXLP.mjs";import{a as ta}from"../chunk-FKLXONKR.mjs";import{a as va}from"../chunk-NQP6WK7A.mjs";import{a as wa}from"../chunk-BWEJXFI3.mjs";import{a as fa}from"../chunk-RFDM4NES.mjs";import{a as ga}from"../chunk-OWYWG4M6.mjs";import{a}from"../chunk-NWFCCRLG.mjs";import{a as ha}from"../chunk-GRNEXX4Q.mjs";import{a as ia}from"../chunk-N5E6WGFW.mjs";import{a as ja}from"../chunk-EHUYHMHD.mjs";import{a as ka}from"../chunk-NFQB22EC.mjs";import{a as W}from"../chunk-EMO4MGOU.mjs";import{a as X}from"../chunk-VQH3G3BC.mjs";import{a as Y}from"../chunk-ZTPDEOIY.mjs";import{a as Z}from"../chunk-F4P6WJV7.mjs";import{a as _}from"../chunk-JKFE3UP3.mjs";import{a as $}from"../chunk-NZ4UYKAT.mjs";import{a as aa,b as ba,c as ca}from"../chunk-WKSJXYEU.mjs";import{a as f}from"../chunk-NEIHTFSW.mjs";import{a as g}from"../chunk-HJD7AJT4.mjs";import{a as h}from"../chunk-VZT64RAP.mjs";import{a as j}from"../chunk-KDMJUM2I.mjs";import{a as i}from"../chunk-FJFDTHKA.mjs";import{a as w}from"../chunk-ZECUYKGD.mjs";import{a as V}from"../chunk-UCO6SXQA.mjs";import"../chunk-2N7XAD3K.mjs";import"../chunk-KQ4NF54J.mjs";import"../chunk-YV7D66BK.mjs";import"../chunk-6MXH6P2P.mjs";import{a as b}from"../chunk-52NREKQ5.mjs";import{a as c}from"../chunk-ORB6LTBV.mjs";import{a as d}from"../chunk-PMOQSSOL.mjs";import{a as e}from"../chunk-2OJAP233.mjs";import"../chunk-MWDHT2QR.mjs";import"../chunk-2MOTUFXD.mjs";import"../chunk-PYD75RYX.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-C5CCX7UU.mjs";import"../chunk-DEIZ6NOQ.mjs";import"../chunk-2YQGBO42.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-JO76EBDG.mjs";import"../chunk-RRVBMEYA.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-6OQAYXTQ.mjs";import"../chunk-CELI6EJU.mjs";import"../chunk-SYT2IXG6.mjs";export{E as UTMTags,b as arrayEqual,M as buildUrl,d as capitalize,e as chunk,f as cn,g as combineWords,h as constructMetadata,F as constructURLFromUTMParams,J as createHref,j as currencyFormatter,w as deepEqual,V as fetchWithRetry,W as fetchWithTimeout,X as fetcher,n as formatDate,o as formatDateSmart,p as formatDateTime,q as formatDateTimeSmart,Y as formatFileSize,r as formatPeriod,O as generateDomainFromName,l as getAdjustedBillingCycleStart,S as getApexDomain,m as getBillingStartDate,s as getDateTimeLocal,t as getDaysDifference,T as getDomainWithoutWWW,N as getFileExtension,u as getFirstAndLastDay,k as getLastDayOfMonth,D as getParamsFromURL,K as getPathnameFromUrl,I as getPrettyUrl,B as getSearchParams,C as getSearchParamsWithArray,R as getSubdomain,y as getUrlFromString,A as getUrlFromStringIfValid,z as getUrlObjFromString,H as getUrlWithoutUTMParams,Z as hashStringSHA256,_ as isClickOnInteractiveChild,U as isDubDomain,la as isFulfilled,$ as isIframeable,ma as isRejected,ca as isReservedKeyGlobal,ba as isUnsupportedKey,x as isValidUrl,i as isZeroDecimalCurrency,da as linkConstructor,ea as linkConstructorSimple,fa as log,na as logPromiseResults,a as nFormatter,ga as nanoid,ha as normalizeString,L as normalizeUrl,G as paramsMetadata,v as parseDateTime,ia as pick,ja as pluralize,ka as prettyPrint,pa as punyEncode,oa as punycode,qa as randomValue,ra as regexEscape,sa as resizeImage,ua as smartTruncate,va as stableSort,wa as textFetcher,xa as timeAgo,c as toCamelCase,ya as trim,ta as truncate,P as validDomainRegex,aa as validKeyRegex,Q as validSlugRegex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as a,k as b}from"../chunk-MXK5FFNJ.mjs";import"../chunk-53SZZ2QK.mjs";import"../chunk-UWXN5NEH.mjs";import"../chunk-WOURDH2J.mjs";import"../chunk-HR4YFT2T.mjs";import"../chunk-AQPTJK67.mjs";import"../chunk-PZ5KH242.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-BMESPBRA.mjs";import"../chunk-KIDNKMJ2.mjs";import"../chunk-STMJW3HF.mjs";import"../chunk-CP4WO7MM.mjs";import"../chunk-2XEQCQCO.mjs";import"../chunk-LPWMMOGV.mjs";import"../chunk-IHX4EDUF.mjs";import"../chunk-RONJDARA.mjs";import"../chunk-3Q25XO3O.mjs";import"../chunk-Y37NQHZ4.mjs";import"../chunk-PPEZOXLP.mjs";import"../chunk-FKLXONKR.mjs";import"../chunk-NQP6WK7A.mjs";import"../chunk-BWEJXFI3.mjs";import"../chunk-RFDM4NES.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-NWFCCRLG.mjs";import"../chunk-GRNEXX4Q.mjs";import"../chunk-N5E6WGFW.mjs";import"../chunk-EHUYHMHD.mjs";import"../chunk-NFQB22EC.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-VQH3G3BC.mjs";import"../chunk-ZTPDEOIY.mjs";import"../chunk-F4P6WJV7.mjs";import"../chunk-JKFE3UP3.mjs";import"../chunk-NZ4UYKAT.mjs";import"../chunk-WKSJXYEU.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-HJD7AJT4.mjs";import"../chunk-VZT64RAP.mjs";import"../chunk-KDMJUM2I.mjs";import"../chunk-FJFDTHKA.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-UCO6SXQA.mjs";import"../chunk-2N7XAD3K.mjs";import"../chunk-KQ4NF54J.mjs";import"../chunk-YV7D66BK.mjs";import"../chunk-6MXH6P2P.mjs";import"../chunk-52NREKQ5.mjs";import"../chunk-ORB6LTBV.mjs";import"../chunk-PMOQSSOL.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-MWDHT2QR.mjs";import"../chunk-2MOTUFXD.mjs";import"../chunk-PYD75RYX.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-C5CCX7UU.mjs";import"../chunk-DEIZ6NOQ.mjs";import"../chunk-2YQGBO42.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-JO76EBDG.mjs";import"../chunk-RRVBMEYA.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-6OQAYXTQ.mjs";import"../chunk-CELI6EJU.mjs";import"../chunk-SYT2IXG6.mjs";export{a as linkConstructor,b as linkConstructorSimple};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-N5E6WGFW.mjs";export{a as pick};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-NFQB22EC.mjs";export{a as prettyPrint};
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
declare const isFulfilled: <T>(p: PromiseSettledResult<T>) => p is PromiseFulfilledResult<T>;
|
|
2
2
|
declare const isRejected: <T>(p: PromiseSettledResult<T>) => p is PromiseRejectedResult;
|
|
3
|
+
declare function logPromiseResults<T>(results: PromiseSettledResult<T>[], options?: {
|
|
4
|
+
label?: string;
|
|
5
|
+
items?: {
|
|
6
|
+
id?: string | number;
|
|
7
|
+
}[];
|
|
8
|
+
}): {
|
|
9
|
+
successCount: number;
|
|
10
|
+
failureCount: number;
|
|
11
|
+
};
|
|
3
12
|
|
|
4
|
-
export { isFulfilled, isRejected };
|
|
13
|
+
export { isFulfilled, isRejected, logPromiseResults };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-LPWMMOGV.mjs";export{a as isFulfilled,b as isRejected,c as logPromiseResults};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { _ as paramsMetadata, a as getFileExtension, c as getPrettyUrl, d as getUrlFromString, f as getUrlFromStringIfValid, g as normalizeUrl, h as isValidUrl, i as createHref, l as getSearchParams, m as getUrlWithoutUTMParams, n as buildUrl, o as getParamsFromURL, p as getUrlObjFromString, r as constructURLFromUTMParams, s as getPathnameFromUrl, t as UTMTags, u as getSearchParamsWithArray } from "../urls-CGNgImqv.mjs";
|
|
2
|
+
export { UTMTags, buildUrl, constructURLFromUTMParams, createHref, getFileExtension, getParamsFromURL, getPathnameFromUrl, getPrettyUrl, getSearchParams, getSearchParamsWithArray, getUrlFromString, getUrlFromStringIfValid, getUrlObjFromString, getUrlWithoutUTMParams, isValidUrl, normalizeUrl, paramsMetadata };
|
package/dist/functions/urls.d.ts
CHANGED
|
@@ -18,5 +18,6 @@ declare const createHref: (href: string, domain: string, utmParams?: Partial<Rec
|
|
|
18
18
|
declare const getPathnameFromUrl: (url: string) => string;
|
|
19
19
|
declare const normalizeUrl: (url: string) => string;
|
|
20
20
|
declare function buildUrl(baseUrl: string, params?: Record<string, string | number | boolean | null | undefined>): string;
|
|
21
|
+
declare const getFileExtension: (url: string) => string | null;
|
|
21
22
|
|
|
22
|
-
export { UTMTags, buildUrl, constructURLFromUTMParams, createHref, getParamsFromURL, getPathnameFromUrl, getPrettyUrl, getSearchParams, getSearchParamsWithArray, getUrlFromString, getUrlFromStringIfValid, getUrlObjFromString, getUrlWithoutUTMParams, isValidUrl, normalizeUrl, paramsMetadata };
|
|
23
|
+
export { UTMTags, buildUrl, constructURLFromUTMParams, createHref, getFileExtension, getParamsFromURL, getPathnameFromUrl, getPrettyUrl, getSearchParams, getSearchParamsWithArray, getUrlFromString, getUrlFromStringIfValid, getUrlObjFromString, getUrlWithoutUTMParams, isValidUrl, normalizeUrl, paramsMetadata };
|
package/dist/functions/urls.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"../chunk-BMESPBRA.mjs";export{h as UTMTags,p as buildUrl,i as constructURLFromUTMParams,m as createHref,q as getFileExtension,g as getParamsFromURL,n as getPathnameFromUrl,l as getPrettyUrl,e as getSearchParams,f as getSearchParamsWithArray,b as getUrlFromString,d as getUrlFromStringIfValid,c as getUrlObjFromString,k as getUrlWithoutUTMParams,a as isValidUrl,o as normalizeUrl,j as paramsMetadata};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-datetime-local-C7KbfIMK.mjs","names":[],"sources":["../src/functions/datetime/get-datetime-local.ts"],"sourcesContent":["export const getDateTimeLocal = (timestamp?: Date): string => {\n const d = timestamp ? new Date(timestamp) : new Date();\n if (d.toString() === \"Invalid Date\") return \"\";\n return new Date(d.getTime() - d.getTimezoneOffset() * 60000)\n .toISOString()\n .split(\":\")\n .slice(0, 2)\n .join(\":\");\n};\n"],"mappings":"AAAA,MAAa,EAAoB,GAA6B,CAC5D,IAAM,EAAI,EAAY,IAAI,KAAK,EAAU,CAAG,IAAI,KAEhD,OADI,EAAE,UAAU,GAAK,eAAuB,GACrC,IAAI,KAAK,EAAE,SAAS,CAAG,EAAE,mBAAmB,CAAG,IAAM,CACzD,aAAa,CACb,MAAM,IAAI,CACV,MAAM,EAAG,EAAE,CACX,KAAK,IAAI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-datetime-local-bcjAmD-U.d.mts","names":["getDateTimeLocal","Date"],"sources":["../src/functions/datetime/get-datetime-local.d.ts"],"sourcesContent":["export declare const getDateTimeLocal: (timestamp?: Date) => string;\n"],"mappings":";cAAqBA,+BAA+BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-days-difference--WnBYvi_.d.mts","names":["getDaysDifference","Date"],"sources":["../src/functions/datetime/get-days-difference.d.ts"],"sourcesContent":["export declare const getDaysDifference: (startDate: Date, endDate: Date) => number;\n"],"mappings":";cAAqBA,+BAA+BC,eAAeA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-days-difference-CVtk5yUe.mjs","names":[],"sources":["../src/functions/datetime/get-days-difference.ts"],"sourcesContent":["// Function to get the number of days between two dates\nexport const getDaysDifference = (startDate: Date, endDate: Date) => {\n const diffTime = Math.abs(endDate.getTime() - startDate.getTime());\n return Math.ceil(diffTime / (1000 * 60 * 60 * 24));\n};\n"],"mappings":"AACA,MAAa,GAAqB,EAAiB,IAAkB,CACnE,IAAM,EAAW,KAAK,IAAI,EAAQ,SAAS,CAAG,EAAU,SAAS,CAAC,CAClE,OAAO,KAAK,KAAK,GAAY,IAAO,GAAK,GAAK,IAAI"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/functions/datetime/get-first-and-last-day.d.ts
|
|
2
|
+
declare const getFirstAndLastDay: (day: number) => {
|
|
3
|
+
firstDay: Date;
|
|
4
|
+
lastDay: Date;
|
|
5
|
+
};
|
|
6
|
+
//#endregion
|
|
7
|
+
export { getFirstAndLastDay as t };
|
|
8
|
+
//# sourceMappingURL=get-first-and-last-day-CexC1yYr.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-first-and-last-day-CexC1yYr.d.mts","names":["getFirstAndLastDay","Date"],"sources":["../src/functions/datetime/get-first-and-last-day.d.ts"],"sourcesContent":["export declare const getFirstAndLastDay: (day: number) => {\n firstDay: Date;\n lastDay: Date;\n};\n"],"mappings":";cAAqBA;EAAAA,QAAAA,EACPC,IADOD;WAERC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=e=>{let t=new Date,n=t.getDate(),r=t.getMonth(),i=t.getFullYear();if(n>=e)return{firstDay:new Date(i,r,e),lastDay:new Date(i,r+1,e-1)};{let t=r===0?i-1:i,n=r===0?11:r-1;return{firstDay:new Date(t,n,e),lastDay:new Date(i,r,e-1)}}};export{e as t};
|
|
2
|
+
//# sourceMappingURL=get-first-and-last-day-DtD3kURS.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-first-and-last-day-DtD3kURS.mjs","names":[],"sources":["../src/functions/datetime/get-first-and-last-day.ts"],"sourcesContent":["export const getFirstAndLastDay = (day: number) => {\n const today = new Date();\n const currentDay = today.getDate();\n const currentMonth = today.getMonth();\n const currentYear = today.getFullYear();\n if (currentDay >= day) {\n // if the current day is greater than target day, it means that we just passed it\n return {\n firstDay: new Date(currentYear, currentMonth, day),\n lastDay: new Date(currentYear, currentMonth + 1, day - 1),\n };\n } else {\n // if the current day is less than target day, it means that we haven't passed it yet\n const lastYear = currentMonth === 0 ? currentYear - 1 : currentYear; // if the current month is January, we need to go back a year\n const lastMonth = currentMonth === 0 ? 11 : currentMonth - 1; // if the current month is January, we need to go back to December\n return {\n firstDay: new Date(lastYear, lastMonth, day),\n lastDay: new Date(currentYear, currentMonth, day - 1),\n };\n }\n};\n"],"mappings":"AAAA,MAAa,EAAsB,GAAgB,CACjD,IAAM,EAAQ,IAAI,KACZ,EAAa,EAAM,SAAS,CAC5B,EAAe,EAAM,UAAU,CAC/B,EAAc,EAAM,aAAa,CACvC,GAAI,GAAc,EAEhB,MAAO,CACL,SAAU,IAAI,KAAK,EAAa,EAAc,EAAI,CAClD,QAAS,IAAI,KAAK,EAAa,EAAe,EAAG,EAAM,EAAE,CAC1D,CACI,CAEL,IAAM,EAAW,IAAiB,EAAI,EAAc,EAAI,EAClD,EAAY,IAAiB,EAAI,GAAK,EAAe,EAC3D,MAAO,CACL,SAAU,IAAI,KAAK,EAAU,EAAW,EAAI,CAC5C,QAAS,IAAI,KAAK,EAAa,EAAc,EAAM,EAAE,CACtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash-string-BHFn4lnc.mjs","names":[],"sources":["../src/functions/hash-string.ts"],"sourcesContent":["export async function hashStringSHA256(str: string) {\n // Encode the string into bytes\n const encoder = new TextEncoder();\n const data = encoder.encode(str);\n\n // Hash the data with SHA-256\n const hashBuffer = await crypto.subtle.digest(\"SHA-256\", data);\n\n // Convert the buffer to a hexadecimal string\n const hashArray = Array.from(new Uint8Array(hashBuffer));\n const hashHex = hashArray\n .map((b) => b.toString(16).padStart(2, \"0\"))\n .join(\"\");\n\n return hashHex;\n}\n"],"mappings":"AAAA,eAAsB,EAAiB,EAAa,CAGlD,IAAM,EADU,IAAI,aAAa,CACZ,OAAO,EAAI,CAG1B,EAAa,MAAM,OAAO,OAAO,OAAO,UAAW,EAAK,CAQ9D,OALkB,MAAM,KAAK,IAAI,WAAW,EAAW,CAAC,CAErD,IAAK,GAAM,EAAE,SAAS,GAAG,CAAC,SAAS,EAAG,IAAI,CAAC,CAC3C,KAAK,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash-string-CtOpk77-.d.mts","names":["hashStringSHA256","Promise"],"sources":["../src/functions/hash-string.d.ts"],"sourcesContent":["export declare function hashStringSHA256(str: string): Promise<string>;\n"],"mappings":";iBAAwBA,gBAAAA,eAA+BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|