ctx-core 5.18.4 → 5.18.6
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/eq/index.d.ts +3 -3
- package/all/eq/index.js +1 -1
- package/all/eql/index.d.ts +3 -2
- package/all/neq/index.d.ts +2 -1
- package/all/neql/index.d.ts +2 -1
- package/all/neql/index.js +2 -1
- package/package.json +249 -248
package/all/eq/index.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import type { a_nowrap_T } from '../a_nowrap/index.js'
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns `==` operator to all values in `a_nowrap`.
|
|
4
4
|
*/
|
|
5
|
-
export declare function eq<
|
|
5
|
+
export declare function eq<I>(a_nowrap:a_nowrap_T<I>):boolean
|
|
6
6
|
export declare type eq_T<I> = (a_nowrap:I)=>boolean
|
|
7
7
|
/**
|
|
8
8
|
* Returns function that returns `==` operator to all values in `in_value_aS`.
|
|
9
9
|
*/
|
|
10
|
-
export declare function eq_<
|
|
10
|
+
export declare function eq_<I>(a_nowrap:a_nowrap_T<I>):eq_fn_T<I>
|
|
11
11
|
export {
|
|
12
12
|
eq_ as _eq,
|
|
13
13
|
eq_ as _fn__eq,
|
|
14
14
|
}
|
|
15
|
-
export declare type eq_fn_T<
|
|
15
|
+
export declare type eq_fn_T<I> = (value:I)=>boolean
|
package/all/eq/index.js
CHANGED
package/all/eql/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { a_nowrap_T } from '../a_nowrap/index.js'
|
|
1
2
|
/**
|
|
2
3
|
* Returns `===` operator to all values in `a_unwrap`.
|
|
3
4
|
*/
|
|
@@ -5,12 +6,12 @@ export declare function eql<I>(a_unwrap:I):boolean
|
|
|
5
6
|
/**
|
|
6
7
|
* Returns function that returns `===` operator to all values in `in_value_a`.
|
|
7
8
|
*/
|
|
8
|
-
export declare function eql_<
|
|
9
|
+
export declare function eql_<I>(in_value_a:a_nowrap_T<I>):(val:I)=>boolean
|
|
9
10
|
export { eql_ as _eql, }
|
|
10
11
|
/**
|
|
11
12
|
* Returns function that applies `===` operator to `compare` & `value`.
|
|
12
13
|
*/
|
|
13
|
-
export declare function eql_2<
|
|
14
|
+
export declare function eql_2<I>(compare:I):(val:I)=>boolean
|
|
14
15
|
export {
|
|
15
16
|
eql_2 as _eql_fn,
|
|
16
17
|
eql_2 as _fn__eql,
|
package/all/neq/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { a_nowrap_T } from '../a_nowrap/index.js'
|
|
1
2
|
import type { wrap_a_T } from '../wrap_a/index.js'
|
|
2
3
|
/**
|
|
3
4
|
* Returns `!=` operator to all values in `in_value_a`.
|
|
@@ -6,5 +7,5 @@ export declare function neq<I>(in_value_a:wrap_a_T<I>):boolean
|
|
|
6
7
|
/**
|
|
7
8
|
* Return function that Returns `!=` operator to all values in `in_value_a`.
|
|
8
9
|
*/
|
|
9
|
-
export declare function neq_<I>(in_value_a:I
|
|
10
|
+
export declare function neq_<I>(in_value_a:a_nowrap_T<I>):(val:I)=>boolean
|
|
10
11
|
export { neq_ as _neq, }
|
package/all/neql/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { a_nowrap_T } from '../a_nowrap/index.js'
|
|
1
2
|
/**
|
|
2
3
|
* Returns `!==` operator to all values in `a_unwrap`.
|
|
3
4
|
*/
|
|
@@ -7,5 +8,5 @@ export declare function neql<I>(a_unwrap:I):boolean
|
|
|
7
8
|
* @param in_value_a
|
|
8
9
|
* @returns {function(*=): boolean}
|
|
9
10
|
*/
|
|
10
|
-
export declare function neql_<
|
|
11
|
+
export declare function neql_<I>(in_value_a:a_nowrap_T<I>):(value:I)=>boolean
|
|
11
12
|
export { neql_ as _neql, }
|
package/all/neql/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { wrap_a_ } from '../wrap_a/index.js'
|
|
2
|
+
import { wrap_concat } from '../wrap_concat/index.js'
|
|
2
3
|
/**
|
|
3
4
|
* Returns `!==` operator to all values in `a_unwrap`.
|
|
4
5
|
* @param {unknown}a_unwrap
|
|
@@ -19,6 +20,6 @@ export function neql(a_unwrap) {
|
|
|
19
20
|
* @returns {(value:unknown)=>boolean}
|
|
20
21
|
*/
|
|
21
22
|
export function neql_(in_value_a) {
|
|
22
|
-
return
|
|
23
|
+
return value=>neql(wrap_concat(in_value_a, value))
|
|
23
24
|
}
|
|
24
25
|
export { neql_ as _neql, }
|
package/package.json
CHANGED
|
@@ -1,250 +1,251 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
2
|
+
"name": "ctx-core",
|
|
3
|
+
"version": "5.18.6",
|
|
4
|
+
"description": "ctx-core core library",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ctx-core",
|
|
7
|
+
"array",
|
|
8
|
+
"combinators",
|
|
9
|
+
"function",
|
|
10
|
+
"object",
|
|
11
|
+
"set"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/ctx-core/ctx-core#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/ctx-core/ctx-core/issues"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/ctx-core/ctx-core.git"
|
|
20
|
+
},
|
|
21
|
+
"license": "Apache-2.0",
|
|
22
|
+
"author": "Brian Takita",
|
|
23
|
+
"type": "module",
|
|
24
|
+
"files": [
|
|
25
|
+
"*.d.ts",
|
|
26
|
+
"*.js",
|
|
27
|
+
"*.json",
|
|
28
|
+
"all",
|
|
29
|
+
"array",
|
|
30
|
+
"atob",
|
|
31
|
+
"base16",
|
|
32
|
+
"be",
|
|
33
|
+
"btoa",
|
|
34
|
+
"buffer",
|
|
35
|
+
"chain",
|
|
36
|
+
"class",
|
|
37
|
+
"cli-args",
|
|
38
|
+
"color",
|
|
39
|
+
"combinators",
|
|
40
|
+
"crypto",
|
|
41
|
+
"currency",
|
|
42
|
+
"data",
|
|
43
|
+
"date",
|
|
44
|
+
"debounce",
|
|
45
|
+
"deep_equal",
|
|
46
|
+
"env",
|
|
47
|
+
"error",
|
|
48
|
+
"falsy",
|
|
49
|
+
"fetch",
|
|
50
|
+
"fibonacci",
|
|
51
|
+
"fs",
|
|
52
|
+
"function",
|
|
53
|
+
"functional",
|
|
54
|
+
"html",
|
|
55
|
+
"http",
|
|
56
|
+
"math",
|
|
57
|
+
"matrix",
|
|
58
|
+
"nullish",
|
|
59
|
+
"number",
|
|
60
|
+
"object",
|
|
61
|
+
"promise",
|
|
62
|
+
"queue",
|
|
63
|
+
"random",
|
|
64
|
+
"regex",
|
|
65
|
+
"rmemo",
|
|
66
|
+
"run",
|
|
67
|
+
"set",
|
|
68
|
+
"sleep",
|
|
69
|
+
"string",
|
|
70
|
+
"tempfile",
|
|
71
|
+
"test",
|
|
72
|
+
"time",
|
|
73
|
+
"tuple",
|
|
74
|
+
"types",
|
|
75
|
+
"uri",
|
|
76
|
+
"uuid",
|
|
77
|
+
"package.json"
|
|
78
|
+
],
|
|
79
|
+
"types": "./src/index.d.ts",
|
|
80
|
+
"exports": {
|
|
81
|
+
".": "./index.js",
|
|
82
|
+
"./all": "./all/index.js",
|
|
83
|
+
"./array": "./array/index.js",
|
|
84
|
+
"./atob": "./atob/index.js",
|
|
85
|
+
"./base16": "./base16/index.js",
|
|
86
|
+
"./be": "./be/index.js",
|
|
87
|
+
"./btoa": "./btoa/index.js",
|
|
88
|
+
"./buffer": "./buffer/index.js",
|
|
89
|
+
"./chain": "./chain/index.js",
|
|
90
|
+
"./class": "./class/index.js",
|
|
91
|
+
"./cli-args": "./cli-args/index.js",
|
|
92
|
+
"./color": "./color/index.js",
|
|
93
|
+
"./combinators": "./combinators/index.js",
|
|
94
|
+
"./crypto": "./crypto/index.js",
|
|
95
|
+
"./currency": "./currency/index.js",
|
|
96
|
+
"./data": "./data/index.js",
|
|
97
|
+
"./date": "./date/index.js",
|
|
98
|
+
"./debounce": "./debounce/index.js",
|
|
99
|
+
"./deep_equal": "./deep_equal/index.js",
|
|
100
|
+
"./env": "./env/index.js",
|
|
101
|
+
"./error": "./error/index.js",
|
|
102
|
+
"./falsy": "./falsy/index.js",
|
|
103
|
+
"./fetch": "./fetch/index.js",
|
|
104
|
+
"./fibonacci": "./fibonacci/index.js",
|
|
105
|
+
"./fs": "./fs/index.js",
|
|
106
|
+
"./function": "./function/index.js",
|
|
107
|
+
"./functional": "./functional/index.js",
|
|
108
|
+
"./html": "./html/index.js",
|
|
109
|
+
"./http": "./http/index.js",
|
|
110
|
+
"./math": "./math/index.js",
|
|
111
|
+
"./matrix": "./matrix/index.js",
|
|
112
|
+
"./nullish": "./nullish/index.js",
|
|
113
|
+
"./number": "./number/index.js",
|
|
114
|
+
"./object": "./object/index.js",
|
|
115
|
+
"./promise": "./promise/index.js",
|
|
116
|
+
"./queue": "./queue/index.js",
|
|
117
|
+
"./random": "./random/index.js",
|
|
118
|
+
"./regex": "./regex/index.js",
|
|
119
|
+
"./rmemo": "./rmemo/index.js",
|
|
120
|
+
"./run": "./run/index.js",
|
|
121
|
+
"./set": "./set/index.js",
|
|
122
|
+
"./sleep": "./sleep/index.js",
|
|
123
|
+
"./string": "./string/index.js",
|
|
124
|
+
"./tempfile": "./tempfile/index.js",
|
|
125
|
+
"./test": "./test/index.js",
|
|
126
|
+
"./time": "./time/index.js",
|
|
127
|
+
"./tuple": "./tuple/index.js",
|
|
128
|
+
"./types": "./types/index.js",
|
|
129
|
+
"./uri": "./uri/index.js",
|
|
130
|
+
"./uuid": "./uuid/index.js",
|
|
131
|
+
"./package.json": "./package.json"
|
|
132
|
+
},
|
|
133
|
+
"scripts": {
|
|
134
|
+
"build": ":",
|
|
135
|
+
"clean": ":",
|
|
136
|
+
"exec": "$@",
|
|
137
|
+
"prepublishOnly": "pnpm clean && pnpm build && pnpm test",
|
|
138
|
+
"test": "pnpm run /^test:/",
|
|
139
|
+
"test:size": "size-limit",
|
|
140
|
+
"test:type": "check-dts",
|
|
141
|
+
"test:unit": "NODE_OPTIONS=--loader=esmock tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
|
|
142
|
+
"disable:test:coverage": "c8 pnpm test:unit"
|
|
143
|
+
},
|
|
144
|
+
"devDependencies": {
|
|
145
|
+
"@arethetypeswrong/cli": "^0.13.5",
|
|
146
|
+
"@ctx-core/preprocess": "^0.1.0",
|
|
147
|
+
"@size-limit/preset-small-lib": "^11.0.1",
|
|
148
|
+
"@types/node": "^20.11.2",
|
|
149
|
+
"@types/sinon": "^17.0.3",
|
|
150
|
+
"c8": "^9.1.0",
|
|
151
|
+
"check-dts": "^0.7.2",
|
|
152
|
+
"esbuild": "^0.19.11",
|
|
153
|
+
"esmock": "^2.6.2",
|
|
154
|
+
"sinon": "^17.0.1",
|
|
155
|
+
"size-limit": "^11.0.1",
|
|
156
|
+
"tsx": "^4.7.0",
|
|
157
|
+
"typescript": "next",
|
|
158
|
+
"uvu": "^0.5.6"
|
|
159
|
+
},
|
|
160
|
+
"publishConfig": {
|
|
161
|
+
"access": "public",
|
|
162
|
+
"cache": "~/.npm"
|
|
163
|
+
},
|
|
164
|
+
"sideEffects": false,
|
|
165
|
+
"size-limit": [
|
|
166
|
+
{
|
|
167
|
+
"name": "ctx_",
|
|
168
|
+
"import": {
|
|
169
|
+
"./be": "{ ctx_ }"
|
|
170
|
+
},
|
|
171
|
+
"limit": "33 B"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "ns_ctx_",
|
|
175
|
+
"import": {
|
|
176
|
+
"./be": "{ ns_ctx_ }"
|
|
177
|
+
},
|
|
178
|
+
"limit": "85 B"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "be_",
|
|
182
|
+
"import": {
|
|
183
|
+
"./be": "{ be_ }"
|
|
184
|
+
},
|
|
185
|
+
"limit": "99 B"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "be_ ctx_",
|
|
189
|
+
"import": {
|
|
190
|
+
"./be": "{ be_, ctx_ }"
|
|
191
|
+
},
|
|
192
|
+
"limit": "131 B"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "be_ ns_ctx_",
|
|
196
|
+
"import": {
|
|
197
|
+
"./be": "{ be_, ctx_, ns_ctx_ }"
|
|
198
|
+
},
|
|
199
|
+
"limit": "190 B"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "be_ ctx_ ns_ctx_",
|
|
203
|
+
"import": {
|
|
204
|
+
"./be": "{ be_, ctx_, ns_ctx_ }"
|
|
205
|
+
},
|
|
206
|
+
"limit": "190 B"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "memo_",
|
|
210
|
+
"import": {
|
|
211
|
+
"./rmemo": "{ memo_ }"
|
|
212
|
+
},
|
|
213
|
+
"limit": "352 B"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "memo_ sig_",
|
|
217
|
+
"import": {
|
|
218
|
+
"./rmemo": "{ sig_, memo_ }"
|
|
219
|
+
},
|
|
220
|
+
"limit": "370 B"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "memo_ sig_ be_ ctx_",
|
|
224
|
+
"import": {
|
|
225
|
+
"./rmemo": "{ sig_, memo_, be_, ctx_ }"
|
|
226
|
+
},
|
|
227
|
+
"limit": "471 B"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "memo_ sig_ be_ ctx_ be_memo_pair_ be_sig_triple_",
|
|
231
|
+
"import": {
|
|
232
|
+
"./rmemo": "{ sig_, memo_, be_, ctx_, be_memo_pair_, be_sig_triple_ }"
|
|
233
|
+
},
|
|
234
|
+
"limit": "576 B"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "uuid",
|
|
238
|
+
"import": {
|
|
239
|
+
"./uuid": "{ uuid_ }"
|
|
240
|
+
},
|
|
241
|
+
"limit": "39 B"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "short uuid",
|
|
245
|
+
"import": {
|
|
246
|
+
"./uuid": "{ short_uuid_ }"
|
|
247
|
+
},
|
|
248
|
+
"limit": "116 B"
|
|
249
|
+
}
|
|
250
|
+
]
|
|
250
251
|
}
|