landxml 0.5.1 → 0.5.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # landxml
2
2
 
3
+ ## 0.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 6cafe85: Bugfix parsing landxml's without extra triangulated faces
8
+
3
9
  ## 0.5.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -166,7 +166,7 @@ var parseXML = (xmlString) => __async(void 0, null, function* () {
166
166
  }, []);
167
167
  faces = surface.Definition.Faces.F.reduce((faceList, face) => {
168
168
  const { attr, content } = face;
169
- if (attr.i === "1")
169
+ if ((attr == null ? void 0 : attr.i) === "1")
170
170
  return faceList;
171
171
  const [a, b, c] = content.split(" ").map((v) => pointIdMap[v]);
172
172
  if ([a, b, c].filter((v) => typeof v === "undefined").length > 0) {
package/dist/index.mjs CHANGED
@@ -131,7 +131,7 @@ var parseXML = (xmlString) => __async(void 0, null, function* () {
131
131
  }, []);
132
132
  faces = surface.Definition.Faces.F.reduce((faceList, face) => {
133
133
  const { attr, content } = face;
134
- if (attr.i === "1")
134
+ if ((attr == null ? void 0 : attr.i) === "1")
135
135
  return faceList;
136
136
  const [a, b, c] = content.split(" ").map((v) => pointIdMap[v]);
137
137
  if ([a, b, c].filter((v) => typeof v === "undefined").length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "landxml",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Parse LandXML surfaces on the modern web.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",