ctx-core 5.1.0 → 5.2.0
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/CACHE_VERSION/index.d.ts +10 -0
- package/all/CACHE_VERSION/index.js +14 -0
- package/all/NODE_ENV/index.d.ts +10 -0
- package/all/NODE_ENV/index.js +14 -0
- package/all/Request/index.js +2 -1
- package/all/Response/index.js +1 -1
- package/all/VERSION/index.d.ts +7 -0
- package/all/VERSION/index.js +12 -0
- package/all/add/index.js +1 -1
- package/all/all_union_a/index.js +1 -1
- package/all/and/index.js +2 -1
- package/all/andand_or/index.js +2 -1
- package/all/andandfn/index.js +4 -3
- package/all/apply/index.js +4 -2
- package/all/arg_a__pick/index.d.ts +6 -0
- package/all/arg_a__pick/index.js +16 -0
- package/all/arg_i0_a/index.js +3 -2
- package/all/assign_fn_key_a/index.js +1 -1
- package/all/bad_gateway/index.js +2 -1
- package/all/bad_request/index.js +1 -1
- package/all/be/index.js +3 -2
- package/all/be_/index.d.ts +38 -3
- package/all/be_/index.js +52 -14
- package/all/be_/index.test.ts +191 -90
- package/all/be_lock_memosig_triple/index.test.ts +6 -6
- package/all/be_memo_pair/index.test.ts +4 -4
- package/all/be_memosig_triple/index.test.ts +6 -6
- package/all/be_sig_triple/index.test.ts +4 -4
- package/all/binary_sort_rank/index.js +2 -1
- package/all/bind_apply/index.js +4 -4
- package/all/bind_call/index.js +1 -1
- package/all/bind_map_apply/index.js +1 -1
- package/all/bind_map_call/index.js +4 -5
- package/all/btoa/index.js +2 -1
- package/all/btoa_Uint32Array/index.js +2 -1
- package/all/call/index.js +2 -1
- package/all/call_assign/index.js +2 -1
- package/all/chain/index.js +3 -2
- package/all/clone_assign_fn_key_a/index.js +2 -1
- package/all/color_hsv_phi_rgb_a/index.js +3 -2
- package/all/color_invert_rgb_a/index.js +3 -2
- package/all/compact_a_ctx/index.js +2 -1
- package/all/compare/index.js +2 -1
- package/all/compose/index.js +5 -5
- package/all/concat_truthy_a/index.js +4 -2
- package/all/console__error/index.js +2 -1
- package/all/crypto__sign/index.js +2 -1
- package/all/currency_str/index.js +2 -1
- package/all/currency_symbol/index.js +2 -1
- package/all/curry/index.js +2 -2
- package/all/date/index.js +1 -1
- package/all/default_arg_a/index.d.ts +11 -0
- package/all/default_arg_a/index.js +41 -0
- package/all/dfn_flag_r/index.d.ts +8 -0
- package/all/dfn_flag_r/index.js +24 -0
- package/all/difference_a/index.js +4 -2
- package/all/each/index.js +2 -1
- package/all/ensure__refresh/index.js +3 -2
- package/all/eq/index.js +5 -3
- package/all/eql_fn_a/index.js +1 -1
- package/all/error__print/index.js +4 -2
- package/all/error_o/index.js +4 -2
- package/all/falsy__none/index.js +2 -1
- package/all/fetch/index.js +2 -1
- package/all/fetch__template_pair/index.js +2 -1
- package/all/fetch_method/index.js +2 -1
- package/all/fetch_response_pair/index.js +4 -2
- package/all/filter/index.js +2 -1
- package/all/filter_o/index.js +3 -2
- package/all/find/index.js +1 -1
- package/all/flag_a/index.d.ts +6 -0
- package/all/flag_a/index.js +13 -0
- package/all/flag_r/index.d.ts +8 -0
- package/all/flag_r/index.js +34 -0
- package/all/flag_r__pick/index.d.ts +11 -0
- package/all/flag_r__pick/index.js +31 -0
- package/all/flag_r_arg_a/index.d.ts +9 -0
- package/all/flag_r_arg_a/index.js +27 -0
- package/all/flag_r_param_name/index.d.ts +9 -0
- package/all/flag_r_param_name/index.js +24 -0
- package/all/flag_regex/index.d.ts +1 -0
- package/all/flag_regex/index.js +1 -0
- package/all/flatten/index.js +7 -7
- package/all/flip/index.js +3 -2
- package/all/head_arg_a/index.js +3 -2
- package/all/headers/index.js +1 -1
- package/all/hex__digest/index.js +2 -1
- package/all/hmac/index.js +2 -1
- package/all/hmac_key/index.js +2 -1
- package/all/html/index.d.ts +0 -1
- package/all/html/index.js +0 -4
- package/all/html_attr/index.d.ts +0 -2
- package/all/html_attr/index.js +0 -2
- package/all/html_attrs/index.d.ts +0 -1
- package/all/html_attrs/index.js +0 -1
- package/all/html_class/index.d.ts +0 -2
- package/all/html_class/index.js +0 -2
- package/all/html_dataset__data_attrs/index.d.ts +0 -1
- package/all/html_dataset__data_attrs/index.js +0 -1
- package/all/html_style/index.d.ts +0 -2
- package/all/html_style/index.js +0 -2
- package/all/html_style__assign/index.d.ts +2 -6
- package/all/html_style__assign/index.js +0 -5
- package/all/html_styles_o/index.d.ts +0 -5
- package/all/html_styles_o/index.js +0 -5
- package/all/http_error/index.js +4 -2
- package/all/idx/index.js +2 -1
- package/all/idx_filter/index.js +2 -2
- package/all/idx_key_r/index.js +5 -4
- package/all/idx_reject/index.js +1 -1
- package/all/idx_sort_a__sort_idx_o/index.js +2 -1
- package/all/import_meta_env/index.d.ts +10 -0
- package/all/import_meta_env/index.js +18 -0
- package/all/index.d.ts +22 -0
- package/all/index.js +22 -0
- package/all/intersection_a/index.js +4 -2
- package/all/intersection_by/index.js +2 -1
- package/all/invalid_state/index.js +2 -2
- package/all/is_development/index.d.ts +6 -0
- package/all/is_development/index.js +9 -0
- package/all/is_production/index.d.ts +9 -0
- package/all/is_production/index.js +12 -0
- package/all/is_staging/index.d.ts +9 -0
- package/all/is_staging/index.js +12 -0
- package/all/item_r_idx/index.js +2 -1
- package/all/js_html/index.d.ts +0 -4
- package/all/js_html/index.js +0 -4
- package/all/left_and/index.js +2 -1
- package/all/left_or/index.js +2 -1
- package/all/line__parse/index.js +2 -3
- package/all/line__transform_stream/index.js +1 -1
- package/all/links_html/index.d.ts +0 -5
- package/all/links_html/index.js +0 -4
- package/all/many_andand/index.js +4 -2
- package/all/many_andand_or/index.js +6 -3
- package/all/map/index.js +1 -1
- package/all/map_andand/index.js +1 -1
- package/all/map_andand_or/index.js +3 -2
- package/all/map_andandfn/index.js +2 -1
- package/all/map_apply/index.js +2 -1
- package/all/map_call/index.js +3 -2
- package/all/map_find/index.js +1 -1
- package/all/map_obj/index.js +3 -2
- package/all/map_obj_andand/index.js +1 -1
- package/all/missing_argument/index.js +3 -2
- package/all/missing_env__throw/index.d.ts +8 -0
- package/all/missing_env__throw/index.js +19 -0
- package/all/money_str/index.js +2 -2
- package/all/neq/index.js +2 -1
- package/all/not/index.js +4 -3
- package/all/not_found/index.js +1 -1
- package/all/nullish__none/index.js +1 -1
- package/all/nullish__not_all/index.js +1 -1
- package/all/number__count/index.js +2 -2
- package/all/o_a_present/index.js +1 -1
- package/all/one_andand/index.js +2 -1
- package/all/one_andand_or/index.js +3 -2
- package/all/or/index.js +2 -3
- package/all/or_null/index.js +2 -1
- package/all/param_dfn/index.d.ts +1 -0
- package/all/param_dfn/index.js +1 -0
- package/all/param_dfn_a_reducer/index.d.ts +9 -0
- package/all/param_dfn_a_reducer/index.js +12 -0
- package/all/param_dfn_split_regex/index.d.ts +1 -0
- package/all/param_dfn_split_regex/index.js +1 -0
- package/all/param_name_r_param_val_a/index.d.ts +11 -0
- package/all/param_name_r_param_val_a/index.js +29 -0
- package/all/param_r/index.d.ts +16 -0
- package/all/param_r/index.js +33 -0
- package/all/param_r/index.test.ts +28 -0
- package/all/parseFloat_andor/index.d.ts +3 -2
- package/all/parseFloat_andor/index.test.ts +1 -1
- package/all/promise_o/index.js +2 -1
- package/all/rank/index.js +2 -1
- package/all/reduce/index.js +1 -1
- package/all/reject/index.js +1 -1
- package/all/response_o/index.js +2 -3
- package/all/right_and/index.js +2 -1
- package/all/right_or/index.js +2 -1
- package/all/slice_arg_a/index.js +3 -2
- package/all/slice_arg_spread_a/index.js +3 -2
- package/all/sort/index.js +1 -1
- package/all/sort_a/index.js +1 -1
- package/all/sort_idx_a/index.js +1 -1
- package/all/sort_idx_o/index.js +5 -4
- package/all/sort_val_a/index.js +1 -1
- package/all/sort_val_a__transition_idx_a/index.js +1 -3
- package/all/spread/index.js +1 -1
- package/all/spread_slice/index.js +2 -1
- package/all/tap/index.js +1 -1
- package/all/tempfile_path/index.test.ts +1 -1
- package/all/unauthorized/index.js +1 -1
- package/all/unformat_currency_str/index.js +1 -2
- package/all/union_a/index.js +3 -2
- package/all/union_by/index.js +1 -1
- package/all/url__join/index.js +2 -1
- package/all/weak_r/index.js +1 -1
- package/all/wrap_a/index.js +8 -5
- package/all/wrap_aa/index.js +3 -2
- package/all/wrap_concat/index.js +4 -3
- package/all/zip_with/index.js +1 -1
- package/cli-args/index.d.ts +14 -0
- package/cli-args/index.js +14 -0
- package/env/index.d.ts +8 -0
- package/env/index.js +8 -0
- package/html/index.d.ts +31 -0
- package/html/index.js +31 -0
- package/package.json +13 -7
package/all/response_o/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/** @typedef {import('../response_o/index.d.ts').response_o_T} */
|
|
2
1
|
/**
|
|
3
|
-
* @param {Response}response
|
|
2
|
+
* @param {import('../Response/index.d.ts').Response}response
|
|
4
3
|
* @returns {response_o_T}
|
|
5
4
|
* @private
|
|
6
5
|
*/
|
|
@@ -14,4 +13,4 @@ export function response_o__new(response) {
|
|
|
14
13
|
type: response.type,
|
|
15
14
|
url: response.url,
|
|
16
15
|
}
|
|
17
|
-
}
|
|
16
|
+
}
|
package/all/right_and/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
import { and } from '../and/index.js'
|
|
2
3
|
import { wrap_a_ } from '../wrap_a/index.js'
|
|
3
4
|
import { wrap_concat } from '../wrap_concat/index.js'
|
|
4
5
|
/**
|
|
5
6
|
* Returns function that returns the first falsy from `value` or `a_unwrap` or the last value of `a_unwrap`.
|
|
6
|
-
* @param {
|
|
7
|
+
* @param {a_nowrap_T}a_unwrap
|
|
7
8
|
* @returns {(val:unknown)=>unknown}
|
|
8
9
|
*/
|
|
9
10
|
export function right_and_(a_unwrap) {
|
package/all/right_or/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
import { concat } from '../concat/index.js'
|
|
2
3
|
import { or } from '../or/index.js'
|
|
3
4
|
import { wrap_a_ } from '../wrap_a/index.js'
|
|
4
5
|
/**
|
|
5
6
|
* Returns function that returns first truthy or last item in `a_unwrap`.
|
|
6
|
-
* @param {
|
|
7
|
+
* @param {a_nowrap_T}a_unwrap
|
|
7
8
|
* @returns {(fn_a_unwrap:unknown)=>unknown}
|
|
8
9
|
*/
|
|
9
10
|
export function right_or_(a_unwrap) {
|
package/all/slice_arg_a/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
import { wrap_a_ } from '../wrap_a/index.js'
|
|
2
3
|
/**
|
|
3
4
|
* Returns a function where the arguments to the wrapped function are sliced with begin_idx & end_idx.
|
|
4
|
-
* @param {
|
|
5
|
+
* @param {slice_arg_a_fn_T}fn
|
|
5
6
|
* @param {number}[begin_idx]
|
|
6
7
|
* @param {number}[end_idx]
|
|
7
|
-
* @returns {
|
|
8
|
+
* @returns {slice_arg_a_T}
|
|
8
9
|
*/
|
|
9
10
|
export function slice_arg_a_(fn, begin_idx, end_idx) {
|
|
10
11
|
return (arg_a)=>fn(wrap_a_(arg_a).slice(begin_idx, end_idx))
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
/**
|
|
2
3
|
* Returns a function that calls fn passing the arguments sliced by slice_arg_a.
|
|
3
|
-
* @param {
|
|
4
|
+
* @param {slice_arg_spread_a__arg__T}fn
|
|
4
5
|
* @param {number}[begin_idx]
|
|
5
6
|
* @param {number}[end_idx]
|
|
6
|
-
* @returns {
|
|
7
|
+
* @returns {slice_arg_spread_a___ret_T}
|
|
7
8
|
*/
|
|
8
9
|
export function slice_arg_spread_a_(fn, begin_idx, end_idx) {
|
|
9
10
|
return (...arg_a)=>fn(arg_a.slice(begin_idx, end_idx))
|
package/all/sort/index.js
CHANGED
package/all/sort_a/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
import { maybe_slice, slice } from '../slice/index.js'
|
|
2
3
|
import { maybe_sort, sort } from '../sort/index.js'
|
|
3
|
-
/** @typedef {import('../array_types/index.d.ts').compare_T} */
|
|
4
4
|
/**
|
|
5
5
|
* Sorts a copy of `a` by the `compare` function.
|
|
6
6
|
* @param {unknown[]}a
|
package/all/sort_idx_a/index.js
CHANGED
package/all/sort_idx_o/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
import { compare_ } from '../compare/index.js'
|
|
2
3
|
import { sort } from '../sort/index.js'
|
|
3
4
|
/**
|
|
4
5
|
* Returns a [sort_idx_o_T](#sort_idx_o_T).
|
|
5
6
|
* @param {unknown[]|undefined}maybe_a
|
|
6
|
-
* @param {
|
|
7
|
-
* @returns {
|
|
7
|
+
* @param {compare_T}[compare]
|
|
8
|
+
* @returns {sort_idx_o_T}
|
|
8
9
|
*/
|
|
9
10
|
export function sort_idx_o_(
|
|
10
11
|
maybe_a,
|
|
@@ -39,8 +40,8 @@ export {
|
|
|
39
40
|
}
|
|
40
41
|
/**
|
|
41
42
|
* Returns function that returns [_sort_idx_ctx](#_sort_idx_ctx).
|
|
42
|
-
* @param {
|
|
43
|
-
* @returns {
|
|
43
|
+
* @param {compare_T}compare
|
|
44
|
+
* @returns {sort_idx_ctx__T}
|
|
44
45
|
*/
|
|
45
46
|
export function sort_idx_o__(compare) {
|
|
46
47
|
return a=>sort_idx_o_(a, compare)
|
package/all/sort_val_a/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
import { eq } from '../eq/index.js'
|
|
2
|
-
/** @typedef {import('../eq/index.d.ts').eq_T} */
|
|
3
|
-
/** @typedef {import('../array_types/index.d.ts').sort_val_a__transition_a_frame_fn_T} */
|
|
4
|
-
/** @typedef {import('../array_types/index.d.ts').sort_val_a__transition_a_frame_T} */
|
|
5
3
|
/**
|
|
6
4
|
* Returns a [sort_val_a__transition_a_frame_T](#sort_val_a__transition_a_frame_T) of presumably sorted items in `val_a` at each index of the new item for each changed item.
|
|
7
5
|
* @param {unknown[]|undefined}sort_val_a
|
package/all/spread/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
import { slice } from '../slice/index.js'
|
|
2
3
|
/**
|
|
3
4
|
* Returns a function that slices the spread argument array with `arg_a`
|
|
4
5
|
* @param {unknown}arg_a
|
|
5
|
-
* @returns {
|
|
6
|
+
* @returns {spread_slice__arg_T}
|
|
6
7
|
*/
|
|
7
8
|
export function spread_slice_(...arg_a) {
|
|
8
9
|
return (...a)=>slice(a, ...arg_a)
|
package/all/tap/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFile, writeFile } from 'fs/promises'
|
|
2
2
|
import { test } from 'uvu'
|
|
3
3
|
import { equal } from 'uvu/assert'
|
|
4
|
-
import { tempfile_path_ } from './index'
|
|
4
|
+
import { tempfile_path_ } from './index.js'
|
|
5
5
|
test('tempfile_', async ()=>{
|
|
6
6
|
const tempfile = await tempfile_path_()
|
|
7
7
|
await writeFile(tempfile, 'the content')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
import { assign } from '../assign/index.js'
|
|
2
3
|
import { HttpError } from '../http_error/index.js'
|
|
3
|
-
/** @typedef {import('../error_o/index.d.ts').argument__error_o_T} */
|
|
4
4
|
export const unauthorized__default__message = 'Unauthorized'
|
|
5
5
|
/**
|
|
6
6
|
* @param {string}[message]
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
import { currency_symbol_ } from '../currency_symbol/index.js'
|
|
2
3
|
import { no_comma_str_ } from '../no_comma_str/index.js'
|
|
3
|
-
/** @typedef {import('../nullish/index.d.ts').nullish} */
|
|
4
|
-
/** @typedef {import('../currency_str/index.d.ts').currency_str__default_params_T} */
|
|
5
4
|
/**
|
|
6
5
|
* Remove currency delimiter & commas from the string representation of amount.
|
|
7
6
|
*/
|
package/all/union_a/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
import { union_set_ } from '../union_set/index.js'
|
|
2
3
|
import { wrap_aa_ } from '../wrap_aa/index.js'
|
|
3
4
|
/**
|
|
4
5
|
* Returns the union of n arrays
|
|
5
6
|
* @see {@link http://www.2ality.com/2015/01/es6-set-operations.html}
|
|
6
|
-
* @param {
|
|
7
|
-
* @returns {
|
|
7
|
+
* @param {a_nowrap_T}aa_nowrap
|
|
8
|
+
* @returns {wrap_aa_item_T[]}
|
|
8
9
|
* @private
|
|
9
10
|
*/
|
|
10
11
|
export function union_a_(aa_nowrap) {
|
package/all/union_by/index.js
CHANGED
package/all/url__join/index.js
CHANGED
package/all/weak_r/index.js
CHANGED
package/all/wrap_a/index.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
const { isArray } = Array
|
|
2
3
|
/**
|
|
3
4
|
* Returns `value` if array & `[value]` otherwise
|
|
4
|
-
* @param {
|
|
5
|
-
* @returns {
|
|
5
|
+
* @param {a_nowrap_T}value
|
|
6
|
+
* @returns {wrap_a_T}
|
|
6
7
|
* @private
|
|
7
8
|
*/
|
|
8
9
|
export function wrap_a_(value) {
|
|
9
|
-
return isArray(value)
|
|
10
|
-
value
|
|
11
|
-
|
|
10
|
+
return isArray(value)
|
|
11
|
+
? value
|
|
12
|
+
: [
|
|
13
|
+
value
|
|
14
|
+
]
|
|
12
15
|
}
|
|
13
16
|
export {
|
|
14
17
|
wrap_a_ as wrap_a1_,
|
package/all/wrap_aa/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
import { wrap_a_ } from '../wrap_a/index.js'
|
|
2
3
|
/**
|
|
3
4
|
* Returns `wrap_aa_T` wrapped as a 2-dimensional array
|
|
4
|
-
* @param {
|
|
5
|
-
* @returns {
|
|
5
|
+
* @param {a_nowrap_T}a_nowrap
|
|
6
|
+
* @returns {wrap_aa_T}
|
|
6
7
|
*/
|
|
7
8
|
export function wrap_aa_(a_nowrap) {
|
|
8
9
|
return wrap_a_(a_nowrap).map(a_nowrap=>wrap_a_(a_nowrap))
|
package/all/wrap_concat/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
/// <reference types="../index.d.ts" />
|
|
1
2
|
import { concat } from '../concat/index.js'
|
|
2
3
|
import { wrap_a_ } from '../wrap_a/index.js'
|
|
3
4
|
import { wrap_aa_ } from '../wrap_aa/index.js'
|
|
4
5
|
/**
|
|
5
6
|
* [wrap](#wrap) `a_unwrap` & [concat](#concat) `rest_a`
|
|
6
|
-
* @param {
|
|
7
|
-
* @param {
|
|
8
|
-
* @returns {
|
|
7
|
+
* @param {a_nowrap_T}a_unwrap
|
|
8
|
+
* @param {wrap_a_T2}rest_a
|
|
9
|
+
* @returns {wrap_a_T}
|
|
9
10
|
*/
|
|
10
11
|
export function wrap_concat(a_unwrap, ...rest_a) {
|
|
11
12
|
return concat(wrap_a_(a_unwrap), ...wrap_aa_(rest_a))
|
package/all/zip_with/index.js
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from '../all/default_arg_a/index.js'
|
|
2
|
+
export * from '../all/dfn_flag_r/index.js'
|
|
3
|
+
export * from '../all/flag_a/index.js'
|
|
4
|
+
export * from '../all/flag_r/index.js'
|
|
5
|
+
export * from '../all/flag_r_arg_a/index.js'
|
|
6
|
+
export * from '../all/flag_r_param_name/index.js'
|
|
7
|
+
export * from '../all/flag_regex/index.js'
|
|
8
|
+
export * from '../all/param_dfn/index.js'
|
|
9
|
+
export * from '../all/param_dfn_a_reducer/index.js'
|
|
10
|
+
export * from '../all/param_dfn_split_regex/index.js'
|
|
11
|
+
export * from '../all/param_name_r_param_val_a/index.js'
|
|
12
|
+
export * from '../all/param_r/index.js'
|
|
13
|
+
export * from '../all/arg_a__pick/index.js'
|
|
14
|
+
export * from '../all/flag_r__pick/index.js'
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from '../all/default_arg_a/index.js'
|
|
2
|
+
export * from '../all/dfn_flag_r/index.js'
|
|
3
|
+
export * from '../all/flag_a/index.js'
|
|
4
|
+
export * from '../all/flag_r/index.js'
|
|
5
|
+
export * from '../all/flag_r_arg_a/index.js'
|
|
6
|
+
export * from '../all/flag_r_param_name/index.js'
|
|
7
|
+
export * from '../all/flag_regex/index.js'
|
|
8
|
+
export * from '../all/param_dfn/index.js'
|
|
9
|
+
export * from '../all/param_dfn_a_reducer/index.js'
|
|
10
|
+
export * from '../all/param_dfn_split_regex/index.js'
|
|
11
|
+
export * from '../all/param_name_r_param_val_a/index.js'
|
|
12
|
+
export * from '../all/param_r/index.js'
|
|
13
|
+
export * from '../all/arg_a__pick/index.js'
|
|
14
|
+
export * from '../all/flag_r__pick/index.js'
|
package/env/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from '../all/CACHE_VERSION/index.js'
|
|
2
|
+
export * from '../all/import_meta_env/index.js'
|
|
3
|
+
export * from '../all/is_development/index.js'
|
|
4
|
+
export * from '../all/is_production/index.js'
|
|
5
|
+
export * from '../all/is_staging/index.js'
|
|
6
|
+
export * from '../all/missing_env__throw/index.js'
|
|
7
|
+
export * from '../all/NODE_ENV/index.js'
|
|
8
|
+
export * from '../all/VERSION/index.js'
|
package/env/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from '../all/CACHE_VERSION/index.js'
|
|
2
|
+
export * from '../all/import_meta_env/index.js'
|
|
3
|
+
export * from '../all/is_development/index.js'
|
|
4
|
+
export * from '../all/is_production/index.js'
|
|
5
|
+
export * from '../all/is_staging/index.js'
|
|
6
|
+
export * from '../all/missing_env__throw/index.js'
|
|
7
|
+
export * from '../all/NODE_ENV/index.js'
|
|
8
|
+
export * from '../all/VERSION/index.js'
|
package/html/index.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
import { html_ } from '../html/index.js'
|
|
2
|
+
import { html_attr_, raw__html_attr_ } from '../all/html_attr/index.js'
|
|
3
|
+
import { html_attrs_ } from '../all/html_attrs/index.js'
|
|
4
|
+
import { html_class_, html_class__ } from '../all/html_class/index.js'
|
|
5
|
+
import { html_dataset__data_attrs_ } from '../all/html_dataset__data_attrs/index.js'
|
|
6
|
+
import { html_style_, html_style__ } from '../all/html_style/index.js'
|
|
7
|
+
import { html_style__assign } from '../all/html_style__assign/index.js'
|
|
8
|
+
import { html_styles_o_ } from '../all/html_styles_o/index.js'
|
|
9
|
+
import { js_html_ } from '../all/js_html/index.js'
|
|
10
|
+
import { links_html_ } from '../all/links_html/index.js'
|
|
1
11
|
export * from '../all/html_attr/index.js'
|
|
2
12
|
export * from '../all/html_attrs/index.js'
|
|
3
13
|
export * from '../all/html_class/index.js'
|
|
@@ -8,3 +18,24 @@ export * from '../all/links_html/index.js'
|
|
|
8
18
|
export * from '../all/html_style/index.js'
|
|
9
19
|
export * from '../all/html_style__assign/index.js'
|
|
10
20
|
export * from '../all/html_styles_o/index.js'
|
|
21
|
+
export { html_ as _html, html_ as html__escape }
|
|
22
|
+
export { html_attr_ as attr_ }
|
|
23
|
+
export { raw__html_attr_ as raw__attr_ }
|
|
24
|
+
export { html_attrs_ as attrs_, html_attrs_ as _attrs }
|
|
25
|
+
export { html_class_ as class_, html_class_ as _class, }
|
|
26
|
+
export { html_class__ as class__, html_class__ as class_2, }
|
|
27
|
+
export { html_dataset__data_attrs_ as dataset__data_attrs_ }
|
|
28
|
+
export { html_style_ as style_, html_style_ as _style, }
|
|
29
|
+
export { html_style__ as style__, html_style__ as style_2, }
|
|
30
|
+
export {
|
|
31
|
+
html_style__assign as assign_style,
|
|
32
|
+
html_style__assign as assign__style,
|
|
33
|
+
html_style__assign as style__assign,
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
html_styles_o_ as _styles_o,
|
|
37
|
+
html_styles_o_ as _OBJ__styles,
|
|
38
|
+
html_styles_o_ as styles_o_
|
|
39
|
+
}
|
|
40
|
+
export { js_html_ as _js_html, js_html_ as _html__js }
|
|
41
|
+
export { links_html_ as _links_html, links_html_ as _html__links }
|
package/html/index.js
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
import { html_ } from '../html/index.js'
|
|
2
|
+
import { html_attr_, raw__html_attr_ } from '../all/html_attr/index.js'
|
|
3
|
+
import { html_attrs_ } from '../all/html_attrs/index.js'
|
|
4
|
+
import { html_class_, html_class__ } from '../all/html_class/index.js'
|
|
5
|
+
import { html_dataset__data_attrs_ } from '../all/html_dataset__data_attrs/index.js'
|
|
6
|
+
import { html_style_, html_style__ } from '../all/html_style/index.js'
|
|
7
|
+
import { html_style__assign } from '../all/html_style__assign/index.js'
|
|
8
|
+
import { html_styles_o_ } from '../all/html_styles_o/index.js'
|
|
9
|
+
import { js_html_ } from '../all/js_html/index.js'
|
|
10
|
+
import { links_html_ } from '../all/links_html/index.js'
|
|
1
11
|
export * from '../all/html_attr/index.js'
|
|
2
12
|
export * from '../all/html_attrs/index.js'
|
|
3
13
|
export * from '../all/html_class/index.js'
|
|
@@ -8,3 +18,24 @@ export * from '../all/links_html/index.js'
|
|
|
8
18
|
export * from '../all/html_style/index.js'
|
|
9
19
|
export * from '../all/html_style__assign/index.js'
|
|
10
20
|
export * from '../all/html_styles_o/index.js'
|
|
21
|
+
export { html_ as _html, html_ as html__escape }
|
|
22
|
+
export { html_attr_ as attr_ }
|
|
23
|
+
export { raw__html_attr_ as raw__attr_ }
|
|
24
|
+
export { html_attrs_ as attrs_, html_attrs_ as _attrs }
|
|
25
|
+
export { html_class_ as class_, html_class_ as _class, }
|
|
26
|
+
export { html_class__ as class__, html_class__ as class_2, }
|
|
27
|
+
export { html_dataset__data_attrs_ as dataset__data_attrs_ }
|
|
28
|
+
export { html_style_ as style_, html_style_ as _style, }
|
|
29
|
+
export { html_style__ as style__, html_style__ as style_2, }
|
|
30
|
+
export {
|
|
31
|
+
html_style__assign as assign_style,
|
|
32
|
+
html_style__assign as assign__style,
|
|
33
|
+
html_style__assign as style__assign,
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
html_styles_o_ as _styles_o,
|
|
37
|
+
html_styles_o_ as _OBJ__styles,
|
|
38
|
+
html_styles_o_ as styles_o_
|
|
39
|
+
}
|
|
40
|
+
export { js_html_ as _js_html, js_html_ as _html__js }
|
|
41
|
+
export { links_html_ as _links_html, links_html_ as _html__links }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ctx-core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "ctx-core core library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ctx-core",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"buffer",
|
|
35
35
|
"chain",
|
|
36
36
|
"class",
|
|
37
|
+
"cli-args",
|
|
37
38
|
"color",
|
|
38
39
|
"combinators",
|
|
39
40
|
"crypto",
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
"date",
|
|
43
44
|
"debounce",
|
|
44
45
|
"deep_equal",
|
|
46
|
+
"env",
|
|
45
47
|
"error",
|
|
46
48
|
"fetch",
|
|
47
49
|
"fibonacci",
|
|
@@ -80,6 +82,7 @@
|
|
|
80
82
|
"./buffer": "./buffer/index.js",
|
|
81
83
|
"./chain": "./chain/index.js",
|
|
82
84
|
"./class": "./class/index.js",
|
|
85
|
+
"./cli-args": "./cli-args/index.js",
|
|
83
86
|
"./color": "./color/index.js",
|
|
84
87
|
"./combinators": "./combinators/index.js",
|
|
85
88
|
"./crypto": "./crypto/index.js",
|
|
@@ -88,6 +91,7 @@
|
|
|
88
91
|
"./date": "./date/index.js",
|
|
89
92
|
"./debounce": "./debounce/index.js",
|
|
90
93
|
"./deep_equal": "./deep_equal/index.js",
|
|
94
|
+
"./env": "./env/index.js",
|
|
91
95
|
"./error": "./error/index.js",
|
|
92
96
|
"./fetch": "./fetch/index.js",
|
|
93
97
|
"./fibonacci": "./fibonacci/index.js",
|
|
@@ -116,11 +120,13 @@
|
|
|
116
120
|
},
|
|
117
121
|
"devDependencies": {
|
|
118
122
|
"@arethetypeswrong/cli": "^0.13.4",
|
|
123
|
+
"@ctx-core/preprocess": "^0.1.0",
|
|
119
124
|
"@size-limit/preset-small-lib": "^11.0.1",
|
|
120
125
|
"@types/node": "^20.10.5",
|
|
121
126
|
"@types/sinon": "^17.0.2",
|
|
122
127
|
"c8": "^8.0.1",
|
|
123
128
|
"check-dts": "^0.7.2",
|
|
129
|
+
"esbuild": "^0.19.10",
|
|
124
130
|
"sinon": "^17.0.1",
|
|
125
131
|
"size-limit": "^11.0.1",
|
|
126
132
|
"tsx": "^4.7.0",
|
|
@@ -152,28 +158,28 @@
|
|
|
152
158
|
"import": {
|
|
153
159
|
"./be": "{ be_ }"
|
|
154
160
|
},
|
|
155
|
-
"limit": "
|
|
161
|
+
"limit": "99 B"
|
|
156
162
|
},
|
|
157
163
|
{
|
|
158
164
|
"name": "be_ ctx_",
|
|
159
165
|
"import": {
|
|
160
166
|
"./be": "{ be_, ctx_ }"
|
|
161
167
|
},
|
|
162
|
-
"limit": "
|
|
168
|
+
"limit": "131 B"
|
|
163
169
|
},
|
|
164
170
|
{
|
|
165
171
|
"name": "be_ ns_ctx_",
|
|
166
172
|
"import": {
|
|
167
173
|
"./be": "{ be_, ctx_, ns_ctx_ }"
|
|
168
174
|
},
|
|
169
|
-
"limit": "
|
|
175
|
+
"limit": "190 B"
|
|
170
176
|
},
|
|
171
177
|
{
|
|
172
178
|
"name": "be_ ctx_ ns_ctx_",
|
|
173
179
|
"import": {
|
|
174
180
|
"./be": "{ be_, ctx_, ns_ctx_ }"
|
|
175
181
|
},
|
|
176
|
-
"limit": "
|
|
182
|
+
"limit": "190 B"
|
|
177
183
|
},
|
|
178
184
|
{
|
|
179
185
|
"name": "memo_",
|
|
@@ -194,14 +200,14 @@
|
|
|
194
200
|
"import": {
|
|
195
201
|
"./rmemo": "{ sig_, memo_, be_, ctx_ }"
|
|
196
202
|
},
|
|
197
|
-
"limit": "
|
|
203
|
+
"limit": "456 B"
|
|
198
204
|
},
|
|
199
205
|
{
|
|
200
206
|
"name": "memo_ sig_ be_ ctx_ be_memo_pair_ be_sig_triple_",
|
|
201
207
|
"import": {
|
|
202
208
|
"./rmemo": "{ sig_, memo_, be_, ctx_, be_memo_pair_, be_sig_triple_ }"
|
|
203
209
|
},
|
|
204
|
-
"limit": "
|
|
210
|
+
"limit": "549 B"
|
|
205
211
|
}
|
|
206
212
|
],
|
|
207
213
|
"scripts": {
|