@digicatapult/dtdl-parser 0.0.26 → 0.0.27
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/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# dtdl-parser library
|
|
2
2
|
|
|
3
|
-
A library for parsing and validating (
|
|
3
|
+
A library for parsing and validating [DTDL](https://learn.microsoft.com/en-us/azure/digital-twins/concepts-models) ontologies.
|
|
4
4
|
|
|
5
5
|
## Installation / Adding to the Package.json
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ A library for parsing and validating (DTDL)[https://learn.microsoft.com/en-us/az
|
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
10
|
// with npm
|
|
11
|
-
npm install @digicatapult/
|
|
11
|
+
npm install @digicatapult/dtdl-parser
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## Basic Usage
|
|
@@ -16,7 +16,7 @@ npm install @digicatapult/ui-component-library
|
|
|
16
16
|
Install dependencies
|
|
17
17
|
|
|
18
18
|
```javascript
|
|
19
|
-
import { parseDirectories, validateDirectories, getInterop } from "dtdl-parser"
|
|
19
|
+
import { parseDirectories, validateDirectories, getInterop } from "@digicatapult/dtdl-parser"
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
const parser = await getInterop()
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mainAssemblyName": "DTDLParserJSInterop.dll",
|
|
3
3
|
"resources": {
|
|
4
|
-
"hash": "sha256-
|
|
4
|
+
"hash": "sha256-VYe4fSgeD1sEg9gqillH4Ud+pMfIhsCbpXxqiTuFBNs=",
|
|
5
5
|
"jsModuleNative": {
|
|
6
6
|
"dotnet.native.js": "sha256-79LdZogK41buIci0KtOWmQvQc2swMI3jvDQCoN23NBM="
|
|
7
7
|
},
|
|
@@ -181,10 +181,10 @@
|
|
|
181
181
|
"mscorlib.wasm": "sha256-KvqZaNpjwhrOuzE4b4aMFsI+VUTyiWfoDI4zn4l9BM8=",
|
|
182
182
|
"netstandard.wasm": "sha256-v+s7sWxtOM6bnOvC0jFrtnm6uMfbDymwl2nHNgbS2LM=",
|
|
183
183
|
"System.Private.CoreLib.wasm": "sha256-pklll63uFQoY6vaD3vbluS9osYiJWLLLmob1yHFgepI=",
|
|
184
|
-
"DTDLParserJSInterop.wasm": "sha256-
|
|
184
|
+
"DTDLParserJSInterop.wasm": "sha256-hdU6idXEVd+yA1nhS6u+KTDxF82KPCJkVD5AA8xjfz8="
|
|
185
185
|
},
|
|
186
186
|
"pdb": {
|
|
187
|
-
"DTDLParserJSInterop.pdb": "sha256-
|
|
187
|
+
"DTDLParserJSInterop.pdb": "sha256-hZ/mJmDVT7e3xhP4fxkhuNc31Dmm0UyuMMEsjgSreE0="
|
|
188
188
|
},
|
|
189
189
|
"vfs": {
|
|
190
190
|
"runtimeconfig.bin": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digicatapult/dtdl-parser",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"description": "JS tool to parse DTDL defined Ontologies",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
16
|
"test": "NODE_ENV=test ./node_modules/.bin/mocha --config ./test/mocharc.json ./src/**/*.test.ts",
|
|
17
|
+
"test:integration": "npm run build && NODE_ENV=test ./node_modules/.bin/mocha --config ./test/integration/mocharc.json ./test/**/*.test.js",
|
|
17
18
|
"build": "npm run build:ts && npm run interop:build && npm run build:declarations",
|
|
18
19
|
"build:declarations": "tsc --emitDeclarationOnly",
|
|
19
20
|
"interop:debug": "dotnet build interop",
|