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