@design-edito/tools 0.2.39 → 0.2.40
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/agnostic/arrays/dedupe/index.d.ts +7 -0
- package/agnostic/arrays/dedupe/index.js +10 -0
- package/agnostic/arrays/find-duplicates/index.d.ts +14 -0
- package/agnostic/arrays/find-duplicates/index.js +24 -5
- package/agnostic/arrays/find-duplicates/index.test.d.ts +1 -0
- package/agnostic/arrays/is-array-of/index.d.ts +15 -4
- package/agnostic/arrays/is-array-of/index.js +23 -4
- package/agnostic/arrays/is-array-of/index.test.d.ts +1 -0
- package/agnostic/arrays/make/index.d.ts +8 -0
- package/agnostic/arrays/make/index.js +6 -4
- package/agnostic/arrays/make/index.test.d.ts +1 -0
- package/agnostic/arrays/random-pick/index.d.ts +20 -0
- package/agnostic/arrays/random-pick/index.js +2 -10
- package/agnostic/arrays/random-pick/index.test.d.ts +1 -0
- package/agnostic/arrays/shuffle/index.d.ts +8 -0
- package/agnostic/arrays/shuffle/index.js +11 -4
- package/agnostic/arrays/shuffle/index.test.d.ts +1 -0
- package/agnostic/booleans/is-falsy/index.d.ts +17 -0
- package/agnostic/booleans/is-falsy/index.js +1 -1
- package/agnostic/colors/channels/index.d.ts +34 -0
- package/agnostic/colors/channels/index.js +6 -6
- package/agnostic/colors/contrast/index.d.ts +8 -0
- package/agnostic/colors/contrast/index.js +27 -8
- package/agnostic/colors/convert/index.d.ts +144 -0
- package/agnostic/colors/convert/index.js +5 -5
- package/agnostic/colors/distance/index.d.ts +8 -0
- package/agnostic/colors/distance/index.js +50 -7
- package/agnostic/colors/grayscale/index.d.ts +9 -1
- package/agnostic/colors/grayscale/index.js +156 -7
- package/agnostic/colors/invert/index.d.ts +8 -0
- package/agnostic/colors/invert/index.js +45 -7
- package/agnostic/colors/lerp/index.d.ts +12 -1
- package/agnostic/colors/lerp/index.js +97 -7
- package/agnostic/colors/luminance/index.d.ts +7 -0
- package/agnostic/colors/luminance/index.js +6 -6
- package/agnostic/colors/palette/index.d.ts +10 -1
- package/agnostic/colors/palette/index.js +104 -9
- package/agnostic/colors/rotate/index.d.ts +10 -1
- package/agnostic/colors/rotate/index.js +7 -7
- package/agnostic/colors/tidy/index.d.ts +9 -1
- package/agnostic/colors/tidy/index.js +5 -5
- package/agnostic/colors/typechecks/index.d.ts +60 -0
- package/agnostic/colors/typechecks/index.js +3 -3
- package/agnostic/colors/types.d.ts +106 -0
- package/agnostic/colors/types.js +2 -2
- package/agnostic/css/bem/index.d.ts +29 -6
- package/agnostic/css/bem/index.js +155 -6
- package/agnostic/css/generate-nice-color/index.d.ts +8 -2
- package/agnostic/css/generate-nice-color/index.js +70 -5
- package/agnostic/css/is-valid-css-class-name/index.d.ts +11 -0
- package/agnostic/css/is-valid-css-class-name/index.js +1 -1
- package/agnostic/css/styles-set/index.js +167 -15
- package/agnostic/errors/register/index.d.ts +31 -33
- package/agnostic/errors/register/index.js +49 -5
- package/agnostic/errors/unknown-to-string/index.d.ts +6 -0
- package/agnostic/errors/unknown-to-string/index.js +1 -1
- package/agnostic/html/get-node-ancestors/index.d.ts +12 -0
- package/agnostic/html/get-node-ancestors/index.js +1 -1
- package/agnostic/html/get-position-inside-parent/index.d.ts +8 -0
- package/agnostic/html/get-position-inside-parent/index.js +8 -4
- package/agnostic/html/hyper-json/cast/index.js +12 -12
- package/agnostic/html/hyper-json/index.js +40 -16
- package/agnostic/html/hyper-json/method/index.js +1 -1
- package/agnostic/html/hyper-json/serialize/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +12 -12
- package/agnostic/html/hyper-json/transformer/index.d.ts +1 -1
- package/agnostic/html/hyper-json/transformer/index.js +3 -3
- package/agnostic/html/hyper-json/tree/index.js +12 -12
- package/agnostic/html/hyper-json/types/index.d.ts +1 -1
- package/agnostic/html/hyper-json/types/index.js +1 -1
- package/agnostic/html/hyper-json/utils/index.d.ts +1 -1
- package/agnostic/html/hyper-json/utils/index.js +12 -12
- package/agnostic/html/insert-node/index.d.ts +17 -0
- package/agnostic/html/insert-node/index.js +1 -1
- package/agnostic/html/placeholders/index.d.ts +7 -9
- package/agnostic/html/placeholders/index.js +37 -5
- package/agnostic/html/replace-in-element/index.d.ts +14 -0
- package/agnostic/html/replace-in-element/index.js +1 -1
- package/agnostic/html/selector-to-element/index.d.ts +16 -1
- package/agnostic/html/selector-to-element/index.js +29 -11
- package/agnostic/html/string-to-nodes/index.d.ts +14 -7
- package/agnostic/html/string-to-nodes/index.js +14 -12
- package/agnostic/misc/assert/index.d.ts +5 -7
- package/agnostic/misc/assert/index.js +61 -8
- package/agnostic/misc/cast/index.d.ts +81 -10
- package/agnostic/misc/cast/index.js +18 -4
- package/agnostic/misc/connection/index.d.ts +26 -0
- package/agnostic/misc/connection/index.js +39 -0
- package/agnostic/misc/crawler/index.d.ts +63 -16
- package/agnostic/misc/crawler/index.js +36 -5
- package/agnostic/misc/crossenv/detect-runtime/index.d.ts +12 -2
- package/agnostic/misc/crossenv/detect-runtime/index.js +14 -5
- package/agnostic/misc/crossenv/types.d.ts +39 -0
- package/agnostic/misc/crossenv/types.js +7 -0
- package/agnostic/misc/crossenv/window/index.d.ts +28 -7
- package/agnostic/misc/crossenv/window/index.js +10 -4
- package/agnostic/misc/crossenv/window/index.test.d.ts +1 -0
- package/agnostic/misc/data-size/index.d.ts +43 -21
- package/agnostic/misc/data-size/index.js +270 -34
- package/agnostic/misc/data-size/types.d.ts +37 -0
- package/agnostic/misc/elo/index.d.ts +28 -30
- package/agnostic/misc/elo/index.js +27 -30
- package/agnostic/misc/is-constructor-function/index.d.ts +11 -0
- package/agnostic/misc/is-constructor-function/index.js +1 -1
- package/agnostic/misc/is-nullish/index.d.ts +22 -0
- package/agnostic/misc/is-nullish/index.js +1 -1
- package/agnostic/misc/logs/logger/index.js +109 -4
- package/agnostic/misc/logs/make-text-block/index.js +1 -1
- package/agnostic/misc/logs/styles/index.js +1 -1
- package/agnostic/misc/lorem-ipsum/index.d.ts +3 -5
- package/agnostic/misc/lorem-ipsum/index.js +187 -23
- package/agnostic/misc/normalize-extension/index.d.ts +10 -0
- package/agnostic/misc/normalize-extension/index.js +1 -1
- package/agnostic/misc/outcome/index.d.ts +56 -15
- package/agnostic/misc/outcome/index.js +8 -4
- package/agnostic/numbers/absolute-modulo/index.d.ts +7 -0
- package/agnostic/numbers/absolute-modulo/index.js +1 -1
- package/agnostic/numbers/clamp/index.d.ts +8 -0
- package/agnostic/numbers/clamp/index.js +1 -1
- package/agnostic/numbers/interpolate/index.d.ts +20 -1
- package/agnostic/numbers/interpolate/index.js +12 -7
- package/agnostic/numbers/responsive-harmonics/index.d.ts +20 -0
- package/agnostic/numbers/responsive-harmonics/index.js +49 -5
- package/agnostic/numbers/round/index.d.ts +24 -3
- package/agnostic/numbers/round/index.js +2 -2
- package/agnostic/objects/deep-get-property/index.d.ts +8 -0
- package/agnostic/objects/deep-get-property/index.js +23 -4
- package/agnostic/objects/enums/is-in-enum/index.d.ts +10 -0
- package/agnostic/objects/enums/is-in-enum/index.js +1 -1
- package/agnostic/objects/flatten-getters/index.d.ts +6 -0
- package/agnostic/objects/flatten-getters/index.js +19 -4
- package/agnostic/objects/is-object/index.d.ts +12 -0
- package/agnostic/objects/is-object/index.js +1 -1
- package/agnostic/objects/is-record/index.d.ts +6 -0
- package/agnostic/objects/is-record/index.js +1 -1
- package/agnostic/objects/record-format/index.d.ts +27 -0
- package/agnostic/objects/record-format/index.js +15 -4
- package/agnostic/objects/record-map/index.d.ts +9 -0
- package/agnostic/objects/record-map/index.js +1 -1
- package/agnostic/objects/validation/index.d.ts +11 -3
- package/agnostic/objects/validation/index.js +9 -5
- package/agnostic/optim/memoize/index.d.ts +10 -1
- package/agnostic/optim/memoize/index.js +16 -4
- package/agnostic/optim/throttle-debounce/index.js +110 -5
- package/agnostic/optim/throttle-debounce/types.d.ts +1 -1
- package/agnostic/random/hex-char/index.d.ts +2 -0
- package/agnostic/random/hex-char/index.js +1 -1
- package/agnostic/random/random/index.d.ts +14 -0
- package/agnostic/random/random/index.js +1 -1
- package/agnostic/random/uuid/index.d.ts +18 -0
- package/agnostic/random/uuid/index.js +1 -1
- package/agnostic/regexps/index.d.ts +95 -24
- package/agnostic/regexps/index.js +86 -5
- package/agnostic/sanitization/file-name/index.d.ts +13 -0
- package/agnostic/sanitization/file-name/index.js +7 -0
- package/agnostic/sanitization/html/index.d.ts +61 -0
- package/agnostic/sanitization/html/index.js +121 -0
- package/agnostic/sanitization/path/index.d.ts +11 -0
- package/agnostic/sanitization/path/index.js +14 -0
- package/agnostic/sanitization/types.d.ts +37 -0
- package/agnostic/sanitization/types.js +0 -0
- package/agnostic/sanitization/user-input/index.d.ts +13 -0
- package/agnostic/sanitization/user-input/index.js +23 -0
- package/agnostic/strings/char-codes/index.d.ts +82 -17
- package/agnostic/strings/char-codes/index.js +68 -5
- package/agnostic/strings/matches/index.d.ts +24 -0
- package/agnostic/strings/matches/index.js +1 -1
- package/agnostic/strings/normalize-indent/index.d.ts +22 -0
- package/agnostic/strings/normalize-indent/index.js +16 -4
- package/agnostic/strings/parse-table/index.d.ts +123 -66
- package/agnostic/strings/parse-table/index.js +83 -4
- package/agnostic/strings/replace-all/index.d.ts +20 -0
- package/agnostic/strings/replace-all/index.js +2 -2
- package/agnostic/strings/to-alphanum/index.d.ts +18 -0
- package/agnostic/strings/to-alphanum/index.js +8 -4
- package/agnostic/strings/trim/index.d.ts +18 -0
- package/agnostic/strings/trim/index.js +1 -1
- package/agnostic/time/dates/format-date/index.d.ts +47 -0
- package/agnostic/time/dates/format-date/index.js +58 -4
- package/agnostic/time/duration/index.d.ts +38 -25
- package/agnostic/time/duration/index.js +110 -5
- package/agnostic/time/timeout/index.d.ts +8 -0
- package/agnostic/time/timeout/index.js +16 -4
- package/agnostic/time/transitions/index.d.ts +73 -40
- package/agnostic/time/transitions/index.js +158 -5
- package/agnostic/time/wait/index.d.ts +6 -0
- package/agnostic/time/wait/index.js +1 -1
- package/chunks/{chunk-CLLJV343.js → chunk-27SSMK5F.js} +8 -7
- package/chunks/{chunk-FNQAF6CQ.js → chunk-2QDYPY2O.js} +5 -5
- package/chunks/{chunk-ON6LC3HE.js → chunk-2WSVYQ5Q.js} +6 -13
- package/chunks/chunk-4WE2WEXL.js +12 -0
- package/chunks/{chunk-QWNWZBIO.js → chunk-53ILYMIY.js} +8 -7
- package/chunks/{chunk-FF5NURFO.js → chunk-54KPQCVI.js} +6 -13
- package/chunks/{chunk-SRXNICSE.js → chunk-5CFQCSKJ.js} +6 -5
- package/chunks/{chunk-FKDPPFHV.js → chunk-5NTPCRFH.js} +1 -11
- package/chunks/{chunk-IV75M3KE.js → chunk-5O52VUI6.js} +6 -13
- package/chunks/{chunk-4XSDRT23.js → chunk-5X76KDYN.js} +7 -14
- package/chunks/{chunk-RHKFMXM3.js → chunk-65BFQP3T.js} +6 -5
- package/chunks/{chunk-7J7CYOXU.js → chunk-66BURDRK.js} +8 -15
- package/chunks/{chunk-ZEZCYPLQ.js → chunk-6BGIDRU5.js} +7 -14
- package/chunks/{chunk-5ZJ3KJPK.js → chunk-6YVXSCRH.js} +7 -14
- package/chunks/{chunk-NMYVJJXV.js → chunk-7B2E2NGH.js} +7 -14
- package/chunks/{chunk-YXLHZ2KW.js → chunk-AKFDKOHE.js} +2 -2
- package/chunks/{chunk-QAVYONH6.js → chunk-AKNR3U25.js} +5 -5
- package/chunks/{chunk-CVDCTI7F.js → chunk-AOEOW5XW.js} +7 -14
- package/chunks/{chunk-QSU3CVGF.js → chunk-ASWI3EO6.js} +6 -5
- package/chunks/{chunk-QWZ4ZNFA.js → chunk-AV373PHY.js} +8 -15
- package/chunks/{chunk-VROZGPC5.js → chunk-AXMAF3J2.js} +7 -14
- package/chunks/{chunk-QTA7ZEVX.js → chunk-AYGAQQXD.js} +6 -5
- package/chunks/chunk-BHGRXDTS.js +28 -0
- package/chunks/{chunk-CNYSX2L2.js → chunk-BQABPH3I.js} +7 -14
- package/chunks/{chunk-WV5N7ESL.js → chunk-BQXTV2GG.js} +9 -16
- package/chunks/{chunk-37TRFYZT.js → chunk-BXFRBV67.js} +6 -13
- package/chunks/{chunk-3LCD73SB.js → chunk-C4VX4TTP.js} +1 -1
- package/chunks/{chunk-3CLGBOHN.js → chunk-DBNCEHTT.js} +6 -13
- package/chunks/{chunk-HRNDUTZE.js → chunk-DBZAJJUF.js} +8 -15
- package/chunks/{chunk-SXRWMH3U.js → chunk-DUCLFPGE.js} +5 -5
- package/chunks/{chunk-UK2F7CWI.js → chunk-EBQRPRRC.js} +6 -13
- package/chunks/{chunk-TGVYEQIA.js → chunk-EEPLTO3E.js} +7 -14
- package/chunks/{chunk-D5CCWCEI.js → chunk-ENOTZXFS.js} +1 -1
- package/chunks/{chunk-ZTDVUXPR.js → chunk-EPUHVR7J.js} +1 -0
- package/chunks/{chunk-NCYE5WML.js → chunk-FAAIUU6V.js} +4 -4
- package/chunks/{chunk-REZC75LB.js → chunk-FH74QWR6.js} +10 -18
- package/chunks/{chunk-FD5WR2A5.js → chunk-FM3HGCFL.js} +8 -15
- package/chunks/{chunk-W3RXHN5I.js → chunk-FSI422YG.js} +6 -13
- package/chunks/{chunk-UT2J62LH.js → chunk-HEY7J6GI.js} +1 -1
- package/chunks/chunk-HOFEVF7T.js +61 -0
- package/chunks/chunk-HYPEWMYZ.js +10 -0
- package/chunks/{chunk-V3L55I2S.js → chunk-IBQQCUYV.js} +6 -13
- package/chunks/{chunk-2HJPX7E3.js → chunk-IK2S6ZYP.js} +6 -5
- package/chunks/{chunk-V3GX7SIJ.js → chunk-ISJONMNA.js} +1 -13
- package/chunks/{chunk-ZJTWDCNZ.js → chunk-J5D4OQ5U.js} +6 -13
- package/chunks/{chunk-67V4BGOB.js → chunk-JDINERKY.js} +1 -1
- package/chunks/{chunk-ZSUG52DO.js → chunk-JFXEMK66.js} +6 -13
- package/chunks/{chunk-RWO53U4X.js → chunk-JN2UETL4.js} +7 -14
- package/chunks/chunk-JU23NBY2.js +22 -0
- package/chunks/{chunk-BKO7GLC2.js → chunk-JVMFT3IT.js} +7 -6
- package/chunks/{chunk-AQBJ6HNB.js → chunk-K5UF634H.js} +1 -5
- package/chunks/{chunk-7UGMWTP5.js → chunk-KRYJVBO5.js} +1 -10
- package/chunks/{chunk-DZ2T5DTY.js → chunk-LFHDJTZJ.js} +1 -1
- package/chunks/{chunk-3G6FOHII.js → chunk-MHNUCHPP.js} +6 -5
- package/chunks/{chunk-P5JJOC5K.js → chunk-MSJ7WDFX.js} +8 -7
- package/chunks/{chunk-5VHFXWFM.js → chunk-NEMHJSNM.js} +6 -13
- package/chunks/{chunk-BWYH445G.js → chunk-NIIAUOBO.js} +6 -13
- package/chunks/{chunk-HFZGH6V2.js → chunk-NR7STUY3.js} +6 -5
- package/chunks/{chunk-2JH4TCT2.js → chunk-O66PEU62.js} +6 -13
- package/chunks/{chunk-QH64MYGA.js → chunk-O7UCJNVF.js} +7 -14
- package/chunks/{chunk-WAHPAZQS.js → chunk-OF2W4ZRG.js} +6 -13
- package/chunks/{chunk-P26Y7YUA.js → chunk-PTJO2TGI.js} +6 -5
- package/chunks/{chunk-BE7OXZRK.js → chunk-PTN2V757.js} +7 -14
- package/chunks/chunk-QEKI6WGQ.js +27 -0
- package/chunks/{chunk-EOE2ODJR.js → chunk-QHEWBOQI.js} +3 -3
- package/chunks/{chunk-N2T672IG.js → chunk-RGQNRTBI.js} +6 -13
- package/chunks/chunk-ROWPCMQY.js +29 -0
- package/chunks/{chunk-KJAEVOIW.js → chunk-S2I77NEE.js} +8 -15
- package/chunks/{chunk-CWZFRUBS.js → chunk-S6ZFFGWH.js} +7 -14
- package/chunks/{chunk-6IYUA43Q.js → chunk-SBBIQ5UH.js} +7 -14
- package/chunks/{chunk-IYQV2LP4.js → chunk-SGGJJ46D.js} +321 -319
- package/chunks/{chunk-YVKM7N55.js → chunk-U225LGOV.js} +8 -7
- package/chunks/{chunk-HWEGQVBQ.js → chunk-ULYGDEW2.js} +6 -13
- package/chunks/{chunk-QAQZEKIF.js → chunk-USIYKRNX.js} +6 -6
- package/chunks/{chunk-FB3GNE2B.js → chunk-UZ4SWSOZ.js} +8 -15
- package/chunks/{chunk-4XBUJAQU.js → chunk-VU6JYR3W.js} +7 -14
- package/chunks/{chunk-FE4DECBU.js → chunk-VYDUHDXW.js} +7 -14
- package/chunks/{chunk-BSUQNHAM.js → chunk-W5VY535B.js} +7 -14
- package/chunks/{chunk-STPN5KZL.js → chunk-WF2JNQV4.js} +8 -7
- package/chunks/chunk-XCBH6NLF.js +42 -0
- package/chunks/chunk-XIIJYVJZ.js +15 -0
- package/chunks/{chunk-QDVDHFMZ.js → chunk-Y6FD4ASO.js} +7 -14
- package/chunks/{chunk-C6QTHDDM.js → chunk-YOP6WVCF.js} +7 -14
- package/chunks/chunk-ZKIQ753F.js +23 -0
- package/chunks/{chunk-QLDN574K.js → chunk-ZTPRFEPV.js} +7 -14
- package/components/Comp/index.js +7 -4
- package/node/@aws-s3/storage/directory/copy-dir/index.d.ts +4 -12
- package/node/@aws-s3/storage/directory/copy-dir/index.js +3 -3
- package/node/@aws-s3/storage/directory/list/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/list/index.js +3 -3
- package/node/@aws-s3/storage/directory/move-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/move-dir/index.js +3 -3
- package/node/@aws-s3/storage/directory/remove-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/remove-dir/index.js +3 -3
- package/node/@aws-s3/storage/file/copy/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/copy/index.js +3 -3
- package/node/@aws-s3/storage/file/download/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/download/index.js +3 -3
- package/node/@aws-s3/storage/file/exists/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/exists/index.js +3 -3
- package/node/@aws-s3/storage/file/move/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/move/index.js +3 -3
- package/node/@aws-s3/storage/file/remove/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/remove/index.js +3 -3
- package/node/@aws-s3/storage/file/stat/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/stat/index.js +3 -3
- package/node/@aws-s3/storage/file/upload/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/upload/index.js +3 -3
- package/node/@design-edito/index.d.ts +1 -2
- package/node/@design-edito/index.js +0 -8
- package/node/@express/@multer/index.d.ts +34 -1
- package/node/@express/@multer/index.js +43 -5
- package/node/@google-cloud/storage/bucket/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/bucket/get-metadata/index.js +18 -5
- package/node/@google-cloud/storage/directory/copy-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/copy-dir/index.js +3 -3
- package/node/@google-cloud/storage/directory/list/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/list/index.js +3 -3
- package/node/@google-cloud/storage/directory/move-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/move-dir/index.js +3 -3
- package/node/@google-cloud/storage/directory/remove-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/remove-dir/index.js +3 -3
- package/node/@google-cloud/storage/file/copy/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/copy/index.js +3 -3
- package/node/@google-cloud/storage/file/download/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/download/index.js +3 -3
- package/node/@google-cloud/storage/file/exists/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/exists/index.js +3 -3
- package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/generate-signed-url/index.js +24 -5
- package/node/@google-cloud/storage/file/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-metadata/index.js +20 -5
- package/node/@google-cloud/storage/file/get-permissions/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-permissions/index.js +20 -5
- package/node/@google-cloud/storage/file/move/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/move/index.js +3 -3
- package/node/@google-cloud/storage/file/remove/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/remove/index.js +3 -3
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +25 -7
- package/node/@google-cloud/storage/file/stat/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/stat/index.js +3 -3
- package/node/@google-cloud/storage/file/update-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/update-metadata/index.js +20 -5
- package/node/@google-cloud/storage/file/upload/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/upload/index.js +3 -3
- package/node/cloud-storage/clients/index.d.ts +27 -0
- package/node/cloud-storage/clients/index.js +2 -2
- package/node/cloud-storage/operations/copy-dir/index.d.ts +46 -1
- package/node/cloud-storage/operations/copy-dir/index.js +30 -9
- package/node/cloud-storage/operations/copy-file/index.d.ts +46 -1
- package/node/cloud-storage/operations/copy-file/index.js +30 -9
- package/node/cloud-storage/operations/download-file/index.d.ts +50 -1
- package/node/cloud-storage/operations/download-file/index.js +30 -9
- package/node/cloud-storage/operations/exists-file/index.d.ts +44 -1
- package/node/cloud-storage/operations/exists-file/index.js +30 -9
- package/node/cloud-storage/operations/list-dir/index.d.ts +40 -1
- package/node/cloud-storage/operations/list-dir/index.js +30 -9
- package/node/cloud-storage/operations/move-dir/index.d.ts +46 -1
- package/node/cloud-storage/operations/move-dir/index.js +30 -9
- package/node/cloud-storage/operations/move-file/index.d.ts +46 -1
- package/node/cloud-storage/operations/move-file/index.js +30 -9
- package/node/cloud-storage/operations/remove-dir/index.d.ts +42 -1
- package/node/cloud-storage/operations/remove-dir/index.js +30 -9
- package/node/cloud-storage/operations/remove-file/index.d.ts +42 -1
- package/node/cloud-storage/operations/remove-file/index.js +30 -9
- package/node/cloud-storage/operations/stat-file/index.d.ts +40 -1
- package/node/cloud-storage/operations/stat-file/index.js +30 -9
- package/node/cloud-storage/operations/upload-file/index.d.ts +46 -1
- package/node/cloud-storage/operations/upload-file/index.js +30 -9
- package/node/encryption/@aes-256-gcm/buffer/index.d.ts +1 -1
- package/node/encryption/@aes-256-gcm/buffer/index.js +22 -6
- package/node/encryption/@aes-256-gcm/uint8-array/index.d.ts +1 -1
- package/node/encryption/@aes-256-gcm/uint8-array/index.js +3 -3
- package/node/encryption/key/index.js +12 -4
- package/node/files/is-in-directory/index.d.ts +7 -0
- package/node/files/is-in-directory/index.js +8 -4
- package/node/files/read-write/index.d.ts +48 -4
- package/node/files/read-write/index.js +15 -4
- package/node/files/subpaths/index.d.ts +62 -33
- package/node/files/subpaths/index.js +119 -5
- package/node/ftps/directory/copy-dir/index.d.ts +1 -1
- package/node/ftps/directory/copy-dir/index.js +3 -3
- package/node/ftps/directory/list/index.d.ts +1 -1
- package/node/ftps/directory/list/index.js +3 -3
- package/node/ftps/directory/move-dir/index.d.ts +1 -1
- package/node/ftps/directory/move-dir/index.js +3 -3
- package/node/ftps/directory/remove-dir/index.d.ts +1 -1
- package/node/ftps/directory/remove-dir/index.js +3 -3
- package/node/ftps/file/copy/index.d.ts +1 -1
- package/node/ftps/file/copy/index.js +3 -3
- package/node/ftps/file/download/index.d.ts +1 -1
- package/node/ftps/file/download/index.js +3 -3
- package/node/ftps/file/exists/index.d.ts +1 -1
- package/node/ftps/file/exists/index.js +3 -3
- package/node/ftps/file/move/index.d.ts +1 -1
- package/node/ftps/file/move/index.js +3 -3
- package/node/ftps/file/remove/index.d.ts +1 -1
- package/node/ftps/file/remove/index.js +3 -3
- package/node/ftps/file/stat/index.d.ts +1 -1
- package/node/ftps/file/stat/index.js +3 -3
- package/node/ftps/file/upload/index.d.ts +1 -1
- package/node/ftps/file/upload/index.js +3 -3
- package/node/images/create/index.d.ts +6 -0
- package/node/images/create/index.js +13 -18
- package/node/images/format/index.d.ts +36 -1
- package/node/images/format/index.js +241 -44
- package/node/images/metadata/index.d.ts +6 -0
- package/node/images/metadata/index.js +13 -18
- package/node/images/transform/index.d.ts +23 -1
- package/node/images/transform/index.js +199 -39
- package/node/images/transform/operations/blur/index.d.ts +1 -1
- package/node/images/transform/operations/blur/index.js +4 -4
- package/node/images/transform/operations/brighten/index.d.ts +1 -1
- package/node/images/transform/operations/brighten/index.js +4 -4
- package/node/images/transform/operations/extend/index.d.ts +1 -1
- package/node/images/transform/operations/extend/index.js +9 -19
- package/node/images/transform/operations/extract/index.d.ts +1 -1
- package/node/images/transform/operations/extract/index.js +4 -4
- package/node/images/transform/operations/flatten/index.d.ts +1 -1
- package/node/images/transform/operations/flatten/index.js +9 -19
- package/node/images/transform/operations/flip/index.js +1 -1
- package/node/images/transform/operations/flop/index.js +1 -1
- package/node/images/transform/operations/hue/index.d.ts +1 -1
- package/node/images/transform/operations/hue/index.js +4 -4
- package/node/images/transform/operations/level/index.d.ts +1 -1
- package/node/images/transform/operations/level/index.js +4 -4
- package/node/images/transform/operations/lighten/index.d.ts +1 -1
- package/node/images/transform/operations/lighten/index.js +4 -4
- package/node/images/transform/operations/normalize/index.d.ts +1 -1
- package/node/images/transform/operations/normalize/index.js +4 -4
- package/node/images/transform/operations/overlay/index.d.ts +1 -1
- package/node/images/transform/operations/overlay/index.js +9 -19
- package/node/images/transform/operations/resize/index.d.ts +1 -1
- package/node/images/transform/operations/resize/index.js +9 -19
- package/node/images/transform/operations/rotate/index.d.ts +1 -1
- package/node/images/transform/operations/rotate/index.js +9 -19
- package/node/images/transform/operations/saturate/index.d.ts +1 -1
- package/node/images/transform/operations/saturate/index.js +4 -4
- package/node/images/types.d.ts +136 -1
- package/node/images/types.js +2 -2
- package/node/images/utils/index.d.ts +20 -0
- package/node/images/utils/index.js +6 -16
- package/node/process/on-exit/index.d.ts +23 -0
- package/node/process/on-exit/index.js +25 -8
- package/node/process/prompt-continue/index.d.ts +18 -0
- package/node/process/prompt-continue/index.js +1680 -0
- package/node/process/spawner/index.d.ts +18 -0
- package/node/process/spawner/index.js +83 -0
- package/node/sftp/directory/copy-dir/index.d.ts +1 -1
- package/node/sftp/directory/copy-dir/index.js +3 -3
- package/node/sftp/directory/list/index.d.ts +1 -1
- package/node/sftp/directory/list/index.js +3 -3
- package/node/sftp/directory/move-dir/index.d.ts +1 -1
- package/node/sftp/directory/move-dir/index.js +3 -3
- package/node/sftp/directory/remove-dir/index.d.ts +1 -1
- package/node/sftp/directory/remove-dir/index.js +3 -3
- package/node/sftp/file/copy/index.d.ts +1 -1
- package/node/sftp/file/copy/index.js +3 -3
- package/node/sftp/file/download/index.d.ts +1 -1
- package/node/sftp/file/download/index.js +3 -3
- package/node/sftp/file/exists/index.d.ts +1 -1
- package/node/sftp/file/exists/index.js +3 -3
- package/node/sftp/file/move/index.d.ts +1 -1
- package/node/sftp/file/move/index.js +3 -3
- package/node/sftp/file/remove/index.d.ts +1 -1
- package/node/sftp/file/remove/index.js +3 -3
- package/node/sftp/file/stat/index.d.ts +1 -1
- package/node/sftp/file/stat/index.js +3 -3
- package/node/sftp/file/upload/index.d.ts +1 -1
- package/node/sftp/file/upload/index.js +3 -3
- package/package.json +11 -3
- package/agnostic/arrays/index.d.ts +0 -13
- package/agnostic/arrays/index.js +0 -21
- package/agnostic/booleans/index.d.ts +0 -8
- package/agnostic/booleans/index.js +0 -9
- package/agnostic/colors/index.d.ts +0 -14
- package/agnostic/colors/index.js +0 -107
- package/agnostic/css/bem/BEM.d.ts +0 -29
- package/agnostic/css/bem/getNamesArr.d.ts +0 -2
- package/agnostic/css/index.d.ts +0 -14
- package/agnostic/css/index.js +0 -25
- package/agnostic/errors/index.d.ts +0 -6
- package/agnostic/errors/index.js +0 -9
- package/agnostic/html/index.d.ts +0 -19
- package/agnostic/html/index.js +0 -39
- package/agnostic/html/sanitize/index.d.ts +0 -24
- package/agnostic/html/sanitize/index.js +0 -15
- package/agnostic/index.d.ts +0 -26
- package/agnostic/index.js +0 -144
- package/agnostic/misc/crossenv/index.d.ts +0 -8
- package/agnostic/misc/crossenv/index.js +0 -10
- package/agnostic/misc/crossenv/types/index.d.ts +0 -19
- package/agnostic/misc/crossenv/types/index.js +0 -7
- package/agnostic/misc/get-current-downlink/index.d.ts +0 -1
- package/agnostic/misc/get-current-downlink/index.js +0 -7
- package/agnostic/misc/index.d.ts +0 -25
- package/agnostic/misc/index.js +0 -65
- package/agnostic/misc/logs/index.d.ts +0 -17
- package/agnostic/misc/logs/index.js +0 -10
- package/agnostic/numbers/index.d.ts +0 -13
- package/agnostic/numbers/index.js +0 -12
- package/agnostic/objects/enums/index.d.ts +0 -4
- package/agnostic/objects/enums/index.js +0 -8
- package/agnostic/objects/index.d.ts +0 -19
- package/agnostic/objects/index.js +0 -19
- package/agnostic/optim/index.d.ts +0 -7
- package/agnostic/optim/index.js +0 -9
- package/agnostic/random/index.d.ts +0 -12
- package/agnostic/random/index.js +0 -10
- package/agnostic/sanitization/index.d.ts +0 -3
- package/agnostic/sanitization/index.js +0 -35
- package/agnostic/strings/index.d.ts +0 -19
- package/agnostic/strings/index.js +0 -15
- package/agnostic/time/dates/index.d.ts +0 -4
- package/agnostic/time/dates/index.js +0 -8
- package/agnostic/time/index.d.ts +0 -12
- package/agnostic/time/index.js +0 -30
- package/chunks/chunk-26T64AEI.js +0 -28
- package/chunks/chunk-34U4HX4V.js +0 -73
- package/chunks/chunk-3KZNRSDD.js +0 -112
- package/chunks/chunk-3USAHFOX.js +0 -31
- package/chunks/chunk-42K3MQQ5.js +0 -31
- package/chunks/chunk-45E3E4KW.js +0 -43
- package/chunks/chunk-4RPGLKRQ.js +0 -43
- package/chunks/chunk-536IRELM.js +0 -40
- package/chunks/chunk-5CTAKAIP.js +0 -28
- package/chunks/chunk-6KM4UT6T.js +0 -34
- package/chunks/chunk-6NYUQXJT.js +0 -109
- package/chunks/chunk-6RGDWX4A.js +0 -24
- package/chunks/chunk-6YQGM6N6.js +0 -19
- package/chunks/chunk-7AWTHZLY.js +0 -12
- package/chunks/chunk-7DBNMU6N.js +0 -14
- package/chunks/chunk-7YJ4BB73.js +0 -20
- package/chunks/chunk-A3CDUWGR.js +0 -73
- package/chunks/chunk-AL7ESVX4.js +0 -42
- package/chunks/chunk-ALAGBHFV.js +0 -42
- package/chunks/chunk-ANPXBD2G.js +0 -35
- package/chunks/chunk-AZD3VUWK.js +0 -84
- package/chunks/chunk-B43NYQDI.js +0 -16
- package/chunks/chunk-BDGFY3GP.js +0 -42
- package/chunks/chunk-BGSJ5XCH.js +0 -20
- package/chunks/chunk-BJAYUP7M.js +0 -13
- package/chunks/chunk-BLDUC7TT.js +0 -17
- package/chunks/chunk-COVPTTAD.js +0 -10
- package/chunks/chunk-DKITT7OT.js +0 -296
- package/chunks/chunk-EDVNAV3G.js +0 -72
- package/chunks/chunk-EGBJXHCW.js +0 -47
- package/chunks/chunk-EIIADR7E.js +0 -24
- package/chunks/chunk-ENMBK6H7.js +0 -162
- package/chunks/chunk-EUQFWLAH.js +0 -20
- package/chunks/chunk-F3WCF6DL.js +0 -122
- package/chunks/chunk-FEIKHYDQ.js +0 -20
- package/chunks/chunk-FHLCPVND.js +0 -23
- package/chunks/chunk-FPEW3A27.js +0 -14
- package/chunks/chunk-FR5H2OCV.js +0 -21
- package/chunks/chunk-FVFVKL54.js +0 -32
- package/chunks/chunk-FZOU4OAW.js +0 -13
- package/chunks/chunk-G4ZB72XY.js +0 -257
- package/chunks/chunk-G5RRNREY.js +0 -37
- package/chunks/chunk-GABKKGNI.js +0 -206
- package/chunks/chunk-GL42Q643.js +0 -42
- package/chunks/chunk-GTVOFJKO.js +0 -20
- package/chunks/chunk-HKTNK262.js +0 -23
- package/chunks/chunk-HWVEI3RH.js +0 -31
- package/chunks/chunk-IRTPQATN.js +0 -16
- package/chunks/chunk-JBSS64SA.js +0 -6
- package/chunks/chunk-JMU5PDBD.js +0 -20
- package/chunks/chunk-JQXNEJAP.js +0 -18
- package/chunks/chunk-JTJA7DGW.js +0 -36
- package/chunks/chunk-JWBDZPQG.js +0 -18
- package/chunks/chunk-JZ5MFJQB.js +0 -37
- package/chunks/chunk-KIONYWA7.js +0 -168
- package/chunks/chunk-KWQ4K4GN.js +0 -28
- package/chunks/chunk-KXIA3YGF.js +0 -54
- package/chunks/chunk-KXIEPXDI.js +0 -40
- package/chunks/chunk-L7PIZQFC.js +0 -51
- package/chunks/chunk-LEXQ6E6L.js +0 -31
- package/chunks/chunk-LV2VMOWR.js +0 -18
- package/chunks/chunk-MFIGSRSO.js +0 -103
- package/chunks/chunk-MJQF3YZO.js +0 -21
- package/chunks/chunk-MV473S2C.js +0 -28
- package/chunks/chunk-MVYH3CSJ.js +0 -42
- package/chunks/chunk-N4JGLSGA.js +0 -28
- package/chunks/chunk-NRITRUZW.js +0 -10
- package/chunks/chunk-OC4VIF3N.js +0 -42
- package/chunks/chunk-OJCVOSWP.js +0 -41
- package/chunks/chunk-OKCPVFQW.js +0 -56
- package/chunks/chunk-OKFZJ6DJ.js +0 -9
- package/chunks/chunk-PAIUCLVK.js +0 -35
- package/chunks/chunk-PU7NOIJB.js +0 -16
- package/chunks/chunk-PVRYR5KX.js +0 -21
- package/chunks/chunk-PWNX5TWJ.js +0 -60
- package/chunks/chunk-QCOO4PV5.js +0 -54
- package/chunks/chunk-QHAB6XYD.js +0 -30
- package/chunks/chunk-QHLQVR3E.js +0 -54
- package/chunks/chunk-QKE2IYT5.js +0 -42
- package/chunks/chunk-QVPS2BCJ.js +0 -29
- package/chunks/chunk-R4DZKWSR.js +0 -42
- package/chunks/chunk-RASMASS4.js +0 -111
- package/chunks/chunk-RLAZR3NL.js +0 -8
- package/chunks/chunk-RLJOYG64.js +0 -33
- package/chunks/chunk-S2NMAH7K.js +0 -19
- package/chunks/chunk-S32K7POB.js +0 -29
- package/chunks/chunk-SKBOSWM2.js +0 -35
- package/chunks/chunk-SKMCIFS3.js +0 -27
- package/chunks/chunk-SNJJII7A.js +0 -65
- package/chunks/chunk-STW5RKR7.js +0 -175
- package/chunks/chunk-TIER4TF4.js +0 -26
- package/chunks/chunk-UNXRB2AV.js +0 -16
- package/chunks/chunk-UXEKCYL7.js +0 -28
- package/chunks/chunk-VFJYLXCI.js +0 -23
- package/chunks/chunk-VJJIYJMY.js +0 -13
- package/chunks/chunk-VLC7LRED.js +0 -191
- package/chunks/chunk-VTPRO4NJ.js +0 -10
- package/chunks/chunk-VYW4IADX.js +0 -35
- package/chunks/chunk-VZDUZTW6.js +0 -113
- package/chunks/chunk-WAMSK4A3.js +0 -67
- package/chunks/chunk-WH6BPDAC.js +0 -17
- package/chunks/chunk-WOAYU6LB.js +0 -13
- package/chunks/chunk-WOYF3N4A.js +0 -31
- package/chunks/chunk-WSC3WODJ.js +0 -157
- package/chunks/chunk-WSFCRVEQ.js +0 -9
- package/chunks/chunk-X53BGT33.js +0 -42
- package/chunks/chunk-XB3EGDBI.js +0 -127
- package/chunks/chunk-XBA26Z7E.js +0 -42
- package/chunks/chunk-XPGAVZGK.js +0 -98
- package/chunks/chunk-XR2LNUGW.js +0 -42
- package/chunks/chunk-Y5GGIBPI.js +0 -31
- package/chunks/chunk-YKPA3MQL.js +0 -31
- package/chunks/chunk-YP64J65L.js +0 -17
- package/chunks/chunk-YPTFPS76.js +0 -91
- package/chunks/chunk-YQWZ3EP2.js +0 -60
- package/chunks/chunk-YS6WMSWC.js +0 -15
- package/chunks/chunk-YUP434IY.js +0 -43
- package/chunks/chunk-Z7ZDDBV5.js +0 -18
- package/chunks/chunk-ZBBU2P4D.js +0 -28
- package/chunks/chunk-ZLBSI4TR.js +0 -21
- package/chunks/chunk-ZMT6S52U.js +0 -40
- package/chunks/chunk-ZNA7SWFK.js +0 -29
- package/chunks/chunk-ZYTGT7AE.js +0 -20
- package/components/index.d.ts +0 -4
- package/components/index.js +0 -13
- package/node/@aws-s3/index.d.ts +0 -2
- package/node/@aws-s3/index.js +0 -23
- package/node/@aws-s3/storage/directory/index.d.ts +0 -5
- package/node/@aws-s3/storage/directory/index.js +0 -22
- package/node/@aws-s3/storage/file/index.d.ts +0 -8
- package/node/@aws-s3/storage/file/index.js +0 -34
- package/node/@aws-s3/storage/index.d.ts +0 -3
- package/node/@aws-s3/storage/index.js +0 -25
- package/node/@design-edito/thumbnails/index.js +0 -1
- package/node/@express/index.d.ts +0 -2
- package/node/@express/index.js +0 -10
- package/node/@google-cloud/index.d.ts +0 -2
- package/node/@google-cloud/index.js +0 -30
- package/node/@google-cloud/storage/bucket/index.d.ts +0 -5
- package/node/@google-cloud/storage/bucket/index.js +0 -22
- package/node/@google-cloud/storage/directory/index.d.ts +0 -5
- package/node/@google-cloud/storage/directory/index.js +0 -22
- package/node/@google-cloud/storage/file/index.d.ts +0 -13
- package/node/@google-cloud/storage/file/index.js +0 -54
- package/node/@google-cloud/storage/index.d.ts +0 -4
- package/node/@google-cloud/storage/index.js +0 -35
- package/node/cloud-storage/index.d.ts +0 -3
- package/node/cloud-storage/index.js +0 -69
- package/node/cloud-storage/operations/index.d.ts +0 -12
- package/node/cloud-storage/operations/index.js +0 -95
- package/node/encryption/@aes-256-gcm/index.d.ts +0 -3
- package/node/encryption/@aes-256-gcm/index.js +0 -14
- package/node/encryption/index.d.ts +0 -3
- package/node/encryption/index.js +0 -16
- package/node/files/index.d.ts +0 -7
- package/node/files/index.js +0 -15
- package/node/ftps/directory/index.d.ts +0 -5
- package/node/ftps/directory/index.js +0 -22
- package/node/ftps/file/index.d.ts +0 -8
- package/node/ftps/file/index.js +0 -34
- package/node/ftps/index.d.ts +0 -3
- package/node/ftps/index.js +0 -25
- package/node/images/index.d.ts +0 -6
- package/node/images/index.js +0 -59
- package/node/index.d.ts +0 -12
- package/node/index.js +0 -172
- package/node/process/index.d.ts +0 -6
- package/node/process/index.js +0 -16
- package/node/sftp/directory/index.d.ts +0 -5
- package/node/sftp/directory/index.js +0 -22
- package/node/sftp/file/index.d.ts +0 -8
- package/node/sftp/file/index.js +0 -34
- package/node/sftp/index.d.ts +0 -3
- package/node/sftp/index.js +0 -25
- package/shared/errors/index.d.ts +0 -138
- /package/{node/@design-edito/thumbnails/index.d.ts → agnostic/arrays/dedupe/index.test.d.ts} +0 -0
- /package/{shared/index.d.ts → agnostic/misc/data-size/types.js} +0 -0
|
@@ -1,2 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if a value is of type "object", including `null`.
|
|
3
|
+
*
|
|
4
|
+
* @param {unknown} unk - The value to check.
|
|
5
|
+
* @returns {unk is object | null} `true` if the value is an object or `null`, otherwise `false`.
|
|
6
|
+
*/
|
|
1
7
|
export declare function isObject(unk: unknown): unk is object | null;
|
|
8
|
+
/**
|
|
9
|
+
* Checks if a value is a non-null object.
|
|
10
|
+
*
|
|
11
|
+
* @param {unknown} unk - The value to check.
|
|
12
|
+
* @returns {unk is object} `true` if the value is a non-null object, otherwise `false`.
|
|
13
|
+
*/
|
|
2
14
|
export declare function isNonNullObject(unk: unknown): unk is object;
|
|
@@ -1 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if a value is a plain object with string keys.
|
|
3
|
+
*
|
|
4
|
+
* @param {unknown} input - The value to check.
|
|
5
|
+
* @returns {input is Record<string, unknown>} `true` if the value is an object with string keys, otherwise `false`.
|
|
6
|
+
*/
|
|
1
7
|
export declare function isRecord(input: unknown): input is Record<string, unknown>;
|
|
@@ -1,11 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A key of the input object or a string.
|
|
3
|
+
*/
|
|
1
4
|
export type FormatKey<Input extends {} = any> = keyof Input | string;
|
|
5
|
+
/**
|
|
6
|
+
* The value type of a given key in the input object, or `undefined` if the key does not exist.
|
|
7
|
+
*/
|
|
2
8
|
export type InputValue<Input extends {}, Key extends FormatKey<Input>> = Input extends Record<Key, infer V> ? V : undefined;
|
|
9
|
+
/**
|
|
10
|
+
* A function that transforms a value of type I into type O, can return a Promise.
|
|
11
|
+
*/
|
|
3
12
|
export type FormatterFunc<I, O> = (val: I) => O | Promise<O>;
|
|
13
|
+
/**
|
|
14
|
+
* An object mapping keys to formatter functions.
|
|
15
|
+
*/
|
|
4
16
|
export type Format<Input extends {} = any> = {
|
|
5
17
|
[Key in FormatKey<Input>]: FormatterFunc<InputValue<Input, Key>, any>;
|
|
6
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* Utility type that extracts the resolved type of a Promise, or returns the type itself if not a Promise.
|
|
21
|
+
*/
|
|
7
22
|
export type UnwrapPromise<PromiseOrNot> = PromiseOrNot extends Promise<infer Resolved> ? Resolved : PromiseOrNot;
|
|
23
|
+
/**
|
|
24
|
+
* The object type resulting from applying all formatters and unwrapping any Promises.
|
|
25
|
+
*/
|
|
8
26
|
export type Formatted<F extends Format<{}>> = {
|
|
9
27
|
[Key in keyof F]: UnwrapPromise<ReturnType<F[Key]>>;
|
|
10
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Applies a set of formatter functions to the corresponding properties of an input object.
|
|
31
|
+
*
|
|
32
|
+
* @template I - Input object type.
|
|
33
|
+
* @template F - Format object type mapping keys to formatter functions.
|
|
34
|
+
* @param {I} input - The object to format.
|
|
35
|
+
* @param {F} format - An object of formatter functions for each key.
|
|
36
|
+
* @returns {Promise<Formatted<F>>} A Promise resolving to the formatted object with all promises unwrapped.
|
|
37
|
+
*/
|
|
11
38
|
export declare function recordFormat<I extends {}, F extends Format<I>>(input: I, format: F): Promise<Formatted<F>>;
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
2
|
+
|
|
3
|
+
// src/agnostic/objects/record-format/index.ts
|
|
4
|
+
async function recordFormat(input, format) {
|
|
5
|
+
const result = {};
|
|
6
|
+
for (const key in format) {
|
|
7
|
+
const formatter = format[key];
|
|
8
|
+
if (typeof formatter === "function") {
|
|
9
|
+
result[key] = await formatter(input[key]);
|
|
10
|
+
} else {
|
|
11
|
+
result[key] = formatter;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
5
16
|
export {
|
|
6
17
|
recordFormat
|
|
7
18
|
};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maps the values of a record using a provided mapper function, returning a new record with the same keys.
|
|
3
|
+
*
|
|
4
|
+
* @template Input - The type of the input record.
|
|
5
|
+
* @template Mapped - The type of the mapped values.
|
|
6
|
+
* @param {Input} record - The record whose values will be mapped.
|
|
7
|
+
* @param {(value: Input[keyof Input], key: keyof Input) => Mapped} mapper - Function to transform each value.
|
|
8
|
+
* @returns {{ [K in keyof Input]: Mapped }} A new record with the same keys and mapped values.
|
|
9
|
+
*/
|
|
1
10
|
export declare function recordMap<Input extends Record<string, any>, Mapped>(record: Input, mapper: (value: Input[keyof Input], key: keyof Input) => Mapped): {
|
|
2
11
|
[K in keyof Input]: Mapped;
|
|
3
12
|
};
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Checks if an object contains all the key-value pairs from a partial object.
|
|
3
|
+
*
|
|
4
|
+
* Performs a shallow equality check for each property in `partial`.
|
|
5
|
+
*
|
|
6
|
+
* @template T - The type of the full object.
|
|
7
|
+
* @param {T} obj - The object to validate.
|
|
8
|
+
* @param {Partial<T>} partial - The partial object with key-value pairs to check.
|
|
9
|
+
* @returns {boolean} `true` if all entries in `partial` match those in `obj`, otherwise `false`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function fromPartial<T extends object>(obj: T, partial: Partial<T>): boolean;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
2
|
+
|
|
3
|
+
// src/agnostic/objects/validation/index.ts
|
|
4
|
+
function fromPartial(obj, partial) {
|
|
5
|
+
return Object.entries(partial).every(([key, val]) => {
|
|
6
|
+
return obj[key] === val;
|
|
7
|
+
});
|
|
8
|
+
}
|
|
5
9
|
export {
|
|
6
|
-
|
|
10
|
+
fromPartial
|
|
7
11
|
};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
type BasicFunc = (...args: any[]) => any;
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Creates a memoized version of a function, caching the result for repeated calls with the same arguments.
|
|
4
|
+
*
|
|
5
|
+
* Only performs shallow equality checks on arguments (strict equality `===`).
|
|
6
|
+
*
|
|
7
|
+
* @template T - The type of the function to memoize.
|
|
8
|
+
* @param {T} toMemoizeFunc - The function to memoize.
|
|
9
|
+
* @returns {T} A memoized version of the input function.
|
|
10
|
+
*/
|
|
11
|
+
export declare function memoize<T extends BasicFunc>(toMemoizeFunc: T): T;
|
|
3
12
|
export {};
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
2
|
+
|
|
3
|
+
// src/agnostic/optim/memoize/index.ts
|
|
4
|
+
function memoize(toMemoizeFunc) {
|
|
5
|
+
let cachedArgs;
|
|
6
|
+
let cachedResult;
|
|
7
|
+
const memoizedFunc = (...args) => {
|
|
8
|
+
const argsMatch = cachedArgs !== void 0 && args.length === cachedArgs.length && args.every((arg, i) => arg === cachedArgs[i]);
|
|
9
|
+
if (argsMatch && cachedResult !== void 0) return cachedResult.value;
|
|
10
|
+
const result = toMemoizeFunc(...args);
|
|
11
|
+
cachedArgs = args;
|
|
12
|
+
cachedResult = { value: result };
|
|
13
|
+
return result;
|
|
14
|
+
};
|
|
15
|
+
return memoizedFunc;
|
|
16
|
+
}
|
|
5
17
|
export {
|
|
6
18
|
memoize
|
|
7
19
|
};
|
|
@@ -1,8 +1,113 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
2
|
+
|
|
3
|
+
// src/agnostic/optim/throttle-debounce/index.ts
|
|
4
|
+
function throttle(toThrottleFunc, delayMs) {
|
|
5
|
+
let currentDelayMs = delayMs;
|
|
6
|
+
let lastArgs = [];
|
|
7
|
+
let lastExecutedOn = 0;
|
|
8
|
+
let lastReturnValue = void 0;
|
|
9
|
+
let nextExecutionTimeout = null;
|
|
10
|
+
function scheduleNextCall() {
|
|
11
|
+
if (nextExecutionTimeout !== null) {
|
|
12
|
+
clearTimeout(nextExecutionTimeout);
|
|
13
|
+
nextExecutionTimeout = null;
|
|
14
|
+
}
|
|
15
|
+
const now = Date.now();
|
|
16
|
+
const nextExecutionTimestamp = lastExecutedOn + currentDelayMs;
|
|
17
|
+
const msTillNextExecution = nextExecutionTimestamp - now;
|
|
18
|
+
nextExecutionTimeout = setTimeout(() => {
|
|
19
|
+
nextExecutionTimeout = null;
|
|
20
|
+
const returnValue = toThrottleFunc(...lastArgs);
|
|
21
|
+
lastReturnValue = returnValue;
|
|
22
|
+
lastExecutedOn = now;
|
|
23
|
+
}, msTillNextExecution) ?? null;
|
|
24
|
+
}
|
|
25
|
+
function throttled(...args) {
|
|
26
|
+
const now = Date.now();
|
|
27
|
+
lastArgs = args;
|
|
28
|
+
if (now - lastExecutedOn >= delayMs) {
|
|
29
|
+
const returnValue = toThrottleFunc(...lastArgs);
|
|
30
|
+
lastReturnValue = returnValue;
|
|
31
|
+
lastExecutedOn = now;
|
|
32
|
+
return {
|
|
33
|
+
returnValue: lastReturnValue,
|
|
34
|
+
lastExecutedOn,
|
|
35
|
+
delayMs: currentDelayMs,
|
|
36
|
+
isCached: false
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
if (nextExecutionTimeout === null) scheduleNextCall();
|
|
40
|
+
return {
|
|
41
|
+
returnValue: lastReturnValue,
|
|
42
|
+
lastExecutedOn,
|
|
43
|
+
delayMs: currentDelayMs,
|
|
44
|
+
isCached: true
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function setDelay(delayMs2) {
|
|
48
|
+
currentDelayMs = delayMs2;
|
|
49
|
+
if (nextExecutionTimeout !== null) scheduleNextCall();
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
throttled,
|
|
53
|
+
setDelay
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function debounce(toDebounceFunc, delayMs) {
|
|
57
|
+
let currentDelayMs = delayMs;
|
|
58
|
+
let lastArgs = [];
|
|
59
|
+
let lastCalledOn = 0;
|
|
60
|
+
let lastExecutedOn = 0;
|
|
61
|
+
let lastReturnValue = void 0;
|
|
62
|
+
let nextExecutionTimeout = null;
|
|
63
|
+
function scheduleNextCall() {
|
|
64
|
+
if (typeof nextExecutionTimeout === "number") {
|
|
65
|
+
clearTimeout(nextExecutionTimeout);
|
|
66
|
+
nextExecutionTimeout = null;
|
|
67
|
+
}
|
|
68
|
+
const now = Date.now();
|
|
69
|
+
const nextExecutionTimestamp = lastCalledOn + currentDelayMs;
|
|
70
|
+
const msTillNextExecution = nextExecutionTimestamp - now;
|
|
71
|
+
nextExecutionTimeout = setTimeout(() => {
|
|
72
|
+
nextExecutionTimeout = null;
|
|
73
|
+
const returnValue = toDebounceFunc(...lastArgs);
|
|
74
|
+
lastReturnValue = returnValue;
|
|
75
|
+
lastExecutedOn = now;
|
|
76
|
+
}, msTillNextExecution) ?? null;
|
|
77
|
+
}
|
|
78
|
+
function debounced(...args) {
|
|
79
|
+
const now = Date.now();
|
|
80
|
+
lastArgs = args;
|
|
81
|
+
if (now - lastCalledOn >= currentDelayMs) {
|
|
82
|
+
lastCalledOn = now;
|
|
83
|
+
const returnValue = toDebounceFunc(...lastArgs);
|
|
84
|
+
lastReturnValue = returnValue;
|
|
85
|
+
lastExecutedOn = now;
|
|
86
|
+
return {
|
|
87
|
+
returnValue: lastReturnValue,
|
|
88
|
+
lastExecutedOn,
|
|
89
|
+
delayMs: currentDelayMs,
|
|
90
|
+
isCached: false
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
lastCalledOn = now;
|
|
94
|
+
scheduleNextCall();
|
|
95
|
+
return {
|
|
96
|
+
returnValue: lastReturnValue,
|
|
97
|
+
lastExecutedOn,
|
|
98
|
+
delayMs: currentDelayMs,
|
|
99
|
+
isCached: true
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function setDelay(delayMs2) {
|
|
103
|
+
currentDelayMs = delayMs2;
|
|
104
|
+
if (nextExecutionTimeout !== null) scheduleNextCall();
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
debounced,
|
|
108
|
+
setDelay
|
|
109
|
+
};
|
|
110
|
+
}
|
|
6
111
|
export {
|
|
7
112
|
debounce,
|
|
8
113
|
throttle
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { setTimeout } from 'node:timers';
|
|
2
|
-
export type
|
|
2
|
+
export type NodeTimeout = ReturnType<typeof setTimeout>;
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates a random number within a range.
|
|
3
|
+
*
|
|
4
|
+
* @param {number} [bound1=1] - The lower bound if `bound2` is provided, otherwise the upper bound (min is 0).
|
|
5
|
+
* @param {number} [bound2] - Optional upper bound. If omitted, the range is `[0, bound1)`.
|
|
6
|
+
* @returns {number | undefined} A random floating-point number in `[min, max)`, or `undefined` if bounds are invalid.
|
|
7
|
+
*/
|
|
1
8
|
export declare function random(bound1?: number): number | undefined;
|
|
2
9
|
export declare function random(bound1?: number, bound2?: number | undefined): number | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Generates a random integer within a range.
|
|
12
|
+
*
|
|
13
|
+
* @param {number} [bound1=1] - The lower bound if `bound2` is provided, otherwise the upper bound (min is 0).
|
|
14
|
+
* @param {number} [bound2] - Optional upper bound. If omitted, the range is `[0, bound1)`.
|
|
15
|
+
* @returns {number | undefined} A random integer in `[min, max)`, or `undefined` if bounds are invalid.
|
|
16
|
+
*/
|
|
3
17
|
export declare function randomInt(...args: Parameters<typeof random>): number | undefined;
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates a random hexadecimal string of given length.
|
|
3
|
+
*
|
|
4
|
+
* @param {number} [length=4] - Number of hex characters.
|
|
5
|
+
* @returns {string} Random hexadecimal string.
|
|
6
|
+
*/
|
|
1
7
|
export declare function randomHash(length?: number): string;
|
|
8
|
+
/**
|
|
9
|
+
* Generates a random hexadecimal string following a pattern.
|
|
10
|
+
*
|
|
11
|
+
* @param {number[]} pattern - Array of segment lengths.
|
|
12
|
+
* @param {string} [joiner='-'] - String used to join the segments.
|
|
13
|
+
* @returns {string} Random hexadecimal string with segments joined by `joiner`.
|
|
14
|
+
*/
|
|
2
15
|
export declare function randomHashPattern(pattern: number[], joiner?: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Generates a random UUID-like string (version 4 style, not RFC-compliant).
|
|
18
|
+
*
|
|
19
|
+
* @returns {string} Random UUID-like string.
|
|
20
|
+
*/
|
|
3
21
|
export declare function randomUUID(): string;
|
|
@@ -1,24 +1,95 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Merges multiple flag strings into a single string containing each flag only once.
|
|
3
|
+
*
|
|
4
|
+
* @param {...string[]} flagStrs - Flag strings to merge.
|
|
5
|
+
* @returns {string} Merged flags string.
|
|
6
|
+
*/
|
|
7
|
+
export declare function mergeFlags(...flagStrs: string[]): string;
|
|
8
|
+
/**
|
|
9
|
+
* Returns a new RegExp with combined flags.
|
|
10
|
+
*
|
|
11
|
+
* @param {RegExp} regexp - The original regular expression.
|
|
12
|
+
* @param {string} flags - Flags to add.
|
|
13
|
+
* @returns {RegExp} New regular expression with combined flags.
|
|
14
|
+
*/
|
|
15
|
+
export declare function setFlags(regexp: RegExp, flags: string): RegExp;
|
|
16
|
+
/**
|
|
17
|
+
* Anchors a RegExp to the start of a string.
|
|
18
|
+
*
|
|
19
|
+
* @param {RegExp} regexp - The original regular expression.
|
|
20
|
+
* @param {string} [flags='g'] - Optional flags to apply.
|
|
21
|
+
* @returns {RegExp} Anchored RegExp.
|
|
22
|
+
*/
|
|
23
|
+
export declare function fromStart(regexp: RegExp, flags?: string): RegExp;
|
|
24
|
+
/**
|
|
25
|
+
* Anchors a RegExp to the end of a string.
|
|
26
|
+
*
|
|
27
|
+
* @param {RegExp} regexp - The original regular expression.
|
|
28
|
+
* @param {string} [flags='g'] - Optional flags to apply.
|
|
29
|
+
* @returns {RegExp} Anchored RegExp.
|
|
30
|
+
*/
|
|
31
|
+
export declare function toEnd(regexp: RegExp, flags?: string): RegExp;
|
|
32
|
+
/**
|
|
33
|
+
* Anchors a RegExp to match the entire string.
|
|
34
|
+
*
|
|
35
|
+
* @param {RegExp} regexp - The original regular expression.
|
|
36
|
+
* @param {string} [flags='g'] - Optional flags to apply.
|
|
37
|
+
* @returns {RegExp} Anchored RegExp.
|
|
38
|
+
*/
|
|
39
|
+
export declare function fromStartToEnd(regexp: RegExp, flags?: string): RegExp;
|
|
40
|
+
/**
|
|
41
|
+
* Checks if a string starts with a pattern.
|
|
42
|
+
*
|
|
43
|
+
* @param string - The string to test.
|
|
44
|
+
* @param regexp - The regular expression pattern.
|
|
45
|
+
* @param [returnMatches=true] - If true, returns matches; otherwise, returns boolean.
|
|
46
|
+
* @param [flags='g'] - Optional flags.
|
|
47
|
+
* @returns {boolean | RegExpMatchArray | null} Boolean or match array based on `returnMatches`.
|
|
48
|
+
*/
|
|
49
|
+
export declare function stringStartsWith(string: string, regexp: RegExp): boolean;
|
|
50
|
+
export declare function stringStartsWith(string: string, regexp: RegExp, returnMatches: true): RegExpMatchArray | null;
|
|
51
|
+
export declare function stringStartsWith(string: string, regexp: RegExp, returnMatches: false): boolean;
|
|
52
|
+
export declare function stringStartsWith(string: string, regexp: RegExp, returnMatches: false, flags: string): boolean;
|
|
53
|
+
export declare function stringStartsWith(string: string, regexp: RegExp, returnMatches: true, flags: string): RegExpMatchArray | null;
|
|
54
|
+
/**
|
|
55
|
+
* Checks if a string ends with a pattern.
|
|
56
|
+
*
|
|
57
|
+
* @param string - The string to test.
|
|
58
|
+
* @param regexp - The regular expression pattern.
|
|
59
|
+
* @param [returnMatches=true] - If true, returns matches; otherwise, returns boolean.
|
|
60
|
+
* @param [flags='g'] - Optional flags.
|
|
61
|
+
* @returns {boolean | RegExpMatchArray | null} Boolean or match array based on `returnMatches`.
|
|
62
|
+
*/
|
|
63
|
+
export declare function stringEndsWith(string: string, regexp: RegExp): boolean;
|
|
64
|
+
export declare function stringEndsWith(string: string, regexp: RegExp, returnMatches: true): RegExpMatchArray | null;
|
|
65
|
+
export declare function stringEndsWith(string: string, regexp: RegExp, returnMatches: false): boolean;
|
|
66
|
+
export declare function stringEndsWith(string: string, regexp: RegExp, returnMatches: false, flags: string): boolean;
|
|
67
|
+
export declare function stringEndsWith(string: string, regexp: RegExp, returnMatches: true, flags: string): RegExpMatchArray | null;
|
|
68
|
+
/**
|
|
69
|
+
* Checks if a string fully matches a pattern.
|
|
70
|
+
*
|
|
71
|
+
* @param string - The string to test.
|
|
72
|
+
* @param regexp - The regular expression pattern.
|
|
73
|
+
* @param [returnMatches=false] - If true, returns matches; otherwise, returns boolean.
|
|
74
|
+
* @param [flags='g'] - Optional flags.
|
|
75
|
+
* @returns {boolean | RegExpMatchArray | null} Boolean or match array based on `returnMatches`.
|
|
76
|
+
*/
|
|
77
|
+
export declare function stringIs(string: string, regexp: RegExp): boolean;
|
|
78
|
+
export declare function stringIs(string: string, regexp: RegExp, returnMatches: true): RegExpMatchArray | null;
|
|
79
|
+
export declare function stringIs(string: string, regexp: RegExp, returnMatches: false): boolean;
|
|
80
|
+
export declare function stringIs(string: string, regexp: RegExp, returnMatches: false, flags: string): boolean;
|
|
81
|
+
export declare function stringIs(string: string, regexp: RegExp, returnMatches: true, flags: string): RegExpMatchArray | null;
|
|
82
|
+
/**
|
|
83
|
+
* Creates a RegExp that matches any of the provided strings.
|
|
84
|
+
*
|
|
85
|
+
* @param {string[]} strings - Strings to match.
|
|
86
|
+
* @returns {RegExp} Regular expression matching all strings.
|
|
87
|
+
*/
|
|
88
|
+
export declare function fromStrings(strings: string[]): RegExp;
|
|
89
|
+
/**
|
|
90
|
+
* Escapes special RegExp characters in a string.
|
|
91
|
+
*
|
|
92
|
+
* @param {string} string - String to escape.
|
|
93
|
+
* @returns {string} Escaped string.
|
|
94
|
+
*/
|
|
95
|
+
export declare function escape(string: string): string;
|
|
@@ -1,7 +1,88 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import "../../chunks/chunk-XCBH6NLF.js";
|
|
2
|
+
|
|
3
|
+
// src/agnostic/regexps/index.ts
|
|
4
|
+
function mergeFlags(...flagStrs) {
|
|
5
|
+
const flagsSet = /* @__PURE__ */ new Set();
|
|
6
|
+
flagStrs.forEach(
|
|
7
|
+
(flagStr) => flagStr.split("").forEach((char) => flagsSet.add(char))
|
|
8
|
+
);
|
|
9
|
+
return Array.from(flagsSet.values()).join("");
|
|
10
|
+
}
|
|
11
|
+
function setFlags(regexp, flags) {
|
|
12
|
+
const mergedFlags = mergeFlags(regexp.flags, flags);
|
|
13
|
+
return new RegExp(`${regexp.source}`, mergedFlags);
|
|
14
|
+
}
|
|
15
|
+
function fromStart(regexp, flags = "g") {
|
|
16
|
+
const mergedFlags = mergeFlags(regexp.flags, flags);
|
|
17
|
+
return new RegExp(`^(${regexp.source})`, mergedFlags);
|
|
18
|
+
}
|
|
19
|
+
function toEnd(regexp, flags = "g") {
|
|
20
|
+
const mergedFlags = mergeFlags(regexp.flags, flags);
|
|
21
|
+
return new RegExp(`(${regexp.source})$`, mergedFlags);
|
|
22
|
+
}
|
|
23
|
+
function fromStartToEnd(regexp, flags = "g") {
|
|
24
|
+
const mergedFlags = mergeFlags(regexp.flags, flags);
|
|
25
|
+
return fromStart(toEnd(regexp, mergedFlags), mergedFlags);
|
|
26
|
+
}
|
|
27
|
+
function stringStartsWith(string, regexp, returnMatches = true, flags = "g") {
|
|
28
|
+
const actualRegexp = fromStart(regexp, flags);
|
|
29
|
+
return returnMatches ? string.match(actualRegexp) : actualRegexp.test(string);
|
|
30
|
+
}
|
|
31
|
+
function stringEndsWith(string, regexp, returnMatches = true, flags = "g") {
|
|
32
|
+
const actualRegexp = toEnd(regexp, flags);
|
|
33
|
+
return returnMatches ? string.match(actualRegexp) : actualRegexp.test(string);
|
|
34
|
+
}
|
|
35
|
+
function stringIs(string, regexp, returnMatches = false, flags = "g") {
|
|
36
|
+
const actualRegexp = fromStartToEnd(regexp, flags);
|
|
37
|
+
return returnMatches ? string.match(actualRegexp) : actualRegexp.test(string);
|
|
38
|
+
}
|
|
39
|
+
function fromStrings(strings) {
|
|
40
|
+
const rootsMap = stringsToRootsMap(strings);
|
|
41
|
+
const source = sourceFromRootsMap(rootsMap, false);
|
|
42
|
+
const regexp = new RegExp(source);
|
|
43
|
+
return regexp;
|
|
44
|
+
}
|
|
45
|
+
function escape(string) {
|
|
46
|
+
return string.replace(/\s/igm, "\\s").replace(/\n/igm, "\\n").replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
47
|
+
}
|
|
48
|
+
function stringsToRootsMap(strings, rootsMap = /* @__PURE__ */ new Map()) {
|
|
49
|
+
const lengthSorted = strings.sort((strA, strB) => strA.length - strB.length);
|
|
50
|
+
lengthSorted.forEach((string) => {
|
|
51
|
+
const [firstChar, ...lastChars] = string.split("");
|
|
52
|
+
const isWordEnd = lastChars.length === 0;
|
|
53
|
+
if (firstChar === void 0) return;
|
|
54
|
+
const roots = Array.from(rootsMap.keys());
|
|
55
|
+
const foundRoot = roots.find((root) => new RegExp(`^(${escape(root)})`).test(string));
|
|
56
|
+
const subRootsMap = foundRoot !== void 0 ? rootsMap.get(foundRoot)?.subRootsMap : void 0;
|
|
57
|
+
if (foundRoot === void 0 || subRootsMap === void 0) {
|
|
58
|
+
const subRootsMap2 = /* @__PURE__ */ new Map();
|
|
59
|
+
stringsToRootsMap([lastChars.join("")], subRootsMap2);
|
|
60
|
+
return rootsMap.set(firstChar, { subRootsMap: subRootsMap2, isWordEnd });
|
|
61
|
+
}
|
|
62
|
+
stringsToRootsMap([lastChars.join("")], subRootsMap);
|
|
63
|
+
});
|
|
64
|
+
return rootsMap;
|
|
65
|
+
}
|
|
66
|
+
function sourceFromRootsMap(rootsMap, isOptional) {
|
|
67
|
+
const rootsMapEntries = Array.from(rootsMap.entries());
|
|
68
|
+
if (rootsMapEntries.length === 0) return "";
|
|
69
|
+
const regexpBody = rootsMapEntries.map(([root, rootData]) => {
|
|
70
|
+
return `${escape(root)}${sourceFromRootsMap(
|
|
71
|
+
rootData.subRootsMap,
|
|
72
|
+
rootData.isWordEnd
|
|
73
|
+
)}`;
|
|
74
|
+
}).join("|");
|
|
75
|
+
return isOptional ? `(${regexpBody})?` : `(${regexpBody})`;
|
|
76
|
+
}
|
|
5
77
|
export {
|
|
6
|
-
|
|
78
|
+
escape,
|
|
79
|
+
fromStart,
|
|
80
|
+
fromStartToEnd,
|
|
81
|
+
fromStrings,
|
|
82
|
+
mergeFlags,
|
|
83
|
+
setFlags,
|
|
84
|
+
stringEndsWith,
|
|
85
|
+
stringIs,
|
|
86
|
+
stringStartsWith,
|
|
87
|
+
toEnd
|
|
7
88
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sanitizes a single file name by removing invalid characters and normalizing Unicode.
|
|
3
|
+
*
|
|
4
|
+
* - Removes characters forbidden in Windows and Unix file systems.
|
|
5
|
+
* - Replaces multiple spaces with a single space.
|
|
6
|
+
* - Replaces multiple dots with a single dot and removes leading/trailing dots.
|
|
7
|
+
* - Normalizes Unicode to NFKC form to prevent homoglyph attacks.
|
|
8
|
+
*
|
|
9
|
+
* @param {string} input - The file name to sanitize.
|
|
10
|
+
* @param {number} [maxLength=255] - Maximum allowed length of the sanitized file name.
|
|
11
|
+
* @returns {string | null} Sanitized file name, or null if empty or exceeds maxLength.
|
|
12
|
+
*/
|
|
13
|
+
export declare function sanitizeFileName(input: string, maxLength?: number): string | null;
|