parse-tmx 1.24.2 → 1.25.0

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/dist/index.js +2 -3
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -45,8 +45,7 @@ const parseGroup = async (node, expectedCount, translateFlips) => {
45
45
  const { $, $$ } = node;
46
46
  const group = structuredClone($);
47
47
  group.type = node["#name"];
48
- if ($$)
49
- group.layers = await Promise.all($$.map((l) => parseNode(l, expectedCount, translateFlips)));
48
+ group.layers = await Promise.all($$.map((l) => parseNode(l, expectedCount, translateFlips)));
50
49
  return group;
51
50
  };
52
51
 
@@ -248,7 +247,7 @@ const parseTileset = (node) => {
248
247
  if (isExternalTileset(node.$))
249
248
  return structuredClone(node.$);
250
249
  const { $, $$, tile } = node;
251
- for (const childNode of $$ ?? []) {
250
+ for (const childNode of $$) {
252
251
  const tmxNodeType = childNode["#name"];
253
252
  if (tmxNodeType !== TMXNodeType.Image)
254
253
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse-tmx",
3
- "version": "1.24.2",
3
+ "version": "1.25.0",
4
4
  "description": "A parser for tmx.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,11 +30,11 @@
30
30
  "export:gen": "ctix build --config ../configuration/.ctirc-ts"
31
31
  },
32
32
  "dependencies": {
33
- "@esposter/shared": "1.24.2"
33
+ "@esposter/shared": "1.25.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@esposter/configuration": "1.24.2",
37
- "@types/node": "^22.7.5"
36
+ "@esposter/configuration": "1.25.0",
37
+ "@types/node": "^22.7.7"
38
38
  },
39
- "gitHead": "3b7e228bb5e169d94cf67911c9d283c90b4dc90a"
39
+ "gitHead": "3acb111aaf7fcdfd08a402fca3c028e97f61176f"
40
40
  }