@ifc-lite/ids 1.15.22 → 1.15.24

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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -19,14 +19,14 @@ const idsSpec = parseIDS(idsXml);
19
19
  const translator = createTranslationService('en');
20
20
  const report = await validateIDS(idsSpec, store, { translator });
21
21
 
22
- console.log(`Overall: ${report.totalPassed} / ${report.totalChecked} passed`);
22
+ console.log(`Overall: ${report.summary.totalEntitiesPassed} / ${report.summary.totalEntitiesChecked} passed`);
23
23
 
24
24
  for (const spec of report.specificationResults) {
25
- console.log(`\n${spec.specificationName}: ${spec.passRate}%`);
25
+ console.log(`\n${spec.specification.name}: ${spec.passRate}%`);
26
26
 
27
27
  for (const entity of spec.entityResults) {
28
28
  if (!entity.passed) {
29
- for (const req of entity.requirementResults.filter(r => !r.passed)) {
29
+ for (const req of entity.requirementResults.filter(r => r.status === 'fail')) {
30
30
  console.log(` ✗ ${entity.entityType} #${entity.expressId}: ${translator.describeFailure(req)}`);
31
31
  }
32
32
  }
@@ -52,7 +52,7 @@ const idsSpec = parseIDS(idsXml);
52
52
  for (const spec of idsSpec.specifications) {
53
53
  console.log(`Spec: ${spec.name} (${spec.identifier})`);
54
54
  console.log(` Applies to: ${spec.applicability.facets.length} facet(s)`);
55
- console.log(` Requires: ${spec.requirements.facets.length} facet(s)`);
55
+ console.log(` Requires: ${spec.requirements.length} requirement(s)`);
56
56
  }
57
57
  ```
58
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ifc-lite/ids",
3
- "version": "1.15.22",
3
+ "version": "1.15.24",
4
4
  "description": "IDS (Information Delivery Specification) support for IFC-Lite",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@xmldom/xmldom": "^0.9.10",
21
- "@ifc-lite/data": "2.3.0",
22
- "@ifc-lite/parser": "3.5.2"
21
+ "@ifc-lite/data": "2.4.0",
22
+ "@ifc-lite/parser": "3.7.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "happy-dom": "^20.10.6",