ctx-core 2.1.0 → 2.2.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/all/LessThan/index.d.ts +10 -0
- package/all/LessThan/index.js +1 -0
- package/all/MAX_INT/index.d.ts +1 -0
- package/all/MAX_INT/index.js +1 -0
- package/all/MIN_INT/index.d.ts +1 -0
- package/all/MIN_INT/index.js +1 -0
- package/all/Map__object/index.d.ts +5 -0
- package/all/Map__object/index.js +9 -0
- package/all/Map__object/index.test.ts +7 -0
- package/all/NoRepetition/index.d.ts +6 -0
- package/all/NoRepetition/index.js +1 -0
- package/all/NumericRange/index.d.ts +8 -0
- package/all/NumericRange/index.js +1 -0
- package/all/NumericUnit/index.d.ts +4 -0
- package/all/NumericUnit/index.js +1 -0
- package/all/PHI/index.d.ts +1 -0
- package/all/PHI/index.js +2 -0
- package/all/Request/index.d.ts +2 -0
- package/all/Request/index.js +2 -0
- package/all/Response/index.d.ts +1 -0
- package/all/Response/index.js +2 -0
- package/all/TagType/index.d.ts +2 -0
- package/all/TagType/index.js +1 -0
- package/all/Timeout/index.d.ts +1 -0
- package/all/Timeout/index.js +1 -0
- package/all/UnorderedTuple/index.d.ts +4 -0
- package/all/UnorderedTuple/index.js +1 -0
- package/all/a/index.d.ts +1 -0
- package/all/a/index.js +3 -0
- package/all/a_assign/index.d.ts +7 -0
- package/all/a_assign/index.js +12 -0
- package/all/a_in_idx_a_map/index.d.ts +12 -0
- package/all/a_in_idx_a_map/index.js +13 -0
- package/all/a_item/index.d.ts +12 -0
- package/all/a_item/index.js +1 -0
- package/all/a_length/index.d.ts +18 -0
- package/all/a_length/index.js +21 -0
- package/all/a_nowrap/index.d.ts +7 -0
- package/all/a_nowrap/index.js +1 -0
- package/all/a_present/index.d.ts +19 -0
- package/all/a_present/index.js +24 -0
- package/all/a_some/index.d.ts +13 -0
- package/all/a_some/index.js +20 -0
- package/all/abbrev_month_a/index.d.ts +2 -0
- package/all/abbrev_month_a/index.js +15 -0
- package/all/abbreviate_number_str/index.d.ts +10 -0
- package/all/abbreviate_number_str/index.js +28 -0
- package/all/acronym/index.d.ts +2 -0
- package/all/acronym/index.js +8 -0
- package/all/add/index.d.ts +11 -0
- package/all/add/index.js +24 -0
- package/all/add/index.test.ts +14 -0
- package/all/all_union_a/index.d.ts +10 -0
- package/all/all_union_a/index.js +8 -0
- package/all/and/index.d.ts +29 -0
- package/all/and/index.js +45 -0
- package/all/and/index.test.ts +10 -0
- package/all/and_call/index.d.ts +16 -0
- package/all/and_call/index.js +20 -0
- package/all/andand/index.d.ts +14 -0
- package/all/andand/index.js +19 -0
- package/all/andand_or/index.d.ts +13 -0
- package/all/andand_or/index.js +14 -0
- package/all/andandfn/index.d.ts +26 -0
- package/all/andandfn/index.js +39 -0
- package/all/apply/index.d.ts +14 -0
- package/all/apply/index.js +14 -0
- package/all/arg_i0_a/index.d.ts +11 -0
- package/all/arg_i0_a/index.js +11 -0
- package/all/array_types/index.d.ts +134 -0
- package/all/array_types/index.js +1 -0
- package/all/assign/index.d.ts +4 -0
- package/all/assign/index.js +5 -0
- package/all/assign_fn_key_a/index.d.ts +15 -0
- package/all/assign_fn_key_a/index.js +24 -0
- package/all/assign_unless_null/index.d.ts +7 -0
- package/all/assign_unless_null/index.js +11 -0
- package/all/async_gen_a/index.d.ts +3 -0
- package/all/async_gen_a/index.js +9 -0
- package/all/async_gen_a/index.test.ts +12 -0
- package/all/at_date/index.d.ts +1 -0
- package/all/at_date/index.js +9 -0
- package/all/atob/index.d.ts +3 -0
- package/all/atob/index.js +16 -0
- package/all/atob_Uint32Array/index.d.ts +5 -0
- package/all/atob_Uint32Array/index.js +16 -0
- package/all/bad_credentials/index.d.ts +30 -0
- package/all/bad_credentials/index.js +44 -0
- package/all/bad_gateway/index.d.ts +20 -0
- package/all/bad_gateway/index.js +45 -0
- package/all/bad_request/index.d.ts +20 -0
- package/all/bad_request/index.js +45 -0
- package/all/base16_random/index.d.ts +2 -0
- package/all/base16_random/index.js +14 -0
- package/all/base64__buffer/index.d.ts +6 -0
- package/all/base64__buffer/index.js +15 -0
- package/all/batch_queue/index.d.ts +5 -0
- package/all/batch_queue/index.js +44 -0
- package/all/batch_queue/index.test.ts +149 -0
- package/all/be/index.d.ts +5 -0
- package/all/be/index.js +11 -0
- package/all/be_/index.d.ts +124 -0
- package/all/be_/index.js +272 -0
- package/all/be_/index.test.ts +251 -0
- package/all/be_arg_triple/index.d.ts +21 -0
- package/all/be_arg_triple/index.js +41 -0
- package/all/be_prop_pair/index.d.ts +36 -0
- package/all/be_prop_pair/index.js +54 -0
- package/all/be_prop_pair/index.test.ts +137 -0
- package/all/binary_sort_rank/index.d.ts +12 -0
- package/all/binary_sort_rank/index.js +30 -0
- package/all/bind_apply/index.d.ts +17 -0
- package/all/bind_apply/index.js +18 -0
- package/all/bind_call/index.d.ts +21 -0
- package/all/bind_call/index.js +18 -0
- package/all/bind_map_apply/index.d.ts +17 -0
- package/all/bind_map_apply/index.js +19 -0
- package/all/bind_map_call/index.d.ts +18 -0
- package/all/bind_map_call/index.js +21 -0
- package/all/btoa/index.d.ts +3 -0
- package/all/btoa/index.js +18 -0
- package/all/btoa/index.test.ts +7 -0
- package/all/btoa_Uint32Array/index.d.ts +8 -0
- package/all/btoa_Uint32Array/index.js +20 -0
- package/all/buffer__base64/index.d.ts +6 -0
- package/all/buffer__base64/index.js +22 -0
- package/all/buffer__hex/index.d.ts +1 -0
- package/all/buffer__hex/index.js +14 -0
- package/all/call/index.d.ts +22 -0
- package/all/call/index.js +23 -0
- package/all/call_assign/index.d.ts +13 -0
- package/all/call_assign/index.js +18 -0
- package/all/call_fn_a/index.d.ts +7 -0
- package/all/call_fn_a/index.js +14 -0
- package/all/call_or_fn/index.d.ts +13 -0
- package/all/call_or_fn/index.js +20 -0
- package/all/case_insensitive_eql/index.d.ts +1 -0
- package/all/case_insensitive_eql/index.js +14 -0
- package/all/chain/index.d.ts +22 -0
- package/all/chain/index.js +48 -0
- package/all/chunk_aa/index.d.ts +35 -0
- package/all/chunk_aa/index.js +20 -0
- package/all/chunk_aa/index.test.ts +11 -0
- package/all/circular_idx/index.d.ts +10 -0
- package/all/circular_idx/index.js +13 -0
- package/all/clear_ctx/index.d.ts +10 -0
- package/all/clear_ctx/index.js +19 -0
- package/all/clone/index.d.ts +6 -0
- package/all/clone/index.js +9 -0
- package/all/clone_assign_fn_key_a/index.d.ts +14 -0
- package/all/clone_assign_fn_key_a/index.js +18 -0
- package/all/color_hex_rgb__comma_delim_str/index.d.ts +11 -0
- package/all/color_hex_rgb__comma_delim_str/index.js +16 -0
- package/all/color_hsv/index.d.ts +18 -0
- package/all/color_hsv/index.js +36 -0
- package/all/color_hsv_phi_rgb_a/index.d.ts +19 -0
- package/all/color_hsv_phi_rgb_a/index.js +32 -0
- package/all/color_invert_rgb_a/index.d.ts +12 -0
- package/all/color_invert_rgb_a/index.js +18 -0
- package/all/color_rgb/index.d.ts +7 -0
- package/all/color_rgb/index.js +22 -0
- package/all/color_rgb/index.test.ts +12 -0
- package/all/columns_nansum_matrix/index.d.ts +4 -0
- package/all/columns_nansum_matrix/index.js +17 -0
- package/all/combinators/index.d.ts +52 -0
- package/all/combinators/index.js +48 -0
- package/all/combinators/index.test.ts +8 -0
- package/all/comma_number_str/index.d.ts +2 -0
- package/all/comma_number_str/index.js +8 -0
- package/all/compact/index.d.ts +15 -0
- package/all/compact/index.js +27 -0
- package/all/compact_a_ctx/index.d.ts +11 -0
- package/all/compact_a_ctx/index.js +21 -0
- package/all/compare/index.d.ts +23 -0
- package/all/compare/index.js +32 -0
- package/all/compose/index.d.ts +9 -0
- package/all/compose/index.js +17 -0
- package/all/concat/index.d.ts +9 -0
- package/all/concat/index.js +17 -0
- package/all/concat_truthy_a/index.d.ts +15 -0
- package/all/concat_truthy_a/index.js +19 -0
- package/all/console__error/index.d.ts +7 -0
- package/all/console__error/index.js +18 -0
- package/all/crypto/index.d.ts +1 -0
- package/all/crypto/index.js +11 -0
- package/all/crypto__sign/index.d.ts +13 -0
- package/all/crypto__sign/index.js +18 -0
- package/all/ctx/index.d.ts +4 -0
- package/all/ctx/index.js +25 -0
- package/all/ctx/index.test.ts +16 -0
- package/all/currencies/index.d.ts +3 -0
- package/all/currencies/index.js +120 -0
- package/all/currency_code/index.d.ts +4 -0
- package/all/currency_code/index.js +1 -0
- package/all/currency_str/index.d.ts +23 -0
- package/all/currency_str/index.js +38 -0
- package/all/currency_symbol/index.d.ts +8 -0
- package/all/currency_symbol/index.js +19 -0
- package/all/curry/index.d.ts +14 -0
- package/all/curry/index.js +32 -0
- package/all/date/index.d.ts +15 -0
- package/all/date/index.js +5 -0
- package/all/date_append_local_tz/index.d.ts +2 -0
- package/all/date_append_local_tz/index.js +9 -0
- package/all/day/index.d.ts +7 -0
- package/all/day/index.js +8 -0
- package/all/day_seconds/index.d.ts +2 -0
- package/all/day_seconds/index.js +2 -0
- package/all/debounce/index.d.ts +22 -0
- package/all/debounce/index.js +44 -0
- package/all/debounce_mapreduce/index.d.ts +6 -0
- package/all/debounce_mapreduce/index.js +18 -0
- package/all/debounce_mapreduce/index.test.ts +26 -0
- package/all/deep_clone/index.d.ts +5 -0
- package/all/deep_clone/index.js +10 -0
- package/all/defaults/index.d.ts +6 -0
- package/all/defaults/index.js +14 -0
- package/all/deg_rad/index.d.ts +5 -0
- package/all/deg_rad/index.js +7 -0
- package/all/diff_date/index.d.ts +1 -0
- package/all/diff_date/index.js +9 -0
- package/all/difference_a/index.d.ts +12 -0
- package/all/difference_a/index.js +15 -0
- package/all/difference_by/index.d.ts +9 -0
- package/all/difference_by/index.js +30 -0
- package/all/difference_set/index.d.ts +13 -0
- package/all/difference_set/index.js +23 -0
- package/all/digest__algorithm/index.d.ts +1 -0
- package/all/digest__algorithm/index.js +1 -0
- package/all/distribution_random_float/index.d.ts +4 -0
- package/all/distribution_random_float/index.js +12 -0
- package/all/distribution_random_int/index.d.ts +4 -0
- package/all/distribution_random_int/index.js +12 -0
- package/all/div/index.d.ts +4 -0
- package/all/div/index.js +10 -0
- package/all/each/index.d.ts +14 -0
- package/all/each/index.js +23 -0
- package/all/ensure/index.d.ts +11 -0
- package/all/ensure/index.js +26 -0
- package/all/ensure__refresh/index.d.ts +20 -0
- package/all/ensure__refresh/index.js +23 -0
- package/all/entries_gen/index.d.ts +5 -0
- package/all/entries_gen/index.js +12 -0
- package/all/entries_gen/index.test.ts +20 -0
- package/all/eq/index.d.ts +21 -0
- package/all/eq/index.js +28 -0
- package/all/eql/index.d.ts +23 -0
- package/all/eql/index.js +37 -0
- package/all/eql_a/index.d.ts +11 -0
- package/all/eql_a/index.js +20 -0
- package/all/eql_fn_a/index.d.ts +16 -0
- package/all/eql_fn_a/index.js +22 -0
- package/all/equidistant_segment_point_a/index.d.ts +14 -0
- package/all/equidistant_segment_point_a/index.js +25 -0
- package/all/error__print/index.d.ts +5 -0
- package/all/error__print/index.js +18 -0
- package/all/error_o/index.d.ts +27 -0
- package/all/error_o/index.js +25 -0
- package/all/every/index.d.ts +33 -0
- package/all/every/index.js +43 -0
- package/all/every_arg/index.d.ts +15 -0
- package/all/every_arg/index.js +15 -0
- package/all/every_arg/index.test.ts +37 -0
- package/all/exclude/index.d.ts +7 -0
- package/all/exclude/index.js +17 -0
- package/all/extract/index.d.ts +14 -0
- package/all/extract/index.js +24 -0
- package/all/extract/index.test.ts +18 -0
- package/all/falsy/index.d.ts +7 -0
- package/all/falsy/index.js +1 -0
- package/all/falsy__none/index.d.ts +9 -0
- package/all/falsy__none/index.js +23 -0
- package/all/falsy__none/index.test.ts +58 -0
- package/all/falsy_async_guard/index.d.ts +7 -0
- package/all/falsy_async_guard/index.js +13 -0
- package/all/falsy_guard/index.d.ts +5 -0
- package/all/falsy_guard/index.js +13 -0
- package/all/fetch/index.d.ts +5 -0
- package/all/fetch/index.js +2 -0
- package/all/fetch__template_pair/index.d.ts +40 -0
- package/all/fetch__template_pair/index.js +20 -0
- package/all/fetch__template_pair/index.test.ts +46 -0
- package/all/fetch_method/index.d.ts +5 -0
- package/all/fetch_method/index.js +8 -0
- package/all/fetch_response__throw/index.d.ts +7 -0
- package/all/fetch_response__throw/index.js +15 -0
- package/all/fetch_response__throw/index.test.ts +19 -0
- package/all/fetch_response_pair/index.d.ts +5 -0
- package/all/fetch_response_pair/index.js +13 -0
- package/all/fibonacci_number/index.d.ts +5 -0
- package/all/fibonacci_number/index.js +11 -0
- package/all/filter/index.d.ts +35 -0
- package/all/filter/index.js +55 -0
- package/all/filter_o/index.d.ts +31 -0
- package/all/filter_o/index.js +39 -0
- package/all/find/index.d.ts +30 -0
- package/all/find/index.js +51 -0
- package/all/first/index.d.ts +17 -0
- package/all/first/index.js +23 -0
- package/all/flatten/index.d.ts +14 -0
- package/all/flatten/index.js +28 -0
- package/all/flip/index.d.ts +5 -0
- package/all/flip/index.js +10 -0
- package/all/float_isNaN/index.d.ts +2 -0
- package/all/float_isNaN/index.js +9 -0
- package/all/fn_mean/index.d.ts +13 -0
- package/all/fn_mean/index.js +21 -0
- package/all/fn_mean/index.test.ts +13 -0
- package/all/fn_pipe/index.d.ts +70 -0
- package/all/fn_pipe/index.js +11 -0
- package/all/fn_pipe/index.test.ts +18 -0
- package/all/fn_sum/index.d.ts +12 -0
- package/all/fn_sum/index.js +17 -0
- package/all/fn_sum/index.test.ts +13 -0
- package/all/format_date_prose/index.d.ts +1 -0
- package/all/format_date_prose/index.js +10 -0
- package/all/format_utc_date_prose/index.d.ts +1 -0
- package/all/format_utc_date_prose/index.js +10 -0
- package/all/globalThis__prop__ensure/index.d.ts +4 -0
- package/all/globalThis__prop__ensure/index.js +10 -0
- package/all/globalThis__prop__ensure/index.test.ts +22 -0
- package/all/gte_0_a/index.d.ts +11 -0
- package/all/gte_0_a/index.js +21 -0
- package/all/hasOwnProperty_pick/index.d.ts +9 -0
- package/all/hasOwnProperty_pick/index.js +17 -0
- package/all/has_key/index.d.ts +15 -0
- package/all/has_key/index.js +38 -0
- package/all/has_multiple/index.d.ts +9 -0
- package/all/has_multiple/index.js +14 -0
- package/all/has_some_key/index.d.ts +5 -0
- package/all/has_some_key/index.js +12 -0
- package/all/head_arg_a/index.d.ts +12 -0
- package/all/head_arg_a/index.js +15 -0
- package/all/headers/index.d.ts +2 -0
- package/all/headers/index.js +10 -0
- package/all/hex__digest/index.d.ts +5 -0
- package/all/hex__digest/index.js +24 -0
- package/all/hex_int/index.d.ts +5 -0
- package/all/hex_int/index.js +7 -0
- package/all/hmac/index.d.ts +6 -0
- package/all/hmac/index.js +32 -0
- package/all/hmac_key/index.d.ts +5 -0
- package/all/hmac_key/index.js +30 -0
- package/all/hostname/index.d.ts +2 -0
- package/all/hostname/index.js +9 -0
- package/all/hour/index.d.ts +7 -0
- package/all/hour/index.js +8 -0
- package/all/hour_seconds/index.d.ts +2 -0
- package/all/hour_seconds/index.js +2 -0
- package/all/http_error/index.d.ts +20 -0
- package/all/http_error/index.js +35 -0
- package/all/idx/index.d.ts +11 -0
- package/all/idx/index.js +17 -0
- package/all/idx_a/index.d.ts +9 -0
- package/all/idx_a/index.js +20 -0
- package/all/idx_a/index.test.ts +9 -0
- package/all/idx_filter/index.d.ts +32 -0
- package/all/idx_filter/index.js +57 -0
- package/all/idx_key_r/index.d.ts +49 -0
- package/all/idx_key_r/index.js +78 -0
- package/all/idx_reject/index.d.ts +30 -0
- package/all/idx_reject/index.js +45 -0
- package/all/idx_sort_a/index.d.ts +23 -0
- package/all/idx_sort_a/index.js +39 -0
- package/all/idx_sort_a__sort_idx_o/index.d.ts +16 -0
- package/all/idx_sort_a__sort_idx_o/index.js +21 -0
- package/all/idx_sort_r_a/index.d.ts +7 -0
- package/all/idx_sort_r_a/index.js +14 -0
- package/all/if_null_set_false/index.d.ts +7 -0
- package/all/if_null_set_false/index.js +14 -0
- package/all/ifelse/index.d.ts +6 -0
- package/all/ifelse/index.js +10 -0
- package/all/iife/index.d.ts +6 -0
- package/all/iife/index.js +9 -0
- package/all/indendation/index.d.ts +9 -0
- package/all/indendation/index.js +23 -0
- package/all/index.d.ts +408 -0
- package/all/index.js +408 -0
- package/all/indexOf/index.d.ts +6 -0
- package/all/indexOf/index.js +9 -0
- package/all/insert/index.d.ts +6 -0
- package/all/insert/index.js +10 -0
- package/all/int_hex/index.d.ts +5 -0
- package/all/int_hex/index.js +7 -0
- package/all/intersection_a/index.d.ts +15 -0
- package/all/intersection_a/index.js +15 -0
- package/all/intersection_by/index.d.ts +10 -0
- package/all/intersection_by/index.js +44 -0
- package/all/intersection_set/index.d.ts +14 -0
- package/all/intersection_set/index.js +25 -0
- package/all/invalid_argument/index.d.ts +30 -0
- package/all/invalid_argument/index.js +43 -0
- package/all/invalid_state/index.d.ts +32 -0
- package/all/invalid_state/index.js +44 -0
- package/all/invert/index.d.ts +4 -0
- package/all/invert/index.js +8 -0
- package/all/invert_idx_a/index.d.ts +12 -0
- package/all/invert_idx_a/index.js +20 -0
- package/all/invert_idx_a/index.test.ts +7 -0
- package/all/isArray/index.d.ts +5 -0
- package/all/isArray/index.js +9 -0
- package/all/isFloat/index.d.ts +1 -0
- package/all/isFloat/index.js +4 -0
- package/all/isFloat_andor/index.d.ts +3 -0
- package/all/isFloat_andor/index.js +9 -0
- package/all/isFloat_or/index.d.ts +1 -0
- package/all/isFloat_or/index.js +5 -0
- package/all/isLowerCase/index.d.ts +1 -0
- package/all/isLowerCase/index.js +7 -0
- package/all/isNumber/index.d.ts +5 -0
- package/all/isNumber/index.js +5 -0
- package/all/isNumber_andor/index.d.ts +3 -0
- package/all/isNumber_andor/index.js +8 -0
- package/all/isNumber_or/index.d.ts +1 -0
- package/all/isNumber_or/index.js +5 -0
- package/all/isObject/index.d.ts +8 -0
- package/all/isObject/index.js +12 -0
- package/all/isPromise/index.d.ts +1 -0
- package/all/isPromise/index.js +7 -0
- package/all/isString/index.d.ts +1 -0
- package/all/isString/index.js +7 -0
- package/all/isUpperCase/index.d.ts +1 -0
- package/all/isUpperCase/index.js +7 -0
- package/all/item_r_idx/index.d.ts +27 -0
- package/all/item_r_idx/index.js +38 -0
- package/all/json/index.d.ts +2 -0
- package/all/json/index.js +1 -0
- package/all/key_compare/index.d.ts +14 -0
- package/all/key_compare/index.js +19 -0
- package/all/key_r/index.d.ts +48 -0
- package/all/key_r/index.js +63 -0
- package/all/key_r_a/index.d.ts +15 -0
- package/all/key_r_a/index.js +26 -0
- package/all/keyof/index.d.ts +1 -0
- package/all/keyof/index.js +1 -0
- package/all/keys/index.d.ts +4 -0
- package/all/keys/index.js +5 -0
- package/all/lPad/index.d.ts +1 -0
- package/all/lPad/index.js +11 -0
- package/all/last/index.d.ts +18 -0
- package/all/last/index.js +22 -0
- package/all/left_and/index.d.ts +12 -0
- package/all/left_and/index.js +14 -0
- package/all/left_or/index.d.ts +11 -0
- package/all/left_or/index.js +14 -0
- package/all/line__parse/index.d.ts +18 -0
- package/all/line__parse/index.js +97 -0
- package/all/line__parse/index.test.ts +96 -0
- package/all/line__transform_stream/index.d.ts +8 -0
- package/all/line__transform_stream/index.js +53 -0
- package/all/line__transform_stream/index.test.ts +47 -0
- package/all/lte_0_a/index.d.ts +11 -0
- package/all/lte_0_a/index.js +20 -0
- package/all/m_m_yyyy/index.d.ts +8 -0
- package/all/m_m_yyyy/index.js +24 -0
- package/all/m_yy/index.d.ts +2 -0
- package/all/m_yy/index.js +9 -0
- package/all/m_yyyy/index.d.ts +2 -0
- package/all/m_yyyy/index.js +10 -0
- package/all/many_andand/index.d.ts +11 -0
- package/all/many_andand/index.js +12 -0
- package/all/many_andand_or/index.d.ts +17 -0
- package/all/many_andand_or/index.js +14 -0
- package/all/map/index.d.ts +42 -0
- package/all/map/index.js +45 -0
- package/all/map_andand/index.d.ts +30 -0
- package/all/map_andand/index.js +34 -0
- package/all/map_andand_or/index.d.ts +13 -0
- package/all/map_andand_or/index.js +13 -0
- package/all/map_andandfn/index.d.ts +28 -0
- package/all/map_andandfn/index.js +29 -0
- package/all/map_apply/index.d.ts +17 -0
- package/all/map_apply/index.js +15 -0
- package/all/map_call/index.d.ts +22 -0
- package/all/map_call/index.js +26 -0
- package/all/map_find/index.d.ts +32 -0
- package/all/map_find/index.js +38 -0
- package/all/map_fn/index.d.ts +4 -0
- package/all/map_fn/index.js +1 -0
- package/all/map_inverse/index.d.ts +5 -0
- package/all/map_inverse/index.js +9 -0
- package/all/map_obj/index.d.ts +30 -0
- package/all/map_obj/index.js +28 -0
- package/all/map_obj_andand/index.d.ts +28 -0
- package/all/map_obj_andand/index.js +28 -0
- package/all/matrix__dot/index.d.ts +6 -0
- package/all/matrix__dot/index.js +22 -0
- package/all/matrix__dot__scalar/index.d.ts +1 -0
- package/all/matrix__dot__scalar/index.js +9 -0
- package/all/matrix__normalize/index.d.ts +4 -0
- package/all/matrix__normalize/index.js +20 -0
- package/all/matrix__validate_length/index.d.ts +1 -0
- package/all/matrix__validate_length/index.js +13 -0
- package/all/maybe/index.d.ts +7 -0
- package/all/maybe/index.js +1 -0
- package/all/mean/index.d.ts +9 -0
- package/all/mean/index.js +17 -0
- package/all/mean/index.test.ts +10 -0
- package/all/median/index.d.ts +4 -0
- package/all/median/index.js +19 -0
- package/all/merge/index.d.ts +7 -0
- package/all/merge/index.js +25 -0
- package/all/minute/index.d.ts +7 -0
- package/all/minute/index.js +7 -0
- package/all/minute_seconds/index.d.ts +2 -0
- package/all/minute_seconds/index.js +2 -0
- package/all/missing_argument/index.d.ts +31 -0
- package/all/missing_argument/index.js +44 -0
- package/all/mixin/index.d.ts +13 -0
- package/all/mixin/index.js +34 -0
- package/all/money_str/index.d.ts +13 -0
- package/all/money_str/index.js +26 -0
- package/all/month_a/index.d.ts +5 -0
- package/all/month_a/index.js +18 -0
- package/all/month_ms/index.d.ts +5 -0
- package/all/month_ms/index.js +6 -0
- package/all/month_seconds/index.d.ts +2 -0
- package/all/month_seconds/index.js +2 -0
- package/all/ms/index.d.ts +5 -0
- package/all/ms/index.js +12 -0
- package/all/mul/index.d.ts +4 -0
- package/all/mul/index.js +12 -0
- package/all/name_sort/index.d.ts +14 -0
- package/all/name_sort/index.js +13 -0
- package/all/negative/index.d.ts +4 -0
- package/all/negative/index.js +8 -0
- package/all/neq/index.d.ts +14 -0
- package/all/neq/index.js +25 -0
- package/all/neql/index.d.ts +15 -0
- package/all/neql/index.js +24 -0
- package/all/next_idx/index.d.ts +8 -0
- package/all/next_idx/index.js +14 -0
- package/all/nf/index.d.ts +1 -0
- package/all/nf/index.js +1 -0
- package/all/no_comma_str/index.d.ts +2 -0
- package/all/no_comma_str/index.js +9 -0
- package/all/noinit/index.d.ts +9 -0
- package/all/noinit/index.js +16 -0
- package/all/noop/index.d.ts +4 -0
- package/all/noop/index.js +6 -0
- package/all/normal_random/index.d.ts +2 -0
- package/all/normal_random/index.js +19 -0
- package/all/normal_random_float/index.d.ts +2 -0
- package/all/normal_random_float/index.js +6 -0
- package/all/normal_random_int/index.d.ts +2 -0
- package/all/normal_random_int/index.js +6 -0
- package/all/not/index.d.ts +17 -0
- package/all/not/index.js +24 -0
- package/all/not_found/index.d.ts +20 -0
- package/all/not_found/index.js +44 -0
- package/all/not_nullish__query_str/index.d.ts +6 -0
- package/all/not_nullish__query_str/index.js +19 -0
- package/all/notnot/index.d.ts +12 -0
- package/all/notnot/index.js +23 -0
- package/all/null/index.d.ts +5 -0
- package/all/null/index.js +10 -0
- package/all/nullish/index.d.ts +2 -0
- package/all/nullish/index.js +1 -0
- package/all/nullish__guard/index.d.ts +10 -0
- package/all/nullish__guard/index.js +16 -0
- package/all/nullish__guard__async/index.d.ts +10 -0
- package/all/nullish__guard__async/index.js +18 -0
- package/all/nullish__none/index.d.ts +12 -0
- package/all/nullish__none/index.js +25 -0
- package/all/nullish__none/index.test.ts +58 -0
- package/all/nullish__not_all/index.d.ts +8 -0
- package/all/nullish__not_all/index.js +16 -0
- package/all/nullish__not_all/index.test.ts +70 -0
- package/all/nullish_or/index.d.ts +5 -0
- package/all/nullish_or/index.js +11 -0
- package/all/number__count/index.d.ts +4 -0
- package/all/number__count/index.js +13 -0
- package/all/number__count/index.test.ts +7 -0
- package/all/number_or_mdash_str/index.d.ts +2 -0
- package/all/number_or_mdash_str/index.js +5 -0
- package/all/numerator_or_0_avg/index.d.ts +5 -0
- package/all/numerator_or_0_avg/index.js +10 -0
- package/all/numerator_or_0_sum/index.d.ts +5 -0
- package/all/numerator_or_0_sum/index.js +10 -0
- package/all/numeric_range/index.d.ts +7 -0
- package/all/numeric_range/index.js +19 -0
- package/all/numeric_range/index.test.ts +9 -0
- package/all/o_a_present/index.d.ts +18 -0
- package/all/o_a_present/index.js +18 -0
- package/all/o_some/index.d.ts +13 -0
- package/all/o_some/index.js +16 -0
- package/all/obj_key_r/index.d.ts +10 -0
- package/all/obj_key_r/index.js +19 -0
- package/all/offset_destructure_aa/index.d.ts +13 -0
- package/all/offset_destructure_aa/index.js +22 -0
- package/all/offset_i/index.d.ts +8 -0
- package/all/offset_i/index.js +13 -0
- package/all/offset_i_slice/index.d.ts +19 -0
- package/all/offset_i_slice/index.js +26 -0
- package/all/omit/index.d.ts +15 -0
- package/all/omit/index.js +26 -0
- package/all/omit/index.test.ts +12 -0
- package/all/one_andand/index.d.ts +13 -0
- package/all/one_andand/index.js +15 -0
- package/all/one_andand_or/index.d.ts +19 -0
- package/all/one_andand_or/index.js +18 -0
- package/all/or/index.d.ts +41 -0
- package/all/or/index.js +47 -0
- package/all/or_in/index.d.ts +9 -0
- package/all/or_in/index.js +14 -0
- package/all/or_null/index.d.ts +11 -0
- package/all/or_null/index.js +10 -0
- package/all/or_property/index.d.ts +9 -0
- package/all/or_property/index.js +15 -0
- package/all/pad2/index.d.ts +1 -0
- package/all/pad2/index.js +7 -0
- package/all/parseFloat_andor/index.d.ts +3 -0
- package/all/parseFloat_andor/index.js +5 -0
- package/all/parseFloat_andor/index.test.ts +11 -0
- package/all/parseFloat_or/index.d.ts +1 -0
- package/all/parseFloat_or/index.js +5 -0
- package/all/parseFloat_or/index.test.ts +9 -0
- package/all/parseInt_andor/index.d.ts +5 -0
- package/all/parseInt_andor/index.js +5 -0
- package/all/parseInt_andor/index.test.ts +11 -0
- package/all/parseInt_or/index.d.ts +1 -0
- package/all/parseInt_or/index.js +5 -0
- package/all/parseInt_or/index.test.ts +10 -0
- package/all/pathname/index.d.ts +2 -0
- package/all/pathname/index.js +8 -0
- package/all/percentage_str/index.d.ts +2 -0
- package/all/percentage_str/index.js +9 -0
- package/all/percentage_str_float/index.d.ts +2 -0
- package/all/percentage_str_float/index.js +4 -0
- package/all/performance__now/index.d.ts +1 -0
- package/all/performance__now/index.js +32 -0
- package/all/pick/index.d.ts +18 -0
- package/all/pick/index.js +35 -0
- package/all/pick_keys/index.d.ts +8 -0
- package/all/pick_keys/index.js +12 -0
- package/all/pick_val_a/index.d.ts +14 -0
- package/all/pick_val_a/index.js +22 -0
- package/all/prev_idx/index.d.ts +8 -0
- package/all/prev_idx/index.js +14 -0
- package/all/promise/index.d.ts +2 -0
- package/all/promise/index.js +1 -0
- package/all/promise_o/index.d.ts +7 -0
- package/all/promise_o/index.js +11 -0
- package/all/promise_timeout/index.d.ts +5 -0
- package/all/promise_timeout/index.js +23 -0
- package/all/prototype_mixin/index.d.ts +8 -0
- package/all/prototype_mixin/index.js +20 -0
- package/all/push/index.d.ts +15 -0
- package/all/push/index.js +17 -0
- package/all/quantile/index.d.ts +5 -0
- package/all/quantile/index.js +16 -0
- package/all/query_str/index.d.ts +27 -0
- package/all/query_str/index.js +46 -0
- package/all/query_str/index.test.ts +43 -0
- package/all/query_str__searchParams/index.d.ts +1 -0
- package/all/query_str__searchParams/index.js +8 -0
- package/all/query_str__searchParams_o/index.d.ts +3 -0
- package/all/query_str__searchParams_o/index.js +11 -0
- package/all/queue/index.d.ts +23 -0
- package/all/queue/index.js +130 -0
- package/all/queue/index.test.ts +207 -0
- package/all/rPad/index.d.ts +1 -0
- package/all/rPad/index.js +11 -0
- package/all/r_val_a/index.d.ts +23 -0
- package/all/r_val_a/index.js +28 -0
- package/all/rad_deg/index.d.ts +5 -0
- package/all/rad_deg/index.js +7 -0
- package/all/random_idx/index.d.ts +8 -0
- package/all/random_idx/index.js +12 -0
- package/all/rank/index.d.ts +10 -0
- package/all/rank/index.js +16 -0
- package/all/rate_limit/index.d.ts +10 -0
- package/all/rate_limit/index.js +49 -0
- package/all/rc_be/index.d.ts +9 -0
- package/all/rc_be/index.js +17 -0
- package/all/rc_be_/index.d.ts +42 -0
- package/all/rc_be_/index.js +62 -0
- package/all/re_/index.d.ts +1 -0
- package/all/re_/index.js +8 -0
- package/all/readable_stream_OR_reader/index.d.ts +7 -0
- package/all/readable_stream_OR_reader/index.js +1 -0
- package/all/reduce/index.d.ts +51 -0
- package/all/reduce/index.js +51 -0
- package/all/regex_indexOf/index.d.ts +10 -0
- package/all/regex_indexOf/index.js +14 -0
- package/all/regex_lastIndexOf/index.d.ts +7 -0
- package/all/regex_lastIndexOf/index.js +25 -0
- package/all/reject/index.d.ts +39 -0
- package/all/reject/index.js +40 -0
- package/all/remove/index.d.ts +16 -0
- package/all/remove/index.js +27 -0
- package/all/remove_idx/index.d.ts +12 -0
- package/all/remove_idx/index.js +14 -0
- package/all/resolver_curry/index.d.ts +6 -0
- package/all/resolver_curry/index.js +1 -0
- package/all/response_o/index.d.ts +10 -0
- package/all/response_o/index.js +17 -0
- package/all/response_pair/index.d.ts +11 -0
- package/all/response_pair/index.js +23 -0
- package/all/response_pair/index.test.ts +30 -0
- package/all/reverse/index.d.ts +16 -0
- package/all/reverse/index.js +16 -0
- package/all/right_and/index.d.ts +14 -0
- package/all/right_and/index.js +15 -0
- package/all/right_or/index.d.ts +14 -0
- package/all/right_or/index.js +16 -0
- package/all/round/index.d.ts +4 -0
- package/all/round/index.js +14 -0
- package/all/run/index.d.ts +8 -0
- package/all/run/index.js +10 -0
- package/all/run_pipe/index.d.ts +61 -0
- package/all/run_pipe/index.js +11 -0
- package/all/run_pipe/index.test.ts +19 -0
- package/all/scalar__matrix__multiply/index.d.ts +7 -0
- package/all/scalar__matrix__multiply/index.js +16 -0
- package/all/searchParams_o/index.d.ts +3 -0
- package/all/searchParams_o/index.js +13 -0
- package/all/seconds/index.d.ts +2 -0
- package/all/seconds/index.js +10 -0
- package/all/segment_point_index/index.d.ts +5 -0
- package/all/segment_point_index/index.js +13 -0
- package/all/selector_splice/index.d.ts +13 -0
- package/all/selector_splice/index.js +17 -0
- package/all/sequence/index.d.ts +2 -0
- package/all/sequence/index.js +8 -0
- package/all/set_member/index.d.ts +6 -0
- package/all/set_member/index.js +1 -0
- package/all/since_time_text/index.d.ts +5 -0
- package/all/since_time_text/index.js +38 -0
- package/all/sleep/index.d.ts +1 -0
- package/all/sleep/index.js +7 -0
- package/all/slice/index.d.ts +38 -0
- package/all/slice/index.js +48 -0
- package/all/slice_arg_a/index.d.ts +28 -0
- package/all/slice_arg_a/index.js +17 -0
- package/all/slice_arg_spread_a/index.d.ts +29 -0
- package/all/slice_arg_spread_a/index.js +15 -0
- package/all/sort/index.d.ts +37 -0
- package/all/sort/index.js +41 -0
- package/all/sort_a/index.d.ts +24 -0
- package/all/sort_a/index.js +28 -0
- package/all/sort_idx_a/index.d.ts +21 -0
- package/all/sort_idx_a/index.js +25 -0
- package/all/sort_idx_o/index.d.ts +29 -0
- package/all/sort_idx_o/index.js +53 -0
- package/all/sort_idx_o/index.test.ts +12 -0
- package/all/sort_val_a/index.d.ts +21 -0
- package/all/sort_val_a/index.js +23 -0
- package/all/sort_val_a__transition_idx_a/index.d.ts +61 -0
- package/all/sort_val_a__transition_idx_a/index.js +108 -0
- package/all/sort_val_a__transition_idx_a/index.test.ts +99 -0
- package/all/sparse_a/index.d.ts +14 -0
- package/all/sparse_a/index.js +19 -0
- package/all/splice/index.d.ts +19 -0
- package/all/splice/index.js +23 -0
- package/all/splice_str/index.d.ts +8 -0
- package/all/splice_str/index.js +20 -0
- package/all/spread/index.d.ts +22 -0
- package/all/spread/index.js +24 -0
- package/all/spread_slice/index.d.ts +10 -0
- package/all/spread_slice/index.js +14 -0
- package/all/stacktrace/index.d.ts +5 -0
- package/all/stacktrace/index.js +42 -0
- package/all/std/index.d.ts +2 -0
- package/all/std/index.js +13 -0
- package/all/sub/index.d.ts +4 -0
- package/all/sub/index.js +10 -0
- package/all/table_txt/index.d.ts +2 -0
- package/all/table_txt/index.js +29 -0
- package/all/table_txt/index.test.ts +17 -0
- package/all/tap/index.d.ts +22 -0
- package/all/tap/index.js +26 -0
- package/all/tf/index.d.ts +2 -0
- package/all/tf/index.js +2 -0
- package/all/throttle/index.d.ts +9 -0
- package/all/throttle/index.js +26 -0
- package/all/tick/index.d.ts +8 -0
- package/all/tick/index.js +23 -0
- package/all/timedout/index.d.ts +2 -0
- package/all/timedout/index.js +9 -0
- package/all/timeout_promise/index.d.ts +10 -0
- package/all/timeout_promise/index.js +12 -0
- package/all/times/index.d.ts +8 -0
- package/all/times/index.js +13 -0
- package/all/timestamp_ms/index.d.ts +6 -0
- package/all/timestamp_ms/index.js +8 -0
- package/all/title_case_/index.d.ts +7 -0
- package/all/title_case_/index.js +24 -0
- package/all/toLocalDateString/index.d.ts +1 -0
- package/all/toLocalDateString/index.js +7 -0
- package/all/toString/index.d.ts +5 -0
- package/all/toString/index.js +5 -0
- package/all/tup/index.d.ts +13 -0
- package/all/tup/index.js +14 -0
- package/all/tuple__o/index.d.ts +7 -0
- package/all/tuple__o/index.js +1 -0
- package/all/tuple__union/index.d.ts +1 -0
- package/all/tuple__union/index.js +1 -0
- package/all/tuple_a_o/index.d.ts +10 -0
- package/all/tuple_a_o/index.js +1 -0
- package/all/unauthorized/index.d.ts +20 -0
- package/all/unauthorized/index.js +43 -0
- package/all/unformat_currency_str/index.d.ts +10 -0
- package/all/unformat_currency_str/index.js +27 -0
- package/all/uniform_random/index.d.ts +2 -0
- package/all/uniform_random/index.js +4 -0
- package/all/uniform_random_float/index.d.ts +2 -0
- package/all/uniform_random_float/index.js +6 -0
- package/all/uniform_random_int/index.d.ts +2 -0
- package/all/uniform_random_int/index.js +6 -0
- package/all/union_a/index.d.ts +14 -0
- package/all/union_a/index.js +18 -0
- package/all/union_by/index.d.ts +11 -0
- package/all/union_by/index.js +28 -0
- package/all/union_set/index.d.ts +14 -0
- package/all/union_set/index.js +18 -0
- package/all/unit_matrix/index.d.ts +1 -0
- package/all/unit_matrix/index.js +11 -0
- package/all/unpick/index.d.ts +11 -0
- package/all/unpick/index.js +28 -0
- package/all/unpick_keys/index.d.ts +8 -0
- package/all/unpick_keys/index.js +12 -0
- package/all/url__join/index.d.ts +5 -0
- package/all/url__join/index.js +24 -0
- package/all/url_basename/index.d.ts +2 -0
- package/all/url_basename/index.js +10 -0
- package/all/url_segment/index.d.ts +2 -0
- package/all/url_segment/index.js +1 -0
- package/all/urn_url/index.d.ts +11 -0
- package/all/urn_url/index.js +15 -0
- package/all/utc_MM_yyyy/index.d.ts +8 -0
- package/all/utc_MM_yyyy/index.js +24 -0
- package/all/utc_M_yyyy/index.d.ts +6 -0
- package/all/utc_M_yyyy/index.js +13 -0
- package/all/utc_m_yy/index.d.ts +5 -0
- package/all/utc_m_yy/index.js +12 -0
- package/all/utc_yyyymmdd/index.d.ts +5 -0
- package/all/utc_yyyymmdd/index.js +13 -0
- package/all/utc_yyyymmddhhmmss/index.d.ts +5 -0
- package/all/utc_yyyymmddhhmmss/index.js +18 -0
- package/all/uuid/index.d.ts +5 -0
- package/all/uuid/index.js +19 -0
- package/all/val/index.d.ts +4 -0
- package/all/val/index.js +8 -0
- package/all/value_key_aa/index.d.ts +10 -0
- package/all/value_key_aa/index.js +20 -0
- package/all/value_key_zip_r/index.d.ts +13 -0
- package/all/value_key_zip_r/index.js +20 -0
- package/all/value_r/index.d.ts +29 -0
- package/all/value_r/index.js +37 -0
- package/all/valueof/index.d.ts +1 -0
- package/all/valueof/index.js +1 -0
- package/all/values/index.d.ts +5 -0
- package/all/values/index.js +5 -0
- package/all/waitfor/index.d.ts +5 -0
- package/all/waitfor/index.js +16 -0
- package/all/waitfor_fibonacci_backoff/index.d.ts +8 -0
- package/all/waitfor_fibonacci_backoff/index.js +27 -0
- package/all/waitfor_val/index.d.ts +6 -0
- package/all/waitfor_val/index.js +20 -0
- package/all/weak_r/index.d.ts +28 -0
- package/all/weak_r/index.js +87 -0
- package/all/week/index.d.ts +1 -0
- package/all/week/index.js +2 -0
- package/all/wrap_a/index.d.ts +32 -0
- package/all/wrap_a/index.js +19 -0
- package/all/wrap_a_item/index.d.ts +5 -0
- package/all/wrap_a_item/index.js +1 -0
- package/all/wrap_aa/index.d.ts +23 -0
- package/all/wrap_aa/index.js +14 -0
- package/all/wrap_aa_item/index.d.ts +5 -0
- package/all/wrap_aa_item/index.js +1 -0
- package/all/wrap_concat/index.d.ts +11 -0
- package/all/wrap_concat/index.js +13 -0
- package/all/year_ms/index.d.ts +5 -0
- package/all/year_ms/index.js +6 -0
- package/all/year_seconds/index.d.ts +2 -0
- package/all/year_seconds/index.js +2 -0
- package/all/yyyymmdd/index.d.ts +2 -0
- package/all/yyyymmdd/index.js +10 -0
- package/all/yyyymmddhhmmss/index.d.ts +2 -0
- package/all/yyyymmddhhmmss/index.js +11 -0
- package/all/zip/index.d.ts +11 -0
- package/all/zip/index.js +17 -0
- package/all/zip__tuple_a/index.d.ts +13 -0
- package/all/zip__tuple_a/index.js +1 -0
- package/all/zip_o/index.d.ts +15 -0
- package/all/zip_o/index.js +22 -0
- package/all/zip_with/index.d.ts +43 -0
- package/all/zip_with/index.js +56 -0
- package/be/index.d.ts +5 -0
- package/be/index.js +5 -0
- package/be/index.test.ts +251 -0
- package/package.json +7 -2
- package/tsconfig.json +11 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Applies `&&` to a chain of properties from `obj`.
|
|
3
|
+
* @param {unknown}obj
|
|
4
|
+
* @param {import('./index.d.ts').andand_key_T}name_a
|
|
5
|
+
* @returns {unknown}
|
|
6
|
+
*/
|
|
7
|
+
export function andand(obj, ...name_a) {
|
|
8
|
+
let out_value = obj
|
|
9
|
+
for (let i = 0; i < name_a.length; i++) {
|
|
10
|
+
const segment = name_a[i]
|
|
11
|
+
return (
|
|
12
|
+
out_value
|
|
13
|
+
? typeof segment === 'function'
|
|
14
|
+
? out_value[segment(out_value)]
|
|
15
|
+
: out_value[segment]
|
|
16
|
+
: null)
|
|
17
|
+
}
|
|
18
|
+
return out_value
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { andand_key_T } from '../andand/index.js'
|
|
2
|
+
/**
|
|
3
|
+
* Returns `andand(obj, name_a) || or_fn(obj, val)`
|
|
4
|
+
*/
|
|
5
|
+
export declare function andand_or<
|
|
6
|
+
Val extends unknown = unknown,
|
|
7
|
+
Out extends unknown = unknown
|
|
8
|
+
>(obj:Val, name_a:andand_key_T<Val>[], or_:andand_or_T<Val, Out>):Out
|
|
9
|
+
export declare type andand_or_T<
|
|
10
|
+
Val extends unknown = unknown,
|
|
11
|
+
Out extends unknown = unknown
|
|
12
|
+
> = (val:Out|null, obj:Val)=>Out
|
|
13
|
+
export { andand_or as andand__or }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { andand } from '../andand/index.js'
|
|
2
|
+
/** @typedef {import('../andand/index.js').andand_key_T}andand_key_T */
|
|
3
|
+
/**
|
|
4
|
+
* Returns `andand(obj, name_a) || or_fn(obj, val)`
|
|
5
|
+
* @param {unknown|null}obj
|
|
6
|
+
* @param {andand_key_T[]}name_a
|
|
7
|
+
* @param {import('./index.d.ts').andand_or_T}or_
|
|
8
|
+
* @returns {unknown}
|
|
9
|
+
*/
|
|
10
|
+
export function andand_or(obj, name_a, or_fn) {
|
|
11
|
+
const val = andand(obj, ...name_a)
|
|
12
|
+
return val || or_fn(val, obj)
|
|
13
|
+
}
|
|
14
|
+
export { andand_or as andand__or }
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { andand_key_T } from '../andand/index.js'
|
|
2
|
+
/**
|
|
3
|
+
* Applies `&&` to a chain of property name or function with return value from `obj`.
|
|
4
|
+
*/
|
|
5
|
+
export declare function andandfn<
|
|
6
|
+
Val extends unknown = unknown,
|
|
7
|
+
Out extends unknown = unknown
|
|
8
|
+
>(obj:Val, ...name_a:andand_key_T<Val>[]):Out
|
|
9
|
+
export declare type andandfn_T<
|
|
10
|
+
Val extends unknown = unknown,
|
|
11
|
+
Out extends unknown = unknown
|
|
12
|
+
> = (obj:Val)=>Out
|
|
13
|
+
export { andandfn as andand__fn, }
|
|
14
|
+
/**
|
|
15
|
+
* Returns a function that calls `andand_(obj, ...name_a)`
|
|
16
|
+
*/
|
|
17
|
+
export declare function andandfn_<
|
|
18
|
+
In extends unknown = unknown,
|
|
19
|
+
Out extends unknown = unknown
|
|
20
|
+
>(
|
|
21
|
+
...name_a:andand_key_T<In>[]
|
|
22
|
+
):andandfn_T<In, Out>
|
|
23
|
+
export {
|
|
24
|
+
andandfn_ as _andand_,
|
|
25
|
+
andandfn_ as _fn__andand__fn,
|
|
26
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** @typedef {import('../andand/index.js').andand_key_T}andand_key_T */
|
|
2
|
+
/**
|
|
3
|
+
* Applies `&&` to a chain of property name or function with return value from `obj`.
|
|
4
|
+
* @param {unknown}obj
|
|
5
|
+
* @param {andand_key_T}name_a
|
|
6
|
+
* @returns {unknown}
|
|
7
|
+
*/
|
|
8
|
+
export function andandfn(obj, ...name_a) {
|
|
9
|
+
let out_value = obj
|
|
10
|
+
for (let i = 0; i < name_a.length; i++) {
|
|
11
|
+
if (!out_value) break
|
|
12
|
+
const segment = name_a[i]
|
|
13
|
+
let in_value =
|
|
14
|
+
out_value
|
|
15
|
+
? out_value[segment]
|
|
16
|
+
: typeof segment === 'function'
|
|
17
|
+
? segment(out_value)
|
|
18
|
+
: undefined
|
|
19
|
+
out_value =
|
|
20
|
+
in_value && typeof in_value === 'function'
|
|
21
|
+
? in_value.call(out_value)
|
|
22
|
+
: in_value
|
|
23
|
+
}
|
|
24
|
+
return out_value
|
|
25
|
+
}
|
|
26
|
+
export { andandfn as andand__fn, }
|
|
27
|
+
/** @typedef {import('../andand/index.d.ts').andand_key_T}andand_key_T */
|
|
28
|
+
/**
|
|
29
|
+
* Returns a function that calls `andand_(obj, ...name_a)`
|
|
30
|
+
* @param {andand_key_T}name_a
|
|
31
|
+
* @returns {import('../andandfn').andandfn_T}
|
|
32
|
+
*/
|
|
33
|
+
export function andandfn_(...name_a) {
|
|
34
|
+
return (obj)=>andandfn(obj, ...name_a)
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
andandfn_ as _andand_,
|
|
38
|
+
andandfn_ as _fn__andand__fn,
|
|
39
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { bind_call_T } from '../bind_call/index.js'
|
|
2
|
+
import type { call_fn_T } from '../call/index.js'
|
|
3
|
+
/**
|
|
4
|
+
* Returns function that applies in_arg_a with ...fn_arg_a
|
|
5
|
+
*/
|
|
6
|
+
export declare function apply_<
|
|
7
|
+
A1 extends unknown[] = unknown[],
|
|
8
|
+
O1 extends unknown = unknown,
|
|
9
|
+
A2 extends unknown[] = unknown[],
|
|
10
|
+
O2 extends unknown = unknown
|
|
11
|
+
>(
|
|
12
|
+
fn:call_fn_T<A2, O2>, in_arg_a?:unknown[]
|
|
13
|
+
):bind_call_T<A1, O1>
|
|
14
|
+
export { apply_ as _apply, }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** @typedef {import('../call/index.d.ts').call_fn_T} */
|
|
2
|
+
/**
|
|
3
|
+
* Returns function that applies in_arg_a with ...fn_arg_a
|
|
4
|
+
* @param {call_fn_T}fn
|
|
5
|
+
* @param {unknown[]}[in_arg_a]
|
|
6
|
+
* @returns {import('../bind_call').bind_call_T}
|
|
7
|
+
*/
|
|
8
|
+
export function apply_(fn, in_arg_a = []) {
|
|
9
|
+
return (...fn_arg_a)=>fn(...[
|
|
10
|
+
...in_arg_a,
|
|
11
|
+
...fn_arg_a
|
|
12
|
+
])
|
|
13
|
+
}
|
|
14
|
+
export { apply_ as _apply, }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { slice_arg_spread_a___ret_T, slice_arg_spread_a__arg__T } from '../slice_arg_spread_a/index.js'
|
|
2
|
+
/**
|
|
3
|
+
* Returns a function that calls fn passing only the first argument.
|
|
4
|
+
*/
|
|
5
|
+
export declare function arg_i0_a<
|
|
6
|
+
In extends unknown[] = unknown[],
|
|
7
|
+
Out extends unknown = unknown
|
|
8
|
+
>(
|
|
9
|
+
fn:slice_arg_spread_a__arg__T<In, Out>
|
|
10
|
+
):slice_arg_spread_a___ret_T<In, Out>
|
|
11
|
+
export { arg_i0_a as arg__0__ }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { slice_arg_spread_a_ } from '../slice_arg_spread_a/index.js'
|
|
2
|
+
/** @typedef {import('../slice_arg_spread_a_/index.js').slice_arg_spread_a__arg__T}slice_arg_spread_a__arg__T */
|
|
3
|
+
/**
|
|
4
|
+
* Returns a function that calls fn passing only the first argument.
|
|
5
|
+
* @param {slice_arg_spread_a__arg__T}fn
|
|
6
|
+
* @returns {import('../slice_arg_spread_a_').slice_arg_spread_a___ret_T}
|
|
7
|
+
*/
|
|
8
|
+
export function arg_i0_a(fn) {
|
|
9
|
+
return slice_arg_spread_a_(fn, 0, 1)
|
|
10
|
+
}
|
|
11
|
+
export { arg_i0_a as arg__0__ }
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
export declare type l1a_T<Val> = [Val]
|
|
2
|
+
export declare type rl1a_T<Val> = readonly [Val]
|
|
3
|
+
export declare type l2a_T<Val> = [...l1a_T<Val>, Val]
|
|
4
|
+
export declare type rl2a_T<Val> = readonly [...l1a_T<Val>, Val]
|
|
5
|
+
export declare type l3a_T<Val> = [...l2a_T<Val>, Val]
|
|
6
|
+
export declare type rl3a_T<Val> = readonly [...l2a_T<Val>, Val]
|
|
7
|
+
export declare type l4a_T<Val> = [...l3a_T<Val>, Val]
|
|
8
|
+
export declare type rl4a_T<Val> = readonly [...l3a_T<Val>, Val]
|
|
9
|
+
export declare type l5a_T<Val> = [...l4a_T<Val>, Val]
|
|
10
|
+
export declare type rl5a_T<Val> = readonly [...l4a_T<Val>, Val]
|
|
11
|
+
export declare type l6a_T<Val> = [...l5a_T<Val>, Val]
|
|
12
|
+
export declare type rl6a_T<Val> = readonly [...l5a_T<Val>, Val]
|
|
13
|
+
export declare type l7a_T<Val> = [...l6a_T<Val>, Val]
|
|
14
|
+
export declare type rl7a_T<Val> = readonly [...l6a_T<Val>, Val]
|
|
15
|
+
export declare type l8a_T<Val> = [...l7a_T<Val>, Val]
|
|
16
|
+
export declare type rl8a_T<Val> = readonly [...l7a_T<Val>, Val]
|
|
17
|
+
export declare type l9a_T<Val> = [...l8a_T<Val>, Val]
|
|
18
|
+
export declare type rl9a_T<Val> = readonly [...l8a_T<Val>, Val]
|
|
19
|
+
export declare type l10a_T<Val> = [...l9a_T<Val>, Val]
|
|
20
|
+
export declare type rl10a_T<Val> = readonly [...l9a_T<Val>, Val]
|
|
21
|
+
export declare type l20a_T<Val> = [...l10a_T<Val>, ...l10a_T<Val>]
|
|
22
|
+
export declare type rl20a_T<Val> = readonly [...l10a_T<Val>, ...l10a_T<Val>]
|
|
23
|
+
export declare type l30a_T<Val> = [...l20a_T<Val>, ...l10a_T<Val>]
|
|
24
|
+
export declare type rl30a_T<Val> = readonly [...l20a_T<Val>, ...l10a_T<Val>]
|
|
25
|
+
export declare type l40a_T<Val> = [...l30a_T<Val>, ...l10a_T<Val>]
|
|
26
|
+
export declare type rl40a_T<Val> = readonly [...l30a_T<Val>, ...l10a_T<Val>]
|
|
27
|
+
export declare type l50a_T<Val> = [...l40a_T<Val>, ...l10a_T<Val>]
|
|
28
|
+
export declare type rl50a_T<Val> = readonly [...l40a_T<Val>, ...l10a_T<Val>]
|
|
29
|
+
export declare type l100a_T<Val> = [...l50a_T<Val>, ...l50a_T<Val>]
|
|
30
|
+
export declare type rl100a_T<Val> = readonly [...l50a_T<Val>, ...l50a_T<Val>]
|
|
31
|
+
export declare type l200a_T<Val> = [...l100a_T<Val>, ...l100a_T<Val>]
|
|
32
|
+
export declare type rl200a_T<Val> = readonly [...l100a_T<Val>, ...l100a_T<Val>]
|
|
33
|
+
export declare type l300a_T<Val> = [...l200a_T<Val>, ...l100a_T<Val>]
|
|
34
|
+
export declare type rl300a_T<Val> = readonly [...l200a_T<Val>, ...l100a_T<Val>]
|
|
35
|
+
export declare type l400a_T<Val> = [...l300a_T<Val>, ...l100a_T<Val>]
|
|
36
|
+
export declare type rl400a_T<Val> = readonly [...l300a_T<Val>, ...l100a_T<Val>]
|
|
37
|
+
export declare type l500a_T<Val> = [...l400a_T<Val>, ...l100a_T<Val>]
|
|
38
|
+
export declare type rl500a_T<Val> = readonly [...l400a_T<Val>, ...l100a_T<Val>]
|
|
39
|
+
export declare type l1000a_T<Val> = [...l500a_T<Val>, ...l500a_T<Val>]
|
|
40
|
+
export declare type rl1000a_T<Val> = readonly [...l500a_T<Val>, ...l500a_T<Val>]
|
|
41
|
+
export declare type a1_T<A extends any[]> = A
|
|
42
|
+
export declare type ra1_T<A extends readonly any[]> = A
|
|
43
|
+
export declare type a2_T<A extends any[]> = a1_T<A>
|
|
44
|
+
export declare type ra2_T<A extends readonly any[]> = ra1_T<A>
|
|
45
|
+
export declare type a3_T<A extends any[]> = a2_T<A>
|
|
46
|
+
export declare type ra3_T<A extends readonly any[]> = ra2_T<A>
|
|
47
|
+
export declare type a4_T<A extends any[]> = a3_T<A>
|
|
48
|
+
export declare type ra4_T<A extends readonly any[]> = ra3_T<A>
|
|
49
|
+
export declare type a5_T<A extends any[]> = a4_T<A>
|
|
50
|
+
export declare type ra5_T<A extends readonly any[]> = ra4_T<A>
|
|
51
|
+
export declare type a6_T<A extends any[]> = a5_T<A>
|
|
52
|
+
export declare type ra6_T<A extends readonly any[]> = ra5_T<A>
|
|
53
|
+
export declare type a7_T<A extends any[]> = a6_T<A>
|
|
54
|
+
export declare type ra7_T<A extends readonly any[]> = ra6_T<A>
|
|
55
|
+
export declare type a8_T<A extends any[]> = a7_T<A>
|
|
56
|
+
export declare type ra8_T<A extends readonly any[]> = ra7_T<A>
|
|
57
|
+
export declare type a9_T<A extends any[]> = a8_T<A>
|
|
58
|
+
export declare type ra9_T<A extends readonly any[]> = ra8_T<A>
|
|
59
|
+
export declare type a10_T<A extends any[]> = a9_T<A>
|
|
60
|
+
export declare type ra10_T<A extends readonly any[]> = ra9_T<A>
|
|
61
|
+
export declare type a20_T<A extends any[]> = a10_T<a10_T<A>>
|
|
62
|
+
export declare type ra20_T<A extends readonly any[]> = ra10_T<ra10_T<A>>
|
|
63
|
+
export declare type a30_T<A extends any[]> = a20_T<a10_T<A>>
|
|
64
|
+
export declare type ra30_T<A extends readonly any[]> = ra20_T<ra10_T<A>>
|
|
65
|
+
export declare type a40_T<A extends any[]> = a30_T<a10_T<A>>
|
|
66
|
+
export declare type ra40_T<A extends readonly any[]> = ra30_T<ra10_T<A>>
|
|
67
|
+
export declare type a50_T<A extends any[]> = a40_T<a10_T<A>>
|
|
68
|
+
export declare type ra50_T<A extends readonly any[]> = ra40_T<ra10_T<A>>
|
|
69
|
+
export declare type a100_T<A extends any[]> = a50_T<a50_T<A>>
|
|
70
|
+
export declare type ra100_T<A extends readonly any[]> = ra50_T<ra50_T<A>>
|
|
71
|
+
export declare type a200_T<A extends any[]> = a100_T<a100_T<A>>
|
|
72
|
+
export declare type ra200_T<A extends readonly any[]> = ra100_T<ra100_T<A>>
|
|
73
|
+
export declare type a300_T<A extends any[]> = a200_T<a100_T<A>>
|
|
74
|
+
export declare type ra300_T<A extends readonly any[]> = ra200_T<ra100_T<A>>
|
|
75
|
+
export declare type a400_T<A extends any[]> = a300_T<a100_T<A>>
|
|
76
|
+
export declare type ra400_T<A extends readonly any[]> = ra300_T<ra100_T<A>>
|
|
77
|
+
export declare type a500_T<A extends any[]> = a400_T<a100_T<A>>
|
|
78
|
+
export declare type ra500_T<A extends readonly any[]> = ra400_T<ra100_T<A>>
|
|
79
|
+
export declare type a1000_T<A extends any[]> = a500_T<a500_T<A>>
|
|
80
|
+
export declare type ra1000_T<A extends readonly any[]> = ra500_T<ra500_T<A>>
|
|
81
|
+
/**
|
|
82
|
+
* `ctx` of values & indices.
|
|
83
|
+
*/
|
|
84
|
+
export interface sort_val_a__transition_a_frame_T<I> {
|
|
85
|
+
idx_a:number[]
|
|
86
|
+
val_a:I[]
|
|
87
|
+
}
|
|
88
|
+
export declare type sort_val_a$transition_a_frame_T<I> = sort_val_a__transition_a_frame_T<I>
|
|
89
|
+
export declare type compact_a_ctx_I<I> = sort_val_a__transition_a_frame_T<I>
|
|
90
|
+
export declare type compact_a1_ctx_I<I> = sort_val_a__transition_a_frame_T<I>
|
|
91
|
+
export declare type compare_1_T<
|
|
92
|
+
Val extends unknown = unknown
|
|
93
|
+
> = (val:Val, idx?:number)=>number
|
|
94
|
+
export declare type compare_T<
|
|
95
|
+
I extends unknown = unknown
|
|
96
|
+
> = (a:I, b:I)=>number
|
|
97
|
+
export declare type is_match__T<
|
|
98
|
+
Val extends unknown = unknown
|
|
99
|
+
> = (in_value:Val, idx:number)=>boolean
|
|
100
|
+
export declare type is_match_fn_T<Val extends unknown = unknown> = is_match__T<Val>
|
|
101
|
+
export declare type _is_match_T<Val extends unknown = unknown> = is_match__T<Val>
|
|
102
|
+
export declare type _is_match_type<Val extends unknown = unknown> = is_match__T<Val>
|
|
103
|
+
export declare type item_key_idx_val_fn_T<
|
|
104
|
+
Val extends unknown = unknown,
|
|
105
|
+
Obj extends Record<string, Val> = Record<string, Val>
|
|
106
|
+
> = (val:Val, item:Obj, key:string|number, idx:number)=>string
|
|
107
|
+
export declare type _item_key_idx_val_T<
|
|
108
|
+
Val extends unknown = unknown,
|
|
109
|
+
Obj extends Record<string, Val> = Record<string, Val>
|
|
110
|
+
> = item_key_idx_val_fn_T<Val, Obj>
|
|
111
|
+
export declare type _item_key_idx_val_type<
|
|
112
|
+
Val extends unknown = unknown,
|
|
113
|
+
Obj extends Record<string, Val> = Record<string, Val>
|
|
114
|
+
> = item_key_idx_val_fn_T<Val, Obj>
|
|
115
|
+
export declare type sort_idx_ctx__T<I extends unknown = unknown> = (
|
|
116
|
+
a:readonly I[])=>sort_idx_o_T<I>
|
|
117
|
+
export declare type sort_idx_ctx_2_T<I extends unknown = unknown> = sort_idx_ctx__T<I>
|
|
118
|
+
export declare type sort_idx_ctx_a1_fn_type<I extends unknown = unknown> = sort_idx_ctx__T<I>
|
|
119
|
+
export declare type fn__a1__ctx__idx__sort<I extends unknown = unknown> = sort_idx_ctx__T<I>
|
|
120
|
+
export interface sort_idx_o_T<I extends unknown = unknown> {
|
|
121
|
+
sort_idx_a:readonly number[]
|
|
122
|
+
sort_val_a:I[]
|
|
123
|
+
}
|
|
124
|
+
export declare type sort_idx_ctx_T<I extends unknown = unknown> = sort_idx_o_T<I>
|
|
125
|
+
export declare type ctx__idx__sort<I extends unknown = unknown> = sort_idx_o_T<I>
|
|
126
|
+
export declare type sort_val_a__transition_a_frame_fn_T<
|
|
127
|
+
I extends unknown = unknown
|
|
128
|
+
> = (in_val_a:readonly I[]|undefined)=>sort_val_a__transition_a_frame_T<I>
|
|
129
|
+
export declare type sort_val_a$transition_a_frame_fn_T<I extends unknown = unknown> =
|
|
130
|
+
sort_val_a__transition_a_frame_T<I>
|
|
131
|
+
export declare type thold_a_compact_ctx__T<I extends unknown = unknown> =
|
|
132
|
+
sort_val_a__transition_a_frame_fn_T<I>
|
|
133
|
+
export declare type thold_a1_compact_ctx_fn_type<I extends unknown = unknown> =
|
|
134
|
+
sort_val_a__transition_a_frame_fn_T<I>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { assign_fn_T } from '../call_assign/index.js'
|
|
2
|
+
/**
|
|
3
|
+
* Assigns to obj array of keys the return value of function in key_a_fn_aa.
|
|
4
|
+
*/
|
|
5
|
+
export declare function assign_fn_key_a<
|
|
6
|
+
I extends unknown = unknown
|
|
7
|
+
>(
|
|
8
|
+
obj:Record<string, I>,
|
|
9
|
+
...key_a_fn_aa:fn_key_a_tuple_T<I>[]
|
|
10
|
+
):Record<string, I>
|
|
11
|
+
export declare type fn_key_a_tuple_T<I> = [string[], assign_fn_T<I>]
|
|
12
|
+
export {
|
|
13
|
+
assign_fn_key_a as assign_fn_key_a1,
|
|
14
|
+
assign_fn_key_a as assign__key_a1__fn,
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** @typedef {import('../assign_fn_key_a/index.js').fn_key_a_tuple_T} */
|
|
2
|
+
/**
|
|
3
|
+
* Assigns to an obj array of keys the return value of function in key_a_fn_aa.
|
|
4
|
+
* @param {object}obj
|
|
5
|
+
* @param {fn_key_a_tuple_T}key_a_fn_aa
|
|
6
|
+
* @returns {object}
|
|
7
|
+
*/
|
|
8
|
+
export function assign_fn_key_a(
|
|
9
|
+
obj,
|
|
10
|
+
...key_a_fn_aa
|
|
11
|
+
) {
|
|
12
|
+
for (let i = 0; i < key_a_fn_aa.length; i++) {
|
|
13
|
+
const [key_a, fn] = key_a_fn_aa[i]
|
|
14
|
+
for (let j = 0; j < key_a.length; j += 1) {
|
|
15
|
+
const key = key_a[j]
|
|
16
|
+
obj[key] = fn(obj[key], obj, key)
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return obj
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
assign_fn_key_a as assign_fn_key_a1,
|
|
23
|
+
assign_fn_key_a as assign__key_a1__fn,
|
|
24
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { assign } from '../assign/index.js'
|
|
2
|
+
/**
|
|
3
|
+
* Assign only if obj is not null
|
|
4
|
+
* @param {object}obj
|
|
5
|
+
* @param {unknown}arg_a
|
|
6
|
+
* @returns {object|undefined}
|
|
7
|
+
*/
|
|
8
|
+
export function assign_unless_null(obj, ...arg_a) {
|
|
9
|
+
return obj == undefined ? undefined : assign(obj, ...arg_a)
|
|
10
|
+
}
|
|
11
|
+
export { assign_unless_null as assign__unless__null }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { test } from 'uvu'
|
|
2
|
+
import { equal } from 'uvu/assert'
|
|
3
|
+
import { async_gen_a_ } from '../async_gen_a/index.js'
|
|
4
|
+
test('async_gen_a_', async ()=>{
|
|
5
|
+
equal(await async_gen_a_(async_gen_([2, 1, 3, 0])), [2, 1, 3, 0])
|
|
6
|
+
})
|
|
7
|
+
async function* async_gen_(a:number[]):AsyncGenerator<number> {
|
|
8
|
+
for (const $ of a) {
|
|
9
|
+
yield $
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
test.run()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function at_date(time:number):Date
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {string}str
|
|
3
|
+
* @returns {string}
|
|
4
|
+
*/
|
|
5
|
+
export function atob(str) {
|
|
6
|
+
return (
|
|
7
|
+
globalThis['window']
|
|
8
|
+
? window.atob(str)
|
|
9
|
+
: Buffer.from(str, 'base64').toString('binary')
|
|
10
|
+
)
|
|
11
|
+
}
|
|
12
|
+
/** @type {typeof import('./index.d.ts').atob_} */
|
|
13
|
+
export const atob_ = ()=>{
|
|
14
|
+
return atob
|
|
15
|
+
}
|
|
16
|
+
export { atob_ as _atob, }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { atob } from '../atob/index.js'
|
|
2
|
+
/** @type {typeof import('./index.d.ts').atob_Uint32Array_} */
|
|
3
|
+
export const atob_Uint32Array_ = (b64)=>{
|
|
4
|
+
const str = atob(b64)
|
|
5
|
+
const { length } = str
|
|
6
|
+
/** @type {Uint32Array} */
|
|
7
|
+
let atob_Uint32Array = new Uint32Array(length)
|
|
8
|
+
for (let i = 0; i < length; i++) {
|
|
9
|
+
atob_Uint32Array[i] = str.charCodeAt(i)
|
|
10
|
+
}
|
|
11
|
+
return atob_Uint32Array
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
atob_Uint32Array_ as _atob_Uint32Array,
|
|
15
|
+
atob_Uint32Array_ as _Uint32Array__atob,
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { argument__error_o_T, error_o_error_T, error_o_T } from '../error_o/index.js'
|
|
2
|
+
import type { HttpError } from '../http_error/index.js'
|
|
3
|
+
export declare const bad_credentials__default__message:string
|
|
4
|
+
export declare function bad_credentials_error_(
|
|
5
|
+
message?:string,
|
|
6
|
+
bad_credentials_error_o?:argument__bad_credentials_error_o_T
|
|
7
|
+
):BadCredentialsError
|
|
8
|
+
/**
|
|
9
|
+
* Throws a Bad Credentials error (HTTP 401)
|
|
10
|
+
* @example
|
|
11
|
+
* bad_credentials__throw(ctx) // Unauthorized
|
|
12
|
+
*/
|
|
13
|
+
export declare function bad_credentials__throw(
|
|
14
|
+
message?:string,
|
|
15
|
+
bad_credentials_error_o?:argument__bad_credentials_error_o_T
|
|
16
|
+
):void
|
|
17
|
+
export declare class BadCredentialsError
|
|
18
|
+
extends HttpError
|
|
19
|
+
implements bad_credentials_error_o_error_T {
|
|
20
|
+
jwt_token?:string
|
|
21
|
+
}
|
|
22
|
+
export interface bad_credentials_error_o_T extends error_o_T {
|
|
23
|
+
jwt_token?:string
|
|
24
|
+
}
|
|
25
|
+
export interface argument__bad_credentials_error_o_T
|
|
26
|
+
extends bad_credentials_error_o_T, argument__error_o_T {
|
|
27
|
+
}
|
|
28
|
+
export interface bad_credentials_error_o_error_T
|
|
29
|
+
extends error_o_error_T, bad_credentials_error_o_T {
|
|
30
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { assign } from '../assign/index.js'
|
|
2
|
+
import { HttpError } from '../http_error/index.js'
|
|
3
|
+
/** @typedef {import('./index.d.ts').argument__bad_credentials_error_o_T}argument__bad_credentials_error_o_T */
|
|
4
|
+
export const bad_credentials__default__message = 'Unauthorized'
|
|
5
|
+
/**
|
|
6
|
+
* @param {string}[message]
|
|
7
|
+
* @param {argument__bad_credentials_error_o_T}[bad_credentials_error_o]
|
|
8
|
+
* @private
|
|
9
|
+
*/
|
|
10
|
+
export function bad_credentials_error_(
|
|
11
|
+
message,
|
|
12
|
+
bad_credentials_error_o
|
|
13
|
+
) {
|
|
14
|
+
return assign(
|
|
15
|
+
new /** @type {any} */BadCredentialsError(
|
|
16
|
+
message ?? bad_credentials__default__message),
|
|
17
|
+
bad_credentials_error_o)
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Throws a Bad Credentials error (HTTP 401)
|
|
21
|
+
* @param {string}[message]
|
|
22
|
+
* @param {argument__bad_credentials_error_o_T}[bad_credentials_error_o]
|
|
23
|
+
* @example
|
|
24
|
+
* bad_credentials__throw(ctx) // Unauthorized
|
|
25
|
+
*/
|
|
26
|
+
export function bad_credentials__throw(
|
|
27
|
+
message,
|
|
28
|
+
bad_credentials_error_o
|
|
29
|
+
) {
|
|
30
|
+
throw bad_credentials_error_(message, bad_credentials_error_o)
|
|
31
|
+
}
|
|
32
|
+
/** @type {typeof import('./index.d.ts').BadCredentialsError} */
|
|
33
|
+
export class BadCredentialsError extends HttpError {
|
|
34
|
+
/**
|
|
35
|
+
* @param {string}[message]
|
|
36
|
+
*/
|
|
37
|
+
constructor(message) {
|
|
38
|
+
super(message)
|
|
39
|
+
this.name = 'BadCredentialsError'
|
|
40
|
+
this.http__message = bad_credentials__default__message
|
|
41
|
+
this.http__status = 401
|
|
42
|
+
if (!this.message) this.message = this.http__message
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { argument__error_o_T, error_o_error_T } from '../error_o/index.js'
|
|
2
|
+
import type { HttpError } from '../http_error/index.js'
|
|
3
|
+
export declare const bad_gateway__default__message:string
|
|
4
|
+
export declare function bad_gateway_error_(
|
|
5
|
+
message?:string,
|
|
6
|
+
error_o?:argument__error_o_T
|
|
7
|
+
):BadGatewayError
|
|
8
|
+
/**
|
|
9
|
+
* Throws a bad_gateway error (HTTP 502)
|
|
10
|
+
* @example
|
|
11
|
+
* bad_gateway__throw('Unauthorized') // Bad Gateway
|
|
12
|
+
*/
|
|
13
|
+
export declare function bad_gateway__throw(
|
|
14
|
+
message?:string,
|
|
15
|
+
error_o?:argument__error_o_T
|
|
16
|
+
):void
|
|
17
|
+
export declare class BadGatewayError
|
|
18
|
+
extends HttpError
|
|
19
|
+
implements error_o_error_T {
|
|
20
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { assign } from '../assign/index.js'
|
|
2
|
+
import { HttpError } from '../http_error/index.js'
|
|
3
|
+
/** @typedef {import('../error_o/index.d.ts').argument__error_o_T} */
|
|
4
|
+
export const bad_gateway__default__message = 'Bad Gateway'
|
|
5
|
+
/**
|
|
6
|
+
* @param {string}[message]
|
|
7
|
+
* @param {argument__error_o_T}[error_o]
|
|
8
|
+
* @returns {BadGatewayError}
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
export function bad_gateway_error_(
|
|
12
|
+
message,
|
|
13
|
+
error_o
|
|
14
|
+
) {
|
|
15
|
+
return assign(
|
|
16
|
+
new /** @type {any} */BadGatewayError(
|
|
17
|
+
message ?? bad_gateway__default__message),
|
|
18
|
+
error_o)
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Throws a bad_gateway error (HTTP 502)
|
|
22
|
+
* @param {string}[message]
|
|
23
|
+
* @param {argument__error_o_T}[error_o]
|
|
24
|
+
* @example
|
|
25
|
+
* bad_gateway__throw(ctx) // Bad Gateway
|
|
26
|
+
*/
|
|
27
|
+
export function bad_gateway__throw(
|
|
28
|
+
message,
|
|
29
|
+
error_o
|
|
30
|
+
) {
|
|
31
|
+
throw bad_gateway_error_(message, error_o)
|
|
32
|
+
}
|
|
33
|
+
/** @type {import('./index.d.ts').BadGatewayError} */
|
|
34
|
+
export class BadGatewayError extends HttpError {
|
|
35
|
+
/**
|
|
36
|
+
* @param {string}[message]
|
|
37
|
+
*/
|
|
38
|
+
constructor(message) {
|
|
39
|
+
super(message)
|
|
40
|
+
this.name = 'BadGatewayError'
|
|
41
|
+
this.http__status = 502
|
|
42
|
+
this.http__message = bad_gateway__default__message
|
|
43
|
+
if (!this.message) this.message = this.http__message
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { argument__error_o_T, error_o_error_T } from '../error_o/index.js'
|
|
2
|
+
import type { HttpError } from '../http_error/index.js'
|
|
3
|
+
export declare const bad_request__default__message:string
|
|
4
|
+
export declare function bad_request_error_(
|
|
5
|
+
message?:string,
|
|
6
|
+
error_o?:argument__error_o_T
|
|
7
|
+
):BadRequestError
|
|
8
|
+
/**
|
|
9
|
+
* Throws a bad_request error (HTTP 400)
|
|
10
|
+
* @example
|
|
11
|
+
* bad_request__throw('Bad Request') // Bad Request
|
|
12
|
+
*/
|
|
13
|
+
export declare function bad_request__throw(
|
|
14
|
+
message?:string,
|
|
15
|
+
error_o?:argument__error_o_T
|
|
16
|
+
):void
|
|
17
|
+
export declare class BadRequestError
|
|
18
|
+
extends HttpError
|
|
19
|
+
implements error_o_error_T {
|
|
20
|
+
}
|