functionalscript 0.0.591 → 0.1.593
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/.github/workflows/ci.yml +3 -3
- package/com/cpp/{module.f.cjs → module.f.mjs} +22 -21
- package/com/cpp/{test.f.cjs → test.f.mjs} +2 -2
- package/com/cpp/testlib.f.mjs +9 -0
- package/com/cs/{module.f.cjs → module.f.mjs} +20 -19
- package/com/cs/{test.f.cjs → test.f.mjs} +2 -2
- package/com/cs/testlib.f.mjs +10 -0
- package/com/rust/{module.f.cjs → module.f.mjs} +37 -35
- package/com/rust/{test.f.cjs → test.f.mjs} +2 -2
- package/com/rust/testlib.f.mjs +10 -0
- package/com/test/{build.f.cjs → build.f.mjs} +6 -6
- package/com/test/{build.cjs → build.mjs} +16 -8
- package/com/types/{module.f.cjs → module.f.mjs} +9 -8
- package/com/types/{testlib.f.cjs → testlib.f.mjs} +2 -2
- package/commonjs/build/{module.f.cjs → module.f.mjs} +23 -23
- package/commonjs/build/{test.f.cjs → test.f.mjs} +13 -12
- package/commonjs/module/function/{module.f.cjs → module.f.mjs} +4 -4
- package/commonjs/module/{module.f.cjs → module.f.mjs} +3 -5
- package/commonjs/module.f.mjs +11 -0
- package/commonjs/{module.cjs → module.mjs} +8 -6
- package/commonjs/package/dependencies/{module.f.cjs → module.f.mjs} +5 -5
- package/commonjs/package/dependencies/{test.f.cjs → test.f.mjs} +2 -2
- package/commonjs/package/{module.f.cjs → module.f.mjs} +7 -6
- package/commonjs/package/{test.f.cjs → test.f.mjs} +2 -2
- package/commonjs/path/{module.f.cjs → module.f.mjs} +15 -14
- package/commonjs/path/{test.f.cjs → test.f.mjs} +16 -14
- package/commonjs/{test.cjs → test.mjs} +4 -4
- package/dev/{module.f.cjs → module.f.mjs} +1 -1
- package/dev/module.mjs +20 -13
- package/dev/test/{module.f.cjs → module.f.mjs} +21 -9
- package/dev/{test.f.cjs → test.f.mjs} +1 -1
- package/dev/test.mjs +1 -1
- package/djs/{module.f.cjs → module.f.mjs} +18 -15
- package/djs/parser/{module.f.cjs → module.f.mjs} +29 -28
- package/djs/parser/{test.f.cjs → test.f.mjs} +10 -8
- package/djs/{test.f.cjs → test.f.mjs} +7 -5
- package/djs/tokenizer/{module.f.cjs → module.f.mjs} +19 -18
- package/djs/tokenizer/{test.f.cjs → test.f.mjs} +9 -7
- package/fsc/{module.f.cjs → module.f.mjs} +17 -16
- package/fsc/{test.f.cjs → test.f.mjs} +6 -4
- package/fsm/{module.f.cjs → module.f.mjs} +28 -24
- package/fsm/{test.f.cjs → test.f.mjs} +13 -9
- package/html/{module.f.cjs → module.f.mjs} +16 -13
- package/html/{test.f.cjs → test.f.mjs} +5 -5
- package/index.f.mjs +83 -0
- package/issues/README.md +15 -0
- package/js/tokenizer/{module.f.cjs → module.f.mjs} +52 -51
- package/js/tokenizer/{test.f.cjs → test.f.mjs} +9 -7
- package/json/{module.f.cjs → module.f.mjs} +18 -17
- package/json/parser/{module.f.cjs → module.f.mjs} +27 -26
- package/json/parser/{test.f.cjs → test.f.mjs} +10 -8
- package/json/serializer/{module.f.cjs → module.f.mjs} +12 -12
- package/json/serializer/{test.f.cjs → test.f.mjs} +4 -3
- package/json/{test.f.cjs → test.f.mjs} +6 -4
- package/json/tokenizer/{module.f.cjs → module.f.mjs} +16 -15
- package/json/tokenizer/{test.f.cjs → test.f.mjs} +9 -7
- package/jsr.json +2 -2
- package/nodejs/version/main.mjs +5 -0
- package/nodejs/version/{module.f.cjs → module.f.mjs} +2 -2
- package/nodejs/version/{test.f.cjs → test.f.mjs} +5 -5
- package/package.json +4 -4
- package/prime_field/{module.f.cjs → module.f.mjs} +6 -5
- package/prime_field/{test.f.cjs → test.f.mjs} +3 -2
- package/secp/{module.f.cjs → module.f.mjs} +7 -6
- package/secp/{test.f.cjs → test.f.mjs} +6 -6
- package/sha2/{module.f.cjs → module.f.mjs} +5 -5
- package/sha2/{test.f.cjs → test.f.mjs} +7 -6
- package/text/ascii/{module.f.cjs → module.f.mjs} +3 -3
- package/text/ascii/test.f.mjs +14 -0
- package/text/{module.f.cjs → module.f.mjs} +6 -6
- package/text/sgr/{module.f.cjs → module.f.mjs} +1 -1
- package/text/{test.f.cjs → test.f.mjs} +5 -4
- package/text/utf16/{module.f.cjs → module.f.mjs} +16 -14
- package/text/utf16/{test.f.cjs → test.f.mjs} +7 -6
- package/text/utf8/{module.f.cjs → module.f.mjs} +11 -11
- package/text/utf8/{test.f.cjs → test.f.mjs} +6 -5
- package/tsconfig.json +2 -2
- package/types/array/{module.f.cjs → module.f.mjs} +2 -2
- package/types/array/{test.f.cjs → test.f.mjs} +5 -4
- package/types/bigfloat/{module.f.cjs → module.f.mjs} +3 -3
- package/types/bigfloat/{test.f.cjs → test.f.mjs} +3 -2
- package/types/bigint/{module.f.cjs → module.f.mjs} +8 -7
- package/types/bigint/{test.f.cjs → test.f.mjs} +3 -2
- package/types/btree/find/{module.f.cjs → module.f.mjs} +12 -12
- package/types/btree/find/{test.f.cjs → test.f.mjs} +11 -9
- package/types/btree/{module.f.cjs → module.f.mjs} +7 -12
- package/types/btree/remove/{module.f.cjs → module.f.mjs} +17 -16
- package/types/btree/remove/{test.f.cjs → test.f.mjs} +9 -7
- package/types/btree/set/{module.f.cjs → module.f.mjs} +9 -9
- package/types/btree/set/{test.f.cjs → test.f.mjs} +8 -6
- package/types/btree/{test.f.cjs → test.f.mjs} +23 -20
- package/types/btree/types/{module.f.cjs → module.f.mjs} +1 -1
- package/types/byte_set/{module.f.cjs → module.f.mjs} +8 -7
- package/types/byte_set/{test.f.cjs → test.f.mjs} +8 -7
- package/types/function/compare/{module.f.cjs → module.f.mjs} +2 -2
- package/types/function/compare/{test.f.cjs → test.f.mjs} +3 -2
- package/types/function/{module.f.cjs → module.f.mjs} +1 -5
- package/types/function/operator/{module.f.cjs → module.f.mjs} +1 -1
- package/types/function/{test.f.cjs → test.f.mjs} +4 -2
- package/types/list/{module.f.cjs → module.f.mjs} +12 -12
- package/types/list/{test.f.cjs → test.f.mjs} +13 -11
- package/types/map/{module.f.cjs → module.f.mjs} +21 -18
- package/types/map/{test.f.cjs → test.f.mjs} +5 -4
- package/types/nibble_set/{module.f.cjs → module.f.mjs} +1 -1
- package/types/nibble_set/{test.f.cjs → test.f.mjs} +4 -3
- package/types/nullable/{module.f.cjs → module.f.mjs} +1 -1
- package/types/nullable/{test.f.cjs → test.f.mjs} +2 -2
- package/types/number/module.f.mjs +26 -0
- package/types/number/{test.f.cjs → test.f.mjs} +3 -2
- package/types/object/{module.f.cjs → module.f.mjs} +6 -6
- package/types/object/{test.f.cjs → test.f.mjs} +2 -2
- package/types/range/{module.f.cjs → module.f.mjs} +1 -1
- package/types/range/{test.f.cjs → test.f.mjs} +2 -2
- package/types/range_map/{module.f.cjs → module.f.mjs} +16 -15
- package/types/range_map/{test.f.cjs → test.f.mjs} +35 -33
- package/types/result/{module.f.cjs → module.f.mjs} +1 -1
- package/types/result/{module.cjs → module.mjs} +3 -3
- package/types/sorted_list/{module.f.cjs → module.f.mjs} +11 -10
- package/types/sorted_list/{test.f.cjs → test.f.mjs} +14 -10
- package/types/sorted_set/{module.f.cjs → module.f.mjs} +8 -7
- package/types/sorted_set/{test.f.cjs → test.f.mjs} +14 -10
- package/types/string/{module.f.cjs → module.f.mjs} +8 -7
- package/types/string/{test.f.cjs → test.f.mjs} +5 -3
- package/types/string_set/{module.f.cjs → module.f.mjs} +15 -10
- package/types/string_set/{test.f.cjs → test.f.mjs} +2 -2
- package/com/cpp/testlib.f.cjs +0 -6
- package/com/cs/testlib.f.cjs +0 -6
- package/com/module.f.cjs +0 -6
- package/com/rust/testlib.f.cjs +0 -6
- package/commonjs/module.f.cjs +0 -20
- package/index.f.cjs +0 -40
- package/nodejs/module.f.cjs +0 -4
- package/nodejs/version/main.cjs +0 -6
- package/text/ascii/test.f.cjs +0 -12
- package/types/number/module.f.cjs +0 -24
- package/types/object/test.html +0 -9
package/index.f.cjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// Generated file.
|
|
2
|
-
module.exports = {
|
|
3
|
-
com: require("./com/module.f.cjs"),
|
|
4
|
-
commonjs: require("./commonjs/module.f.cjs"),
|
|
5
|
-
dev: require("./dev/module.f.cjs"),
|
|
6
|
-
djs: require("./djs/module.f.cjs"),
|
|
7
|
-
fsc: require("./fsc/module.f.cjs"),
|
|
8
|
-
fsm: require("./fsm/module.f.cjs"),
|
|
9
|
-
html: require("./html/module.f.cjs"),
|
|
10
|
-
js: {
|
|
11
|
-
tokenizer: require("./js/tokenizer/module.f.cjs"),
|
|
12
|
-
},
|
|
13
|
-
json: require("./json/module.f.cjs"),
|
|
14
|
-
nodejs: require("./nodejs/module.f.cjs"),
|
|
15
|
-
prime_field: require("./prime_field/module.f.cjs"),
|
|
16
|
-
secp: require("./secp/module.f.cjs"),
|
|
17
|
-
sha2: require("./sha2/module.f.cjs"),
|
|
18
|
-
text: require("./text/module.f.cjs"),
|
|
19
|
-
types: {
|
|
20
|
-
array: require("./types/array/module.f.cjs"),
|
|
21
|
-
bigfloat: require("./types/bigfloat/module.f.cjs"),
|
|
22
|
-
bigint: require("./types/bigint/module.f.cjs"),
|
|
23
|
-
btree: require("./types/btree/module.f.cjs"),
|
|
24
|
-
byte_set: require("./types/byte_set/module.f.cjs"),
|
|
25
|
-
function: require("./types/function/module.f.cjs"),
|
|
26
|
-
list: require("./types/list/module.f.cjs"),
|
|
27
|
-
map: require("./types/map/module.f.cjs"),
|
|
28
|
-
nibble_set: require("./types/nibble_set/module.f.cjs"),
|
|
29
|
-
nullable: require("./types/nullable/module.f.cjs"),
|
|
30
|
-
number: require("./types/number/module.f.cjs"),
|
|
31
|
-
object: require("./types/object/module.f.cjs"),
|
|
32
|
-
range: require("./types/range/module.f.cjs"),
|
|
33
|
-
range_map: require("./types/range_map/module.f.cjs"),
|
|
34
|
-
result: require("./types/result/module.f.cjs"),
|
|
35
|
-
sorted_list: require("./types/sorted_list/module.f.cjs"),
|
|
36
|
-
sorted_set: require("./types/sorted_set/module.f.cjs"),
|
|
37
|
-
string: require("./types/string/module.f.cjs"),
|
|
38
|
-
string_set: require("./types/string_set/module.f.cjs"),
|
|
39
|
-
},
|
|
40
|
-
}
|
package/nodejs/module.f.cjs
DELETED
package/nodejs/version/main.cjs
DELETED
package/text/ascii/test.f.cjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const { range } = require('./module.f.cjs')
|
|
2
|
-
const json = require('../../json/module.f.cjs')
|
|
3
|
-
const { sort } = require('../../types/object/module.f.cjs')
|
|
4
|
-
|
|
5
|
-
const stringify = json.stringify(sort)
|
|
6
|
-
|
|
7
|
-
module.exports = {
|
|
8
|
-
range: () => {
|
|
9
|
-
const r = stringify(range("A"))
|
|
10
|
-
if (r !== '[65,65]') { throw r }
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const { reduce } = require('../list/module.f.cjs')
|
|
2
|
-
const { addition, min: minOp, max: maxOp } = require('../function/operator/module.f.cjs')
|
|
3
|
-
const compare = require('../function/compare/module.f.cjs')
|
|
4
|
-
const { unsafeCmp } = compare
|
|
5
|
-
|
|
6
|
-
const sum = reduce(addition)(0)
|
|
7
|
-
|
|
8
|
-
const min = reduce(minOp)(null)
|
|
9
|
-
|
|
10
|
-
const max = reduce(maxOp)(null)
|
|
11
|
-
|
|
12
|
-
/** @type {(a: number) => (b: number) => compare.Sign} */
|
|
13
|
-
const cmp = unsafeCmp
|
|
14
|
-
|
|
15
|
-
module.exports = {
|
|
16
|
-
/** @readonly */
|
|
17
|
-
sum,
|
|
18
|
-
/** @readonly */
|
|
19
|
-
min,
|
|
20
|
-
/** @readonly */
|
|
21
|
-
max,
|
|
22
|
-
/** @readonly */
|
|
23
|
-
cmp,
|
|
24
|
-
}
|