@magnusopera/fscript 0.78.1 → 0.80.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/dist/FScript.Language/Ast.js +2 -2
- package/dist/FScript.Language/BuiltinFunctions.js +91 -66
- package/dist/FScript.Language/BuiltinSignatures.js +1 -1
- package/dist/FScript.Language/Eval.js +261 -174
- package/dist/FScript.Language/IncludeResolver.js +4 -2
- package/dist/FScript.Language/Parser.js +34 -27
- package/dist/FScript.Language/Pretty.js +1 -1
- package/dist/FScript.Language/TypeInfer.js +468 -120
- package/dist/FScript.Language/Types.js +81 -22
- package/dist/FScript.Language/Value.js +3 -3
- package/dist/Library.js +28 -14
- package/dist/fable_modules/project_cracked.json +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import { Union } from "../fable_modules/fable-library-js.5.13.0/Types.js";
|
|
3
3
|
import { union_type, int32_type, option_type, class_type, string_type, list_type } from "../fable_modules/fable-library-js.5.13.0/Reflection.js";
|
|
4
|
+
import { comparePrimitives, Exception } from "../fable_modules/fable-library-js.5.13.0/Util.js";
|
|
5
|
+
import { toList, isEmpty, ofList, difference, singleton, union, empty } from "../fable_modules/fable-library-js.5.13.0/Set.js";
|
|
4
6
|
import { empty as empty_1, fold, map } from "../fable_modules/fable-library-js.5.13.0/List.js";
|
|
5
|
-
import { toList, isEmpty, ofList, difference, singleton, empty, union } from "../fable_modules/fable-library-js.5.13.0/Set.js";
|
|
6
|
-
import { comparePrimitives } from "../fable_modules/fable-library-js.5.13.0/Util.js";
|
|
7
7
|
import { fold as fold_1, map as map_1 } from "../fable_modules/fable-library-js.5.13.0/Seq.js";
|
|
8
8
|
import { toList as toList_1, values } from "../fable_modules/fable-library-js.5.13.0/Map.js";
|
|
9
9
|
import { join, printf, toText } from "../fable_modules/fable-library-js.5.13.0/String.js";
|
|
@@ -15,7 +15,7 @@ export class Type extends Union {
|
|
|
15
15
|
this.fields = fields;
|
|
16
16
|
}
|
|
17
17
|
cases() {
|
|
18
|
-
return ["TUnit", "TInt", "TFloat", "TBool", "TString", "TList", "TTask", "TTuple", "TRecord", "TMap", "TOption", "TFun", "TNamed", "TUnion", "TTypeToken", "TVar"];
|
|
18
|
+
return ["TUnit", "TInt", "TFloat", "TBool", "TString", "TList", "TTask", "TTuple", "TRecord", "TMap", "TOption", "TFun", "TNamed", "TUnion", "TTypeToken", "TVar", "TNumeric"];
|
|
19
19
|
}
|
|
20
20
|
static TUnit = new Type(0, []);
|
|
21
21
|
static TInt = new Type(1, []);
|
|
@@ -26,7 +26,7 @@ export class Type extends Union {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export function Type_$reflection() {
|
|
29
|
-
return union_type("FScript.Language.Type", [], Type, () => [[], [], [], [], [], [["Item", Type_$reflection()]], [["Item", Type_$reflection()]], [["Item", list_type(Type_$reflection())]], [["Item", class_type("Microsoft.FSharp.Collections.FSharpMap`2", [string_type, Type_$reflection()])]], [["Item1", Type_$reflection()], ["Item2", Type_$reflection()]], [["Item", Type_$reflection()]], [["Item1", Type_$reflection()], ["Item2", Type_$reflection()]], [["Item", string_type]], [["Item1", string_type], ["Item2", class_type("Microsoft.FSharp.Collections.FSharpMap`2", [string_type, option_type(Type_$reflection())])]], [], [["Item", int32_type]]]);
|
|
29
|
+
return union_type("FScript.Language.Type", [], Type, () => [[], [], [], [], [], [["Item", Type_$reflection()]], [["Item", Type_$reflection()]], [["Item", list_type(Type_$reflection())]], [["Item", class_type("Microsoft.FSharp.Collections.FSharpMap`2", [string_type, Type_$reflection()])]], [["Item1", Type_$reflection()], ["Item2", Type_$reflection()]], [["Item", Type_$reflection()]], [["Item1", Type_$reflection()], ["Item2", Type_$reflection()]], [["Item", string_type]], [["Item1", string_type], ["Item2", class_type("Microsoft.FSharp.Collections.FSharpMap`2", [string_type, option_type(Type_$reflection())])]], [], [["Item", int32_type]], [["Item", int32_type]]]);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export class Scheme extends Union {
|
|
@@ -52,52 +52,109 @@ export function Types_freshVar() {
|
|
|
52
52
|
return new Type(/* TVar */ 15, [id]);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
export function Types_freshNumeric() {
|
|
56
|
+
const matchValue = Types_freshVar();
|
|
57
|
+
if (matchValue.tag === 15) {
|
|
58
|
+
return new Type(/* TNumeric */ 16, [matchValue.fields[0]]);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
throw new Exception("Expected fresh type variable");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
55
65
|
export function Types_ftvType(t_mut) {
|
|
56
66
|
Types_ftvType:
|
|
57
67
|
while (true) {
|
|
58
68
|
const t = t_mut;
|
|
69
|
+
let matchResult, v;
|
|
59
70
|
switch (t.tag) {
|
|
60
71
|
case 5: {
|
|
72
|
+
matchResult = 1;
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
case 6: {
|
|
76
|
+
matchResult = 2;
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
case 7: {
|
|
80
|
+
matchResult = 3;
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
case 8: {
|
|
84
|
+
matchResult = 4;
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
case 9: {
|
|
88
|
+
matchResult = 5;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
case 10: {
|
|
92
|
+
matchResult = 6;
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
case 11: {
|
|
96
|
+
matchResult = 7;
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
case 12:
|
|
100
|
+
case 13:
|
|
101
|
+
case 14: {
|
|
102
|
+
matchResult = 8;
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
case 15: {
|
|
106
|
+
matchResult = 9;
|
|
107
|
+
v = t.fields[0];
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
case 16: {
|
|
111
|
+
matchResult = 9;
|
|
112
|
+
v = t.fields[0];
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
default:
|
|
116
|
+
matchResult = 0;
|
|
117
|
+
}
|
|
118
|
+
switch (matchResult) {
|
|
119
|
+
case 0:
|
|
120
|
+
return empty({
|
|
121
|
+
Compare: (x, y) => (comparePrimitives(x, y) | 0),
|
|
122
|
+
});
|
|
123
|
+
case 1: {
|
|
61
124
|
t_mut = t.fields[0];
|
|
62
125
|
continue Types_ftvType;
|
|
63
126
|
}
|
|
64
|
-
case
|
|
127
|
+
case 2: {
|
|
65
128
|
t_mut = t.fields[0];
|
|
66
129
|
continue Types_ftvType;
|
|
67
130
|
}
|
|
68
|
-
case
|
|
131
|
+
case 3: {
|
|
69
132
|
const list_1 = map(Types_ftvType, t.fields[0]);
|
|
70
133
|
return fold(union, empty({
|
|
71
134
|
Compare: (x_1, y_1) => (comparePrimitives(x_1, y_1) | 0),
|
|
72
135
|
}), list_1);
|
|
73
136
|
}
|
|
74
|
-
case
|
|
137
|
+
case 4: {
|
|
75
138
|
const source_1 = map_1(Types_ftvType, values(t.fields[0]));
|
|
76
139
|
return fold_1(union, empty({
|
|
77
140
|
Compare: (x_2, y_2) => (comparePrimitives(x_2, y_2) | 0),
|
|
78
141
|
}), source_1);
|
|
79
142
|
}
|
|
80
|
-
case
|
|
143
|
+
case 5:
|
|
81
144
|
return union(Types_ftvType(t.fields[0]), Types_ftvType(t.fields[1]));
|
|
82
|
-
case
|
|
145
|
+
case 6: {
|
|
83
146
|
t_mut = t.fields[0];
|
|
84
147
|
continue Types_ftvType;
|
|
85
148
|
}
|
|
86
|
-
case
|
|
149
|
+
case 7:
|
|
87
150
|
return union(Types_ftvType(t.fields[0]), Types_ftvType(t.fields[1]));
|
|
88
|
-
case
|
|
89
|
-
case 13:
|
|
90
|
-
case 14:
|
|
151
|
+
case 8:
|
|
91
152
|
return empty({
|
|
92
153
|
Compare: (x_3, y_3) => (comparePrimitives(x_3, y_3) | 0),
|
|
93
154
|
});
|
|
94
|
-
case 15:
|
|
95
|
-
return singleton(t.fields[0], {
|
|
96
|
-
Compare: (x_4, y_4) => (comparePrimitives(x_4, y_4) | 0),
|
|
97
|
-
});
|
|
98
155
|
default:
|
|
99
|
-
return
|
|
100
|
-
Compare: (
|
|
156
|
+
return singleton(v, {
|
|
157
|
+
Compare: (x_4, y_4) => (comparePrimitives(x_4, y_4) | 0),
|
|
101
158
|
});
|
|
102
159
|
}
|
|
103
160
|
break;
|
|
@@ -165,9 +222,9 @@ export function Types_typeToString(t) {
|
|
|
165
222
|
return toText(printf("%s map"))(arg_6);
|
|
166
223
|
}
|
|
167
224
|
else {
|
|
168
|
-
const arg_7 =
|
|
169
|
-
const arg_8 = go(
|
|
170
|
-
return toText(printf("
|
|
225
|
+
const arg_7 = postfixArg(tv);
|
|
226
|
+
const arg_8 = go(tk);
|
|
227
|
+
return toText(printf("%s map[%s]"))(arg_7)(arg_8);
|
|
171
228
|
}
|
|
172
229
|
}
|
|
173
230
|
case 10: {
|
|
@@ -185,6 +242,8 @@ export function Types_typeToString(t) {
|
|
|
185
242
|
return t_1.fields[0];
|
|
186
243
|
case 14:
|
|
187
244
|
return "type";
|
|
245
|
+
case 16:
|
|
246
|
+
return "numeric";
|
|
188
247
|
case 15: {
|
|
189
248
|
const v = t_1.fields[0] | 0;
|
|
190
249
|
const letter = String.fromCharCode((~~"a".charCodeAt(0) + (v % 26)) & 0xFFFF);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { Record, FSharpRef, Union } from "../fable_modules/fable-library-js.5.13.0/Types.js";
|
|
3
|
-
import { int32_type, unit_type, lambda_type, record_type, option_type, class_type, list_type,
|
|
3
|
+
import { int32_type, unit_type, lambda_type, record_type, option_type, class_type, list_type, float64_type, union_type, bool_type, int64_type, string_type } from "../fable_modules/fable-library-js.5.13.0/Reflection.js";
|
|
4
4
|
import { Scheme_$reflection, Type_$reflection } from "./Types.js";
|
|
5
5
|
import { Expr_$reflection } from "./Ast.js";
|
|
6
6
|
import { EvalError$_$reflection } from "./Error.js";
|
|
@@ -12,12 +12,12 @@ export class MapKey extends Union {
|
|
|
12
12
|
this.fields = fields;
|
|
13
13
|
}
|
|
14
14
|
cases() {
|
|
15
|
-
return ["MKString", "MKInt"];
|
|
15
|
+
return ["MKString", "MKInt", "MKBool", "MKUnionCase"];
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export function MapKey_$reflection() {
|
|
20
|
-
return union_type("FScript.Language.MapKey", [], MapKey, () => [[["Item", string_type]], [["Item", int64_type]]]);
|
|
20
|
+
return union_type("FScript.Language.MapKey", [], MapKey, () => [[["Item", string_type]], [["Item", int64_type]], [["Item", bool_type]], [["Item1", string_type], ["Item2", string_type]]]);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export class Value extends Union {
|
package/dist/Library.js
CHANGED
|
@@ -214,17 +214,29 @@ function intFromObj(value) {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
function mapKeyToTagged(key) {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
217
|
+
switch (key.tag) {
|
|
218
|
+
case 1:
|
|
219
|
+
return {
|
|
220
|
+
kind: "int",
|
|
221
|
+
value: key.fields[0],
|
|
222
|
+
};
|
|
223
|
+
case 2:
|
|
224
|
+
return {
|
|
225
|
+
kind: "bool",
|
|
226
|
+
value: key.fields[0],
|
|
227
|
+
};
|
|
228
|
+
case 3:
|
|
229
|
+
return {
|
|
230
|
+
kind: "union",
|
|
231
|
+
typeName: key.fields[0],
|
|
232
|
+
caseName: key.fields[1],
|
|
233
|
+
value: null,
|
|
234
|
+
};
|
|
235
|
+
default:
|
|
236
|
+
return {
|
|
237
|
+
kind: "string",
|
|
238
|
+
value: key.fields[0],
|
|
239
|
+
};
|
|
228
240
|
}
|
|
229
241
|
}
|
|
230
242
|
|
|
@@ -389,9 +401,11 @@ function valueFromJs(value) {
|
|
|
389
401
|
case "map":
|
|
390
402
|
return new Value(/* VMap */ 8, [ofList(map((entry) => {
|
|
391
403
|
const keyValue = valueFromJs(getRequiredProperty("key", entry));
|
|
392
|
-
return [(keyValue.tag === 4) ? (new MapKey(/* MKString */ 0, [keyValue.fields[0]])) : ((keyValue.tag === 1) ? (new MapKey(/* MKInt */ 1, [keyValue.fields[0]])) : (() => {
|
|
393
|
-
throw new Exception("Map key must be string or
|
|
394
|
-
})())
|
|
404
|
+
return [(keyValue.tag === 4) ? (new MapKey(/* MKString */ 0, [keyValue.fields[0]])) : ((keyValue.tag === 1) ? (new MapKey(/* MKInt */ 1, [keyValue.fields[0]])) : ((keyValue.tag === 3) ? (new MapKey(/* MKBool */ 2, [keyValue.fields[0]])) : ((keyValue.tag === 10) ? ((keyValue.fields[2] == null) ? (new MapKey(/* MKUnionCase */ 3, [keyValue.fields[0], keyValue.fields[1]])) : (() => {
|
|
405
|
+
throw new Exception("Map key must be string, int, bool, or a payload-free union case");
|
|
406
|
+
})()) : (() => {
|
|
407
|
+
throw new Exception("Map key must be string, int, bool, or a payload-free union case");
|
|
408
|
+
})()))), valueFromJs(getRequiredProperty("value", entry))];
|
|
395
409
|
}, ofArray(getRequiredProperty("entries", value))), {
|
|
396
410
|
Compare: (x_1, y_1) => (compare(x_1, y_1) | 0),
|
|
397
411
|
})]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"Version":"5.13.0","FableOptions":{"TypedArrays":true,"ClampByteArrays":false,"Language":["JavaScript"],"Define":["FABLE_COMPILER","FABLE_COMPILER_5","FABLE_COMPILER_JAVASCRIPT"],"DebugMode":false,"OptimizeFSharpAst":false,"Verbosity":["Normal"],"FileExtension":".js","TriggeredByDependency":false,"NoReflection":false},"ProjectPath":"/home/runner/work/FScript/FScript/src/FScript.JavaScript/FScript.JavaScript.fsproj","SourcePaths":["/home/runner/work/FScript/FScript/src/FScript.Language/Span.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Error.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Token.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Ast.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Types.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Value.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Lexer.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Parser.fs","/home/runner/work/FScript/FScript/src/FScript.Language/IncludeResolver.fs","/home/runner/work/FScript/FScript/src/FScript.Language/BuiltinTypes.fs","/home/runner/work/FScript/FScript/src/FScript.Language/BuiltinSignatures.fs","/home/runner/work/FScript/FScript/src/FScript.Language/BuiltinFunctions.fs","/home/runner/work/FScript/FScript/src/FScript.Language/TypeInfer.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Eval.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Interactive.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Pretty.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Library.fs","/home/runner/work/FScript/FScript/src/FScript.JavaScript/Library.fs"],"FSharpOptions":["--define:FABLE_COMPILER","--define:FABLE_COMPILER_5","--define:FABLE_COMPILER_JAVASCRIPT","--define:TRACE","--define:RELEASE","--define:NETSTANDARD","--define:NETSTANDARD2_1","--define:NETSTANDARD1_0_OR_GREATER","--define:NETSTANDARD1_1_OR_GREATER","--define:NETSTANDARD1_2_OR_GREATER","--define:NETSTANDARD1_3_OR_GREATER","--define:NETSTANDARD1_4_OR_GREATER","--define:NETSTANDARD1_5_OR_GREATER","--define:NETSTANDARD1_6_OR_GREATER","--define:NETSTANDARD2_0_OR_GREATER","--define:NETSTANDARD2_1_OR_GREATER","--define:NULLABLE","--langversion:preview","--nowarn:FS0988","--noframework","--nologo","--simpleresolution","--nocopyfsharpcore","--nowin32manifest","--warn:3","--fullpaths","--flaterrors","--optimize-","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ValueTuple.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Threading.Thread.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Threading.Tasks.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Threading.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Text.RegularExpressions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Text.Encoding.Extensions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Text.Encoding.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.Numerics.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.InteropServices.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.Extensions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Reflection.Primitives.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Reflection.Extensions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Reflection.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Numerics.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Net.Requests.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.IO.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Globalization.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Diagnostics.Tracing.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Diagnostics.Tools.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Diagnostics.Debug.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Core.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Console.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ComponentModel.TypeConverter.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ComponentModel.Primitives.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ComponentModel.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Collections.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Collections.Concurrent.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/netstandard.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/mscorlib.dll","-r:/home/runner/.nuget/packages/fable.core/5.
|
|
1
|
+
{"Version":"5.13.0","FableOptions":{"TypedArrays":true,"ClampByteArrays":false,"Language":["JavaScript"],"Define":["FABLE_COMPILER","FABLE_COMPILER_5","FABLE_COMPILER_JAVASCRIPT"],"DebugMode":false,"OptimizeFSharpAst":false,"Verbosity":["Normal"],"FileExtension":".js","TriggeredByDependency":false,"NoReflection":false},"ProjectPath":"/home/runner/work/FScript/FScript/src/FScript.JavaScript/FScript.JavaScript.fsproj","SourcePaths":["/home/runner/work/FScript/FScript/src/FScript.Language/Span.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Error.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Token.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Ast.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Types.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Value.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Lexer.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Parser.fs","/home/runner/work/FScript/FScript/src/FScript.Language/IncludeResolver.fs","/home/runner/work/FScript/FScript/src/FScript.Language/BuiltinTypes.fs","/home/runner/work/FScript/FScript/src/FScript.Language/BuiltinSignatures.fs","/home/runner/work/FScript/FScript/src/FScript.Language/BuiltinFunctions.fs","/home/runner/work/FScript/FScript/src/FScript.Language/TypeInfer.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Eval.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Interactive.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Pretty.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Library.fs","/home/runner/work/FScript/FScript/src/FScript.JavaScript/Library.fs"],"FSharpOptions":["--define:FABLE_COMPILER","--define:FABLE_COMPILER_5","--define:FABLE_COMPILER_JAVASCRIPT","--define:TRACE","--define:RELEASE","--define:NETSTANDARD","--define:NETSTANDARD2_1","--define:NETSTANDARD1_0_OR_GREATER","--define:NETSTANDARD1_1_OR_GREATER","--define:NETSTANDARD1_2_OR_GREATER","--define:NETSTANDARD1_3_OR_GREATER","--define:NETSTANDARD1_4_OR_GREATER","--define:NETSTANDARD1_5_OR_GREATER","--define:NETSTANDARD1_6_OR_GREATER","--define:NETSTANDARD2_0_OR_GREATER","--define:NETSTANDARD2_1_OR_GREATER","--define:NULLABLE","--langversion:preview","--nowarn:FS0988","--noframework","--nologo","--simpleresolution","--nocopyfsharpcore","--nowin32manifest","--warn:3","--fullpaths","--flaterrors","--optimize-","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ValueTuple.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Threading.Thread.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Threading.Tasks.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Threading.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Text.RegularExpressions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Text.Encoding.Extensions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Text.Encoding.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.Numerics.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.InteropServices.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.Extensions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Reflection.Primitives.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Reflection.Extensions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Reflection.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Numerics.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Net.Requests.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.IO.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Globalization.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Diagnostics.Tracing.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Diagnostics.Tools.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Diagnostics.Debug.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Core.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Console.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ComponentModel.TypeConverter.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ComponentModel.Primitives.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ComponentModel.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Collections.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Collections.Concurrent.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/netstandard.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/mscorlib.dll","-r:/home/runner/.nuget/packages/fable.core/5.3.0/lib/netstandard2.0/Fable.Core.dll","-r:/home/runner/.nuget/packages/fable/5.13.0/tools/net10.0/any/FSharp.Core.dll"],"References":["/home/runner/work/FScript/FScript/src/FScript.Language/FScript.Language.fsproj"],"OutDir":["Some","/home/runner/work/FScript/FScript/src/FScript.JavaScript/dist"],"FableLibDir":"/home/runner/work/FScript/FScript/src/FScript.JavaScript/dist/fable_modules/fable-library-js.5.13.0","FableModulesDir":"/home/runner/work/FScript/FScript/src/FScript.JavaScript/dist/fable_modules","OutputType":["Library"],"TargetFramework":["Some","netstandard2.1"],"Exclude":[],"SourceMaps":false,"SourceMapsRoot":null,"TreatWarningsAsErrors":true}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magnusopera/fscript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.0",
|
|
4
4
|
"description": "Embeddable FScript language engine: parser, type inference, and evaluator.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/Library.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"interpreter"
|
|
22
22
|
],
|
|
23
23
|
"license": "MIT",
|
|
24
|
-
"homepage": "https://magnusopera.
|
|
24
|
+
"homepage": "https://fscript.magnusopera.io/manual/embedding/fable-javascript",
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/MagnusOpera/FScript/issues"
|
|
27
27
|
},
|