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.
Files changed (136) hide show
  1. package/.github/workflows/ci.yml +3 -3
  2. package/com/cpp/{module.f.cjs → module.f.mjs} +22 -21
  3. package/com/cpp/{test.f.cjs → test.f.mjs} +2 -2
  4. package/com/cpp/testlib.f.mjs +9 -0
  5. package/com/cs/{module.f.cjs → module.f.mjs} +20 -19
  6. package/com/cs/{test.f.cjs → test.f.mjs} +2 -2
  7. package/com/cs/testlib.f.mjs +10 -0
  8. package/com/rust/{module.f.cjs → module.f.mjs} +37 -35
  9. package/com/rust/{test.f.cjs → test.f.mjs} +2 -2
  10. package/com/rust/testlib.f.mjs +10 -0
  11. package/com/test/{build.f.cjs → build.f.mjs} +6 -6
  12. package/com/test/{build.cjs → build.mjs} +16 -8
  13. package/com/types/{module.f.cjs → module.f.mjs} +9 -8
  14. package/com/types/{testlib.f.cjs → testlib.f.mjs} +2 -2
  15. package/commonjs/build/{module.f.cjs → module.f.mjs} +23 -23
  16. package/commonjs/build/{test.f.cjs → test.f.mjs} +13 -12
  17. package/commonjs/module/function/{module.f.cjs → module.f.mjs} +4 -4
  18. package/commonjs/module/{module.f.cjs → module.f.mjs} +3 -5
  19. package/commonjs/module.f.mjs +11 -0
  20. package/commonjs/{module.cjs → module.mjs} +8 -6
  21. package/commonjs/package/dependencies/{module.f.cjs → module.f.mjs} +5 -5
  22. package/commonjs/package/dependencies/{test.f.cjs → test.f.mjs} +2 -2
  23. package/commonjs/package/{module.f.cjs → module.f.mjs} +7 -6
  24. package/commonjs/package/{test.f.cjs → test.f.mjs} +2 -2
  25. package/commonjs/path/{module.f.cjs → module.f.mjs} +15 -14
  26. package/commonjs/path/{test.f.cjs → test.f.mjs} +16 -14
  27. package/commonjs/{test.cjs → test.mjs} +4 -4
  28. package/dev/{module.f.cjs → module.f.mjs} +1 -1
  29. package/dev/module.mjs +20 -13
  30. package/dev/test/{module.f.cjs → module.f.mjs} +21 -9
  31. package/dev/{test.f.cjs → test.f.mjs} +1 -1
  32. package/dev/test.mjs +1 -1
  33. package/djs/{module.f.cjs → module.f.mjs} +18 -15
  34. package/djs/parser/{module.f.cjs → module.f.mjs} +29 -28
  35. package/djs/parser/{test.f.cjs → test.f.mjs} +10 -8
  36. package/djs/{test.f.cjs → test.f.mjs} +7 -5
  37. package/djs/tokenizer/{module.f.cjs → module.f.mjs} +19 -18
  38. package/djs/tokenizer/{test.f.cjs → test.f.mjs} +9 -7
  39. package/fsc/{module.f.cjs → module.f.mjs} +17 -16
  40. package/fsc/{test.f.cjs → test.f.mjs} +6 -4
  41. package/fsm/{module.f.cjs → module.f.mjs} +28 -24
  42. package/fsm/{test.f.cjs → test.f.mjs} +13 -9
  43. package/html/{module.f.cjs → module.f.mjs} +16 -13
  44. package/html/{test.f.cjs → test.f.mjs} +5 -5
  45. package/index.f.mjs +83 -0
  46. package/issues/README.md +15 -0
  47. package/js/tokenizer/{module.f.cjs → module.f.mjs} +52 -51
  48. package/js/tokenizer/{test.f.cjs → test.f.mjs} +9 -7
  49. package/json/{module.f.cjs → module.f.mjs} +18 -17
  50. package/json/parser/{module.f.cjs → module.f.mjs} +27 -26
  51. package/json/parser/{test.f.cjs → test.f.mjs} +10 -8
  52. package/json/serializer/{module.f.cjs → module.f.mjs} +12 -12
  53. package/json/serializer/{test.f.cjs → test.f.mjs} +4 -3
  54. package/json/{test.f.cjs → test.f.mjs} +6 -4
  55. package/json/tokenizer/{module.f.cjs → module.f.mjs} +16 -15
  56. package/json/tokenizer/{test.f.cjs → test.f.mjs} +9 -7
  57. package/jsr.json +2 -2
  58. package/nodejs/version/main.mjs +5 -0
  59. package/nodejs/version/{module.f.cjs → module.f.mjs} +2 -2
  60. package/nodejs/version/{test.f.cjs → test.f.mjs} +5 -5
  61. package/package.json +4 -4
  62. package/prime_field/{module.f.cjs → module.f.mjs} +6 -5
  63. package/prime_field/{test.f.cjs → test.f.mjs} +3 -2
  64. package/secp/{module.f.cjs → module.f.mjs} +7 -6
  65. package/secp/{test.f.cjs → test.f.mjs} +6 -6
  66. package/sha2/{module.f.cjs → module.f.mjs} +5 -5
  67. package/sha2/{test.f.cjs → test.f.mjs} +7 -6
  68. package/text/ascii/{module.f.cjs → module.f.mjs} +3 -3
  69. package/text/ascii/test.f.mjs +14 -0
  70. package/text/{module.f.cjs → module.f.mjs} +6 -6
  71. package/text/sgr/{module.f.cjs → module.f.mjs} +1 -1
  72. package/text/{test.f.cjs → test.f.mjs} +5 -4
  73. package/text/utf16/{module.f.cjs → module.f.mjs} +16 -14
  74. package/text/utf16/{test.f.cjs → test.f.mjs} +7 -6
  75. package/text/utf8/{module.f.cjs → module.f.mjs} +11 -11
  76. package/text/utf8/{test.f.cjs → test.f.mjs} +6 -5
  77. package/tsconfig.json +2 -2
  78. package/types/array/{module.f.cjs → module.f.mjs} +2 -2
  79. package/types/array/{test.f.cjs → test.f.mjs} +5 -4
  80. package/types/bigfloat/{module.f.cjs → module.f.mjs} +3 -3
  81. package/types/bigfloat/{test.f.cjs → test.f.mjs} +3 -2
  82. package/types/bigint/{module.f.cjs → module.f.mjs} +8 -7
  83. package/types/bigint/{test.f.cjs → test.f.mjs} +3 -2
  84. package/types/btree/find/{module.f.cjs → module.f.mjs} +12 -12
  85. package/types/btree/find/{test.f.cjs → test.f.mjs} +11 -9
  86. package/types/btree/{module.f.cjs → module.f.mjs} +7 -12
  87. package/types/btree/remove/{module.f.cjs → module.f.mjs} +17 -16
  88. package/types/btree/remove/{test.f.cjs → test.f.mjs} +9 -7
  89. package/types/btree/set/{module.f.cjs → module.f.mjs} +9 -9
  90. package/types/btree/set/{test.f.cjs → test.f.mjs} +8 -6
  91. package/types/btree/{test.f.cjs → test.f.mjs} +23 -20
  92. package/types/btree/types/{module.f.cjs → module.f.mjs} +1 -1
  93. package/types/byte_set/{module.f.cjs → module.f.mjs} +8 -7
  94. package/types/byte_set/{test.f.cjs → test.f.mjs} +8 -7
  95. package/types/function/compare/{module.f.cjs → module.f.mjs} +2 -2
  96. package/types/function/compare/{test.f.cjs → test.f.mjs} +3 -2
  97. package/types/function/{module.f.cjs → module.f.mjs} +1 -5
  98. package/types/function/operator/{module.f.cjs → module.f.mjs} +1 -1
  99. package/types/function/{test.f.cjs → test.f.mjs} +4 -2
  100. package/types/list/{module.f.cjs → module.f.mjs} +12 -12
  101. package/types/list/{test.f.cjs → test.f.mjs} +13 -11
  102. package/types/map/{module.f.cjs → module.f.mjs} +21 -18
  103. package/types/map/{test.f.cjs → test.f.mjs} +5 -4
  104. package/types/nibble_set/{module.f.cjs → module.f.mjs} +1 -1
  105. package/types/nibble_set/{test.f.cjs → test.f.mjs} +4 -3
  106. package/types/nullable/{module.f.cjs → module.f.mjs} +1 -1
  107. package/types/nullable/{test.f.cjs → test.f.mjs} +2 -2
  108. package/types/number/module.f.mjs +26 -0
  109. package/types/number/{test.f.cjs → test.f.mjs} +3 -2
  110. package/types/object/{module.f.cjs → module.f.mjs} +6 -6
  111. package/types/object/{test.f.cjs → test.f.mjs} +2 -2
  112. package/types/range/{module.f.cjs → module.f.mjs} +1 -1
  113. package/types/range/{test.f.cjs → test.f.mjs} +2 -2
  114. package/types/range_map/{module.f.cjs → module.f.mjs} +16 -15
  115. package/types/range_map/{test.f.cjs → test.f.mjs} +35 -33
  116. package/types/result/{module.f.cjs → module.f.mjs} +1 -1
  117. package/types/result/{module.cjs → module.mjs} +3 -3
  118. package/types/sorted_list/{module.f.cjs → module.f.mjs} +11 -10
  119. package/types/sorted_list/{test.f.cjs → test.f.mjs} +14 -10
  120. package/types/sorted_set/{module.f.cjs → module.f.mjs} +8 -7
  121. package/types/sorted_set/{test.f.cjs → test.f.mjs} +14 -10
  122. package/types/string/{module.f.cjs → module.f.mjs} +8 -7
  123. package/types/string/{test.f.cjs → test.f.mjs} +5 -3
  124. package/types/string_set/{module.f.cjs → module.f.mjs} +15 -10
  125. package/types/string_set/{test.f.cjs → test.f.mjs} +2 -2
  126. package/com/cpp/testlib.f.cjs +0 -6
  127. package/com/cs/testlib.f.cjs +0 -6
  128. package/com/module.f.cjs +0 -6
  129. package/com/rust/testlib.f.cjs +0 -6
  130. package/commonjs/module.f.cjs +0 -20
  131. package/index.f.cjs +0 -40
  132. package/nodejs/module.f.cjs +0 -4
  133. package/nodejs/version/main.cjs +0 -6
  134. package/text/ascii/test.f.cjs +0 -12
  135. package/types/number/module.f.cjs +0 -24
  136. 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
- }
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- /** @readonly */
3
- version: require('./version/module.f.cjs')
4
- }
@@ -1,6 +0,0 @@
1
- const { version } = require('./module.f.cjs')
2
-
3
- const child_process = require('node:child_process')
4
- const fs = require('node:fs')
5
-
6
- version({ child_process, fs })
@@ -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
- }
@@ -1,9 +0,0 @@
1
- <html>
2
- <body>
3
- Hello world!
4
- <div id="x"></div>
5
- <script>
6
- document.getElementById('x').innerText = JSON.stringify({a:0,4294967294:1,4294967295:2})
7
- </script>
8
- </body>
9
- </html>