@digicatapult/dtdl-parser 1.1.4 → 1.1.6

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.
@@ -22,11 +22,15 @@
22
22
  "Microsoft.Extensions.DependencyInjection.VerifyOpenGenericServiceTrimmability": true,
23
23
  "System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization": false,
24
24
  "System.Diagnostics.Debugger.IsSupported": false,
25
+ "System.Diagnostics.Metrics.Meter.IsSupported": false,
25
26
  "System.Diagnostics.Tracing.EventSource.IsSupported": false,
26
27
  "System.Globalization.Invariant": true,
27
- "System.Globalization.Hybrid": false,
28
+ "System.TimeZoneInfo.Invariant": false,
28
29
  "System.Globalization.PredefinedCulturesOnly": true,
30
+ "System.Linq.Enumerable.IsSizeOptimized": true,
29
31
  "System.Net.Http.EnableActivityPropagation": false,
32
+ "System.Net.Http.WasmEnableStreamingResponse": true,
33
+ "System.Net.SocketsHttpHandler.Http3Support": false,
30
34
  "System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
31
35
  "System.Resources.ResourceManager.AllowCustomResourceTypes": false,
32
36
  "System.Resources.UseSystemResourceKeys": true,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "mainAssemblyName": "DTDLParserJSInterop.dll",
3
3
  "resources": {
4
- "hash": "sha256-eGMjYsfbNHxUdK2qvB3SelXr0lRIk+CG1Ze7mArdw60=",
4
+ "hash": "sha256-wxvV2LVqOkfb+pZ94FDAdIqrcN31en6q7f/YLBH6pbI=",
5
5
  "jsModuleNative": {
6
6
  "dotnet.native.js": "sha256-bFxbRjtelE3YcBvB1Ura7rsxdthc0zvrgV9R2TWw4b8="
7
7
  },
@@ -9,16 +9,16 @@
9
9
  "dotnet.runtime.js": "sha256-6bV/iAemowb59rmItegP8VsxwWpWUNyMb0Q76Fvvsjo="
10
10
  },
11
11
  "wasmNative": {
12
- "dotnet.native.wasm": "sha256-bIOSepIG2El3qthwHdXRnVrDYuX/wnsabhMMxC8vfBk="
12
+ "dotnet.native.wasm": "sha256-h8Za4PwTwEFkEhpKDS6JQMhhHZ4rIr6YuamX9aguiw4="
13
13
  },
14
14
  "assembly": {
15
15
  "DTDLParser.wasm": "sha256-YHvY/HrXZf6gcdOROAxOblv2TPYyQw0mHbBS4GozN8k=",
16
- "DTDLParserJSInterop.wasm": "sha256-n2SMzjFxthqXktWtN7ehFAw2K90A24gGKFVMKohf9Lw=",
16
+ "DTDLParserJSInterop.wasm": "sha256-jphIFGd1ohES7r1KQhMlcIc4RzdTrvWySUUBUA+07Ac=",
17
17
  "System.Collections.wasm": "sha256-WCRkVwMP47YLCkGah+I47Q/auVZs/e0eu3Hu0LTYwo4=",
18
18
  "System.Console.wasm": "sha256-nl8q+YxUssDdGadEz4vsM0rPOn2f5dzw6UGJCApiCwM=",
19
19
  "System.Linq.wasm": "sha256-MPyf3ku/1pXVcEgHd0HY2OTpLQWQYV33vBJ2JwoJuIY=",
20
20
  "System.Memory.wasm": "sha256-t4q0T5/YURsQl36pq6CwGZTPB7z0dWzopX51Uf8jUXk=",
21
- "System.Private.CoreLib.wasm": "sha256-Cs4lG8fLgwbfkGTm5xPBbQGDGsjKXeqED3y/xttQBO0=",
21
+ "System.Private.CoreLib.wasm": "sha256-tHQLQj35Vyo34ydzXIbZS8BYa4fp++OyUD+PrmhK9qs=",
22
22
  "System.Private.Uri.wasm": "sha256-kQzq4kBy3NvBCUF2Ex3GH5lSER/ghL4PVVVkwqc0eNk=",
23
23
  "System.Private.Xml.wasm": "sha256-G7EkE2RE7nV4Yxs0Yzp2xyMx5LP403/kXfrY3hq+Jgk=",
24
24
  "System.Runtime.InteropServices.JavaScript.wasm": "sha256-XjyZ0d9zMaCDHwPwOMePjwOfDF+Z6kycnXN5kG5I/Q0=",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "vfs": {
30
30
  "runtimeconfig.bin": {
31
- "supportFiles/0_runtimeconfig.bin": "sha256-oWJ0G2/P0I/7sOrWS2U9Vj8e0/zTdvr7d0OPfwDf6xM="
31
+ "supportFiles/0_runtimeconfig.bin": "sha256-S3DhPmT5puYZHYAYhKsqSa8vKUXiFf1Vw4mj3IhZKzo="
32
32
  }
33
33
  }
34
34
  },
