@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.js CHANGED
@@ -2221,7 +2221,12 @@ var parser = new XMLParser({
2221
2221
  ignoreAttributes: false,
2222
2222
  attributeNamePrefix: "@_",
2223
2223
  parseTagValue: false,
2224
- isArray: (name) => ARRAY_TAG_NAMES.has(name)
2224
+ isArray: (name) => ARRAY_TAG_NAMES.has(name),
2225
+ // DICOM XML does not use XML entities. Disable entity processing to avoid
2226
+ // the default expansion limit (1000) which rejects files with >1000 tags.
2227
+ // Without this, large studies fall through to dcm2json which hangs on
2228
+ // compressed pixel data (DCMTK bug).
2229
+ processEntities: false
2225
2230
  });
2226
2231
  function xmlToJson(xml) {
2227
2232
  try {