functionalscript 0.1.607 → 0.1.608
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/dev/module.mjs +9 -32
- package/jsr.json +1 -1
- package/package.json +1 -2
- package/index.f.d.mts +0 -83
- package/index.f.mjs +0 -83
package/dev/module.mjs
CHANGED
|
@@ -179,36 +179,13 @@ const codeAdd = i => p => m => {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
export const index = async () => {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
jj,
|
|
192
|
-
JSON.stringify({ ...jsr_json, exports }, null, 2))
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
//
|
|
196
|
-
/** @type {FolderMap} */
|
|
197
|
-
let m = {}
|
|
198
|
-
for (const k in await loadModuleMap()) {
|
|
199
|
-
const [, ...s] = k.split('/')
|
|
200
|
-
switch (s[s.length - 1]) {
|
|
201
|
-
case 'module.f.cjs': case 'module.f.mjs': case 'module.f.js':
|
|
202
|
-
m = folderMapAdd(m)(s)
|
|
203
|
-
break
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
const [e, i] = codeAdd(indent)('')(m)
|
|
207
|
-
let s =
|
|
208
|
-
'// Generated file.\n' +
|
|
209
|
-
i +
|
|
210
|
-
'export default {\n' +
|
|
211
|
-
e +
|
|
212
|
-
'}\n'
|
|
213
|
-
await writeFile('index.f.mjs', s)
|
|
182
|
+
const jj = './jsr.json'
|
|
183
|
+
const n = '/module.f.mjs'
|
|
184
|
+
const jsr_json = JSON.parse(await readFile(jj, { encoding: 'utf8' }))
|
|
185
|
+
const list = Object.keys(await loadModuleMap()).filter(v => v.endsWith(n))
|
|
186
|
+
const exportsA = list.map(v => [v.replace(n, ''), v])
|
|
187
|
+
const exports = Object.fromEntries(exportsA)
|
|
188
|
+
await writeFile(
|
|
189
|
+
jj,
|
|
190
|
+
JSON.stringify({ ...jsr_json, exports }, null, 2))
|
|
214
191
|
}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "functionalscript",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.608",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "FunctionalScript is a functional subset of JavaScript",
|
|
6
|
-
"main": "index.f.mjs",
|
|
7
6
|
"scripts": {
|
|
8
7
|
"tscp": "tsc --declaration --emitDeclarationOnly --noEmit false",
|
|
9
8
|
"tsc": "tsc",
|
package/index.f.d.mts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export namespace com {
|
|
3
|
-
export { com$cpp as cpp };
|
|
4
|
-
export { com$cs as cs };
|
|
5
|
-
export { com$rust as rust };
|
|
6
|
-
export { com$types as types };
|
|
7
|
-
}
|
|
8
|
-
export { commonjs };
|
|
9
|
-
export { dev };
|
|
10
|
-
export { djs };
|
|
11
|
-
export { fsc };
|
|
12
|
-
export { fsm };
|
|
13
|
-
export { html };
|
|
14
|
-
export namespace js {
|
|
15
|
-
export { js$tokenizer as tokenizer };
|
|
16
|
-
}
|
|
17
|
-
export { json };
|
|
18
|
-
export namespace nodejs {
|
|
19
|
-
export { nodejs$version as version };
|
|
20
|
-
}
|
|
21
|
-
export { prime_field };
|
|
22
|
-
export { secp };
|
|
23
|
-
export { sha2 };
|
|
24
|
-
export { text };
|
|
25
|
-
export namespace types {
|
|
26
|
-
export { types$array as array };
|
|
27
|
-
export { types$bigfloat as bigfloat };
|
|
28
|
-
export { types$bigint as bigint };
|
|
29
|
-
export { types$btree as btree };
|
|
30
|
-
export { types$byte_set as byte_set };
|
|
31
|
-
export { types$function as function };
|
|
32
|
-
export { types$list as list };
|
|
33
|
-
export { types$map as map };
|
|
34
|
-
export { types$nibble_set as nibble_set };
|
|
35
|
-
export { types$nullable as nullable };
|
|
36
|
-
export { types$number as number };
|
|
37
|
-
export { types$object as object };
|
|
38
|
-
export { types$range as range };
|
|
39
|
-
export { types$range_map as range_map };
|
|
40
|
-
export { types$result as result };
|
|
41
|
-
export { types$sorted_list as sorted_list };
|
|
42
|
-
export { types$sorted_set as sorted_set };
|
|
43
|
-
export { types$string as string };
|
|
44
|
-
export { types$string_set as string_set };
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export default _default;
|
|
48
|
-
import com$cpp from './com/cpp/module.f.mjs';
|
|
49
|
-
import com$cs from './com/cs/module.f.mjs';
|
|
50
|
-
import com$rust from './com/rust/module.f.mjs';
|
|
51
|
-
import com$types from './com/types/module.f.mjs';
|
|
52
|
-
import commonjs from './commonjs/module.f.mjs';
|
|
53
|
-
import dev from './dev/module.f.mjs';
|
|
54
|
-
import djs from './djs/module.f.mjs';
|
|
55
|
-
import fsc from './fsc/module.f.mjs';
|
|
56
|
-
import fsm from './fsm/module.f.mjs';
|
|
57
|
-
import html from './html/module.f.mjs';
|
|
58
|
-
import js$tokenizer from './js/tokenizer/module.f.mjs';
|
|
59
|
-
import json from './json/module.f.mjs';
|
|
60
|
-
import nodejs$version from './nodejs/version/module.f.mjs';
|
|
61
|
-
import prime_field from './prime_field/module.f.mjs';
|
|
62
|
-
import secp from './secp/module.f.mjs';
|
|
63
|
-
import sha2 from './sha2/module.f.mjs';
|
|
64
|
-
import text from './text/module.f.mjs';
|
|
65
|
-
import types$array from './types/array/module.f.mjs';
|
|
66
|
-
import types$bigfloat from './types/bigfloat/module.f.mjs';
|
|
67
|
-
import types$bigint from './types/bigint/module.f.mjs';
|
|
68
|
-
import types$btree from './types/btree/module.f.mjs';
|
|
69
|
-
import types$byte_set from './types/byte_set/module.f.mjs';
|
|
70
|
-
import types$function from './types/function/module.f.mjs';
|
|
71
|
-
import types$list from './types/list/module.f.mjs';
|
|
72
|
-
import types$map from './types/map/module.f.mjs';
|
|
73
|
-
import types$nibble_set from './types/nibble_set/module.f.mjs';
|
|
74
|
-
import types$nullable from './types/nullable/module.f.mjs';
|
|
75
|
-
import types$number from './types/number/module.f.mjs';
|
|
76
|
-
import types$object from './types/object/module.f.mjs';
|
|
77
|
-
import types$range from './types/range/module.f.mjs';
|
|
78
|
-
import types$range_map from './types/range_map/module.f.mjs';
|
|
79
|
-
import types$result from './types/result/module.f.mjs';
|
|
80
|
-
import types$sorted_list from './types/sorted_list/module.f.mjs';
|
|
81
|
-
import types$sorted_set from './types/sorted_set/module.f.mjs';
|
|
82
|
-
import types$string from './types/string/module.f.mjs';
|
|
83
|
-
import types$string_set from './types/string_set/module.f.mjs';
|
package/index.f.mjs
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
// Generated file.
|
|
2
|
-
import com$cpp from './com/cpp/module.f.mjs'
|
|
3
|
-
import com$cs from './com/cs/module.f.mjs'
|
|
4
|
-
import com$rust from './com/rust/module.f.mjs'
|
|
5
|
-
import com$types from './com/types/module.f.mjs'
|
|
6
|
-
import commonjs from './commonjs/module.f.mjs'
|
|
7
|
-
import dev from './dev/module.f.mjs'
|
|
8
|
-
import djs from './djs/module.f.mjs'
|
|
9
|
-
import fsc from './fsc/module.f.mjs'
|
|
10
|
-
import fsm from './fsm/module.f.mjs'
|
|
11
|
-
import html from './html/module.f.mjs'
|
|
12
|
-
import js$tokenizer from './js/tokenizer/module.f.mjs'
|
|
13
|
-
import json from './json/module.f.mjs'
|
|
14
|
-
import nodejs$version from './nodejs/version/module.f.mjs'
|
|
15
|
-
import prime_field from './prime_field/module.f.mjs'
|
|
16
|
-
import secp from './secp/module.f.mjs'
|
|
17
|
-
import sha2 from './sha2/module.f.mjs'
|
|
18
|
-
import text from './text/module.f.mjs'
|
|
19
|
-
import types$array from './types/array/module.f.mjs'
|
|
20
|
-
import types$bigfloat from './types/bigfloat/module.f.mjs'
|
|
21
|
-
import types$bigint from './types/bigint/module.f.mjs'
|
|
22
|
-
import types$btree from './types/btree/module.f.mjs'
|
|
23
|
-
import types$byte_set from './types/byte_set/module.f.mjs'
|
|
24
|
-
import types$function from './types/function/module.f.mjs'
|
|
25
|
-
import types$list from './types/list/module.f.mjs'
|
|
26
|
-
import types$map from './types/map/module.f.mjs'
|
|
27
|
-
import types$nibble_set from './types/nibble_set/module.f.mjs'
|
|
28
|
-
import types$nullable from './types/nullable/module.f.mjs'
|
|
29
|
-
import types$number from './types/number/module.f.mjs'
|
|
30
|
-
import types$object from './types/object/module.f.mjs'
|
|
31
|
-
import types$range from './types/range/module.f.mjs'
|
|
32
|
-
import types$range_map from './types/range_map/module.f.mjs'
|
|
33
|
-
import types$result from './types/result/module.f.mjs'
|
|
34
|
-
import types$sorted_list from './types/sorted_list/module.f.mjs'
|
|
35
|
-
import types$sorted_set from './types/sorted_set/module.f.mjs'
|
|
36
|
-
import types$string from './types/string/module.f.mjs'
|
|
37
|
-
import types$string_set from './types/string_set/module.f.mjs'
|
|
38
|
-
export default {
|
|
39
|
-
com: {
|
|
40
|
-
cpp: com$cpp,
|
|
41
|
-
cs: com$cs,
|
|
42
|
-
rust: com$rust,
|
|
43
|
-
types: com$types,
|
|
44
|
-
},
|
|
45
|
-
commonjs: commonjs,
|
|
46
|
-
dev: dev,
|
|
47
|
-
djs: djs,
|
|
48
|
-
fsc: fsc,
|
|
49
|
-
fsm: fsm,
|
|
50
|
-
html: html,
|
|
51
|
-
js: {
|
|
52
|
-
tokenizer: js$tokenizer,
|
|
53
|
-
},
|
|
54
|
-
json: json,
|
|
55
|
-
nodejs: {
|
|
56
|
-
version: nodejs$version,
|
|
57
|
-
},
|
|
58
|
-
prime_field: prime_field,
|
|
59
|
-
secp: secp,
|
|
60
|
-
sha2: sha2,
|
|
61
|
-
text: text,
|
|
62
|
-
types: {
|
|
63
|
-
array: types$array,
|
|
64
|
-
bigfloat: types$bigfloat,
|
|
65
|
-
bigint: types$bigint,
|
|
66
|
-
btree: types$btree,
|
|
67
|
-
byte_set: types$byte_set,
|
|
68
|
-
function: types$function,
|
|
69
|
-
list: types$list,
|
|
70
|
-
map: types$map,
|
|
71
|
-
nibble_set: types$nibble_set,
|
|
72
|
-
nullable: types$nullable,
|
|
73
|
-
number: types$number,
|
|
74
|
-
object: types$object,
|
|
75
|
-
range: types$range,
|
|
76
|
-
range_map: types$range_map,
|
|
77
|
-
result: types$result,
|
|
78
|
-
sorted_list: types$sorted_list,
|
|
79
|
-
sorted_set: types$sorted_set,
|
|
80
|
-
string: types$string,
|
|
81
|
-
string_set: types$string_set,
|
|
82
|
-
},
|
|
83
|
-
}
|