@ubercode/dcmtk 0.12.0 → 0.12.1

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/tools.cjs CHANGED
@@ -476,7 +476,12 @@ var parser = new fastXmlParser.XMLParser({
476
476
  ignoreAttributes: false,
477
477
  attributeNamePrefix: "@_",
478
478
  parseTagValue: false,
479
- isArray: (name) => ARRAY_TAG_NAMES.has(name)
479
+ isArray: (name) => ARRAY_TAG_NAMES.has(name),
480
+ // DICOM XML does not use XML entities. Disable entity processing to avoid
481
+ // the default expansion limit (1000) which rejects files with >1000 tags.
482
+ // Without this, large studies fall through to dcm2json which hangs on
483
+ // compressed pixel data (DCMTK bug).
484
+ processEntities: false
480
485
  });
481
486
  function xmlToJson(xml) {
482
487
  try {