fable-compiler-js
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -160,3 +160,3 @@ "use strict"; | ||
const patternInput$$4 = (0, _Platform.measureTime)(function parseFable(tupledArg) { | ||
return fable.CompileToBabelAst("fable-library", tupledArg[0], tupledArg[1], options.optimize); | ||
return fable.CompileToBabelAst("fable-library", tupledArg[0], tupledArg[1]); | ||
}, [patternInput$$3[1], fileName$$1]); | ||
@@ -163,0 +163,0 @@ const clo1$$4 = (0, _String.toConsole)((0, _String.printf)("File: %s, Fable time: %d ms")); |
@@ -52,6 +52,8 @@ "use strict"; | ||
const target = m$$1 != null ? (m$$1[1] || "").trim().toLowerCase() : ""; | ||
const m$$2 = (0, _RegExp.match)(projectText, "<WarningLevel[^>]*>([^<]*)<\\/WarningLevel[^>]*>"); | ||
const warnLevel = m$$2 != null ? (m$$2[1] || "").trim() : ""; | ||
const m$$3 = (0, _RegExp.match)(projectText, "<TreatWarningsAsErrors[^>]*>([^<]*)<\\/TreatWarningsAsErrors[^>]*>"); | ||
const treatWarningsAsErrors = m$$3 != null ? (m$$3[1] || "").trim().toLowerCase() === "true" : false; | ||
const m$$2 = (0, _RegExp.match)(projectText, "<LangVersion[^>]*>([^<]*)<\\/LangVersion[^>]*>"); | ||
const langVersion = m$$2 != null ? (m$$2[1] || "").trim() : ""; | ||
const m$$3 = (0, _RegExp.match)(projectText, "<WarningLevel[^>]*>([^<]*)<\\/WarningLevel[^>]*>"); | ||
const warnLevel = m$$3 != null ? (m$$3[1] || "").trim() : ""; | ||
const m$$4 = (0, _RegExp.match)(projectText, "<TreatWarningsAsErrors[^>]*>([^<]*)<\\/TreatWarningsAsErrors[^>]*>"); | ||
const treatWarningsAsErrors = m$$4 != null ? (m$$4[1] || "").trim().toLowerCase() === "true" : false; | ||
let defines; | ||
@@ -64,4 +66,4 @@ let source$$4; | ||
const source = (0, _RegExp.matches)(projectText, "<DefineConstants[^>]*>([^<]*)<\\/DefineConstants[^>]*>"); | ||
source2 = (0, _Seq.collect)(function mapping(m$$4) { | ||
return (0, _String.split)(m$$4[1] || "", [";"], null, 0); | ||
source2 = (0, _Seq.collect)(function mapping(m$$5) { | ||
return (0, _String.split)(m$$5[1] || "", [";"], null, 0); | ||
}, source); | ||
@@ -89,4 +91,4 @@ const source1 = (0, _List.ofArray)(["FABLE_COMPILER", "FABLE_COMPILER_JS"]); | ||
const source$$5 = (0, _RegExp.matches)(projectText, "<NoWarn[^>]*>([^<]*)<\\/NoWarn[^>]*>"); | ||
source$$6 = (0, _Seq.collect)(function mapping$$2(m$$5) { | ||
return (0, _String.split)(m$$5[1] || "", [";"], null, 0); | ||
source$$6 = (0, _Seq.collect)(function mapping$$2(m$$6) { | ||
return (0, _String.split)(m$$6[1] || "", [";"], null, 0); | ||
}, source$$5); | ||
@@ -112,4 +114,4 @@ source$$7 = (0, _Seq.map)(function mapping$$3(s$$1) { | ||
const source$$10 = (0, _RegExp.matches)(projectText, "<WarningsAsErrors[^>]*>([^<]*)<\\/WarningsAsErrors[^>]*>"); | ||
source$$11 = (0, _Seq.collect)(function mapping$$4(m$$6) { | ||
return (0, _String.split)(m$$6[1] || "", [";"], null, 0); | ||
source$$11 = (0, _Seq.collect)(function mapping$$4(m$$7) { | ||
return (0, _String.split)(m$$7[1] || "", [";"], null, 0); | ||
}, source$$10); | ||
@@ -135,4 +137,4 @@ source$$12 = (0, _Seq.map)(function mapping$$5(s$$2) { | ||
const source$$15 = (0, _RegExp.matches)(projectText, "<OtherFlags[^>]*>([^<]*)<\\/OtherFlags[^>]*>"); | ||
source$$16 = (0, _Seq.collect)(function mapping$$6(m$$7) { | ||
return (0, _String.split)(m$$7[1] || "", [" "], null, 0); | ||
source$$16 = (0, _Seq.collect)(function mapping$$6(m$$8) { | ||
return (0, _String.split)(m$$8[1] || "", [" "], null, 0); | ||
}, source$$15); | ||
@@ -154,16 +156,18 @@ source$$17 = (0, _Seq.map)(function mapping$$7(s$$3) { | ||
return (0, _Seq.append)(target.length > 0 ? (0, _Seq.singleton)("--target:" + target) : (0, _Seq.empty)(), (0, _Seq.delay)(function () { | ||
return (0, _Seq.append)(warnLevel.length > 0 ? (0, _Seq.singleton)("--warn:" + warnLevel) : (0, _Seq.empty)(), (0, _Seq.delay)(function () { | ||
return (0, _Seq.append)(treatWarningsAsErrors ? (0, _Seq.singleton)("--warnaserror+") : (0, _Seq.empty)(), (0, _Seq.delay)(function () { | ||
return (0, _Seq.append)((0, _Seq.map)(function (d) { | ||
return "-d:" + d; | ||
}, defines), (0, _Seq.delay)(function () { | ||
return (0, _Seq.append)((0, _Seq.map)(function (n) { | ||
return "--nowarn:" + n; | ||
}, nowarns), (0, _Seq.delay)(function () { | ||
return (0, _Seq.append)((0, _Seq.map)(function (e) { | ||
return "--warnaserror:" + e; | ||
}, warnAsErrors), (0, _Seq.delay)(function () { | ||
return (0, _Seq.map)(function (o) { | ||
return o; | ||
}, otherFlags); | ||
return (0, _Seq.append)(langVersion.length > 0 ? (0, _Seq.singleton)("--langversion:" + langVersion) : (0, _Seq.empty)(), (0, _Seq.delay)(function () { | ||
return (0, _Seq.append)(warnLevel.length > 0 ? (0, _Seq.singleton)("--warn:" + warnLevel) : (0, _Seq.empty)(), (0, _Seq.delay)(function () { | ||
return (0, _Seq.append)(treatWarningsAsErrors ? (0, _Seq.singleton)("--warnaserror+") : (0, _Seq.empty)(), (0, _Seq.delay)(function () { | ||
return (0, _Seq.append)((0, _Seq.map)(function (d) { | ||
return "-d:" + d; | ||
}, defines), (0, _Seq.delay)(function () { | ||
return (0, _Seq.append)((0, _Seq.map)(function (n) { | ||
return "--nowarn:" + n; | ||
}, nowarns), (0, _Seq.delay)(function () { | ||
return (0, _Seq.append)((0, _Seq.map)(function (e) { | ||
return "--warnaserror:" + e; | ||
}, warnAsErrors), (0, _Seq.delay)(function () { | ||
return (0, _Seq.map)(function (o) { | ||
return o; | ||
}, otherFlags); | ||
})); | ||
})); | ||
@@ -189,11 +193,11 @@ })); | ||
var $target$$25, path$$1; | ||
const activePatternResult171 = $007CRegex$007C_$007C("^#r\\s+\"(.*?)\"$", matchValue); | ||
const activePatternResult172 = $007CRegex$007C_$007C("^#r\\s+\"(.*?)\"$", matchValue); | ||
if (activePatternResult171 != null) { | ||
if (activePatternResult171.tail != null) { | ||
if (activePatternResult171.tail.tail != null) { | ||
if (activePatternResult171.tail.tail.tail == null) { | ||
if (path = activePatternResult171.tail.head, !(0, _String.endsWith)(path, "Fable.Core.dll")) { | ||
if (activePatternResult172 != null) { | ||
if (activePatternResult172.tail != null) { | ||
if (activePatternResult172.tail.tail != null) { | ||
if (activePatternResult172.tail.tail.tail == null) { | ||
if (path = activePatternResult172.tail.head, !(0, _String.endsWith)(path, "Fable.Core.dll")) { | ||
$target$$25 = 0; | ||
path$$1 = activePatternResult171.tail.head; | ||
path$$1 = activePatternResult172.tail.head; | ||
} else { | ||
@@ -224,10 +228,10 @@ $target$$25 = 1; | ||
var $target$$26, path$$2; | ||
const activePatternResult169 = $007CRegex$007C_$007C("^#load\\s+\"(.*?)\"$", matchValue); | ||
const activePatternResult170 = $007CRegex$007C_$007C("^#load\\s+\"(.*?)\"$", matchValue); | ||
if (activePatternResult169 != null) { | ||
if (activePatternResult169.tail != null) { | ||
if (activePatternResult169.tail.tail != null) { | ||
if (activePatternResult169.tail.tail.tail == null) { | ||
if (activePatternResult170 != null) { | ||
if (activePatternResult170.tail != null) { | ||
if (activePatternResult170.tail.tail != null) { | ||
if (activePatternResult170.tail.tail.tail == null) { | ||
$target$$26 = 0; | ||
path$$2 = activePatternResult169.tail.head; | ||
path$$2 = activePatternResult170.tail.head; | ||
} else { | ||
@@ -272,9 +276,9 @@ $target$$26 = 1; | ||
const source$$20 = (0, _RegExp.matches)(projectText$$3, "<ProjectReference\\s+[^>]*Include\\s*=\\s*(\"[^\"]*|'[^']*)"); | ||
source$$21 = (0, _Seq.map)(function mapping$$8(m$$8) { | ||
return (0, _String.replace)((0, _String.trimStart)((0, _String.trimStart)(m$$8[1] || "", "\""), "'").trim(), "\\", "/"); | ||
source$$21 = (0, _Seq.map)(function mapping$$8(m$$9) { | ||
return (0, _String.replace)((0, _String.trimStart)((0, _String.trimStart)(m$$9[1] || "", "\""), "'").trim(), "\\", "/"); | ||
}, source$$20); | ||
projectRefs$$1 = (0, _Array.ofSeq)(source$$21, Array); | ||
const projectText$$4 = (0, _String.replace)(projectText$$3, "$(MSBuildProjectDirectory)", "."); | ||
const m$$9 = (0, _RegExp.match)(projectText$$4, "<FSharpSourcesRoot[^>]*>([^<]*)<\\/FSharpSourcesRoot[^>]*>"); | ||
const sourcesRoot = m$$9 != null ? (0, _String.replace)(m$$9[1] || "", "\\", "/") : ""; | ||
const m$$10 = (0, _RegExp.match)(projectText$$4, "<FSharpSourcesRoot[^>]*>([^<]*)<\\/FSharpSourcesRoot[^>]*>"); | ||
const sourcesRoot = m$$10 != null ? (0, _String.replace)(m$$10[1] || "", "\\", "/") : ""; | ||
const projectText$$5 = (0, _String.replace)(projectText$$4, "$(FSharpSourcesRoot)", sourcesRoot); | ||
@@ -284,4 +288,4 @@ let sourceFiles$$1; | ||
const source$$22 = (0, _RegExp.matches)(projectText$$5, "<Compile\\s+[^>]*Include\\s*=\\s*(\"[^\"]*|'[^']*)"); | ||
source$$23 = (0, _Seq.map)(function mapping$$9(m$$10) { | ||
return (0, _String.replace)((0, _String.trimStart)((0, _String.trimStart)(m$$10[1] || "", "\""), "'").trim(), "\\", "/"); | ||
source$$23 = (0, _Seq.map)(function mapping$$9(m$$11) { | ||
return (0, _String.replace)((0, _String.trimStart)((0, _String.trimStart)(m$$11[1] || "", "\""), "'").trim(), "\\", "/"); | ||
}, source$$22); | ||
@@ -288,0 +292,0 @@ sourceFiles$$1 = (0, _Array.ofSeq)(source$$23, Array); |
@@ -7,7 +7,7 @@ "use strict"; | ||
exports.references_full = exports.references_net45 = exports.references_core = void 0; | ||
const references_core = ["Fable.Core", "FSharp.Core", "mscorlib", "netstandard", "System.Collections", "System.Collections.Concurrent", "System.ComponentModel", "System.ComponentModel.Primitives", "System.ComponentModel.TypeConverter", "System.Console", "System.Core", "System.Diagnostics.Debug", "System.Diagnostics.Tracing", "System.Globalization", "System", "System.IO", "System.Numerics", "System.Reflection", "System.Reflection.Extensions", "System.Reflection.Metadata", "System.Reflection.Primitives", "System.Reflection.TypeExtensions", "System.Runtime", "System.Runtime.Extensions", "System.Runtime.Numerics", "System.Text.Encoding", "System.Text.Encoding.Extensions", "System.Text.RegularExpressions", "System.Threading", "System.Threading.Tasks", "System.ValueTuple"]; | ||
const references_core = ["Fable.Core", "FSharp.Core", "mscorlib", "netstandard", "System.Collections", "System.Collections.Concurrent", "System.ComponentModel", "System.ComponentModel.Primitives", "System.ComponentModel.TypeConverter", "System.Console", "System.Core", "System.Diagnostics.Debug", "System.Diagnostics.Tracing", "System.Globalization", "System", "System.IO", "System.Net.Requests", "System.Net.WebClient", "System.Numerics", "System.Reflection", "System.Reflection.Extensions", "System.Reflection.Metadata", "System.Reflection.Primitives", "System.Reflection.TypeExtensions", "System.Runtime", "System.Runtime.Extensions", "System.Runtime.Numerics", "System.Text.Encoding", "System.Text.Encoding.Extensions", "System.Text.RegularExpressions", "System.Threading", "System.Threading.Tasks", "System.ValueTuple"]; | ||
exports.references_core = references_core; | ||
const references_net45 = ["Fable.Core", "Fable.Import.Browser", "FSharp.Core", "mscorlib", "System", "System.Core", "System.Data", "System.IO", "System.Xml", "System.Numerics"]; | ||
exports.references_net45 = references_net45; | ||
const references_full = ["Fable.Core", "Fable.Import.Browser", "FSharp.Core", "Microsoft.CSharp", "Microsoft.VisualBasic", "Microsoft.Win32.Primitives", "mscorlib", "netstandard", "System.AppContext", "System.Buffers", "System.Collections.Concurrent", "System.Collections", "System.Collections.Immutable", "System.Collections.NonGeneric", "System.Collections.Specialized", "System.ComponentModel.Annotations", "System.ComponentModel.DataAnnotations", "System.ComponentModel", "System.ComponentModel.EventBasedAsync", "System.ComponentModel.Primitives", "System.ComponentModel.TypeConverter", "System.Configuration", "System.Console", "System.Core", "System.Data.Common", "System.Data", "System.Diagnostics.Contracts", "System.Diagnostics.Debug", "System.Diagnostics.DiagnosticSource", "System.Diagnostics.FileVersionInfo", "System.Diagnostics.Process", "System.Diagnostics.StackTrace", "System.Diagnostics.TextWriterTraceListener", "System.Diagnostics.Tools", "System.Diagnostics.TraceSource", "System.Diagnostics.Tracing", "System", "System.Drawing", "System.Drawing.Primitives", "System.Dynamic.Runtime", "System.Globalization.Calendars", "System.Globalization", "System.Globalization.Extensions", "System.IO.Compression", "System.IO.Compression.FileSystem", "System.IO.Compression.ZipFile", "System.IO", "System.IO.FileSystem", "System.IO.FileSystem.DriveInfo", "System.IO.FileSystem.Primitives", "System.IO.FileSystem.Watcher", "System.IO.IsolatedStorage", "System.IO.MemoryMappedFiles", "System.IO.Pipes", "System.IO.UnmanagedMemoryStream", "System.Linq", "System.Linq.Expressions", "System.Linq.Parallel", "System.Linq.Queryable", "System.Net", "System.Net.Http", "System.Net.HttpListener", "System.Net.Mail", "System.Net.NameResolution", "System.Net.NetworkInformation", "System.Net.Ping", "System.Net.Primitives", "System.Net.Requests", "System.Net.Security", "System.Net.ServicePoint", "System.Net.Sockets", "System.Net.WebClient", "System.Net.WebHeaderCollection", "System.Net.WebProxy", "System.Net.WebSockets.Client", "System.Net.WebSockets", "System.Numerics", "System.Numerics.Vectors", "System.ObjectModel", "System.Reflection.DispatchProxy", "System.Reflection", "System.Reflection.Emit", "System.Reflection.Emit.ILGeneration", "System.Reflection.Emit.Lightweight", "System.Reflection.Extensions", "System.Reflection.Metadata", "System.Reflection.Primitives", "System.Reflection.TypeExtensions", "System.Resources.Reader", "System.Resources.ResourceManager", "System.Resources.Writer", "System.Runtime.CompilerServices.VisualC", "System.Runtime", "System.Runtime.Extensions", "System.Runtime.Handles", "System.Runtime.InteropServices", "System.Runtime.InteropServices.RuntimeInformation", "System.Runtime.InteropServices.WindowsRuntime", "System.Runtime.Loader", "System.Runtime.Numerics", "System.Runtime.Serialization", "System.Runtime.Serialization.Formatters", "System.Runtime.Serialization.Json", "System.Runtime.Serialization.Primitives", "System.Runtime.Serialization.Xml", "System.Security.Claims", "System.Security.Cryptography.Algorithms", "System.Security.Cryptography.Csp", "System.Security.Cryptography.Encoding", "System.Security.Cryptography.Primitives", "System.Security.Cryptography.X509Certificates", "System.Security", "System.Security.Principal", "System.Security.SecureString", "System.ServiceModel.Web", "System.ServiceProcess", "System.Text.Encoding", "System.Text.Encoding.Extensions", "System.Text.RegularExpressions", "System.Threading", "System.Threading.Overlapped", "System.Threading.Tasks.Dataflow", "System.Threading.Tasks", "System.Threading.Tasks.Extensions", "System.Threading.Tasks.Parallel", "System.Threading.Thread", "System.Threading.ThreadPool", "System.Threading.Timer", "System.Transactions", "System.Transactions.Local", "System.ValueTuple", "System.Web", "System.Web.HttpUtility", "System.Windows", "System.Xml", "System.Xml.Linq", "System.Xml.ReaderWriter", "System.Xml.Serialization", "System.Xml.XDocument", "System.Xml.XmlDocument", "System.Xml.XmlSerializer", "System.Xml.XPath", "System.Xml.XPath.XDocument", "WindowsBase"]; | ||
const references_full = ["Fable.Core", "FSharp.Core", "Microsoft.CSharp", "Microsoft.VisualBasic.Core", "Microsoft.VisualBasic", "Microsoft.Win32.Primitives", "mscorlib", "netstandard", "System.AppContext", "System.Buffers", "System.Collections.Concurrent", "System.Collections", "System.Collections.Immutable", "System.Collections.NonGeneric", "System.Collections.Specialized", "System.ComponentModel.Annotations", "System.ComponentModel.DataAnnotations", "System.ComponentModel", "System.ComponentModel.EventBasedAsync", "System.ComponentModel.Primitives", "System.ComponentModel.TypeConverter", "System.Configuration", "System.Console", "System.Core", "System.Data.Common", "System.Data.DataSetExtensions", "System.Data", "System.Diagnostics.Contracts", "System.Diagnostics.Debug", "System.Diagnostics.DiagnosticSource", "System.Diagnostics.FileVersionInfo", "System.Diagnostics.Process", "System.Diagnostics.StackTrace", "System.Diagnostics.TextWriterTraceListener", "System.Diagnostics.Tools", "System.Diagnostics.TraceSource", "System.Diagnostics.Tracing", "System", "System.Drawing", "System.Drawing.Primitives", "System.Dynamic.Runtime", "System.Globalization.Calendars", "System.Globalization", "System.Globalization.Extensions", "System.IO.Compression.Brotli", "System.IO.Compression", "System.IO.Compression.FileSystem", "System.IO.Compression.ZipFile", "System.IO", "System.IO.FileSystem", "System.IO.FileSystem.DriveInfo", "System.IO.FileSystem.Primitives", "System.IO.FileSystem.Watcher", "System.IO.IsolatedStorage", "System.IO.MemoryMappedFiles", "System.IO.Pipes", "System.IO.UnmanagedMemoryStream", "System.Linq", "System.Linq.Expressions", "System.Linq.Parallel", "System.Linq.Queryable", "System.Memory", "System.Net", "System.Net.Http", "System.Net.HttpListener", "System.Net.Mail", "System.Net.NameResolution", "System.Net.NetworkInformation", "System.Net.Ping", "System.Net.Primitives", "System.Net.Requests", "System.Net.Security", "System.Net.ServicePoint", "System.Net.Sockets", "System.Net.WebClient", "System.Net.WebHeaderCollection", "System.Net.WebProxy", "System.Net.WebSockets.Client", "System.Net.WebSockets", "System.Numerics", "System.Numerics.Vectors", "System.ObjectModel", "System.Reflection.DispatchProxy", "System.Reflection", "System.Reflection.Emit", "System.Reflection.Emit.ILGeneration", "System.Reflection.Emit.Lightweight", "System.Reflection.Extensions", "System.Reflection.Metadata", "System.Reflection.Primitives", "System.Reflection.TypeExtensions", "System.Resources.Reader", "System.Resources.ResourceManager", "System.Resources.Writer", "System.Runtime.CompilerServices.Unsafe", "System.Runtime.CompilerServices.VisualC", "System.Runtime", "System.Runtime.Extensions", "System.Runtime.Handles", "System.Runtime.InteropServices", "System.Runtime.InteropServices.RuntimeInformation", "System.Runtime.InteropServices.WindowsRuntime", "System.Runtime.Intrinsics", "System.Runtime.Loader", "System.Runtime.Numerics", "System.Runtime.Serialization", "System.Runtime.Serialization.Formatters", "System.Runtime.Serialization.Json", "System.Runtime.Serialization.Primitives", "System.Runtime.Serialization.Xml", "System.Security.Claims", "System.Security.Cryptography.Algorithms", "System.Security.Cryptography.Csp", "System.Security.Cryptography.Encoding", "System.Security.Cryptography.Primitives", "System.Security.Cryptography.X509Certificates", "System.Security", "System.Security.Principal", "System.Security.SecureString", "System.ServiceModel.Web", "System.ServiceProcess", "System.Text.Encoding.CodePages", "System.Text.Encoding", "System.Text.Encoding.Extensions", "System.Text.Encodings.Web", "System.Text.Json", "System.Text.RegularExpressions", "System.Threading.Channels", "System.Threading", "System.Threading.Overlapped", "System.Threading.Tasks.Dataflow", "System.Threading.Tasks", "System.Threading.Tasks.Extensions", "System.Threading.Tasks.Parallel", "System.Threading.Thread", "System.Threading.ThreadPool", "System.Threading.Timer", "System.Transactions", "System.Transactions.Local", "System.ValueTuple", "System.Web", "System.Web.HttpUtility", "System.Windows", "System.Xml", "System.Xml.Linq", "System.Xml.ReaderWriter", "System.Xml.Serialization", "System.Xml.XDocument", "System.Xml.XmlDocument", "System.Xml.XmlSerializer", "System.Xml.XPath", "System.Xml.XPath.XDocument", "WindowsBase"]; | ||
exports.references_full = references_full; |
{ | ||
"name": "fable-compiler-js", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "index.js", | ||
@@ -28,5 +28,5 @@ "bin": { | ||
"fable-babel-plugins": "^2.2.0", | ||
"fable-metadata": "^1.1.2", | ||
"fable-standalone": "^1.2.0" | ||
"fable-metadata": "^1.2.0", | ||
"fable-standalone": "^1.2.3" | ||
} | ||
} |
@@ -0,1 +1,5 @@ | ||
### 1.1.1 | ||
* Update to fable-metadata 1.2.0 & fable-standalone 1.2.3 | ||
### 1.1.0 | ||
@@ -2,0 +6,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
441219
12988
2
Updatedfable-metadata@^1.2.0
Updatedfable-standalone@^1.2.3