@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/servers.cjs CHANGED
@@ -2246,7 +2246,12 @@ var parser = new fastXmlParser.XMLParser({
2246
2246
  ignoreAttributes: false,
2247
2247
  attributeNamePrefix: "@_",
2248
2248
  parseTagValue: false,
2249
- isArray: (name) => ARRAY_TAG_NAMES.has(name)
2249
+ isArray: (name) => ARRAY_TAG_NAMES.has(name),
2250
+ // DICOM XML does not use XML entities. Disable entity processing to avoid
2251
+ // the default expansion limit (1000) which rejects files with >1000 tags.
2252
+ // Without this, large studies fall through to dcm2json which hangs on
2253
+ // compressed pixel data (DCMTK bug).
2254
+ processEntities: false
2250
2255
  });
2251
2256
  function xmlToJson(xml) {
2252
2257
  try {