@digicatapult/dtdl-parser 0.0.14 → 0.0.15
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/build/interop/_framework/DTDLParserJSInterop.pdb +0 -0
- package/build/interop/_framework/DTDLParserJSInterop.wasm +0 -0
- package/build/interop/_framework/blazor.boot.json +3 -3
- package/package.json +4 -5
- package/.depcheckrc +0 -6
- package/.github/CODEOWNERS +0 -4
- package/.github/workflows/release.yml +0 -198
- package/.github/workflows/test.yml +0 -92
- package/.gitignore +0 -4
- package/.prettierrc +0 -9
- package/.swcrc +0 -32
- package/dtdl/error/error.json +0 -11
- package/dtdl/simple/simple.json +0 -9
- package/eslint.config.mjs +0 -52
- package/src/__tests__/fixtures/empty.json +0 -1
- package/src/__tests__/fixtures/nested/nested.json +0 -1
- package/src/__tests__/index.test.ts +0 -119
- package/src/error.ts +0 -25
- package/src/index.ts +0 -134
- package/src/interop/DTDLParserJSInterop.csproj +0 -26
- package/src/interop/LICENSE +0 -21
- package/src/interop/ModelParserInterop.cs +0 -19
- package/src/interop/README.md +0 -1
- package/src/interop/bin/Release/net8.0/browser-wasm/DTDLParser.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/DTDLParserJSInterop.deps.json +0 -921
- package/src/interop/bin/Release/net8.0/browser-wasm/DTDLParserJSInterop.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/DTDLParserJSInterop.pdb +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/DTDLParserJSInterop.runtimeconfig.json +0 -40
- package/src/interop/bin/Release/net8.0/browser-wasm/Microsoft.CSharp.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/Microsoft.VisualBasic.Core.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/Microsoft.VisualBasic.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/Microsoft.Win32.Primitives.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/Microsoft.Win32.Registry.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.AppContext.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Buffers.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Collections.Concurrent.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Collections.Immutable.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Collections.NonGeneric.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Collections.Specialized.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Collections.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.ComponentModel.Annotations.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.ComponentModel.DataAnnotations.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.ComponentModel.EventBasedAsync.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.ComponentModel.Primitives.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.ComponentModel.TypeConverter.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.ComponentModel.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Configuration.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Console.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Core.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Data.Common.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Data.DataSetExtensions.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Data.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Diagnostics.Contracts.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Diagnostics.Debug.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Diagnostics.DiagnosticSource.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Diagnostics.FileVersionInfo.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Diagnostics.Process.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Diagnostics.StackTrace.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Diagnostics.TextWriterTraceListener.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Diagnostics.Tools.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Diagnostics.TraceSource.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Diagnostics.Tracing.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Drawing.Primitives.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Drawing.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Dynamic.Runtime.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Formats.Asn1.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Formats.Tar.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Globalization.Calendars.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Globalization.Extensions.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Globalization.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.Compression.Brotli.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.Compression.FileSystem.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.Compression.ZipFile.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.Compression.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.FileSystem.AccessControl.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.FileSystem.DriveInfo.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.FileSystem.Primitives.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.FileSystem.Watcher.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.FileSystem.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.IsolatedStorage.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.MemoryMappedFiles.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.Pipes.AccessControl.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.Pipes.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.UnmanagedMemoryStream.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.IO.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Linq.Expressions.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Linq.Parallel.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Linq.Queryable.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Linq.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Memory.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.Http.Json.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.Http.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.HttpListener.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.Mail.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.NameResolution.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.NetworkInformation.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.Ping.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.Primitives.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.Quic.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.Requests.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.Security.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.ServicePoint.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.Sockets.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.WebClient.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.WebHeaderCollection.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.WebProxy.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.WebSockets.Client.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.WebSockets.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Net.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Numerics.Vectors.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Numerics.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.ObjectModel.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Private.CoreLib.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Private.DataContractSerialization.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Private.Uri.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Private.Xml.Linq.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Private.Xml.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Reflection.DispatchProxy.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Reflection.Emit.ILGeneration.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Reflection.Emit.Lightweight.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Reflection.Emit.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Reflection.Extensions.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Reflection.Metadata.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Reflection.Primitives.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Reflection.TypeExtensions.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Reflection.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Resources.Reader.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Resources.ResourceManager.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Resources.Writer.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.CompilerServices.Unsafe.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.CompilerServices.VisualC.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.Extensions.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.Handles.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.InteropServices.JavaScript.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.InteropServices.RuntimeInformation.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.InteropServices.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.Intrinsics.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.Loader.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.Numerics.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.Serialization.Formatters.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.Serialization.Json.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.Serialization.Primitives.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.Serialization.Xml.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.Serialization.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.AccessControl.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.Claims.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.Cryptography.Algorithms.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.Cryptography.Cng.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.Cryptography.Csp.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.Cryptography.Encoding.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.Cryptography.OpenSsl.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.Cryptography.Primitives.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.Cryptography.X509Certificates.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.Cryptography.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.Principal.Windows.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.Principal.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.SecureString.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.ServiceModel.Web.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.ServiceProcess.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Text.Encoding.CodePages.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Text.Encoding.Extensions.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Text.Encoding.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Text.Encodings.Web.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Text.Json.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Text.RegularExpressions.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Threading.Channels.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Threading.Overlapped.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Threading.Tasks.Dataflow.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Threading.Tasks.Extensions.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Threading.Tasks.Parallel.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Threading.Tasks.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Threading.Thread.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Threading.ThreadPool.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Threading.Timer.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Threading.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Transactions.Local.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Transactions.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.ValueTuple.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Web.HttpUtility.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Web.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Windows.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Xml.Linq.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Xml.ReaderWriter.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Xml.Serialization.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Xml.XDocument.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Xml.XPath.XDocument.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Xml.XPath.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Xml.XmlDocument.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Xml.XmlSerializer.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.Xml.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/System.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/WindowsBase.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/corebindings.c +0 -104
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet-legacy.d.ts +0 -295
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.d.ts +0 -472
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.es6.extpost.js +0 -2
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.es6.lib.js +0 -163
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.es6.pre.js +0 -5
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.js +0 -4
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.js.map +0 -1
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.native.js +0 -17
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.native.js.symbols +0 -8582
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.native.wasm +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.runtime.js +0 -4
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.runtime.js.map +0 -1
- package/src/interop/bin/Release/net8.0/browser-wasm/driver.c +0 -1391
- package/src/interop/bin/Release/net8.0/browser-wasm/emcc-default.rsp +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/emcc-link.rsp +0 -16
- package/src/interop/bin/Release/net8.0/browser-wasm/emcc-props.json +0 -14
- package/src/interop/bin/Release/net8.0/browser-wasm/gc-common.h +0 -73
- package/src/interop/bin/Release/net8.0/browser-wasm/icudt.dat +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/icudt_CJK.dat +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/icudt_EFIGS.dat +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/icudt_hybrid.dat +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/icudt_no_CJK.dat +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libSystem.Globalization.Native.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libSystem.IO.Compression.Native.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libSystem.Native.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libicudata.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libicui18n.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libicuuc.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-component-debugger-static.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-component-debugger-stub-static.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-component-diagnostics_tracing-static.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-component-diagnostics_tracing-stub-static.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-component-hot_reload-static.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-component-hot_reload-stub-static.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-component-marshal-ilgen-static.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-component-marshal-ilgen-stub-static.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-ee-interp.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-icall-table.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-profiler-aot.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-profiler-browser.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-wasm-eh-js.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-wasm-eh-wasm.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-wasm-nosimd.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmono-wasm-simd.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/libmonosgen-2.0.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/mscorlib.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/netstandard.dll +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/package.json +0 -44
- package/src/interop/bin/Release/net8.0/browser-wasm/pal_random.lib.js +0 -45
- package/src/interop/bin/Release/net8.0/browser-wasm/pinvoke.c +0 -62
- package/src/interop/bin/Release/net8.0/browser-wasm/pinvoke.h +0 -50
- package/src/interop/bin/Release/net8.0/browser-wasm/runtimeconfig.bin +0 -1
- package/src/interop/bin/Release/net8.0/browser-wasm/wasm-bundled-timezones.a +0 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/wasm-config.h +0 -13
- package/src/interop/modelParser.js +0 -11
- package/src/interop/obj/DTDLParserJSInterop.csproj.nuget.dgspec.json +0 -83
- package/src/interop/obj/DTDLParserJSInterop.csproj.nuget.g.props +0 -21
- package/src/interop/obj/DTDLParserJSInterop.csproj.nuget.g.targets +0 -6
- package/src/interop/obj/Release/net8.0/browser-wasm/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +0 -4
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLPars.F465EEA8.Up2Date +0 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.AssemblyInfo.cs +0 -22
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.AssemblyInfoInputs.cache +0 -1
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.GeneratedMSBuildEditorConfig.editorconfig +0 -17
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.assets.cache +0 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.csproj.AssemblyReference.cache +0 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.csproj.CoreCompileInputs.cache +0 -1
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.csproj.FileListAbsolute.txt +0 -237
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.dll +0 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.genruntimeconfig.cache +0 -1
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.pdb +0 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.sourcelink.json +0 -1
- package/src/interop/obj/Release/net8.0/browser-wasm/ref/DTDLParserJSInterop.dll +0 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/refint/DTDLParserJSInterop.dll +0 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/corebindings.o +0 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/dotnet.native.js +0 -17
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/dotnet.native.wasm +0 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/driver.o +0 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/emcc-compile.rsp +0 -12
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/emcc-link.rsp +0 -38
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/icall-table.h +0 -1653
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/m2n_cache.txt +0 -3
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/pinvoke-table.h +0 -329
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/pinvoke.o +0 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/runtime-icall-table.h +0 -449
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/wasm_m2n_invoke.g.h +0 -522
- package/src/interop/obj/project.assets.json +0 -384
- package/src/interop/obj/project.nuget.cache +0 -13
- package/src/interop/runtimeconfig.template.json +0 -11
- package/src/interop.ts +0 -9
- package/test/mocharc.json +0 -6
- package/tsconfig.json +0 -31
- package/types/DtdlErr.d.ts +0 -26
- package/types/DtdlOm.d.ts +0 -372
|
@@ -1,472 +0,0 @@
|
|
|
1
|
-
//! Licensed to the .NET Foundation under one or more agreements.
|
|
2
|
-
//! The .NET Foundation licenses this file to you under the MIT license.
|
|
3
|
-
//!
|
|
4
|
-
//! This is generated file, see src/mono/wasm/runtime/rollup.config.js
|
|
5
|
-
|
|
6
|
-
//! This is not considered public API with backward compatibility guarantees.
|
|
7
|
-
|
|
8
|
-
declare interface NativePointer {
|
|
9
|
-
__brandNativePointer: "NativePointer";
|
|
10
|
-
}
|
|
11
|
-
declare interface VoidPtr extends NativePointer {
|
|
12
|
-
__brand: "VoidPtr";
|
|
13
|
-
}
|
|
14
|
-
declare interface CharPtr extends NativePointer {
|
|
15
|
-
__brand: "CharPtr";
|
|
16
|
-
}
|
|
17
|
-
declare interface Int32Ptr extends NativePointer {
|
|
18
|
-
__brand: "Int32Ptr";
|
|
19
|
-
}
|
|
20
|
-
declare interface EmscriptenModule {
|
|
21
|
-
/** @deprecated Please use growableHeapI8() instead.*/
|
|
22
|
-
HEAP8: Int8Array;
|
|
23
|
-
/** @deprecated Please use growableHeapI16() instead.*/
|
|
24
|
-
HEAP16: Int16Array;
|
|
25
|
-
/** @deprecated Please use growableHeapI32() instead. */
|
|
26
|
-
HEAP32: Int32Array;
|
|
27
|
-
/** @deprecated Please use growableHeapI64() instead. */
|
|
28
|
-
HEAP64: BigInt64Array;
|
|
29
|
-
/** @deprecated Please use growableHeapU8() instead. */
|
|
30
|
-
HEAPU8: Uint8Array;
|
|
31
|
-
/** @deprecated Please use growableHeapU16() instead. */
|
|
32
|
-
HEAPU16: Uint16Array;
|
|
33
|
-
/** @deprecated Please use growableHeapU32() instead */
|
|
34
|
-
HEAPU32: Uint32Array;
|
|
35
|
-
/** @deprecated Please use growableHeapF32() instead */
|
|
36
|
-
HEAPF32: Float32Array;
|
|
37
|
-
/** @deprecated Please use growableHeapF64() instead. */
|
|
38
|
-
HEAPF64: Float64Array;
|
|
39
|
-
_malloc(size: number): VoidPtr;
|
|
40
|
-
_free(ptr: VoidPtr): void;
|
|
41
|
-
out(message: string): void;
|
|
42
|
-
err(message: string): void;
|
|
43
|
-
ccall<T>(ident: string, returnType?: string | null, argTypes?: string[], args?: any[], opts?: any): T;
|
|
44
|
-
cwrap<T extends Function>(ident: string, returnType: string, argTypes?: string[], opts?: any): T;
|
|
45
|
-
cwrap<T extends Function>(ident: string, ...args: any[]): T;
|
|
46
|
-
setValue(ptr: VoidPtr, value: number, type: string, noSafe?: number | boolean): void;
|
|
47
|
-
setValue(ptr: Int32Ptr, value: number, type: string, noSafe?: number | boolean): void;
|
|
48
|
-
getValue(ptr: number, type: string, noSafe?: number | boolean): number;
|
|
49
|
-
UTF8ToString(ptr: CharPtr, maxBytesToRead?: number): string;
|
|
50
|
-
UTF8ArrayToString(u8Array: Uint8Array, idx?: number, maxBytesToRead?: number): string;
|
|
51
|
-
stringToUTF8Array(str: string, heap: Uint8Array, outIdx: number, maxBytesToWrite: number): void;
|
|
52
|
-
FS_createPath(parent: string, path: string, canRead?: boolean, canWrite?: boolean): string;
|
|
53
|
-
FS_createDataFile(parent: string, name: string, data: TypedArray, canRead: boolean, canWrite: boolean, canOwn?: boolean): string;
|
|
54
|
-
addFunction(fn: Function, signature: string): number;
|
|
55
|
-
stackSave(): VoidPtr;
|
|
56
|
-
stackRestore(stack: VoidPtr): void;
|
|
57
|
-
stackAlloc(size: number): VoidPtr;
|
|
58
|
-
instantiateWasm?: InstantiateWasmCallBack;
|
|
59
|
-
preInit?: (() => any)[] | (() => any);
|
|
60
|
-
preRun?: (() => any)[] | (() => any);
|
|
61
|
-
onRuntimeInitialized?: () => any;
|
|
62
|
-
postRun?: (() => any)[] | (() => any);
|
|
63
|
-
onAbort?: {
|
|
64
|
-
(error: any): void;
|
|
65
|
-
};
|
|
66
|
-
onExit?: {
|
|
67
|
-
(code: number): void;
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
type InstantiateWasmSuccessCallback = (instance: WebAssembly.Instance, module: WebAssembly.Module | undefined) => void;
|
|
71
|
-
type InstantiateWasmCallBack = (imports: WebAssembly.Imports, successCallback: InstantiateWasmSuccessCallback) => any;
|
|
72
|
-
declare type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
|
|
73
|
-
|
|
74
|
-
interface DotnetHostBuilder {
|
|
75
|
-
withConfig(config: MonoConfig): DotnetHostBuilder;
|
|
76
|
-
withConfigSrc(configSrc: string): DotnetHostBuilder;
|
|
77
|
-
withApplicationArguments(...args: string[]): DotnetHostBuilder;
|
|
78
|
-
withEnvironmentVariable(name: string, value: string): DotnetHostBuilder;
|
|
79
|
-
withEnvironmentVariables(variables: {
|
|
80
|
-
[i: string]: string;
|
|
81
|
-
}): DotnetHostBuilder;
|
|
82
|
-
withVirtualWorkingDirectory(vfsPath: string): DotnetHostBuilder;
|
|
83
|
-
withDiagnosticTracing(enabled: boolean): DotnetHostBuilder;
|
|
84
|
-
withDebugging(level: number): DotnetHostBuilder;
|
|
85
|
-
withMainAssembly(mainAssemblyName: string): DotnetHostBuilder;
|
|
86
|
-
withApplicationArgumentsFromQuery(): DotnetHostBuilder;
|
|
87
|
-
withApplicationEnvironment(applicationEnvironment?: string): DotnetHostBuilder;
|
|
88
|
-
withApplicationCulture(applicationCulture?: string): DotnetHostBuilder;
|
|
89
|
-
/**
|
|
90
|
-
* Overrides the built-in boot resource loading mechanism so that boot resources can be fetched
|
|
91
|
-
* from a custom source, such as an external CDN.
|
|
92
|
-
*/
|
|
93
|
-
withResourceLoader(loadBootResource?: LoadBootResourceCallback): DotnetHostBuilder;
|
|
94
|
-
create(): Promise<RuntimeAPI>;
|
|
95
|
-
run(): Promise<number>;
|
|
96
|
-
}
|
|
97
|
-
type MonoConfig = {
|
|
98
|
-
/**
|
|
99
|
-
* Additional search locations for assets.
|
|
100
|
-
*/
|
|
101
|
-
remoteSources?: string[];
|
|
102
|
-
/**
|
|
103
|
-
* It will not fail the startup is .pdb files can't be downloaded
|
|
104
|
-
*/
|
|
105
|
-
ignorePdbLoadErrors?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* We are throttling parallel downloads in order to avoid net::ERR_INSUFFICIENT_RESOURCES on chrome. The default value is 16.
|
|
108
|
-
*/
|
|
109
|
-
maxParallelDownloads?: number;
|
|
110
|
-
/**
|
|
111
|
-
* We are making up to 2 more delayed attempts to download same asset. Default true.
|
|
112
|
-
*/
|
|
113
|
-
enableDownloadRetry?: boolean;
|
|
114
|
-
/**
|
|
115
|
-
* Name of the assembly with main entrypoint
|
|
116
|
-
*/
|
|
117
|
-
mainAssemblyName?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Configures the runtime's globalization mode
|
|
120
|
-
*/
|
|
121
|
-
globalizationMode?: GlobalizationMode;
|
|
122
|
-
/**
|
|
123
|
-
* debugLevel > 0 enables debugging and sets the debug log level to debugLevel
|
|
124
|
-
* debugLevel == 0 disables debugging and enables interpreter optimizations
|
|
125
|
-
* debugLevel < 0 enables debugging and disables debug logging.
|
|
126
|
-
*/
|
|
127
|
-
debugLevel?: number;
|
|
128
|
-
/**
|
|
129
|
-
* Gets a value that determines whether to enable caching of the 'resources' inside a CacheStorage instance within the browser.
|
|
130
|
-
*/
|
|
131
|
-
cacheBootResources?: boolean;
|
|
132
|
-
/**
|
|
133
|
-
* Delay of the purge of the cached resources in milliseconds. Default is 10000 (10 seconds).
|
|
134
|
-
*/
|
|
135
|
-
cachedResourcesPurgeDelay?: number;
|
|
136
|
-
/**
|
|
137
|
-
* Configures use of the `integrity` directive for fetching assets
|
|
138
|
-
*/
|
|
139
|
-
disableIntegrityCheck?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* Configures use of the `no-cache` directive for fetching assets
|
|
142
|
-
*/
|
|
143
|
-
disableNoCacheFetch?: boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Enables diagnostic log messages during startup
|
|
146
|
-
*/
|
|
147
|
-
diagnosticTracing?: boolean;
|
|
148
|
-
/**
|
|
149
|
-
* Dictionary-style Object containing environment variables
|
|
150
|
-
*/
|
|
151
|
-
environmentVariables?: {
|
|
152
|
-
[i: string]: string;
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* initial number of workers to add to the emscripten pthread pool
|
|
156
|
-
*/
|
|
157
|
-
pthreadPoolSize?: number;
|
|
158
|
-
/**
|
|
159
|
-
* If true, the snapshot of runtime's memory will be stored in the browser and used for faster startup next time. Default is false.
|
|
160
|
-
*/
|
|
161
|
-
startupMemoryCache?: boolean;
|
|
162
|
-
/**
|
|
163
|
-
* application environment
|
|
164
|
-
*/
|
|
165
|
-
applicationEnvironment?: string;
|
|
166
|
-
/**
|
|
167
|
-
* Gets the application culture. This is a name specified in the BCP 47 format. See https://tools.ietf.org/html/bcp47
|
|
168
|
-
*/
|
|
169
|
-
applicationCulture?: string;
|
|
170
|
-
/**
|
|
171
|
-
* definition of assets to load along with the runtime.
|
|
172
|
-
*/
|
|
173
|
-
resources?: ResourceGroups;
|
|
174
|
-
/**
|
|
175
|
-
* appsettings files to load to VFS
|
|
176
|
-
*/
|
|
177
|
-
appsettings?: string[];
|
|
178
|
-
/**
|
|
179
|
-
* config extensions declared in MSBuild items @(WasmBootConfigExtension)
|
|
180
|
-
*/
|
|
181
|
-
extensions?: {
|
|
182
|
-
[name: string]: any;
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
type ResourceExtensions = {
|
|
186
|
-
[extensionName: string]: ResourceList;
|
|
187
|
-
};
|
|
188
|
-
interface ResourceGroups {
|
|
189
|
-
hash?: string;
|
|
190
|
-
assembly?: ResourceList;
|
|
191
|
-
lazyAssembly?: ResourceList;
|
|
192
|
-
pdb?: ResourceList;
|
|
193
|
-
jsModuleWorker?: ResourceList;
|
|
194
|
-
jsModuleNative: ResourceList;
|
|
195
|
-
jsModuleRuntime: ResourceList;
|
|
196
|
-
wasmSymbols?: ResourceList;
|
|
197
|
-
wasmNative: ResourceList;
|
|
198
|
-
icu?: ResourceList;
|
|
199
|
-
satelliteResources?: {
|
|
200
|
-
[cultureName: string]: ResourceList;
|
|
201
|
-
};
|
|
202
|
-
modulesAfterConfigLoaded?: ResourceList;
|
|
203
|
-
modulesAfterRuntimeReady?: ResourceList;
|
|
204
|
-
extensions?: ResourceExtensions;
|
|
205
|
-
vfs?: {
|
|
206
|
-
[virtualPath: string]: ResourceList;
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* A "key" is name of the file, a "value" is optional hash for integrity check.
|
|
211
|
-
*/
|
|
212
|
-
type ResourceList = {
|
|
213
|
-
[name: string]: string | null | "";
|
|
214
|
-
};
|
|
215
|
-
/**
|
|
216
|
-
* Overrides the built-in boot resource loading mechanism so that boot resources can be fetched
|
|
217
|
-
* from a custom source, such as an external CDN.
|
|
218
|
-
* @param type The type of the resource to be loaded.
|
|
219
|
-
* @param name The name of the resource to be loaded.
|
|
220
|
-
* @param defaultUri The URI from which the framework would fetch the resource by default. The URI may be relative or absolute.
|
|
221
|
-
* @param integrity The integrity string representing the expected content in the response.
|
|
222
|
-
* @param behavior The detailed behavior/type of the resource to be loaded.
|
|
223
|
-
* @returns A URI string or a Response promise to override the loading process, or null/undefined to allow the default loading behavior.
|
|
224
|
-
* When returned string is not qualified with `./` or absolute URL, it will be resolved against the application base URI.
|
|
225
|
-
*/
|
|
226
|
-
type LoadBootResourceCallback = (type: WebAssemblyBootResourceType, name: string, defaultUri: string, integrity: string, behavior: AssetBehaviors) => string | Promise<Response> | null | undefined;
|
|
227
|
-
interface LoadingResource {
|
|
228
|
-
name: string;
|
|
229
|
-
url: string;
|
|
230
|
-
response: Promise<Response>;
|
|
231
|
-
}
|
|
232
|
-
interface AssetEntry {
|
|
233
|
-
/**
|
|
234
|
-
* the name of the asset, including extension.
|
|
235
|
-
*/
|
|
236
|
-
name: string;
|
|
237
|
-
/**
|
|
238
|
-
* determines how the asset will be handled once loaded
|
|
239
|
-
*/
|
|
240
|
-
behavior: AssetBehaviors;
|
|
241
|
-
/**
|
|
242
|
-
* this should be absolute url to the asset
|
|
243
|
-
*/
|
|
244
|
-
resolvedUrl?: string;
|
|
245
|
-
/**
|
|
246
|
-
* the integrity hash of the asset (if any)
|
|
247
|
-
*/
|
|
248
|
-
hash?: string | null | "";
|
|
249
|
-
/**
|
|
250
|
-
* If specified, overrides the path of the asset in the virtual filesystem and similar data structures once downloaded.
|
|
251
|
-
*/
|
|
252
|
-
virtualPath?: string;
|
|
253
|
-
/**
|
|
254
|
-
* Culture code
|
|
255
|
-
*/
|
|
256
|
-
culture?: string;
|
|
257
|
-
/**
|
|
258
|
-
* If true, an attempt will be made to load the asset from each location in MonoConfig.remoteSources.
|
|
259
|
-
*/
|
|
260
|
-
loadRemote?: boolean;
|
|
261
|
-
/**
|
|
262
|
-
* If true, the runtime startup would not fail if the asset download was not successful.
|
|
263
|
-
*/
|
|
264
|
-
isOptional?: boolean;
|
|
265
|
-
/**
|
|
266
|
-
* If provided, runtime doesn't have to fetch the data.
|
|
267
|
-
* Runtime would set the buffer to null after instantiation to free the memory.
|
|
268
|
-
*/
|
|
269
|
-
buffer?: ArrayBuffer | Promise<ArrayBuffer>;
|
|
270
|
-
/**
|
|
271
|
-
* If provided, runtime doesn't have to import it's JavaScript modules.
|
|
272
|
-
* This will not work for multi-threaded runtime.
|
|
273
|
-
*/
|
|
274
|
-
moduleExports?: any | Promise<any>;
|
|
275
|
-
/**
|
|
276
|
-
* It's metadata + fetch-like Promise<Response>
|
|
277
|
-
* If provided, the runtime doesn't have to initiate the download. It would just await the response.
|
|
278
|
-
*/
|
|
279
|
-
pendingDownload?: LoadingResource;
|
|
280
|
-
}
|
|
281
|
-
type SingleAssetBehaviors =
|
|
282
|
-
/**
|
|
283
|
-
* The binary of the dotnet runtime.
|
|
284
|
-
*/
|
|
285
|
-
"dotnetwasm"
|
|
286
|
-
/**
|
|
287
|
-
* The javascript module for loader.
|
|
288
|
-
*/
|
|
289
|
-
| "js-module-dotnet"
|
|
290
|
-
/**
|
|
291
|
-
* The javascript module for threads.
|
|
292
|
-
*/
|
|
293
|
-
| "js-module-threads"
|
|
294
|
-
/**
|
|
295
|
-
* The javascript module for runtime.
|
|
296
|
-
*/
|
|
297
|
-
| "js-module-runtime"
|
|
298
|
-
/**
|
|
299
|
-
* The javascript module for emscripten.
|
|
300
|
-
*/
|
|
301
|
-
| "js-module-native"
|
|
302
|
-
/**
|
|
303
|
-
* Typically blazor.boot.json
|
|
304
|
-
*/
|
|
305
|
-
| "manifest";
|
|
306
|
-
type AssetBehaviors = SingleAssetBehaviors |
|
|
307
|
-
/**
|
|
308
|
-
* Load asset as a managed resource assembly.
|
|
309
|
-
*/
|
|
310
|
-
"resource"
|
|
311
|
-
/**
|
|
312
|
-
* Load asset as a managed assembly.
|
|
313
|
-
*/
|
|
314
|
-
| "assembly"
|
|
315
|
-
/**
|
|
316
|
-
* Load asset as a managed debugging information.
|
|
317
|
-
*/
|
|
318
|
-
| "pdb"
|
|
319
|
-
/**
|
|
320
|
-
* Store asset into the native heap.
|
|
321
|
-
*/
|
|
322
|
-
| "heap"
|
|
323
|
-
/**
|
|
324
|
-
* Load asset as an ICU data archive.
|
|
325
|
-
*/
|
|
326
|
-
| "icu"
|
|
327
|
-
/**
|
|
328
|
-
* Load asset into the virtual filesystem (for fopen, File.Open, etc).
|
|
329
|
-
*/
|
|
330
|
-
| "vfs"
|
|
331
|
-
/**
|
|
332
|
-
* The javascript module that came from nuget package .
|
|
333
|
-
*/
|
|
334
|
-
| "js-module-library-initializer"
|
|
335
|
-
/**
|
|
336
|
-
* The javascript module for threads.
|
|
337
|
-
*/
|
|
338
|
-
| "symbols";
|
|
339
|
-
declare const enum GlobalizationMode {
|
|
340
|
-
/**
|
|
341
|
-
* Load sharded ICU data.
|
|
342
|
-
*/
|
|
343
|
-
Sharded = "sharded",
|
|
344
|
-
/**
|
|
345
|
-
* Load all ICU data.
|
|
346
|
-
*/
|
|
347
|
-
All = "all",
|
|
348
|
-
/**
|
|
349
|
-
* Operate in invariant globalization mode.
|
|
350
|
-
*/
|
|
351
|
-
Invariant = "invariant",
|
|
352
|
-
/**
|
|
353
|
-
* Use user defined icu file.
|
|
354
|
-
*/
|
|
355
|
-
Custom = "custom",
|
|
356
|
-
/**
|
|
357
|
-
* Operate in hybrid globalization mode with small ICU files, using native platform functions.
|
|
358
|
-
*/
|
|
359
|
-
Hybrid = "hybrid"
|
|
360
|
-
}
|
|
361
|
-
type DotnetModuleConfig = {
|
|
362
|
-
disableDotnet6Compatibility?: boolean;
|
|
363
|
-
config?: MonoConfig;
|
|
364
|
-
configSrc?: string;
|
|
365
|
-
onConfigLoaded?: (config: MonoConfig) => void | Promise<void>;
|
|
366
|
-
onDotnetReady?: () => void | Promise<void>;
|
|
367
|
-
onDownloadResourceProgress?: (resourcesLoaded: number, totalResources: number) => void;
|
|
368
|
-
imports?: any;
|
|
369
|
-
exports?: string[];
|
|
370
|
-
} & Partial<EmscriptenModule>;
|
|
371
|
-
type APIType = {
|
|
372
|
-
runMain: (mainAssemblyName: string, args: string[]) => Promise<number>;
|
|
373
|
-
runMainAndExit: (mainAssemblyName: string, args: string[]) => Promise<number>;
|
|
374
|
-
setEnvironmentVariable: (name: string, value: string) => void;
|
|
375
|
-
getAssemblyExports(assemblyName: string): Promise<any>;
|
|
376
|
-
setModuleImports(moduleName: string, moduleImports: any): void;
|
|
377
|
-
getConfig: () => MonoConfig;
|
|
378
|
-
invokeLibraryInitializers: (functionName: string, args: any[]) => Promise<void>;
|
|
379
|
-
setHeapB32: (offset: NativePointer, value: number | boolean) => void;
|
|
380
|
-
setHeapU8: (offset: NativePointer, value: number) => void;
|
|
381
|
-
setHeapU16: (offset: NativePointer, value: number) => void;
|
|
382
|
-
setHeapU32: (offset: NativePointer, value: NativePointer | number) => void;
|
|
383
|
-
setHeapI8: (offset: NativePointer, value: number) => void;
|
|
384
|
-
setHeapI16: (offset: NativePointer, value: number) => void;
|
|
385
|
-
setHeapI32: (offset: NativePointer, value: number) => void;
|
|
386
|
-
setHeapI52: (offset: NativePointer, value: number) => void;
|
|
387
|
-
setHeapU52: (offset: NativePointer, value: number) => void;
|
|
388
|
-
setHeapI64Big: (offset: NativePointer, value: bigint) => void;
|
|
389
|
-
setHeapF32: (offset: NativePointer, value: number) => void;
|
|
390
|
-
setHeapF64: (offset: NativePointer, value: number) => void;
|
|
391
|
-
getHeapB32: (offset: NativePointer) => boolean;
|
|
392
|
-
getHeapU8: (offset: NativePointer) => number;
|
|
393
|
-
getHeapU16: (offset: NativePointer) => number;
|
|
394
|
-
getHeapU32: (offset: NativePointer) => number;
|
|
395
|
-
getHeapI8: (offset: NativePointer) => number;
|
|
396
|
-
getHeapI16: (offset: NativePointer) => number;
|
|
397
|
-
getHeapI32: (offset: NativePointer) => number;
|
|
398
|
-
getHeapI52: (offset: NativePointer) => number;
|
|
399
|
-
getHeapU52: (offset: NativePointer) => number;
|
|
400
|
-
getHeapI64Big: (offset: NativePointer) => bigint;
|
|
401
|
-
getHeapF32: (offset: NativePointer) => number;
|
|
402
|
-
getHeapF64: (offset: NativePointer) => number;
|
|
403
|
-
localHeapViewI8: () => Int8Array;
|
|
404
|
-
localHeapViewI16: () => Int16Array;
|
|
405
|
-
localHeapViewI32: () => Int32Array;
|
|
406
|
-
localHeapViewI64Big: () => BigInt64Array;
|
|
407
|
-
localHeapViewU8: () => Uint8Array;
|
|
408
|
-
localHeapViewU16: () => Uint16Array;
|
|
409
|
-
localHeapViewU32: () => Uint32Array;
|
|
410
|
-
localHeapViewF32: () => Float32Array;
|
|
411
|
-
localHeapViewF64: () => Float64Array;
|
|
412
|
-
};
|
|
413
|
-
type RuntimeAPI = {
|
|
414
|
-
/**
|
|
415
|
-
* @deprecated Please use API object instead. See also MONOType in dotnet-legacy.d.ts
|
|
416
|
-
*/
|
|
417
|
-
MONO: any;
|
|
418
|
-
/**
|
|
419
|
-
* @deprecated Please use API object instead. See also BINDINGType in dotnet-legacy.d.ts
|
|
420
|
-
*/
|
|
421
|
-
BINDING: any;
|
|
422
|
-
INTERNAL: any;
|
|
423
|
-
Module: EmscriptenModule;
|
|
424
|
-
runtimeId: number;
|
|
425
|
-
runtimeBuildInfo: {
|
|
426
|
-
productVersion: string;
|
|
427
|
-
gitHash: string;
|
|
428
|
-
buildConfiguration: string;
|
|
429
|
-
};
|
|
430
|
-
} & APIType;
|
|
431
|
-
type ModuleAPI = {
|
|
432
|
-
dotnet: DotnetHostBuilder;
|
|
433
|
-
exit: (code: number, reason?: any) => void;
|
|
434
|
-
};
|
|
435
|
-
type CreateDotnetRuntimeType = (moduleFactory: DotnetModuleConfig | ((api: RuntimeAPI) => DotnetModuleConfig)) => Promise<RuntimeAPI>;
|
|
436
|
-
type WebAssemblyBootResourceType = "assembly" | "pdb" | "dotnetjs" | "dotnetwasm" | "globalization" | "manifest" | "configuration";
|
|
437
|
-
|
|
438
|
-
interface IDisposable {
|
|
439
|
-
dispose(): void;
|
|
440
|
-
get isDisposed(): boolean;
|
|
441
|
-
}
|
|
442
|
-
interface IMemoryView extends IDisposable {
|
|
443
|
-
/**
|
|
444
|
-
* copies elements from provided source to the wasm memory.
|
|
445
|
-
* target has to have the elements of the same type as the underlying C# array.
|
|
446
|
-
* same as TypedArray.set()
|
|
447
|
-
*/
|
|
448
|
-
set(source: TypedArray, targetOffset?: number): void;
|
|
449
|
-
/**
|
|
450
|
-
* copies elements from wasm memory to provided target.
|
|
451
|
-
* target has to have the elements of the same type as the underlying C# array.
|
|
452
|
-
*/
|
|
453
|
-
copyTo(target: TypedArray, sourceOffset?: number): void;
|
|
454
|
-
/**
|
|
455
|
-
* same as TypedArray.slice()
|
|
456
|
-
*/
|
|
457
|
-
slice(start?: number, end?: number): TypedArray;
|
|
458
|
-
get length(): number;
|
|
459
|
-
get byteLength(): number;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
declare function mono_exit(exit_code: number, reason?: any): void;
|
|
463
|
-
|
|
464
|
-
declare const dotnet: DotnetHostBuilder;
|
|
465
|
-
declare const exit: typeof mono_exit;
|
|
466
|
-
|
|
467
|
-
declare global {
|
|
468
|
-
function getDotnetRuntime(runtimeId: number): RuntimeAPI | undefined;
|
|
469
|
-
}
|
|
470
|
-
declare const createDotnetRuntime: CreateDotnetRuntimeType;
|
|
471
|
-
|
|
472
|
-
export { AssetBehaviors, AssetEntry, CreateDotnetRuntimeType, DotnetHostBuilder, DotnetModuleConfig, EmscriptenModule, GlobalizationMode, IMemoryView, ModuleAPI, MonoConfig, RuntimeAPI, createDotnetRuntime as default, dotnet, exit };
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
// Licensed to the .NET Foundation under one or more agreements.
|
|
2
|
-
// The .NET Foundation licenses this file to you under the MIT license.
|
|
3
|
-
/* eslint-disable no-undef */
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
|
|
7
|
-
// -- this javascript file is evaluated by emcc during compilation! --
|
|
8
|
-
|
|
9
|
-
// because we can't pass custom define symbols to acorn optimizer, we use environment variables to pass other build options
|
|
10
|
-
const DISABLE_LEGACY_JS_INTEROP = process.env.DISABLE_LEGACY_JS_INTEROP === "1";
|
|
11
|
-
const WASM_ENABLE_SIMD = process.env.WASM_ENABLE_SIMD === "1";
|
|
12
|
-
const WASM_ENABLE_EH = process.env.WASM_ENABLE_EH === "1";
|
|
13
|
-
const ENABLE_BROWSER_PROFILER = process.env.ENABLE_BROWSER_PROFILER === "1";
|
|
14
|
-
const ENABLE_AOT_PROFILER = process.env.ENABLE_AOT_PROFILER === "1";
|
|
15
|
-
var methodIndexByName = undefined;
|
|
16
|
-
var gitHash = undefined;
|
|
17
|
-
|
|
18
|
-
function setup(linkerSetup) {
|
|
19
|
-
const pthreadReplacements = {};
|
|
20
|
-
const dotnet_replacements = {
|
|
21
|
-
fetch: globalThis.fetch,
|
|
22
|
-
require,
|
|
23
|
-
updateMemoryViews,
|
|
24
|
-
pthreadReplacements,
|
|
25
|
-
scriptDirectory,
|
|
26
|
-
noExitRuntime
|
|
27
|
-
};
|
|
28
|
-
// USE_PTHREADS is emscripten's define symbol, which is passed to acorn optimizer, so we could use it here
|
|
29
|
-
#if USE_PTHREADS
|
|
30
|
-
pthreadReplacements.loadWasmModuleToWorker = PThread.loadWasmModuleToWorker;
|
|
31
|
-
pthreadReplacements.threadInitTLS = PThread.threadInitTLS;
|
|
32
|
-
pthreadReplacements.allocateUnusedWorker = PThread.allocateUnusedWorker;
|
|
33
|
-
#else
|
|
34
|
-
const ENVIRONMENT_IS_PTHREAD = false;
|
|
35
|
-
#endif
|
|
36
|
-
|
|
37
|
-
Module.__dotnet_runtime.passEmscriptenInternals({
|
|
38
|
-
isPThread: ENVIRONMENT_IS_PTHREAD,
|
|
39
|
-
quit_, ExitStatus,
|
|
40
|
-
...linkerSetup
|
|
41
|
-
});
|
|
42
|
-
Module.__dotnet_runtime.initializeReplacements(dotnet_replacements);
|
|
43
|
-
|
|
44
|
-
#if USE_PTHREADS
|
|
45
|
-
if (ENVIRONMENT_IS_PTHREAD) {
|
|
46
|
-
Module.config = {};
|
|
47
|
-
Module.__dotnet_runtime.configureWorkerStartup(Module);
|
|
48
|
-
} else {
|
|
49
|
-
#endif
|
|
50
|
-
Module.__dotnet_runtime.configureEmscriptenStartup(Module);
|
|
51
|
-
#if USE_PTHREADS
|
|
52
|
-
}
|
|
53
|
-
#endif
|
|
54
|
-
|
|
55
|
-
updateMemoryViews = dotnet_replacements.updateMemoryViews;
|
|
56
|
-
noExitRuntime = dotnet_replacements.noExitRuntime;
|
|
57
|
-
fetch = dotnet_replacements.fetch;
|
|
58
|
-
require = dotnet_replacements.require;
|
|
59
|
-
_scriptDir = __dirname = scriptDirectory = dotnet_replacements.scriptDirectory;
|
|
60
|
-
#if USE_PTHREADS
|
|
61
|
-
PThread.loadWasmModuleToWorker = pthreadReplacements.loadWasmModuleToWorker;
|
|
62
|
-
PThread.threadInitTLS = pthreadReplacements.threadInitTLS;
|
|
63
|
-
PThread.allocateUnusedWorker = pthreadReplacements.allocateUnusedWorker;
|
|
64
|
-
#endif
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const DotnetSupportLib = {
|
|
68
|
-
$DOTNET: { setup },
|
|
69
|
-
icudt68_dat: function () { throw new Error('dummy link symbol') },
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
function createWasmImportStubsFrom(collection) {
|
|
73
|
-
for (let functionName in collection) {
|
|
74
|
-
if (functionName in DotnetSupportLib) throw new Error(`Function ${functionName} is already defined`);
|
|
75
|
-
const runtime_idx = collection[functionName]
|
|
76
|
-
const stub_fn = new Function(`return {runtime_idx:${runtime_idx}};//${functionName}`);
|
|
77
|
-
DotnetSupportLib[functionName] = stub_fn;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// the JS methods would be visible to EMCC linker and become imports of the WASM module
|
|
82
|
-
// we generate simple stub for each exported function so that emcc will include them in the final output
|
|
83
|
-
// we will replace them with the real implementation in replace_linker_placeholders
|
|
84
|
-
function injectDependencies() {
|
|
85
|
-
createWasmImportStubsFrom(methodIndexByName.mono_wasm_imports);
|
|
86
|
-
|
|
87
|
-
#if USE_PTHREADS
|
|
88
|
-
createWasmImportStubsFrom(methodIndexByName.mono_wasm_threads_imports);
|
|
89
|
-
#endif
|
|
90
|
-
|
|
91
|
-
if (!DISABLE_LEGACY_JS_INTEROP) {
|
|
92
|
-
createWasmImportStubsFrom(methodIndexByName.mono_wasm_legacy_interop_imports);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
DotnetSupportLib["$DOTNET__postset"] = `DOTNET.setup({ ` +
|
|
96
|
-
`linkerDisableLegacyJsInterop: ${DISABLE_LEGACY_JS_INTEROP ? "true" : "false"},` +
|
|
97
|
-
`linkerWasmEnableSIMD: ${WASM_ENABLE_SIMD ? "true" : "false"},` +
|
|
98
|
-
`linkerWasmEnableEH: ${WASM_ENABLE_EH ? "true" : "false"},` +
|
|
99
|
-
`linkerEnableAotProfiler: ${ENABLE_AOT_PROFILER ? "true" : "false"}, ` +
|
|
100
|
-
`linkerEnableBrowserProfiler: ${ENABLE_BROWSER_PROFILER ? "true" : "false"}, ` +
|
|
101
|
-
`gitHash: "${gitHash}", ` +
|
|
102
|
-
`});`;
|
|
103
|
-
|
|
104
|
-
autoAddDeps(DotnetSupportLib, "$DOTNET");
|
|
105
|
-
mergeInto(LibraryManager.library, DotnetSupportLib);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
// var methodIndexByName wil be appended below by the MSBuild in wasm.proj
|
|
110
|
-
var gitHash = "81cabf2857a01351e5ab578947c7403a5b128ad1";
|
|
111
|
-
var methodIndexByName = {
|
|
112
|
-
"mono_wasm_imports": {
|
|
113
|
-
"mono_wasm_schedule_timer": 0,
|
|
114
|
-
"mono_wasm_asm_loaded": 1,
|
|
115
|
-
"mono_wasm_debugger_log": 2,
|
|
116
|
-
"mono_wasm_add_dbg_command_received": 3,
|
|
117
|
-
"mono_wasm_fire_debugger_agent_message_with_data": 4,
|
|
118
|
-
"mono_wasm_fire_debugger_agent_message_with_data_to_pause": 5,
|
|
119
|
-
"schedule_background_exec": 6,
|
|
120
|
-
"mono_interp_tier_prepare_jiterpreter": 7,
|
|
121
|
-
"mono_interp_record_interp_entry": 8,
|
|
122
|
-
"mono_interp_jit_wasm_entry_trampoline": 9,
|
|
123
|
-
"mono_interp_jit_wasm_jit_call_trampoline": 10,
|
|
124
|
-
"mono_interp_invoke_wasm_jit_call_trampoline": 11,
|
|
125
|
-
"mono_interp_flush_jitcall_queue": 12,
|
|
126
|
-
"mono_jiterp_do_jit_call_indirect": 13,
|
|
127
|
-
"mono_wasm_profiler_enter": 14,
|
|
128
|
-
"mono_wasm_profiler_leave": 15,
|
|
129
|
-
"mono_wasm_trace_logger": 16,
|
|
130
|
-
"mono_wasm_set_entrypoint_breakpoint": 17,
|
|
131
|
-
"mono_wasm_event_pipe_early_startup_callback": 18,
|
|
132
|
-
"mono_wasm_release_cs_owned_object": 19,
|
|
133
|
-
"mono_wasm_bind_js_function": 20,
|
|
134
|
-
"mono_wasm_invoke_bound_function": 21,
|
|
135
|
-
"mono_wasm_invoke_import": 22,
|
|
136
|
-
"mono_wasm_bind_cs_function": 23,
|
|
137
|
-
"mono_wasm_marshal_promise": 24,
|
|
138
|
-
"mono_wasm_change_case_invariant": 25,
|
|
139
|
-
"mono_wasm_change_case": 26,
|
|
140
|
-
"mono_wasm_compare_string": 27,
|
|
141
|
-
"mono_wasm_starts_with": 28,
|
|
142
|
-
"mono_wasm_ends_with": 29,
|
|
143
|
-
"mono_wasm_index_of": 30,
|
|
144
|
-
"mono_wasm_get_calendar_info": 31,
|
|
145
|
-
"mono_wasm_get_culture_info": 32,
|
|
146
|
-
"mono_wasm_get_first_day_of_week": 33,
|
|
147
|
-
"mono_wasm_get_first_week_of_year": 34
|
|
148
|
-
},
|
|
149
|
-
"mono_wasm_threads_imports": {},
|
|
150
|
-
"mono_wasm_legacy_interop_imports": {
|
|
151
|
-
"mono_wasm_invoke_js_with_args_ref": 35,
|
|
152
|
-
"mono_wasm_get_object_property_ref": 36,
|
|
153
|
-
"mono_wasm_set_object_property_ref": 37,
|
|
154
|
-
"mono_wasm_get_by_index_ref": 38,
|
|
155
|
-
"mono_wasm_set_by_index_ref": 39,
|
|
156
|
-
"mono_wasm_get_global_object_ref": 40,
|
|
157
|
-
"mono_wasm_create_cs_owned_object_ref": 41,
|
|
158
|
-
"mono_wasm_typed_array_to_array_ref": 42,
|
|
159
|
-
"mono_wasm_typed_array_from_ref": 43,
|
|
160
|
-
"mono_wasm_invoke_js_blazor": 44
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
injectDependencies();
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
if (_nativeModuleLoaded) throw new Error("Native module already loaded");
|
|
2
|
-
_nativeModuleLoaded = true;
|
|
3
|
-
createDotnetRuntime = Module = createDotnetRuntime(Module);
|
|
4
|
-
Module["getWasmIndirectFunctionTable"] = function () { return wasmTable; }
|
|
5
|
-
Module["getMemory"] = function () { return wasmMemory; }
|