@@ -1 +1 @@
1
- MMicrosoft.Extensions.DependencyInjection.VerifyOpenGenericServiceTrimmabilitytruefSystem.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerializationfalse'System.Diagnostics.Debugger.IsSupportedfalse2System.Diagnostics.Tracing.EventSource.IsSupportedfalseSystem.Globalization.InvarianttrueSystem.Globalization.Hybridfalse+System.Globalization.PredefinedCulturesOnlytrue)System.Net.Http.EnableActivityPropagationfalse6System.Reflection.Metadata.MetadataUpdater.IsSupportedfalse9System.Resources.ResourceManager.AllowCustomResourceTypesfalse&System.Resources.UseSystemResourceKeystrue<System.Runtime.InteropServices.BuiltInComInterop.IsSupportedfalseJSystem.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHostingfalse9System.Runtime.InteropServices.EnableCppCLIHostActivationfalseVSystem.Runtime.InteropServices.Marshalling.EnableGeneratedComInterfaceComImportInteropfalseESystem.Runtime.Serialization.EnableUnsafeBinaryFormatterSerializationfalse&System.StartupHookProvider.IsSupportedfalse-System.Text.Encoding.EnableUnsafeUTF7Encodingfalse<System.Text.Json.JsonSerializer.IsReflectionEnabledByDefaultfalse-System.Threading.Thread.EnableAutoreleasePoolfalse
1
+ MMicrosoft.Extensions.DependencyInjection.VerifyOpenGenericServiceTrimmabilitytruefSystem.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerializationfalse'System.Diagnostics.Debugger.IsSupportedfalse,System.Diagnostics.Metrics.Meter.IsSupportedfalse2System.Diagnostics.Tracing.EventSource.IsSupportedfalseSystem.Globalization.InvarianttrueSystem.TimeZoneInfo.Invariantfalse+System.Globalization.PredefinedCulturesOnlytrue&System.Linq.Enumerable.IsSizeOptimizedtrue)System.Net.Http.EnableActivityPropagationfalse+System.Net.Http.WasmEnableStreamingResponsetrue*System.Net.SocketsHttpHandler.Http3Supportfalse6System.Reflection.Metadata.MetadataUpdater.IsSupportedfalse9System.Resources.ResourceManager.AllowCustomResourceTypesfalse&System.Resources.UseSystemResourceKeystrue<System.Runtime.InteropServices.BuiltInComInterop.IsSupportedfalseJSystem.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHostingfalse9System.Runtime.InteropServices.EnableCppCLIHostActivationfalseVSystem.Runtime.InteropServices.Marshalling.EnableGeneratedComInterfaceComImportInteropfalseESystem.Runtime.Serialization.EnableUnsafeBinaryFormatterSerializationfalse&System.StartupHookProvider.IsSupportedfalse-System.Text.Encoding.EnableUnsafeUTF7Encodingfalse<System.Text.Json.JsonSerializer.IsReflectionEnabledByDefaultfalse-System.Threading.Thread.EnableAutoreleasePoolfalse
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digicatapult/dtdl-parser",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "JS tool to parse DTDL defined Ontologies",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
@@ -52,10 +52,10 @@
52
52
  "@swc/core": "^1.15.1",
53
53
  "@types/chai": "^5.2.3",
54
54
  "@types/mocha": "^10.0.10",
55
- "@types/node": "^22.19.0",
55
+ "@types/node": "^22.19.1",
56
56
  "@typescript-eslint/eslint-plugin": "^8.46.4",
57
57
  "@typescript-eslint/parser": "^8.46.4",
58
- "chai": "^6.2.0",
58
+ "chai": "^6.2.1",
59
59
  "depcheck": "^1.4.7",
60
60
  "eslint": "^9.39.1",
61
61
  "eslint-config-prettier": "^10.1.8",
package/types/DtdlOm.d.ts CHANGED
@@ -16,22 +16,12 @@ export type BooleanType = BooleanInfo
16
16
  export interface CommandInfo extends ContentInfo {
17
17
  EntityKind: 'Command'
18
18
  commandType?: string
19
- request?: ModeRequestResponseInfo
20
- response?: ModeRequestResponseInfo
19
+ request?: string
20
+ response?: string
21
21
  }
22
22
 
23
23
  export type CommandType = CommandInfo
24
24
 
25
- export interface ModeRequestResponseInfo {
26
- name: string
27
- comment?: string
28
- description?: { [languageCode: string]: string }
29
- displayName?: { [languageCode: string]: string }
30
- schema?: SchemaType
31
- }
32
-
33
- export type ModeRequestResponseType = ModeRequestResponseInfo
34
-
35
25
  export interface CommandPayloadInfo extends SchemaFieldInfo {
36
26
  EntityKind: 'CommandPayload' | 'CommandRequest' | 'CommandResponse'
37
27
  }
@@ -299,7 +289,7 @@ export type PrimitiveSchemaType =
299
289
 
300
290
  export interface PropertyInfo extends ContentInfo {
301
291
  EntityKind: 'Property'
302
- schema: SchemaType
292
+ schema: string
303
293
  writable: boolean
304
294
  }
305
295
 
@@ -351,7 +341,7 @@ export type StringType = StringInfo
351
341
 
352
342
  export interface TelemetryInfo extends ContentInfo {
353
343
  EntityKind: 'Telemetry'
354
- schema: SchemaType
344
+ schema: string
355
345
  }
356
346
 
357
347
  export type TelemetryType = TelemetryInfo