functionalscript 0.3.15 → 0.4.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/package.json +2 -3
- package/com/cpp/module.f.d.ts +0 -10
- package/com/cpp/module.f.js +0 -106
- package/com/cpp/test.f.d.ts +0 -2
- package/com/cpp/test.f.js +0 -40
- package/com/cpp/testlib.f.d.ts +0 -2
- package/com/cpp/testlib.f.js +0 -5
- package/com/cs/module.f.d.ts +0 -12
- package/com/cs/module.f.js +0 -79
- package/com/cs/test.f.d.ts +0 -2
- package/com/cs/test.f.js +0 -43
- package/com/cs/testlib.f.d.ts +0 -2
- package/com/cs/testlib.f.js +0 -5
- package/com/rust/module.f.d.ts +0 -15
- package/com/rust/module.f.js +0 -164
- package/com/rust/test.f.d.ts +0 -2
- package/com/rust/test.f.js +0 -123
- package/com/rust/testlib.f.d.ts +0 -2
- package/com/rust/testlib.f.js +0 -5
- package/com/test/build.f.d.ts +0 -20
- package/com/test/build.f.js +0 -58
- package/com/types/module.f.d.ts +0 -28
- package/com/types/module.f.js +0 -7
- package/com/types/testlib.f.d.ts +0 -44
- package/com/types/testlib.f.js +0 -28
- package/commonjs/build/module.f.d.ts +0 -6
- package/commonjs/build/module.f.js +0 -66
- package/commonjs/build/test.f.d.ts +0 -2
- package/commonjs/build/test.f.js +0 -92
- package/commonjs/module/function/module.f.d.ts +0 -8
- package/commonjs/module/function/module.f.js +0 -4
- package/commonjs/module/module.f.d.ts +0 -18
- package/commonjs/module/module.f.js +0 -11
- package/commonjs/module.f.d.ts +0 -6
- package/commonjs/module.f.js +0 -1
- package/commonjs/package/dependencies/module.f.d.ts +0 -7
- package/commonjs/package/dependencies/module.f.js +0 -13
- package/commonjs/package/dependencies/test.f.d.ts +0 -2
- package/commonjs/package/dependencies/test.f.js +0 -15
- package/commonjs/package/module.f.d.ts +0 -17
- package/commonjs/package/module.f.js +0 -18
- package/commonjs/package/test.f.d.ts +0 -2
- package/commonjs/package/test.f.js +0 -27
- package/commonjs/path/module.f.d.ts +0 -24
- package/commonjs/path/module.f.js +0 -112
- package/commonjs/path/test.f.d.ts +0 -25
- package/commonjs/path/test.f.js +0 -221
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
0: () => void;
|
|
3
|
-
1: () => void;
|
|
4
|
-
2: () => void;
|
|
5
|
-
3: () => void;
|
|
6
|
-
4: () => void;
|
|
7
|
-
5: () => void;
|
|
8
|
-
6: () => void;
|
|
9
|
-
7: () => void;
|
|
10
|
-
8: {
|
|
11
|
-
0: () => void;
|
|
12
|
-
1: () => void;
|
|
13
|
-
2: () => void;
|
|
14
|
-
3: () => void;
|
|
15
|
-
4: () => void;
|
|
16
|
-
5: () => void;
|
|
17
|
-
6: () => void;
|
|
18
|
-
7: () => void;
|
|
19
|
-
};
|
|
20
|
-
9: () => void;
|
|
21
|
-
10: () => void;
|
|
22
|
-
11: () => void;
|
|
23
|
-
12: () => void;
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
package/commonjs/path/test.f.js
DELETED
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import * as _ from "./module.f.js";
|
|
2
|
-
import { todo } from "../../dev/module.f.js";
|
|
3
|
-
import * as json from "../../json/module.f.js";
|
|
4
|
-
import { identity } from "../../types/function/module.f.js";
|
|
5
|
-
import { at } from "../../types/object/module.f.js";
|
|
6
|
-
const i = (o) => (s) => at(s)(o);
|
|
7
|
-
const stringify = json.stringify(identity);
|
|
8
|
-
export default {
|
|
9
|
-
0: () => {
|
|
10
|
-
const result = _.parseLocal('')('./a');
|
|
11
|
-
if (stringify(result) !== '{"external":false,"dir":false,"items":["a"]}') {
|
|
12
|
-
throw result;
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
1: () => {
|
|
16
|
-
const result = _.parseLocal('')('./a/');
|
|
17
|
-
if (stringify(result) !== '{"external":false,"dir":true,"items":["a"]}') {
|
|
18
|
-
throw result;
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
2: () => {
|
|
22
|
-
const result = _.parseLocal('')('..');
|
|
23
|
-
if (result !== null) {
|
|
24
|
-
throw result;
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
3: () => {
|
|
28
|
-
const result = _.parseLocal('a')('');
|
|
29
|
-
if (stringify(result) !== '{"external":true,"dir":true,"items":[]}') {
|
|
30
|
-
throw result;
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
4: () => {
|
|
34
|
-
const result = _.parseLocal('')('./a/b/.././c');
|
|
35
|
-
if (stringify(result) !== '{"external":false,"dir":false,"items":["a","c"]}') {
|
|
36
|
-
throw result;
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
5: () => {
|
|
40
|
-
const result = _.parseLocal('x/r')('./a/b/.././c');
|
|
41
|
-
if (stringify(result) !== '{"external":false,"dir":false,"items":["x","r","a","c"]}') {
|
|
42
|
-
throw result;
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
6: () => {
|
|
46
|
-
const result = _.parseLocal('a')('a/b/.././c');
|
|
47
|
-
if (stringify(result) !== '{"external":true,"dir":false,"items":["a","c"]}') {
|
|
48
|
-
throw result;
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
7: () => {
|
|
52
|
-
const result = _.parseLocal('')('./x/..');
|
|
53
|
-
if (stringify(result) !== '{"external":false,"dir":true,"items":[]}') {
|
|
54
|
-
throw result;
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
8: {
|
|
58
|
-
0: () => { if (_.parseGlobal(() => null)(false)(['a', 'b']) !== null) {
|
|
59
|
-
throw 'error';
|
|
60
|
-
} },
|
|
61
|
-
1: () => { if (_.parseGlobal(() => null)(false)(['b']) !== null) {
|
|
62
|
-
throw 'error';
|
|
63
|
-
} },
|
|
64
|
-
2: () => { if (_.parseGlobal(i({ b: 'x' }))(false)(['d']) !== null) {
|
|
65
|
-
throw 'error';
|
|
66
|
-
} },
|
|
67
|
-
3: () => {
|
|
68
|
-
const result = stringify(_.parseGlobal(i({ b: 'x' }))(false)(['b']));
|
|
69
|
-
if (result !== '{"package":"x","items":[],"dir":false}') {
|
|
70
|
-
throw result;
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
4: () => { if (_.parseGlobal(i({ 'b/r': 'x' }))(false)(['b']) !== null) {
|
|
74
|
-
throw 'error';
|
|
75
|
-
} },
|
|
76
|
-
5: () => {
|
|
77
|
-
const result = stringify(_.parseGlobal(i({ 'b/r': 'x' }))(false)(['b', 'r']));
|
|
78
|
-
if (result !== '{"package":"x","items":[],"dir":false}') {
|
|
79
|
-
throw result;
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
6: () => {
|
|
83
|
-
const result = stringify(_.parseGlobal(i({ 'b/r': 'x' }))(false)(['b', 'r', 'd', 't']));
|
|
84
|
-
if (result !== '{"package":"x","items":["d","t"],"dir":false}') {
|
|
85
|
-
throw result;
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
7: () => {
|
|
89
|
-
const result = stringify(_.parseGlobal(i({ 'b/r': 'x' }))(true)(['b', 'r', 'd', 't']));
|
|
90
|
-
if (result !== '{"package":"x","items":["d","t"],"dir":true}') {
|
|
91
|
-
throw result;
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
9: () => {
|
|
96
|
-
const packages = {
|
|
97
|
-
'': {
|
|
98
|
-
dependency: () => todo(),
|
|
99
|
-
file: i({ 'a/c': 'return "a/c"' }),
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
const result = stringify(_.parseAndFind(i(packages))({ package: '', path: ['a', 'b'] })('../c'));
|
|
103
|
-
if (result !== '{"id":{"package":"","path":["a","c"]},"source":"return \\"a/c\\""}') {
|
|
104
|
-
throw result;
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
10: () => {
|
|
108
|
-
const packages = {
|
|
109
|
-
'': {
|
|
110
|
-
dependency: x => {
|
|
111
|
-
const path = `node_modules/${x}`;
|
|
112
|
-
return at(path)(packages) !== null ? path : null;
|
|
113
|
-
},
|
|
114
|
-
file: i({
|
|
115
|
-
'index.js': 'return "index.js"',
|
|
116
|
-
'x/index.js': 'return "x/index.js"',
|
|
117
|
-
'x.js': 'return "x.js"',
|
|
118
|
-
})
|
|
119
|
-
},
|
|
120
|
-
'node_modules/z': {
|
|
121
|
-
dependency: () => todo(),
|
|
122
|
-
file: i({ 'a/c/index.js': 'return "a/c"' }),
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
{
|
|
126
|
-
const result = stringify(_.parseAndFind(i(packages))({ package: '', path: ['a', 'b'] })('z/a/c'));
|
|
127
|
-
if (result !== '{"id":{"package":"node_modules/z","path":["a","c","index.js"]},"source":"return \\"a/c\\""}') {
|
|
128
|
-
throw result;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
{
|
|
132
|
-
const result = stringify(_.parseAndFind(i(packages))({ package: '', path: ['a', 'b'] })('../..'));
|
|
133
|
-
if (result !== '{"id":{"package":"","path":["index.js"]},"source":"return \\"index.js\\""}') {
|
|
134
|
-
throw result;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
{
|
|
138
|
-
const result = stringify(_.parseAndFind(i(packages))({ package: '', path: [] })('./x'));
|
|
139
|
-
if (result !== '{"id":{"package":"","path":["x.js"]},"source":"return \\"x.js\\""}') {
|
|
140
|
-
throw result;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
{
|
|
144
|
-
const result = stringify(_.parseAndFind(i(packages))({ package: '', path: [] })('./x.js'));
|
|
145
|
-
if (result !== '{"id":{"package":"","path":["x.js"]},"source":"return \\"x.js\\""}') {
|
|
146
|
-
throw result;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
{
|
|
150
|
-
const result = stringify(_.parseAndFind(i(packages))({ package: '', path: [] })('./x/'));
|
|
151
|
-
if (result !== '{"id":{"package":"","path":["x","index.js"]},"source":"return \\"x/index.js\\""}') {
|
|
152
|
-
throw result;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
{
|
|
156
|
-
const result = stringify(_.parseAndFind(i(packages))({ package: '', path: ['x', 'a'] })('../'));
|
|
157
|
-
if (result !== '{"id":{"package":"","path":["x","index.js"]},"source":"return \\"x/index.js\\""}') {
|
|
158
|
-
throw result;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
{
|
|
162
|
-
const result = stringify(_.parseAndFind(i(packages))({ package: '', path: ['x', 'a'] })('..'));
|
|
163
|
-
if (result !== '{"id":{"package":"","path":["x","index.js"]},"source":"return \\"x/index.js\\""}') {
|
|
164
|
-
throw result;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
11: () => {
|
|
169
|
-
const packages = {
|
|
170
|
-
'': {
|
|
171
|
-
dependency: x => {
|
|
172
|
-
const path = `node_modules/${x}`;
|
|
173
|
-
return at(path)(packages) !== null ? path : null;
|
|
174
|
-
},
|
|
175
|
-
file: todo
|
|
176
|
-
},
|
|
177
|
-
'node_modules/z/a': {
|
|
178
|
-
dependency: () => todo(),
|
|
179
|
-
file: i({
|
|
180
|
-
'c/index.js': 'return "c/index.js"',
|
|
181
|
-
'c.js': 'return "c.js"'
|
|
182
|
-
}),
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
{
|
|
186
|
-
const result = stringify(_.parseAndFind(i(packages))({ package: '', path: ['a', 'b'] })('z/a/c'));
|
|
187
|
-
if (result !== '{"id":{"package":"node_modules/z/a","path":["c.js"]},"source":"return \\"c.js\\""}') {
|
|
188
|
-
throw result;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
{
|
|
192
|
-
const result = stringify(_.parseAndFind(i(packages))({ package: '', path: ['a', 'b'] })('z/a/c/'));
|
|
193
|
-
if (result !== '{"id":{"package":"node_modules/z/a","path":["c","index.js"]},"source":"return \\"c/index.js\\""}') {
|
|
194
|
-
throw result;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
12: () => {
|
|
199
|
-
const packages = {
|
|
200
|
-
'': {
|
|
201
|
-
dependency: x => {
|
|
202
|
-
const path = `node_modules/${x}`;
|
|
203
|
-
return at(path)(packages) !== null ? path : null;
|
|
204
|
-
},
|
|
205
|
-
file: todo
|
|
206
|
-
},
|
|
207
|
-
'node_modules/z/a/c': {
|
|
208
|
-
dependency: () => todo(),
|
|
209
|
-
file: i({
|
|
210
|
-
'': 'throw',
|
|
211
|
-
'.js': 'throw',
|
|
212
|
-
'index.js': 'return "a/c"'
|
|
213
|
-
}),
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
const result = stringify(_.parseAndFind(i(packages))({ package: '', path: ['a', 'b'] })('z/a/c'));
|
|
217
|
-
if (result !== '{"id":{"package":"node_modules/z/a/c","path":["index.js"]},"source":"return \\"a/c\\""}') {
|
|
218
|
-
throw result;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
};
|