@digicatapult/dtdl-parser 0.0.13 → 0.0.14
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/.depcheckrc +6 -0
- package/.github/CODEOWNERS +4 -0
- package/.github/workflows/release.yml +198 -0
- package/.github/workflows/test.yml +92 -0
- package/.gitignore +4 -0
- package/.prettierrc +9 -0
- package/.swcrc +32 -0
- package/build/error.d.ts +2 -0
- package/build/error.js +9 -0
- package/build/error.js.map +1 -0
- package/build/index.d.ts +8 -0
- package/build/index.js +59 -0
- package/build/index.js.map +1 -0
- 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/build/interop.d.ts +5 -0
- package/dtdl/error/error.json +11 -0
- package/dtdl/simple/simple.json +9 -0
- package/eslint.config.mjs +52 -0
- package/package.json +14 -6
- package/src/__tests__/index.test.ts +119 -0
- package/src/error.ts +25 -0
- package/src/index.ts +134 -0
- package/src/interop/DTDLParserJSInterop.csproj +26 -0
- package/src/interop/LICENSE +21 -0
- package/src/interop/ModelParserInterop.cs +19 -0
- package/src/interop/README.md +1 -0
- 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 +921 -0
- 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 +40 -0
- 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 +104 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet-legacy.d.ts +295 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.d.ts +472 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.es6.extpost.js +2 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.es6.lib.js +163 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.es6.pre.js +5 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.js +4 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.js.map +1 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.native.js +17 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.native.js.symbols +8582 -0
- 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 +4 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/dotnet.runtime.js.map +1 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/driver.c +1391 -0
- 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 +16 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/emcc-props.json +14 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/gc-common.h +73 -0
- 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 +44 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/pal_random.lib.js +45 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/pinvoke.c +62 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/pinvoke.h +50 -0
- package/src/interop/bin/Release/net8.0/browser-wasm/runtimeconfig.bin +1 -0
- 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 +13 -0
- package/src/interop/modelParser.js +11 -0
- package/src/interop/obj/DTDLParserJSInterop.csproj.nuget.dgspec.json +83 -0
- package/src/interop/obj/DTDLParserJSInterop.csproj.nuget.g.props +21 -0
- package/src/interop/obj/DTDLParserJSInterop.csproj.nuget.g.targets +6 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +4 -0
- 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 +22 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.AssemblyInfoInputs.cache +1 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.GeneratedMSBuildEditorConfig.editorconfig +17 -0
- 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 +1 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/DTDLParserJSInterop.csproj.FileListAbsolute.txt +237 -0
- 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 +1 -0
- 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 +1 -0
- 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 +17 -0
- 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 +12 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/emcc-link.rsp +38 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/icall-table.h +1653 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/m2n_cache.txt +3 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/pinvoke-table.h +329 -0
- 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 +449 -0
- package/src/interop/obj/Release/net8.0/browser-wasm/wasm/for-build/wasm_m2n_invoke.g.h +522 -0
- package/src/interop/obj/project.assets.json +384 -0
- package/src/interop/obj/project.nuget.cache +13 -0
- package/src/interop/runtimeconfig.template.json +11 -0
- package/src/interop.ts +9 -0
- package/test/mocharc.json +6 -0
- package/tsconfig.json +31 -0
- package/types/DtdlErr.d.ts +26 -0
- package/types/DtdlOm.d.ts +372 -0
- package/build/package.json +0 -62
- package/build/src/error.js +0 -2
- package/build/src/error.js.map +0 -1
- package/build/src/index.js +0 -6
- package/build/src/index.js.map +0 -1
- package/build/src/interop.js +0 -2
- package/build/src/interop.js.map +0 -1
- /package/{build/src → src}/__tests__/fixtures/empty.json +0 -0
- /package/{build/src → src}/__tests__/fixtures/nested/nested.json +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runtimeOptions": {
|
|
3
|
+
"tfm": "net8.0",
|
|
4
|
+
"includedFrameworks": [
|
|
5
|
+
{
|
|
6
|
+
"name": "Microsoft.NETCore.App",
|
|
7
|
+
"version": "8.0.10"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"wasmHostProperties": {
|
|
11
|
+
"perHostConfig": [
|
|
12
|
+
{
|
|
13
|
+
"name": "node",
|
|
14
|
+
"js-path": "modelParser.js",
|
|
15
|
+
"host": "nodejs"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"configProperties": {
|
|
20
|
+
"Microsoft.Extensions.DependencyInjection.VerifyOpenGenericServiceTrimmability": true,
|
|
21
|
+
"System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization": false,
|
|
22
|
+
"System.Diagnostics.Debugger.IsSupported": false,
|
|
23
|
+
"System.Diagnostics.Tracing.EventSource.IsSupported": false,
|
|
24
|
+
"System.Globalization.Invariant": true,
|
|
25
|
+
"System.Globalization.PredefinedCulturesOnly": true,
|
|
26
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
|
|
27
|
+
"System.Resources.ResourceManager.AllowCustomResourceTypes": false,
|
|
28
|
+
"System.Resources.UseSystemResourceKeys": true,
|
|
29
|
+
"System.Runtime.InteropServices.BuiltInComInterop.IsSupported": false,
|
|
30
|
+
"System.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHosting": false,
|
|
31
|
+
"System.Runtime.InteropServices.EnableCppCLIHostActivation": false,
|
|
32
|
+
"System.Runtime.InteropServices.Marshalling.EnableGeneratedComInterfaceComImportInterop": false,
|
|
33
|
+
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false,
|
|
34
|
+
"System.StartupHookProvider.IsSupported": false,
|
|
35
|
+
"System.Text.Encoding.EnableUnsafeUTF7Encoding": false,
|
|
36
|
+
"System.Text.Json.JsonSerializer.IsReflectionEnabledByDefault": false,
|
|
37
|
+
"System.Threading.Thread.EnableAutoreleasePool": false
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/interop/bin/Release/net8.0/browser-wasm/System.Diagnostics.TextWriterTraceListener.dll
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/interop/bin/Release/net8.0/browser-wasm/System.Private.DataContractSerialization.dll
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.CompilerServices.Unsafe.dll
ADDED
|
Binary file
|
package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.CompilerServices.VisualC.dll
ADDED
|
Binary file
|
package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.InteropServices.JavaScript.dll
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.Serialization.Formatters.dll
ADDED
|
Binary file
|
|
Binary file
|
package/src/interop/bin/Release/net8.0/browser-wasm/System.Runtime.Serialization.Primitives.dll
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.Cryptography.Algorithms.dll
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/interop/bin/Release/net8.0/browser-wasm/System.Security.Cryptography.Primitives.dll
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
#include <emscripten.h>
|
|
4
|
+
#include <stdio.h>
|
|
5
|
+
#include <stdlib.h>
|
|
6
|
+
#include <string.h>
|
|
7
|
+
#include <stdint.h>
|
|
8
|
+
#include <assert.h>
|
|
9
|
+
|
|
10
|
+
#include <mono/metadata/appdomain.h>
|
|
11
|
+
#include <mono/metadata/class.h>
|
|
12
|
+
#include <mono/metadata/loader.h>
|
|
13
|
+
#include <mono/metadata/object.h>
|
|
14
|
+
#include <mono/jit/jit.h>
|
|
15
|
+
|
|
16
|
+
#include "wasm-config.h"
|
|
17
|
+
#include "gc-common.h"
|
|
18
|
+
|
|
19
|
+
//JS funcs
|
|
20
|
+
extern void mono_wasm_release_cs_owned_object (int js_handle);
|
|
21
|
+
extern void mono_wasm_bind_js_function(MonoString **function_name, MonoString **module_name, void *signature, int* function_js_handle, int *is_exception, MonoObject **result);
|
|
22
|
+
extern void mono_wasm_invoke_bound_function(int function_js_handle, void *data);
|
|
23
|
+
extern void mono_wasm_invoke_import(int fn_handle, void *data);
|
|
24
|
+
extern void mono_wasm_bind_cs_function(MonoString **fully_qualified_name, int signature_hash, void* signatures, int *is_exception, MonoObject **result);
|
|
25
|
+
extern void mono_wasm_marshal_promise(void *data);
|
|
26
|
+
|
|
27
|
+
typedef void (*background_job_cb)(void);
|
|
28
|
+
void mono_main_thread_schedule_background_job (background_job_cb cb);
|
|
29
|
+
void mono_current_thread_schedule_background_job (background_job_cb cb);
|
|
30
|
+
|
|
31
|
+
#ifndef DISABLE_LEGACY_JS_INTEROP
|
|
32
|
+
extern void mono_wasm_invoke_js_with_args_ref (int js_handle, MonoString **method, MonoArray **args, int *is_exception, MonoObject **result);
|
|
33
|
+
extern void mono_wasm_get_object_property_ref (int js_handle, MonoString **propertyName, int *is_exception, MonoObject **result);
|
|
34
|
+
extern void mono_wasm_set_object_property_ref (int js_handle, MonoString **propertyName, MonoObject **value, int createIfNotExist, int hasOwnProperty, int *is_exception, MonoObject **result);
|
|
35
|
+
extern void mono_wasm_get_by_index_ref (int js_handle, int property_index, int *is_exception, MonoObject **result);
|
|
36
|
+
extern void mono_wasm_set_by_index_ref (int js_handle, int property_index, MonoObject **value, int *is_exception, MonoObject **result);
|
|
37
|
+
extern void mono_wasm_get_global_object_ref (MonoString **global_name, int *is_exception, MonoObject **result);
|
|
38
|
+
extern void mono_wasm_typed_array_to_array_ref (int js_handle, int *is_exception, MonoObject **result);
|
|
39
|
+
extern void mono_wasm_create_cs_owned_object_ref (MonoString **core_name, MonoArray **args, int *is_exception, MonoObject** result);
|
|
40
|
+
extern void mono_wasm_typed_array_from_ref (int ptr, int begin, int end, int bytes_per_element, int type, int *is_exception, MonoObject** result);
|
|
41
|
+
|
|
42
|
+
// Blazor specific custom routines - see dotnet_support.js for backing code
|
|
43
|
+
extern void* mono_wasm_invoke_js_blazor (MonoString **exceptionMessage, void *callInfo, void* arg0, void* arg1, void* arg2);
|
|
44
|
+
#endif /* DISABLE_LEGACY_JS_INTEROP */
|
|
45
|
+
|
|
46
|
+
#ifndef DISABLE_THREADS
|
|
47
|
+
extern void mono_wasm_install_js_worker_interop (int install_js_synchronization_context);
|
|
48
|
+
extern void mono_wasm_uninstall_js_worker_interop (int uninstall_js_synchronization_context);
|
|
49
|
+
#endif /* DISABLE_THREADS */
|
|
50
|
+
|
|
51
|
+
// HybridGlobalization
|
|
52
|
+
extern void mono_wasm_change_case_invariant(const uint16_t* src, int32_t srcLength, uint16_t* dst, int32_t dstLength, mono_bool bToUpper, int *is_exception, MonoObject** ex_result);
|
|
53
|
+
extern void mono_wasm_change_case(MonoString **culture, const uint16_t* src, int32_t srcLength, uint16_t* dst, int32_t dstLength, mono_bool bToUpper, int *is_exception, MonoObject** ex_result);
|
|
54
|
+
extern int mono_wasm_compare_string(MonoString **culture, const uint16_t* str1, int32_t str1Length, const uint16_t* str2, int32_t str2Length, int32_t options, int *is_exception, MonoObject** ex_result);
|
|
55
|
+
extern mono_bool mono_wasm_starts_with(MonoString **culture, const uint16_t* str1, int32_t str1Length, const uint16_t* str2, int32_t str2Length, int32_t options, int *is_exception, MonoObject** ex_result);
|
|
56
|
+
extern mono_bool mono_wasm_ends_with(MonoString **culture, const uint16_t* str1, int32_t str1Length, const uint16_t* str2, int32_t str2Length, int32_t options, int *is_exception, MonoObject** ex_result);
|
|
57
|
+
extern int mono_wasm_index_of(MonoString **culture, const uint16_t* str1, int32_t str1Length, const uint16_t* str2, int32_t str2Length, int32_t options, mono_bool fromBeginning, int *is_exception, MonoObject** ex_result);
|
|
58
|
+
extern int mono_wasm_get_calendar_info(MonoString **culture, int32_t calendarId, const uint16_t* result, int32_t resultLength, int *is_exception, MonoObject** ex_result);
|
|
59
|
+
extern int mono_wasm_get_culture_info(MonoString **culture, const uint16_t* result, int32_t resultLength, int *is_exception, MonoObject** ex_result);
|
|
60
|
+
extern int mono_wasm_get_first_day_of_week(MonoString **culture, int *is_exception, MonoObject** ex_result);
|
|
61
|
+
extern int mono_wasm_get_first_week_of_year(MonoString **culture, int *is_exception, MonoObject** ex_result);
|
|
62
|
+
|
|
63
|
+
void bindings_initialize_internals (void)
|
|
64
|
+
{
|
|
65
|
+
mono_add_internal_call ("Interop/Runtime::ReleaseCSOwnedObject", mono_wasm_release_cs_owned_object);
|
|
66
|
+
mono_add_internal_call ("Interop/Runtime::BindJSFunction", mono_wasm_bind_js_function);
|
|
67
|
+
mono_add_internal_call ("Interop/Runtime::InvokeJSFunction", mono_wasm_invoke_bound_function);
|
|
68
|
+
mono_add_internal_call ("Interop/Runtime::InvokeImport", mono_wasm_invoke_import);
|
|
69
|
+
mono_add_internal_call ("Interop/Runtime::BindCSFunction", mono_wasm_bind_cs_function);
|
|
70
|
+
mono_add_internal_call ("Interop/Runtime::MarshalPromise", mono_wasm_marshal_promise);
|
|
71
|
+
mono_add_internal_call ("Interop/Runtime::RegisterGCRoot", mono_wasm_register_root);
|
|
72
|
+
mono_add_internal_call ("Interop/Runtime::DeregisterGCRoot", mono_wasm_deregister_root);
|
|
73
|
+
|
|
74
|
+
#ifndef DISABLE_THREADS
|
|
75
|
+
mono_add_internal_call ("Interop/Runtime::InstallWebWorkerInterop", mono_wasm_install_js_worker_interop);
|
|
76
|
+
mono_add_internal_call ("Interop/Runtime::UninstallWebWorkerInterop", mono_wasm_uninstall_js_worker_interop);
|
|
77
|
+
#endif /* DISABLE_THREADS */
|
|
78
|
+
|
|
79
|
+
#ifndef DISABLE_LEGACY_JS_INTEROP
|
|
80
|
+
// legacy
|
|
81
|
+
mono_add_internal_call ("Interop/Runtime::InvokeJSWithArgsRef", mono_wasm_invoke_js_with_args_ref);
|
|
82
|
+
mono_add_internal_call ("Interop/Runtime::GetObjectPropertyRef", mono_wasm_get_object_property_ref);
|
|
83
|
+
mono_add_internal_call ("Interop/Runtime::SetObjectPropertyRef", mono_wasm_set_object_property_ref);
|
|
84
|
+
mono_add_internal_call ("Interop/Runtime::GetByIndexRef", mono_wasm_get_by_index_ref);
|
|
85
|
+
mono_add_internal_call ("Interop/Runtime::SetByIndexRef", mono_wasm_set_by_index_ref);
|
|
86
|
+
mono_add_internal_call ("Interop/Runtime::GetGlobalObjectRef", mono_wasm_get_global_object_ref);
|
|
87
|
+
mono_add_internal_call ("Interop/Runtime::TypedArrayToArrayRef", mono_wasm_typed_array_to_array_ref);
|
|
88
|
+
mono_add_internal_call ("Interop/Runtime::CreateCSOwnedObjectRef", mono_wasm_create_cs_owned_object_ref);
|
|
89
|
+
mono_add_internal_call ("Interop/Runtime::TypedArrayFromRef", mono_wasm_typed_array_from_ref);
|
|
90
|
+
|
|
91
|
+
// Blazor specific custom routines - see dotnet_support.js for backing code
|
|
92
|
+
mono_add_internal_call ("WebAssembly.JSInterop.InternalCalls::InvokeJS", mono_wasm_invoke_js_blazor);
|
|
93
|
+
#endif /* DISABLE_LEGACY_JS_INTEROP */
|
|
94
|
+
mono_add_internal_call ("Interop/JsGlobalization::ChangeCaseInvariant", mono_wasm_change_case_invariant);
|
|
95
|
+
mono_add_internal_call ("Interop/JsGlobalization::ChangeCase", mono_wasm_change_case);
|
|
96
|
+
mono_add_internal_call ("Interop/JsGlobalization::CompareString", mono_wasm_compare_string);
|
|
97
|
+
mono_add_internal_call ("Interop/JsGlobalization::StartsWith", mono_wasm_starts_with);
|
|
98
|
+
mono_add_internal_call ("Interop/JsGlobalization::EndsWith", mono_wasm_ends_with);
|
|
99
|
+
mono_add_internal_call ("Interop/JsGlobalization::IndexOf", mono_wasm_index_of);
|
|
100
|
+
mono_add_internal_call ("Interop/JsGlobalization::GetCalendarInfo", mono_wasm_get_calendar_info);
|
|
101
|
+
mono_add_internal_call ("Interop/JsGlobalization::GetCultureInfo", mono_wasm_get_culture_info);
|
|
102
|
+
mono_add_internal_call ("Interop/JsGlobalization::GetFirstDayOfWeek", mono_wasm_get_first_day_of_week);
|
|
103
|
+
mono_add_internal_call ("Interop/JsGlobalization::GetFirstWeekOfYear", mono_wasm_get_first_week_of_year);
|
|
104
|
+
}
|