@design-edito/tools 0.2.41 → 1.0.1
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/scrapers/@meteociel/index.d.ts +36 -0
- package/agnostic/scrapers/@meteociel/index.js +194 -0
- package/agnostic/scrapers/@meteociel/locations/index.d.ts +11 -0
- package/agnostic/scrapers/@meteociel/locations/index.js +6 -0
- package/agnostic/scrapers/@meteociel/types.d.ts +1 -0
- package/agnostic/weather/types.d.ts +181 -0
- package/chunks/chunk-JQLUR5LO.js +12 -0
- package/components/Comp/index.d.ts +1 -1
- package/components/Comp/index.js +0 -10
- package/package.json +2 -1
- package/agnostic/arrays/dedupe/index.d.ts +0 -7
- package/agnostic/arrays/dedupe/index.js +0 -10
- package/agnostic/arrays/find-duplicates/index.d.ts +0 -15
- package/agnostic/arrays/find-duplicates/index.js +0 -26
- package/agnostic/arrays/find-duplicates/index.test.d.ts +0 -1
- package/agnostic/arrays/is-array-of/index.d.ts +0 -16
- package/agnostic/arrays/is-array-of/index.js +0 -27
- package/agnostic/arrays/is-array-of/index.test.d.ts +0 -1
- package/agnostic/arrays/make/index.d.ts +0 -11
- package/agnostic/arrays/make/index.js +0 -9
- package/agnostic/arrays/make/index.test.d.ts +0 -1
- package/agnostic/arrays/random-pick/index.d.ts +0 -22
- package/agnostic/arrays/random-pick/index.js +0 -9
- package/agnostic/arrays/random-pick/index.test.d.ts +0 -1
- package/agnostic/arrays/shuffle/index.d.ts +0 -9
- package/agnostic/arrays/shuffle/index.js +0 -14
- package/agnostic/arrays/shuffle/index.test.d.ts +0 -1
- package/agnostic/booleans/is-falsy/index.d.ts +0 -24
- package/agnostic/booleans/is-falsy/index.js +0 -12
- package/agnostic/booleans/is-falsy/index.test.d.ts +0 -1
- package/agnostic/colors/channels/index.d.ts +0 -39
- package/agnostic/colors/channels/index.js +0 -19
- package/agnostic/colors/channels/index.test.d.ts +0 -1
- package/agnostic/colors/contrast/index.d.ts +0 -10
- package/agnostic/colors/contrast/index.js +0 -33
- package/agnostic/colors/contrast/index.test.d.ts +0 -1
- package/agnostic/colors/convert/index.d.ts +0 -164
- package/agnostic/colors/convert/index.js +0 -46
- package/agnostic/colors/convert/index.test.d.ts +0 -1
- package/agnostic/colors/distance/index.d.ts +0 -10
- package/agnostic/colors/distance/index.js +0 -56
- package/agnostic/colors/distance/index.test.d.ts +0 -1
- package/agnostic/colors/grayscale/index.d.ts +0 -10
- package/agnostic/colors/grayscale/index.js +0 -162
- package/agnostic/colors/grayscale/index.test.d.ts +0 -1
- package/agnostic/colors/invert/index.d.ts +0 -10
- package/agnostic/colors/invert/index.js +0 -51
- package/agnostic/colors/invert/index.test.d.ts +0 -1
- package/agnostic/colors/lerp/index.d.ts +0 -13
- package/agnostic/colors/lerp/index.js +0 -103
- package/agnostic/colors/lerp/index.test.d.ts +0 -1
- package/agnostic/colors/luminance/index.d.ts +0 -9
- package/agnostic/colors/luminance/index.js +0 -13
- package/agnostic/colors/luminance/index.test.d.ts +0 -1
- package/agnostic/colors/palette/index.d.ts +0 -11
- package/agnostic/colors/palette/index.js +0 -110
- package/agnostic/colors/palette/index.test.d.ts +0 -1
- package/agnostic/colors/rotate/index.d.ts +0 -11
- package/agnostic/colors/rotate/index.js +0 -14
- package/agnostic/colors/rotate/index.test.d.ts +0 -1
- package/agnostic/colors/tidy/index.d.ts +0 -10
- package/agnostic/colors/tidy/index.js +0 -12
- package/agnostic/colors/tidy/index.test.d.ts +0 -1
- package/agnostic/colors/typechecks/index.d.ts +0 -71
- package/agnostic/colors/typechecks/index.js +0 -27
- package/agnostic/colors/typechecks/index.test.d.ts +0 -1
- package/agnostic/colors/types.d.ts +0 -188
- package/agnostic/colors/types.js +0 -7
- package/agnostic/css/bem/index.d.ts +0 -30
- package/agnostic/css/bem/index.js +0 -159
- package/agnostic/css/generate-nice-color/index.d.ts +0 -8
- package/agnostic/css/generate-nice-color/index.js +0 -74
- package/agnostic/css/generate-nice-color/index.test.d.ts +0 -1
- package/agnostic/css/is-valid-css-class-name/index.d.ts +0 -13
- package/agnostic/css/is-valid-css-class-name/index.js +0 -9
- package/agnostic/css/is-valid-css-class-name/index.test.d.ts +0 -1
- package/agnostic/css/styles-set/index.d.ts +0 -39
- package/agnostic/css/styles-set/index.js +0 -173
- package/agnostic/errors/register/index.d.ts +0 -33
- package/agnostic/errors/register/index.js +0 -51
- package/agnostic/errors/unknown-to-string/index.d.ts +0 -7
- package/agnostic/errors/unknown-to-string/index.js +0 -7
- package/agnostic/errors/unknown-to-string/index.test.d.ts +0 -1
- package/agnostic/html/get-node-ancestors/index.d.ts +0 -13
- package/agnostic/html/get-node-ancestors/index.js +0 -8
- package/agnostic/html/get-node-ancestors/index.test.d.ts +0 -1
- package/agnostic/html/get-position-inside-parent/index.d.ts +0 -9
- package/agnostic/html/get-position-inside-parent/index.js +0 -11
- package/agnostic/html/get-position-inside-parent/index.test.d.ts +0 -1
- package/agnostic/html/hyper-json/cast/index.d.ts +0 -12
- package/agnostic/html/hyper-json/cast/index.js +0 -25
- package/agnostic/html/hyper-json/index.d.ts +0 -18
- package/agnostic/html/hyper-json/index.js +0 -50
- package/agnostic/html/hyper-json/method/index.d.ts +0 -7
- package/agnostic/html/hyper-json/method/index.js +0 -7
- package/agnostic/html/hyper-json/serialize/index.d.ts +0 -5
- package/agnostic/html/hyper-json/serialize/index.js +0 -11
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.d.ts +0 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.d.ts +0 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.d.ts +0 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.d.ts +0 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +0 -27
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +0 -29
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.d.ts +0 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.d.ts +0 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.d.ts +0 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.d.ts +0 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.d.ts +0 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.d.ts +0 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.d.ts +0 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.d.ts +0 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.d.ts +0 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +0 -27
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.d.ts +0 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.d.ts +0 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.d.ts +0 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +0 -27
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.d.ts +0 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.d.ts +0 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.d.ts +0 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.d.ts +0 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/index.js +0 -10
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +0 -11
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +0 -11
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +0 -11
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.d.ts +0 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +0 -27
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +0 -25
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.d.ts +0 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +0 -25
- package/agnostic/html/hyper-json/transformer/index.d.ts +0 -33
- package/agnostic/html/hyper-json/transformer/index.js +0 -9
- package/agnostic/html/hyper-json/tree/index.d.ts +0 -47
- package/agnostic/html/hyper-json/tree/index.js +0 -25
- package/agnostic/html/hyper-json/types/index.d.ts +0 -143
- package/agnostic/html/hyper-json/types/index.js +0 -7
- package/agnostic/html/hyper-json/utils/index.d.ts +0 -57
- package/agnostic/html/hyper-json/utils/index.js +0 -25
- package/agnostic/html/insert-node/index.d.ts +0 -19
- package/agnostic/html/insert-node/index.js +0 -7
- package/agnostic/html/insert-node/index.test.d.ts +0 -1
- package/agnostic/html/placeholders/index.d.ts +0 -7
- package/agnostic/html/placeholders/index.js +0 -39
- package/agnostic/html/replace-in-element/index.d.ts +0 -15
- package/agnostic/html/replace-in-element/index.js +0 -26
- package/agnostic/html/replace-in-element/index.test.d.ts +0 -1
- package/agnostic/html/selector-to-element/index.d.ts +0 -16
- package/agnostic/html/selector-to-element/index.js +0 -34
- package/agnostic/html/selector-to-element/index.test.d.ts +0 -1
- package/agnostic/html/string-to-nodes/index.d.ts +0 -14
- package/agnostic/html/string-to-nodes/index.js +0 -20
- package/agnostic/html/string-to-nodes/index.test.d.ts +0 -1
- package/agnostic/misc/assert/index.d.ts +0 -5
- package/agnostic/misc/assert/index.js +0 -64
- package/agnostic/misc/cast/index.d.ts +0 -81
- package/agnostic/misc/cast/index.js +0 -23
- package/agnostic/misc/cast/index.test.d.ts +0 -1
- package/agnostic/misc/connection/index.d.ts +0 -26
- package/agnostic/misc/connection/index.js +0 -39
- package/agnostic/misc/connection/index.test.d.ts +0 -1
- package/agnostic/misc/crawler/index.d.ts +0 -63
- package/agnostic/misc/crawler/index.js +0 -35
- package/agnostic/misc/crawler/index.test.d.ts +0 -1
- package/agnostic/misc/crossenv/detect-runtime/index.d.ts +0 -12
- package/agnostic/misc/crossenv/detect-runtime/index.js +0 -17
- package/agnostic/misc/crossenv/detect-runtime/index.test.d.ts +0 -1
- package/agnostic/misc/crossenv/types.d.ts +0 -40
- package/agnostic/misc/crossenv/types.js +0 -7
- package/agnostic/misc/crossenv/window/index.d.ts +0 -28
- package/agnostic/misc/crossenv/window/index.js +0 -13
- package/agnostic/misc/crossenv/window/index.test.d.ts +0 -1
- package/agnostic/misc/data-size/index.d.ts +0 -87
- package/agnostic/misc/data-size/index.js +0 -297
- package/agnostic/misc/data-size/index.test.d.ts +0 -1
- package/agnostic/misc/data-size/types.d.ts +0 -37
- package/agnostic/misc/elo/index.d.ts +0 -29
- package/agnostic/misc/elo/index.js +0 -31
- package/agnostic/misc/is-constructor-function/index.d.ts +0 -13
- package/agnostic/misc/is-constructor-function/index.js +0 -7
- package/agnostic/misc/is-constructor-function/index.test.d.ts +0 -1
- package/agnostic/misc/is-nullish/index.d.ts +0 -26
- package/agnostic/misc/is-nullish/index.js +0 -11
- package/agnostic/misc/is-nullish/index.test.d.ts +0 -1
- package/agnostic/misc/logs/logger/index.d.ts +0 -45
- package/agnostic/misc/logs/logger/index.js +0 -112
- package/agnostic/misc/logs/make-text-block/index.d.ts +0 -1
- package/agnostic/misc/logs/make-text-block/index.js +0 -7
- package/agnostic/misc/logs/styles/index.d.ts +0 -11
- package/agnostic/misc/logs/styles/index.js +0 -8
- package/agnostic/misc/lorem-ipsum/index.d.ts +0 -3
- package/agnostic/misc/lorem-ipsum/index.js +0 -190
- package/agnostic/misc/lorem-ipsum/index.test.d.ts +0 -1
- package/agnostic/misc/normalize-extension/index.d.ts +0 -11
- package/agnostic/misc/normalize-extension/index.js +0 -92
- package/agnostic/misc/normalize-extension/index.test.d.ts +0 -1
- package/agnostic/misc/outcome/index.d.ts +0 -56
- package/agnostic/misc/outcome/index.js +0 -11
- package/agnostic/misc/outcome/index.test.d.ts +0 -1
- package/agnostic/numbers/absolute-modulo/index.d.ts +0 -8
- package/agnostic/numbers/absolute-modulo/index.js +0 -7
- package/agnostic/numbers/absolute-modulo/index.test.d.ts +0 -1
- package/agnostic/numbers/approximate-rational/index.d.ts +0 -22
- package/agnostic/numbers/approximate-rational/index.js +0 -72
- package/agnostic/numbers/approximate-rational/index.test.d.ts +0 -1
- package/agnostic/numbers/clamp/index.d.ts +0 -9
- package/agnostic/numbers/clamp/index.js +0 -7
- package/agnostic/numbers/clamp/index.test.d.ts +0 -1
- package/agnostic/numbers/interpolate/index.d.ts +0 -21
- package/agnostic/numbers/interpolate/index.js +0 -14
- package/agnostic/numbers/interpolate/index.test.d.ts +0 -1
- package/agnostic/numbers/responsive-harmonics/index.d.ts +0 -30
- package/agnostic/numbers/responsive-harmonics/index.js +0 -54
- package/agnostic/numbers/round/index.d.ts +0 -24
- package/agnostic/numbers/round/index.js +0 -11
- package/agnostic/numbers/round/index.test.d.ts +0 -1
- package/agnostic/objects/deep-get-property/index.d.ts +0 -9
- package/agnostic/objects/deep-get-property/index.js +0 -27
- package/agnostic/objects/enums/is-in-enum/index.d.ts +0 -11
- package/agnostic/objects/enums/is-in-enum/index.js +0 -7
- package/agnostic/objects/flatten-getters/index.d.ts +0 -7
- package/agnostic/objects/flatten-getters/index.js +0 -25
- package/agnostic/objects/is-object/index.d.ts +0 -14
- package/agnostic/objects/is-object/index.js +0 -9
- package/agnostic/objects/is-record/index.d.ts +0 -7
- package/agnostic/objects/is-record/index.js +0 -7
- package/agnostic/objects/record-format/index.d.ts +0 -38
- package/agnostic/objects/record-format/index.js +0 -18
- package/agnostic/objects/record-map/index.d.ts +0 -12
- package/agnostic/objects/record-map/index.js +0 -7
- package/agnostic/objects/validation/index.d.ts +0 -11
- package/agnostic/objects/validation/index.js +0 -11
- package/agnostic/optim/memoize/index.d.ts +0 -12
- package/agnostic/optim/memoize/index.js +0 -19
- package/agnostic/optim/throttle-debounce/index.d.ts +0 -30
- package/agnostic/optim/throttle-debounce/index.js +0 -114
- package/agnostic/optim/throttle-debounce/types.d.ts +0 -2
- package/agnostic/random/hex-char/index.d.ts +0 -4
- package/agnostic/random/hex-char/index.js +0 -9
- package/agnostic/random/random/index.d.ts +0 -17
- package/agnostic/random/random/index.js +0 -9
- package/agnostic/random/uuid/index.d.ts +0 -21
- package/agnostic/random/uuid/index.js +0 -12
- package/agnostic/regexps/index.d.ts +0 -95
- package/agnostic/regexps/index.js +0 -88
- package/agnostic/sanitization/file-name/index.d.ts +0 -13
- package/agnostic/sanitization/file-name/index.js +0 -7
- package/agnostic/sanitization/html/index.d.ts +0 -61
- package/agnostic/sanitization/html/index.js +0 -121
- package/agnostic/sanitization/path/index.d.ts +0 -11
- package/agnostic/sanitization/path/index.js +0 -14
- package/agnostic/sanitization/types.d.ts +0 -37
- package/agnostic/sanitization/types.js +0 -0
- package/agnostic/sanitization/user-input/index.d.ts +0 -13
- package/agnostic/sanitization/user-input/index.js +0 -23
- package/agnostic/strings/char-codes/index.d.ts +0 -82
- package/agnostic/strings/char-codes/index.js +0 -70
- package/agnostic/strings/matches/index.d.ts +0 -28
- package/agnostic/strings/matches/index.js +0 -11
- package/agnostic/strings/normalize-indent/index.d.ts +0 -23
- package/agnostic/strings/normalize-indent/index.js +0 -19
- package/agnostic/strings/parse-table/index.d.ts +0 -145
- package/agnostic/strings/parse-table/index.js +0 -87
- package/agnostic/strings/replace-all/index.d.ts +0 -21
- package/agnostic/strings/replace-all/index.js +0 -7
- package/agnostic/strings/to-alphanum/index.d.ts +0 -19
- package/agnostic/strings/to-alphanum/index.js +0 -11
- package/agnostic/strings/trim/index.d.ts +0 -20
- package/agnostic/strings/trim/index.js +0 -9
- package/agnostic/time/dates/format-date/index.d.ts +0 -48
- package/agnostic/time/dates/format-date/index.js +0 -61
- package/agnostic/time/duration/index.d.ts +0 -39
- package/agnostic/time/duration/index.js +0 -112
- package/agnostic/time/timeout/index.d.ts +0 -9
- package/agnostic/time/timeout/index.js +0 -19
- package/agnostic/time/transitions/index.d.ts +0 -74
- package/agnostic/time/transitions/index.js +0 -161
- package/agnostic/time/wait/index.d.ts +0 -7
- package/agnostic/time/wait/index.js +0 -7
- package/agnostic/typescript/types.d.ts +0 -37
- package/agnostic/typescript/types.js +0 -0
- package/chunks/chunk-2WSVYQ5Q.js +0 -77
- package/chunks/chunk-3MPXVP4L.js +0 -25
- package/chunks/chunk-4CIS3R7T.js +0 -10
- package/chunks/chunk-4WE2WEXL.js +0 -12
- package/chunks/chunk-54KPQCVI.js +0 -25
- package/chunks/chunk-5CFQCSKJ.js +0 -23
- package/chunks/chunk-5NTPCRFH.js +0 -32
- package/chunks/chunk-5O52VUI6.js +0 -31
- package/chunks/chunk-5X76KDYN.js +0 -60
- package/chunks/chunk-65BFQP3T.js +0 -25
- package/chunks/chunk-66BURDRK.js +0 -29
- package/chunks/chunk-6BGIDRU5.js +0 -36
- package/chunks/chunk-6KOJFWH3.js +0 -47
- package/chunks/chunk-6XL25OZX.js +0 -12
- package/chunks/chunk-6YVXSCRH.js +0 -37
- package/chunks/chunk-75BICI4L.js +0 -20
- package/chunks/chunk-7B2E2NGH.js +0 -40
- package/chunks/chunk-AKNR3U25.js +0 -20
- package/chunks/chunk-ALLCYHRY.js +0 -2684
- package/chunks/chunk-AOEOW5XW.js +0 -40
- package/chunks/chunk-ASWI3EO6.js +0 -25
- package/chunks/chunk-AV373PHY.js +0 -56
- package/chunks/chunk-AXMAF3J2.js +0 -38
- package/chunks/chunk-AYGAQQXD.js +0 -27
- package/chunks/chunk-BHGRXDTS.js +0 -28
- package/chunks/chunk-BQABPH3I.js +0 -31
- package/chunks/chunk-BQXTV2GG.js +0 -36
- package/chunks/chunk-BXFRBV67.js +0 -28
- package/chunks/chunk-D3ERTRDW.js +0 -17
- package/chunks/chunk-DBNCEHTT.js +0 -22
- package/chunks/chunk-DBZAJJUF.js +0 -39
- package/chunks/chunk-DNIOWD7K.js +0 -8
- package/chunks/chunk-DUCLFPGE.js +0 -78
- package/chunks/chunk-E6MSDKON.js +0 -13
- package/chunks/chunk-EBQRPRRC.js +0 -22
- package/chunks/chunk-EEPLTO3E.js +0 -31
- package/chunks/chunk-EPUHVR7J.js +0 -17
- package/chunks/chunk-FENXVJYO.js +0 -11
- package/chunks/chunk-FH74QWR6.js +0 -47
- package/chunks/chunk-FM3HGCFL.js +0 -56
- package/chunks/chunk-FSI422YG.js +0 -31
- package/chunks/chunk-FXISVWGE.js +0 -60
- package/chunks/chunk-H4PP6AHP.js +0 -15
- package/chunks/chunk-HC6ZOHCS.js +0 -14
- package/chunks/chunk-HEY7J6GI.js +0 -37
- package/chunks/chunk-HMPY32F7.js +0 -34
- package/chunks/chunk-HQLRJ7XW.js +0 -12
- package/chunks/chunk-HYPEWMYZ.js +0 -10
- package/chunks/chunk-IBQQCUYV.js +0 -36
- package/chunks/chunk-IK2S6ZYP.js +0 -29
- package/chunks/chunk-ISJONMNA.js +0 -16
- package/chunks/chunk-J5D4OQ5U.js +0 -27
- package/chunks/chunk-JDINERKY.js +0 -107
- package/chunks/chunk-JFXEMK66.js +0 -33
- package/chunks/chunk-JN2UETL4.js +0 -32
- package/chunks/chunk-JU23NBY2.js +0 -22
- package/chunks/chunk-JVMFT3IT.js +0 -134
- package/chunks/chunk-K5UF634H.js +0 -25
- package/chunks/chunk-KRYJVBO5.js +0 -155
- package/chunks/chunk-L3OCRR3V.js +0 -25
- package/chunks/chunk-LFHDJTZJ.js +0 -12552
- package/chunks/chunk-MHNUCHPP.js +0 -26
- package/chunks/chunk-MSAAQTCE.js +0 -207
- package/chunks/chunk-MZYCKOLN.js +0 -103
- package/chunks/chunk-NEMHJSNM.js +0 -24
- package/chunks/chunk-NIIAUOBO.js +0 -36
- package/chunks/chunk-NR7STUY3.js +0 -28
- package/chunks/chunk-O66PEU62.js +0 -27
- package/chunks/chunk-O7UCJNVF.js +0 -38
- package/chunks/chunk-OF2W4ZRG.js +0 -53
- package/chunks/chunk-OGBUSUE6.js +0 -12
- package/chunks/chunk-OSAXBA7G.js +0 -10
- package/chunks/chunk-PTJO2TGI.js +0 -23
- package/chunks/chunk-PTN2V757.js +0 -35
- package/chunks/chunk-QEKI6WGQ.js +0 -27
- package/chunks/chunk-QFBVETGF.js +0 -34
- package/chunks/chunk-QHEWBOQI.js +0 -19
- package/chunks/chunk-QXAJXTXV.js +0 -19
- package/chunks/chunk-R3AWQXMY.js +0 -20
- package/chunks/chunk-RCO57B6F.js +0 -9
- package/chunks/chunk-RGQNRTBI.js +0 -55
- package/chunks/chunk-RNXRHCHQ.js +0 -633
- package/chunks/chunk-ROWPCMQY.js +0 -29
- package/chunks/chunk-RW7VAKJW.js +0 -15
- package/chunks/chunk-S2I77NEE.js +0 -35
- package/chunks/chunk-S6ZFFGWH.js +0 -34
- package/chunks/chunk-SBBIQ5UH.js +0 -36
- package/chunks/chunk-TLWVLCIQ.js +0 -39
- package/chunks/chunk-TTJXJX4E.js +0 -48
- package/chunks/chunk-ULYGDEW2.js +0 -25
- package/chunks/chunk-UR5BUIPU.js +0 -26
- package/chunks/chunk-USIYKRNX.js +0 -20
- package/chunks/chunk-UZ4SWSOZ.js +0 -41
- package/chunks/chunk-VU6JYR3W.js +0 -64
- package/chunks/chunk-VYDUHDXW.js +0 -35
- package/chunks/chunk-W5A2TON3.js +0 -10
- package/chunks/chunk-W5VY535B.js +0 -37
- package/chunks/chunk-WNDMYNDU.js +0 -8
- package/chunks/chunk-XA4HVHJ4.js +0 -18
- package/chunks/chunk-XCBH6NLF.js +0 -42
- package/chunks/chunk-XEQ2PBT2.js +0 -20
- package/chunks/chunk-XIIJYVJZ.js +0 -15
- package/chunks/chunk-XNF5MLCQ.js +0 -14
- package/chunks/chunk-Y6FD4ASO.js +0 -32
- package/chunks/chunk-YA2YCZUF.js +0 -8
- package/chunks/chunk-YDIBNEGA.js +0 -9
- package/chunks/chunk-YOP6WVCF.js +0 -45
- package/chunks/chunk-YWSXCFYY.js +0 -61
- package/chunks/chunk-ZKIQ753F.js +0 -23
- package/chunks/chunk-ZTPRFEPV.js +0 -32
- package/node/@aws-s3/storage/directory/copy-dir/index.d.ts +0 -27
- package/node/@aws-s3/storage/directory/copy-dir/index.js +0 -9
- package/node/@aws-s3/storage/directory/list/index.d.ts +0 -17
- package/node/@aws-s3/storage/directory/list/index.js +0 -9
- package/node/@aws-s3/storage/directory/move-dir/index.d.ts +0 -33
- package/node/@aws-s3/storage/directory/move-dir/index.js +0 -9
- package/node/@aws-s3/storage/directory/remove-dir/index.d.ts +0 -31
- package/node/@aws-s3/storage/directory/remove-dir/index.js +0 -9
- package/node/@aws-s3/storage/file/copy/index.d.ts +0 -30
- package/node/@aws-s3/storage/file/copy/index.js +0 -9
- package/node/@aws-s3/storage/file/download/index.d.ts +0 -22
- package/node/@aws-s3/storage/file/download/index.js +0 -9
- package/node/@aws-s3/storage/file/exists/index.d.ts +0 -23
- package/node/@aws-s3/storage/file/exists/index.js +0 -9
- package/node/@aws-s3/storage/file/move/index.d.ts +0 -33
- package/node/@aws-s3/storage/file/move/index.js +0 -9
- package/node/@aws-s3/storage/file/remove/index.d.ts +0 -17
- package/node/@aws-s3/storage/file/remove/index.js +0 -9
- package/node/@aws-s3/storage/file/stat/index.d.ts +0 -24
- package/node/@aws-s3/storage/file/stat/index.js +0 -9
- package/node/@aws-s3/storage/file/upload/index.d.ts +0 -22
- package/node/@aws-s3/storage/file/upload/index.js +0 -9
- package/node/@express/@multer/index.d.ts +0 -56
- package/node/@express/@multer/index.js +0 -47
- package/node/@google-cloud/storage/bucket/get-metadata/index.d.ts +0 -18
- package/node/@google-cloud/storage/bucket/get-metadata/index.js +0 -22
- package/node/@google-cloud/storage/directory/copy-dir/index.d.ts +0 -22
- package/node/@google-cloud/storage/directory/copy-dir/index.js +0 -9
- package/node/@google-cloud/storage/directory/list/index.d.ts +0 -17
- package/node/@google-cloud/storage/directory/list/index.js +0 -9
- package/node/@google-cloud/storage/directory/move-dir/index.d.ts +0 -31
- package/node/@google-cloud/storage/directory/move-dir/index.js +0 -9
- package/node/@google-cloud/storage/directory/remove-dir/index.d.ts +0 -31
- package/node/@google-cloud/storage/directory/remove-dir/index.js +0 -9
- package/node/@google-cloud/storage/file/copy/index.d.ts +0 -32
- package/node/@google-cloud/storage/file/copy/index.js +0 -9
- package/node/@google-cloud/storage/file/download/index.d.ts +0 -21
- package/node/@google-cloud/storage/file/download/index.js +0 -9
- package/node/@google-cloud/storage/file/exists/index.d.ts +0 -19
- package/node/@google-cloud/storage/file/exists/index.js +0 -9
- package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +0 -23
- package/node/@google-cloud/storage/file/generate-signed-url/index.js +0 -28
- package/node/@google-cloud/storage/file/get-metadata/index.d.ts +0 -22
- package/node/@google-cloud/storage/file/get-metadata/index.js +0 -24
- package/node/@google-cloud/storage/file/get-permissions/index.d.ts +0 -19
- package/node/@google-cloud/storage/file/get-permissions/index.js +0 -24
- package/node/@google-cloud/storage/file/move/index.d.ts +0 -36
- package/node/@google-cloud/storage/file/move/index.js +0 -9
- package/node/@google-cloud/storage/file/remove/index.d.ts +0 -24
- package/node/@google-cloud/storage/file/remove/index.js +0 -9
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +0 -26
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +0 -30
- package/node/@google-cloud/storage/file/stat/index.d.ts +0 -25
- package/node/@google-cloud/storage/file/stat/index.js +0 -9
- package/node/@google-cloud/storage/file/update-metadata/index.d.ts +0 -24
- package/node/@google-cloud/storage/file/update-metadata/index.js +0 -24
- package/node/@google-cloud/storage/file/upload/index.d.ts +0 -24
- package/node/@google-cloud/storage/file/upload/index.js +0 -9
- package/node/cloud-storage/clients/index.d.ts +0 -40
- package/node/cloud-storage/clients/index.js +0 -13
- package/node/cloud-storage/operations/copy-dir/index.d.ts +0 -60
- package/node/cloud-storage/operations/copy-dir/index.js +0 -35
- package/node/cloud-storage/operations/copy-file/index.d.ts +0 -60
- package/node/cloud-storage/operations/copy-file/index.js +0 -35
- package/node/cloud-storage/operations/download-file/index.d.ts +0 -65
- package/node/cloud-storage/operations/download-file/index.js +0 -35
- package/node/cloud-storage/operations/exists-file/index.d.ts +0 -56
- package/node/cloud-storage/operations/exists-file/index.js +0 -35
- package/node/cloud-storage/operations/list-dir/index.d.ts +0 -52
- package/node/cloud-storage/operations/list-dir/index.js +0 -35
- package/node/cloud-storage/operations/move-dir/index.d.ts +0 -60
- package/node/cloud-storage/operations/move-dir/index.js +0 -35
- package/node/cloud-storage/operations/move-file/index.d.ts +0 -60
- package/node/cloud-storage/operations/move-file/index.js +0 -35
- package/node/cloud-storage/operations/remove-dir/index.d.ts +0 -56
- package/node/cloud-storage/operations/remove-dir/index.js +0 -35
- package/node/cloud-storage/operations/remove-file/index.d.ts +0 -56
- package/node/cloud-storage/operations/remove-file/index.js +0 -35
- package/node/cloud-storage/operations/stat-file/index.d.ts +0 -54
- package/node/cloud-storage/operations/stat-file/index.js +0 -35
- package/node/cloud-storage/operations/upload-file/index.d.ts +0 -61
- package/node/cloud-storage/operations/upload-file/index.js +0 -35
- package/node/encryption/@aes-256-gcm/buffer/index.d.ts +0 -20
- package/node/encryption/@aes-256-gcm/buffer/index.js +0 -28
- package/node/encryption/@aes-256-gcm/uint8-array/index.d.ts +0 -21
- package/node/encryption/@aes-256-gcm/uint8-array/index.js +0 -11
- package/node/encryption/key/index.d.ts +0 -16
- package/node/encryption/key/index.js +0 -15
- package/node/files/is-in-directory/index.d.ts +0 -8
- package/node/files/is-in-directory/index.js +0 -11
- package/node/files/read-write/index.d.ts +0 -53
- package/node/files/read-write/index.js +0 -18
- package/node/files/subpaths/index.d.ts +0 -63
- package/node/files/subpaths/index.js +0 -122
- package/node/ftps/directory/copy-dir/index.d.ts +0 -28
- package/node/ftps/directory/copy-dir/index.js +0 -9
- package/node/ftps/directory/list/index.d.ts +0 -12
- package/node/ftps/directory/list/index.js +0 -9
- package/node/ftps/directory/move-dir/index.d.ts +0 -26
- package/node/ftps/directory/move-dir/index.js +0 -9
- package/node/ftps/directory/remove-dir/index.d.ts +0 -25
- package/node/ftps/directory/remove-dir/index.js +0 -9
- package/node/ftps/file/copy/index.d.ts +0 -28
- package/node/ftps/file/copy/index.js +0 -9
- package/node/ftps/file/download/index.d.ts +0 -22
- package/node/ftps/file/download/index.js +0 -9
- package/node/ftps/file/exists/index.d.ts +0 -21
- package/node/ftps/file/exists/index.js +0 -9
- package/node/ftps/file/move/index.d.ts +0 -38
- package/node/ftps/file/move/index.js +0 -9
- package/node/ftps/file/remove/index.d.ts +0 -20
- package/node/ftps/file/remove/index.js +0 -9
- package/node/ftps/file/stat/index.d.ts +0 -17
- package/node/ftps/file/stat/index.js +0 -9
- package/node/ftps/file/upload/index.d.ts +0 -24
- package/node/ftps/file/upload/index.js +0 -9
- package/node/images/create/index.d.ts +0 -9
- package/node/images/create/index.js +0 -19
- package/node/images/format/index.d.ts +0 -62
- package/node/images/format/index.js +0 -269
- package/node/images/metadata/index.d.ts +0 -9
- package/node/images/metadata/index.js +0 -19
- package/node/images/transform/index.d.ts +0 -27
- package/node/images/transform/index.js +0 -205
- package/node/images/transform/operations/blur/index.d.ts +0 -5
- package/node/images/transform/operations/blur/index.js +0 -11
- package/node/images/transform/operations/brighten/index.d.ts +0 -5
- package/node/images/transform/operations/brighten/index.js +0 -11
- package/node/images/transform/operations/extend/index.d.ts +0 -5
- package/node/images/transform/operations/extend/index.js +0 -18
- package/node/images/transform/operations/extract/index.d.ts +0 -5
- package/node/images/transform/operations/extract/index.js +0 -11
- package/node/images/transform/operations/flatten/index.d.ts +0 -5
- package/node/images/transform/operations/flatten/index.js +0 -18
- package/node/images/transform/operations/flip/index.d.ts +0 -2
- package/node/images/transform/operations/flip/index.js +0 -7
- package/node/images/transform/operations/flop/index.d.ts +0 -2
- package/node/images/transform/operations/flop/index.js +0 -7
- package/node/images/transform/operations/hue/index.d.ts +0 -5
- package/node/images/transform/operations/hue/index.js +0 -11
- package/node/images/transform/operations/level/index.d.ts +0 -5
- package/node/images/transform/operations/level/index.js +0 -11
- package/node/images/transform/operations/lighten/index.d.ts +0 -5
- package/node/images/transform/operations/lighten/index.js +0 -11
- package/node/images/transform/operations/normalize/index.d.ts +0 -5
- package/node/images/transform/operations/normalize/index.js +0 -11
- package/node/images/transform/operations/overlay/index.d.ts +0 -5
- package/node/images/transform/operations/overlay/index.js +0 -18
- package/node/images/transform/operations/resize/index.d.ts +0 -5
- package/node/images/transform/operations/resize/index.js +0 -18
- package/node/images/transform/operations/rotate/index.d.ts +0 -5
- package/node/images/transform/operations/rotate/index.js +0 -18
- package/node/images/transform/operations/saturate/index.d.ts +0 -5
- package/node/images/transform/operations/saturate/index.js +0 -11
- package/node/images/types.d.ts +0 -387
- package/node/images/types.js +0 -9
- package/node/images/utils/index.d.ts +0 -27
- package/node/images/utils/index.js +0 -19
- package/node/process/on-exit/index.d.ts +0 -28
- package/node/process/on-exit/index.js +0 -32
- package/node/process/prompt-continue/index.d.ts +0 -18
- package/node/process/prompt-continue/index.js +0 -1680
- package/node/process/spawner/index.d.ts +0 -18
- package/node/process/spawner/index.js +0 -83
- package/node/sftp/directory/copy-dir/index.d.ts +0 -28
- package/node/sftp/directory/copy-dir/index.js +0 -9
- package/node/sftp/directory/list/index.d.ts +0 -12
- package/node/sftp/directory/list/index.js +0 -9
- package/node/sftp/directory/move-dir/index.d.ts +0 -26
- package/node/sftp/directory/move-dir/index.js +0 -9
- package/node/sftp/directory/remove-dir/index.d.ts +0 -25
- package/node/sftp/directory/remove-dir/index.js +0 -9
- package/node/sftp/file/copy/index.d.ts +0 -28
- package/node/sftp/file/copy/index.js +0 -9
- package/node/sftp/file/download/index.d.ts +0 -20
- package/node/sftp/file/download/index.js +0 -9
- package/node/sftp/file/exists/index.d.ts +0 -21
- package/node/sftp/file/exists/index.js +0 -9
- package/node/sftp/file/move/index.d.ts +0 -38
- package/node/sftp/file/move/index.js +0 -9
- package/node/sftp/file/remove/index.d.ts +0 -20
- package/node/sftp/file/remove/index.js +0 -9
- package/node/sftp/file/stat/index.d.ts +0 -18
- package/node/sftp/file/stat/index.js +0 -9
- package/node/sftp/file/upload/index.d.ts +0 -24
- package/node/sftp/file/upload/index.js +0 -9
- /package/agnostic/{arrays/dedupe → scrapers/@meteociel}/index.test.d.ts +0 -0
- /package/agnostic/{misc/data-size → scrapers/@meteociel}/types.js +0 -0
- /package/agnostic/{optim/throttle-debounce → weather}/types.js +0 -0
- /package/node/{@design-edito/index.d.ts → index.d.ts} +0 -0
- /package/node/{@design-edito/index.js → index.js} +0 -0
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import "../../../../chunks/chunk-XCBH6NLF.js";
|
|
2
|
-
|
|
3
|
-
// src/agnostic/misc/logs/logger/index.ts
|
|
4
|
-
var logsTimeOrigin = /* @__PURE__ */ new Date();
|
|
5
|
-
var Log = class {
|
|
6
|
-
type;
|
|
7
|
-
data;
|
|
8
|
-
time;
|
|
9
|
-
stack;
|
|
10
|
-
constructor(type, data) {
|
|
11
|
-
this.type = type;
|
|
12
|
-
this.data = data;
|
|
13
|
-
this.time = /* @__PURE__ */ new Date();
|
|
14
|
-
this.stack = new Error().stack ?? "";
|
|
15
|
-
}
|
|
16
|
-
get displayTime() {
|
|
17
|
-
return this.time.toLocaleDateString("en-US", {
|
|
18
|
-
year: "numeric",
|
|
19
|
-
month: "short",
|
|
20
|
-
day: "numeric",
|
|
21
|
-
weekday: "short",
|
|
22
|
-
hour: "numeric",
|
|
23
|
-
minute: "numeric",
|
|
24
|
-
second: "numeric"
|
|
25
|
-
}) + `:${this.time.getMilliseconds()}`;
|
|
26
|
-
}
|
|
27
|
-
get elapsedTimeMs() {
|
|
28
|
-
return (this.time.getTime() - logsTimeOrigin.getTime()) / 1e3;
|
|
29
|
-
}
|
|
30
|
-
get displayStack() {
|
|
31
|
-
return this.stack.split("\n").map((line) => line.trim()).slice(4).join("\n");
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
var Logger = class {
|
|
35
|
-
_private_threads = /* @__PURE__ */ new Map();
|
|
36
|
-
constructor() {
|
|
37
|
-
this.dir = this.dir.bind(this);
|
|
38
|
-
this.error = this.error.bind(this);
|
|
39
|
-
this.group = this.group.bind(this);
|
|
40
|
-
this.groupEnd = this.groupEnd.bind(this);
|
|
41
|
-
this.log = this.log.bind(this);
|
|
42
|
-
this.table = this.table.bind(this);
|
|
43
|
-
this.warn = this.warn.bind(this);
|
|
44
|
-
this.setLog = this.setLog.bind(this);
|
|
45
|
-
this.print = this.print.bind(this);
|
|
46
|
-
this.printThreads = this.printThreads.bind(this);
|
|
47
|
-
}
|
|
48
|
-
// assert (thread: string = '', ...args: ConsoleMethodsParams['assert']) { this.setLog(thread, 'assert', args) }
|
|
49
|
-
// count (thread: string = '', ...args: ConsoleMethodsParams['count']) { this.setLog(thread, 'count', args) }
|
|
50
|
-
// countReset (thread: string = '', ...args: ConsoleMethodsParams['countReset']) { this.setLog(thread, 'countReset', args) }
|
|
51
|
-
// debug (thread: string = '', ...args: ConsoleMethodsParams['debug']) { this.setLog(thread, 'debug', args) }
|
|
52
|
-
dir(thread = "", ...args) {
|
|
53
|
-
this.setLog(thread, "dir", args);
|
|
54
|
-
}
|
|
55
|
-
// dirxml (thread: string = '', ...args: ConsoleMethodsParams['dirxml']) { this.setLog(thread, 'dirxml', args) }
|
|
56
|
-
error(thread = "", ...args) {
|
|
57
|
-
this.setLog(thread, "error", args);
|
|
58
|
-
}
|
|
59
|
-
group(thread = "", ...args) {
|
|
60
|
-
this.setLog(thread, "group", args);
|
|
61
|
-
}
|
|
62
|
-
// groupCollapsed (thread: string = '', ...args: ConsoleMethodsParams['groupCollapsed']) { this.setLog(thread, 'groupCollapsed', args) }
|
|
63
|
-
groupEnd(thread = "", ...args) {
|
|
64
|
-
this.setLog(thread, "groupEnd", args);
|
|
65
|
-
}
|
|
66
|
-
// info (thread: string = '', ...args: ConsoleMethodsParams['info']) { this.setLog(thread, 'info', args) }
|
|
67
|
-
log(thread = "", ...args) {
|
|
68
|
-
this.setLog(thread, "log", args);
|
|
69
|
-
}
|
|
70
|
-
table(thread = "", ...args) {
|
|
71
|
-
this.setLog(thread, "table", args);
|
|
72
|
-
}
|
|
73
|
-
// time (thread: string = '', ...args: ConsoleMethodsParams['time']) { this.setLog(thread, 'time', args) }
|
|
74
|
-
// timeEnd (thread: string = '', ...args: ConsoleMethodsParams['timeEnd']) { this.setLog(thread, 'timeEnd', args) }
|
|
75
|
-
// trace (thread: string = '', ...args: ConsoleMethodsParams['trace']) { this.setLog(thread, 'trace', args) }
|
|
76
|
-
warn(thread = "", ...args) {
|
|
77
|
-
this.setLog(thread, "warn", args);
|
|
78
|
-
}
|
|
79
|
-
setLog(threadName, type, data) {
|
|
80
|
-
const log = new Log(type, data);
|
|
81
|
-
const thread = this._private_threads.get(threadName) ?? [];
|
|
82
|
-
this._private_threads.set(threadName, [...thread, log]);
|
|
83
|
-
return this;
|
|
84
|
-
}
|
|
85
|
-
print(threadFilter, withStack) {
|
|
86
|
-
const allLogs = Array.from(this._private_threads.entries()).map(([threadName, logs]) => logs.map((log) => ({ threadName, log }))).flat().sort((eltA, eltB) => eltA.log.time.getTime() - eltB.log.time.getTime()).filter(({ threadName }) => {
|
|
87
|
-
if (threadFilter === void 0) return true;
|
|
88
|
-
return threadName === threadFilter;
|
|
89
|
-
});
|
|
90
|
-
allLogs.forEach(({ threadName, log }) => {
|
|
91
|
-
console.log(`%c${threadName}`, "font-weight: 800; color: white; background: black; padding: 4px;", `+${log.elapsedTimeMs}s \u2013`, log.displayTime);
|
|
92
|
-
if (withStack === true) console.log(`%c${log.displayStack}`, "color: grey; font-size: inherit;");
|
|
93
|
-
console[log.type](...log.data);
|
|
94
|
-
console.log("");
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
printThreads(withStack) {
|
|
98
|
-
Array.from(this._private_threads.entries()).forEach(([threadName, logs]) => {
|
|
99
|
-
console.group(`%c${threadName}`, "font-weight: 800; color: white; background: black; padding: 4px;");
|
|
100
|
-
logs.forEach((log) => {
|
|
101
|
-
console.log(`+${log.elapsedTimeMs}s \u2013`, log.displayTime);
|
|
102
|
-
if (withStack === true) console.log(`%c${log.displayStack}`, "color: grey; font-size: inherit;");
|
|
103
|
-
console[log.type](...log.data);
|
|
104
|
-
console.log("");
|
|
105
|
-
});
|
|
106
|
-
console.groupEnd();
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
export {
|
|
111
|
-
Logger
|
|
112
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function makeTextBlock(text: string, vPadding?: number, hPadding?: number): string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const styles: {
|
|
2
|
-
regular: (text: string) => string;
|
|
3
|
-
light: (text: string) => string;
|
|
4
|
-
danger: (text: string) => string;
|
|
5
|
-
important: (text: string) => string;
|
|
6
|
-
title: (text: string) => string;
|
|
7
|
-
info: (text: string) => string;
|
|
8
|
-
success: (text: string) => string;
|
|
9
|
-
error: (text: string) => string;
|
|
10
|
-
warning: (text: string) => string;
|
|
11
|
-
};
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
randomInt
|
|
3
|
-
} from "../../../chunks/chunk-D3ERTRDW.js";
|
|
4
|
-
import {
|
|
5
|
-
randomPick
|
|
6
|
-
} from "../../../chunks/chunk-K5UF634H.js";
|
|
7
|
-
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
8
|
-
|
|
9
|
-
// src/agnostic/misc/lorem-ipsum/index.ts
|
|
10
|
-
var words = [
|
|
11
|
-
"a",
|
|
12
|
-
"ac",
|
|
13
|
-
"accumsan",
|
|
14
|
-
"adipiscing",
|
|
15
|
-
"aenean",
|
|
16
|
-
"aliquam",
|
|
17
|
-
"aliquet",
|
|
18
|
-
"amet",
|
|
19
|
-
"ante",
|
|
20
|
-
"arcu",
|
|
21
|
-
"at",
|
|
22
|
-
"auctor",
|
|
23
|
-
"augue",
|
|
24
|
-
"bibendum",
|
|
25
|
-
"blandit",
|
|
26
|
-
"condimentum",
|
|
27
|
-
"consectetur",
|
|
28
|
-
"consequat",
|
|
29
|
-
"convallis",
|
|
30
|
-
"cras",
|
|
31
|
-
"curabitur",
|
|
32
|
-
"cursus",
|
|
33
|
-
"dapibus",
|
|
34
|
-
"diam",
|
|
35
|
-
"dictum",
|
|
36
|
-
"dictumst",
|
|
37
|
-
"dignissim",
|
|
38
|
-
"dolor",
|
|
39
|
-
"donec",
|
|
40
|
-
"dui",
|
|
41
|
-
"duis",
|
|
42
|
-
"efficitur",
|
|
43
|
-
"egestas",
|
|
44
|
-
"eget",
|
|
45
|
-
"eleifend",
|
|
46
|
-
"elementum",
|
|
47
|
-
"elit",
|
|
48
|
-
"enim",
|
|
49
|
-
"erat",
|
|
50
|
-
"eros",
|
|
51
|
-
"est",
|
|
52
|
-
"et",
|
|
53
|
-
"eu",
|
|
54
|
-
"euismod",
|
|
55
|
-
"ex",
|
|
56
|
-
"facilisis",
|
|
57
|
-
"faucibus",
|
|
58
|
-
"felis",
|
|
59
|
-
"feugiat",
|
|
60
|
-
"finibus",
|
|
61
|
-
"fringilla",
|
|
62
|
-
"fusce",
|
|
63
|
-
"gravida",
|
|
64
|
-
"habitasse",
|
|
65
|
-
"hac",
|
|
66
|
-
"hendrerit",
|
|
67
|
-
"iaculis",
|
|
68
|
-
"id",
|
|
69
|
-
"imperdiet",
|
|
70
|
-
"in",
|
|
71
|
-
"integer",
|
|
72
|
-
"interdum",
|
|
73
|
-
"ipsum",
|
|
74
|
-
"justo",
|
|
75
|
-
"lacinia",
|
|
76
|
-
"lacus",
|
|
77
|
-
"laoreet",
|
|
78
|
-
"lectus",
|
|
79
|
-
"leo",
|
|
80
|
-
"libero",
|
|
81
|
-
"ligula",
|
|
82
|
-
"lobortis",
|
|
83
|
-
"lorem",
|
|
84
|
-
"luctus",
|
|
85
|
-
"maecenas",
|
|
86
|
-
"magna",
|
|
87
|
-
"malesuada",
|
|
88
|
-
"massa",
|
|
89
|
-
"mattis",
|
|
90
|
-
"mauris",
|
|
91
|
-
"maximus",
|
|
92
|
-
"metus",
|
|
93
|
-
"mi",
|
|
94
|
-
"molestie",
|
|
95
|
-
"mollis",
|
|
96
|
-
"morbi",
|
|
97
|
-
"nam",
|
|
98
|
-
"nec",
|
|
99
|
-
"neque",
|
|
100
|
-
"nibh",
|
|
101
|
-
"nisi",
|
|
102
|
-
"nisl",
|
|
103
|
-
"non",
|
|
104
|
-
"nulla",
|
|
105
|
-
"nullam",
|
|
106
|
-
"nunc",
|
|
107
|
-
"odio",
|
|
108
|
-
"orci",
|
|
109
|
-
"ornare",
|
|
110
|
-
"pellentesque",
|
|
111
|
-
"pharetra",
|
|
112
|
-
"phasellus",
|
|
113
|
-
"placerat",
|
|
114
|
-
"platea",
|
|
115
|
-
"porta",
|
|
116
|
-
"porttitor",
|
|
117
|
-
"posuere",
|
|
118
|
-
"praesent",
|
|
119
|
-
"pulvinar",
|
|
120
|
-
"purus",
|
|
121
|
-
"quam",
|
|
122
|
-
"quis",
|
|
123
|
-
"quisque",
|
|
124
|
-
"risus",
|
|
125
|
-
"rutrum",
|
|
126
|
-
"sagittis",
|
|
127
|
-
"sapien",
|
|
128
|
-
"sed",
|
|
129
|
-
"sem",
|
|
130
|
-
"semper",
|
|
131
|
-
"sit",
|
|
132
|
-
"sodales",
|
|
133
|
-
"sollicitudin",
|
|
134
|
-
"suscipit",
|
|
135
|
-
"suspendisse",
|
|
136
|
-
"tellus",
|
|
137
|
-
"tempor",
|
|
138
|
-
"tempus",
|
|
139
|
-
"tincidunt",
|
|
140
|
-
"tortor",
|
|
141
|
-
"tristique",
|
|
142
|
-
"turpis",
|
|
143
|
-
"ultrices",
|
|
144
|
-
"ultricies",
|
|
145
|
-
"urna",
|
|
146
|
-
"ut",
|
|
147
|
-
"vehicula",
|
|
148
|
-
"vel",
|
|
149
|
-
"velit",
|
|
150
|
-
"venenatis",
|
|
151
|
-
"vestibulum",
|
|
152
|
-
"vitae",
|
|
153
|
-
"vivamus",
|
|
154
|
-
"viverra",
|
|
155
|
-
"volutpat",
|
|
156
|
-
"vulputate"
|
|
157
|
-
];
|
|
158
|
-
var generateSentence = (wordCount) => {
|
|
159
|
-
const resultArr = [];
|
|
160
|
-
let currentWordCound = wordCount;
|
|
161
|
-
for (let i = 0; i < currentWordCound; i++) {
|
|
162
|
-
const picked = randomPick(words);
|
|
163
|
-
if (typeof picked === "string") resultArr.push(picked);
|
|
164
|
-
else {
|
|
165
|
-
currentWordCound += 1;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
const [firstWord, ...otherWords] = resultArr;
|
|
169
|
-
if (firstWord === void 0) return "";
|
|
170
|
-
const capFirstLetter = firstWord?.charAt(0).toUpperCase();
|
|
171
|
-
const restOfFirstWord = firstWord?.slice(1);
|
|
172
|
-
const sentence = [
|
|
173
|
-
`${capFirstLetter}${restOfFirstWord}`,
|
|
174
|
-
...otherWords
|
|
175
|
-
].join(" ");
|
|
176
|
-
return `${sentence}.`;
|
|
177
|
-
};
|
|
178
|
-
var generateSentences = (sentencesCount, maxSentenceLength = 12, minSentenceLength = 4) => {
|
|
179
|
-
const sentences = [];
|
|
180
|
-
for (let i = 0; i < sentencesCount; i++) {
|
|
181
|
-
const length = randomInt(maxSentenceLength, minSentenceLength) ?? 8;
|
|
182
|
-
sentences.push(generateSentence(length));
|
|
183
|
-
}
|
|
184
|
-
return sentences;
|
|
185
|
-
};
|
|
186
|
-
export {
|
|
187
|
-
generateSentence,
|
|
188
|
-
generateSentences,
|
|
189
|
-
words
|
|
190
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Normalizes a file extension to its canonical form, using an optional alias map.
|
|
3
|
-
*
|
|
4
|
-
* Converts the extension to lowercase, removes a leading dot if present,
|
|
5
|
-
* and applies alias mapping if defined.
|
|
6
|
-
*
|
|
7
|
-
* @param {string} extWithoutDot - File extension to normalize (may include or omit leading dot).
|
|
8
|
-
* @param {Record<string, string>} [aliasesWithoutDot=defaultAliases] - Optional mapping of aliases to canonical extensions.
|
|
9
|
-
* @returns {string} The normalized file extension, without leading dot.
|
|
10
|
-
*/
|
|
11
|
-
export declare function normalizeExtension(extWithoutDot: string, aliasesWithoutDot?: Record<string, string>): string;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
2
|
-
|
|
3
|
-
// src/agnostic/misc/normalize-extension/index.ts
|
|
4
|
-
var defaultAliases = {
|
|
5
|
-
// Images
|
|
6
|
-
jpeg: "jpg",
|
|
7
|
-
jpe: "jpg",
|
|
8
|
-
jfif: "jpg",
|
|
9
|
-
pjpeg: "jpg",
|
|
10
|
-
pjp: "jpg",
|
|
11
|
-
tiff: "tif",
|
|
12
|
-
svgz: "svg",
|
|
13
|
-
// Audio
|
|
14
|
-
m4a: "aac",
|
|
15
|
-
mp2: "mp3",
|
|
16
|
-
mpeg3: "mp3",
|
|
17
|
-
wave: "wav",
|
|
18
|
-
aif: "aiff",
|
|
19
|
-
aifc: "aiff",
|
|
20
|
-
opus: "ogg",
|
|
21
|
-
oga: "ogg",
|
|
22
|
-
// Video
|
|
23
|
-
m4v: "mp4",
|
|
24
|
-
mpe: "mpg",
|
|
25
|
-
mpeg: "mpg",
|
|
26
|
-
ogv: "webm",
|
|
27
|
-
mov: "qt",
|
|
28
|
-
m2ts: "ts",
|
|
29
|
-
tsx: "ts",
|
|
30
|
-
mkv: "webm",
|
|
31
|
-
// often used similarly
|
|
32
|
-
// Fonts
|
|
33
|
-
truetype: "ttf",
|
|
34
|
-
opentype: "otf",
|
|
35
|
-
svgfont: "svg",
|
|
36
|
-
eotfont: "eot",
|
|
37
|
-
// Web / Source Files
|
|
38
|
-
htm: "html",
|
|
39
|
-
xhtml: "html",
|
|
40
|
-
js: "javascript",
|
|
41
|
-
mjs: "js",
|
|
42
|
-
cjs: "js",
|
|
43
|
-
yml: "yaml",
|
|
44
|
-
text: "txt",
|
|
45
|
-
mdown: "md",
|
|
46
|
-
markdown: "md",
|
|
47
|
-
map: "json",
|
|
48
|
-
// Documents
|
|
49
|
-
doc: "docx",
|
|
50
|
-
xls: "xlsx",
|
|
51
|
-
ppt: "pptx",
|
|
52
|
-
rtf: "doc",
|
|
53
|
-
odt: "docx",
|
|
54
|
-
ods: "xlsx",
|
|
55
|
-
odp: "pptx",
|
|
56
|
-
// Archives
|
|
57
|
-
tgz: "tar.gz",
|
|
58
|
-
tbz: "tar.bz2",
|
|
59
|
-
tbz2: "tar.bz2",
|
|
60
|
-
txz: "tar.xz",
|
|
61
|
-
gz: "gzip",
|
|
62
|
-
bz2: "bzip2",
|
|
63
|
-
z: "zip",
|
|
64
|
-
// Code & Scripting
|
|
65
|
-
pyw: "py",
|
|
66
|
-
ipynb: "json",
|
|
67
|
-
"c++": "cpp",
|
|
68
|
-
"h++": "hpp",
|
|
69
|
-
cc: "cpp",
|
|
70
|
-
cxx: "cpp",
|
|
71
|
-
hxx: "hpp",
|
|
72
|
-
sh: "bash",
|
|
73
|
-
bashrc: "bash",
|
|
74
|
-
zshrc: "zsh",
|
|
75
|
-
ps1: "powershell",
|
|
76
|
-
// Configuration
|
|
77
|
-
env: "conf",
|
|
78
|
-
ini: "conf",
|
|
79
|
-
toml: "conf",
|
|
80
|
-
// Misc
|
|
81
|
-
plist: "xml",
|
|
82
|
-
xsl: "xml",
|
|
83
|
-
xslt: "xml",
|
|
84
|
-
svgx: "svg"
|
|
85
|
-
};
|
|
86
|
-
function normalizeExtension(extWithoutDot, aliasesWithoutDot = defaultAliases) {
|
|
87
|
-
const cleaned = extWithoutDot.toLowerCase().replace(/^\./, "");
|
|
88
|
-
return aliasesWithoutDot[cleaned] ?? cleaned;
|
|
89
|
-
}
|
|
90
|
-
export {
|
|
91
|
-
normalizeExtension
|
|
92
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a successful outcome.
|
|
3
|
-
*
|
|
4
|
-
* @template Payload - The type of the success payload.
|
|
5
|
-
* @property {true} success - Always `true`.
|
|
6
|
-
* @property {Payload} payload - The success value.
|
|
7
|
-
*/
|
|
8
|
-
export type Success<Payload extends any = any> = {
|
|
9
|
-
success: true;
|
|
10
|
-
payload: Payload;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Represents a failed outcome.
|
|
14
|
-
*
|
|
15
|
-
* @template Error - The type of the error.
|
|
16
|
-
* @property {false} success - Always `false`.
|
|
17
|
-
* @property {Error} error - The error value.
|
|
18
|
-
*/
|
|
19
|
-
export type Failure<Error extends any = any> = {
|
|
20
|
-
success: false;
|
|
21
|
-
error: Error;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Represents either a success or a failure outcome.
|
|
25
|
-
*
|
|
26
|
-
* @template Payload - Type of success payload.
|
|
27
|
-
* @template Error - Type of error.
|
|
28
|
-
*/
|
|
29
|
-
export type Either<Payload extends any = any, Error extends any = any> = Success<Payload> | Failure<Error>;
|
|
30
|
-
/**
|
|
31
|
-
* Creates a success outcome with the given payload.
|
|
32
|
-
*
|
|
33
|
-
* @template Payload
|
|
34
|
-
* @param {Payload} payload - The success value.
|
|
35
|
-
* @returns {Success<Payload>} A success outcome object.
|
|
36
|
-
*/
|
|
37
|
-
export declare function makeSuccess<Payload extends any>(payload: Payload): Success<Payload>;
|
|
38
|
-
/**
|
|
39
|
-
* Creates a failure outcome with the given error.
|
|
40
|
-
*
|
|
41
|
-
* @template Error
|
|
42
|
-
* @param {Error} error - The error value.
|
|
43
|
-
* @returns {Failure<Error>} A failure outcome object.
|
|
44
|
-
*/
|
|
45
|
-
export declare function makeFailure<Error extends any>(error: Error): Failure<Error>;
|
|
46
|
-
/**
|
|
47
|
-
* Creates either a success or failure outcome based on a boolean flag.
|
|
48
|
-
*
|
|
49
|
-
* @template Payload
|
|
50
|
-
* @template Error
|
|
51
|
-
* @param {boolean} success - `true` to create a success, `false` to create a failure.
|
|
52
|
-
* @param {Payload | Error} payloadOrError - The payload if success, or the error if failure.
|
|
53
|
-
* @returns {Either<Payload, Error>} The resulting outcome.
|
|
54
|
-
*/
|
|
55
|
-
export declare function make<Payload extends any>(success: true, payload: Payload): Success<Payload>;
|
|
56
|
-
export declare function make<Error extends any>(success: false, error: Error): Failure<Error>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Computes the modulo of a number, always returning a non-negative result.
|
|
3
|
-
*
|
|
4
|
-
* @param {number} nbr - The number to modulo.
|
|
5
|
-
* @param {number} modulo - The modulus.
|
|
6
|
-
* @returns {number} The non-negative remainder of `nbr` modulo `modulo`.
|
|
7
|
-
*/
|
|
8
|
-
export declare function absoluteModulo(nbr: number, modulo: number): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Approximates a decimal number as a rational number using a simple iterative approach.
|
|
3
|
-
*
|
|
4
|
-
* Uses a naive algorithm that increments the numerator or denominator each round
|
|
5
|
-
* to find the closest approximation. Stops early if an exact match is found.
|
|
6
|
-
*
|
|
7
|
-
* @param {number} target - The decimal number to approximate.
|
|
8
|
-
* @param {number} maxRounds - The maximum number of iterations to perform.
|
|
9
|
-
* @returns {[number, number]} A tuple `[numerator, denominator]` representing the rational approximation.
|
|
10
|
-
*/
|
|
11
|
-
export declare function approximateRationalDumb(target: number, maxRounds: number): [number, number];
|
|
12
|
-
/**
|
|
13
|
-
* Approximates a decimal number as a rational number (fraction) using continued fractions.
|
|
14
|
-
*
|
|
15
|
-
* Uses the continued fractions algorithm to find the best rational approximation
|
|
16
|
-
* of a decimal number within the specified maximum denominator limit.
|
|
17
|
-
*
|
|
18
|
-
* @param {number} target - The decimal number to approximate.
|
|
19
|
-
* @param {number} [maxDenominator=1000] - The maximum allowed denominator value.
|
|
20
|
-
* @returns {[number, number]} A tuple `[numerator, denominator]` representing the rational approximation.
|
|
21
|
-
*/
|
|
22
|
-
export declare function approximateRational(target: number, maxDenominator?: number): [number, number];
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
2
|
-
|
|
3
|
-
// src/agnostic/numbers/approximate-rational/index.ts
|
|
4
|
-
function approximateRationalDumb(target, maxRounds) {
|
|
5
|
-
let numerator = 0;
|
|
6
|
-
let denominator = 1;
|
|
7
|
-
let currentRound = 0;
|
|
8
|
-
let foundExact = false;
|
|
9
|
-
const closestFound = {
|
|
10
|
-
numerator,
|
|
11
|
-
denominator,
|
|
12
|
-
found: 0
|
|
13
|
-
};
|
|
14
|
-
const positiveTarget = Math.abs(target);
|
|
15
|
-
while (currentRound < maxRounds && !foundExact) {
|
|
16
|
-
currentRound++;
|
|
17
|
-
const roundResult = numerator / denominator;
|
|
18
|
-
if (roundResult === positiveTarget) {
|
|
19
|
-
closestFound.numerator = numerator;
|
|
20
|
-
closestFound.denominator = denominator;
|
|
21
|
-
closestFound.found = roundResult;
|
|
22
|
-
foundExact = true;
|
|
23
|
-
} else {
|
|
24
|
-
const roundAbsDiff = Math.abs(roundResult - positiveTarget);
|
|
25
|
-
const closestAbsDiff = Math.abs(closestFound.found - positiveTarget);
|
|
26
|
-
if (roundAbsDiff < closestAbsDiff) {
|
|
27
|
-
closestFound.numerator = numerator;
|
|
28
|
-
closestFound.denominator = denominator;
|
|
29
|
-
closestFound.found = roundResult;
|
|
30
|
-
}
|
|
31
|
-
if (roundResult < positiveTarget) {
|
|
32
|
-
numerator++;
|
|
33
|
-
} else {
|
|
34
|
-
denominator++;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
if (target < 0) {
|
|
39
|
-
closestFound.numerator = closestFound.numerator * -1;
|
|
40
|
-
}
|
|
41
|
-
return [
|
|
42
|
-
closestFound.numerator,
|
|
43
|
-
closestFound.denominator
|
|
44
|
-
];
|
|
45
|
-
}
|
|
46
|
-
function approximateRational(target, maxDenominator = 1e3) {
|
|
47
|
-
const sign = target < 0 ? -1 : 1;
|
|
48
|
-
const absTarget = Math.abs(target);
|
|
49
|
-
let h1 = 1, h2 = 0;
|
|
50
|
-
let k1 = 0, k2 = 1;
|
|
51
|
-
let b = absTarget;
|
|
52
|
-
do {
|
|
53
|
-
const a = Math.floor(b);
|
|
54
|
-
let temp = h1;
|
|
55
|
-
h1 = a * h1 + h2;
|
|
56
|
-
h2 = temp;
|
|
57
|
-
temp = k1;
|
|
58
|
-
k1 = a * k1 + k2;
|
|
59
|
-
k2 = temp;
|
|
60
|
-
if (k1 > maxDenominator) {
|
|
61
|
-
k1 = k2;
|
|
62
|
-
h1 = h2;
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
b = 1 / (b - a);
|
|
66
|
-
} while (Math.abs(absTarget - h1 / k1) > 1e-10 && Number.isFinite(b));
|
|
67
|
-
return [sign * h1, k1];
|
|
68
|
-
}
|
|
69
|
-
export {
|
|
70
|
-
approximateRational,
|
|
71
|
-
approximateRationalDumb
|
|
72
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Restricts a number to lie within a specified range.
|
|
3
|
-
*
|
|
4
|
-
* @param {number} num - The number to clamp.
|
|
5
|
-
* @param {number} bound1 - One end of the range.
|
|
6
|
-
* @param {number} bound2 - The other end of the range.
|
|
7
|
-
* @returns {number} The number constrained between the minimum and maximum of the two bounds.
|
|
8
|
-
*/
|
|
9
|
-
export declare function clamp(num: number, bound1: number, bound2: number): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|