@digicatapult/dtdl-parser 0.0.25 → 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 (DTDL)[https://learn.microsoft.com/en-us/azure/digital-twins/concepts-models] ontologies.
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/ui-component-library
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()
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "mainAssemblyName": "DTDLParserJSInterop.dll",
3
3
  "resources": {
4
- "hash": "sha256-lmKoQ1iQgyC62JhN1bwLKilAS7onr/XOsHRgMRm6k8M=",
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-tXY+gN8rCvpan+qXojD2GFn31jRi5O+UXcMAihuFtP4="
184
+ "DTDLParserJSInterop.wasm": "sha256-hdU6idXEVd+yA1nhS6u+KTDxF82KPCJkVD5AA8xjfz8="
185
185
  },
186
186
  "pdb": {
187
- "DTDLParserJSInterop.pdb": "sha256-s6WbTRQ7qepR4OlwT8501+lHxHIUAN8SsX2dB9IfoIA="
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.25",
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",
@@ -46,13 +47,13 @@
46
47
  "@eslint/js": "^9.13.0",
47
48
  "@swc-node/register": "^1.10.9",
48
49
  "@swc/cli": "^0.4.1-nightly.20240914",
49
- "@swc/core": "^1.7.36",
50
+ "@swc/core": "^1.7.39",
50
51
  "@types/chai": "^5.0.0",
51
52
  "@types/mocha": "^10.0.9",
52
- "@types/node": "^22.7.7",
53
+ "@types/node": "^22.7.9",
53
54
  "@typescript-eslint/eslint-plugin": "^8.11.0",
54
55
  "@typescript-eslint/parser": "^8.11.0",
55
- "chai": "^5.1.1",
56
+ "chai": "^5.1.2",
56
57
  "depcheck": "^1.4.7",
57
58
  "eslint": "^9.13.0",
58
59
  "eslint-config-prettier": "^9.1.0",