parse-tmx 2.8.1 → 2.9.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.
package/dist/index.d.ts CHANGED
@@ -176,8 +176,6 @@ declare class TMXParsed {
176
176
  }
177
177
  //#endregion
178
178
  //#region src/parseTmx.d.ts
179
- // We will match phaser's tmx => json tilemap export transformation
180
- // but also support extra functionality like using external tilesets
181
179
  declare const parseTmx: (xmlString: string, translateFlips?: boolean) => Promise<TMXParsed>;
182
180
  //#endregion
183
181
  //#region src/models/Compression.d.ts
@@ -203,19 +201,13 @@ declare enum Flipped {
203
201
  declare const isExternalTileset: (tileset: TMXEmbeddedTilesetShared | TMXExternalTilesetShared) => tileset is TMXExternalTilesetShared;
204
202
  //#endregion
205
203
  //#region src/models/tmx/node/BaseTMXNode.d.ts
206
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
207
204
  declare class BaseTMXNode<T> {
208
205
  #private;
209
- // We add indexable signature because we can't access #name properly
210
- // due to typescript shenanigans with private properties >:C
211
206
  [key: string]: unknown;
212
207
  $: T;
213
208
  }
214
209
  //#endregion
215
210
  //#region src/models/tmx/node/TMXNode.d.ts
216
- // For convenience's sake, we will assume that parsing xml will always have
217
- // explicitChildren && preserveChildrenOrder set to true and we will type that instead
218
- // We deal with dynamic xml data by typing it explicitly in the specific types that extend this interface
219
211
  type TMXNode<T, TChildNode extends BaseTMXNode<unknown> | undefined = undefined> = BaseTMXNode<T> & {
220
212
  $$: TChildNode extends undefined ? undefined : TChildNode[];
221
213
  };
@@ -236,8 +228,6 @@ interface TMXPropertyNode extends TMXNode<{
236
228
  name: string;
237
229
  value?: string;
238
230
  }> {
239
- // Phaser stores string with special unicode values as data
240
- // instead of the value attribute, which is why value can be undefined
241
231
  _: string;
242
232
  }
243
233
  //#endregion
package/dist/index.js CHANGED
@@ -411,7 +411,7 @@ const DefaultBuilderOptions = {
411
411
  var require_xmlbuilder2_min = __commonJS({ "../../node_modules/.pnpm/xmlbuilder2@3.1.1/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js"(exports$1, module$1) {
412
412
  (function(e, t) {
413
413
  "object" == typeof exports$1 && "object" == typeof module$1 ? module$1.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports$1 ? exports$1.xmlbuilder2 = t() : e.xmlbuilder2 = t();
414
- })(void 0, function() {
414
+ })(exports$1, function() {
415
415
  return function(e) {
416
416
  var t = {};
417
417
  function r(n) {
@@ -21913,7 +21913,7 @@ var require_sax = __commonJS({ "../../node_modules/.pnpm/sax@1.4.1/node_modules/
21913
21913
  });
21914
21914
  else String.fromCodePoint = fromCodePoint;
21915
21915
  })();
21916
- })(typeof exports$1 === "undefined" ? (void 0).sax = {} : exports$1);
21916
+ })(typeof exports$1 === "undefined" ? exports$1.sax = {} : exports$1);
21917
21917
  } });
21918
21918
  var import_sax = __toESM(require_sax(), 1);
21919
21919
  var Parser = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse-tmx",
3
- "version": "2.8.1",
3
+ "version": "2.9.0",
4
4
  "description": "A parser for tmx.",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/Esposter/Esposter/blob/main/packages/parse-tmx#readme",
@@ -35,12 +35,12 @@
35
35
  "export:gen": "ctix build --config ../configuration/.ctirc-ts"
36
36
  },
37
37
  "dependencies": {
38
- "@esposter/xml2js": "2.8.1",
38
+ "@esposter/xml2js": "2.9.0",
39
39
  "data-urls": "^5.0.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/data-urls": "^3.0.4",
43
43
  "@types/xml2js": "^0.4.14"
44
44
  },
45
- "gitHead": "a094ff58832d6a54485dadc5d349a72db80b326c"
45
+ "gitHead": "9fc7b20cf4085cca521b09f7f49259b3dc488b68"
46
46
  }