@ubercode/dcmtk 0.11.1 → 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/dicom.cjs +6 -1
- package/dist/dicom.cjs.map +1 -1
- package/dist/dicom.js +6 -1
- package/dist/dicom.js.map +1 -1
- package/dist/{index--dDQfutR.d.ts → index-B5FQoIqM.d.ts} +47 -5
- package/dist/{index-CVDMaxd8.d.cts → index-DV8HaHEX.d.cts} +47 -5
- package/dist/index.cjs +97 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +97 -15
- package/dist/index.js.map +1 -1
- package/dist/servers.cjs +97 -15
- package/dist/servers.cjs.map +1 -1
- package/dist/servers.d.cts +1 -1
- package/dist/servers.d.ts +1 -1
- package/dist/servers.js +97 -15
- package/dist/servers.js.map +1 -1
- package/dist/tools.cjs +6 -1
- package/dist/tools.cjs.map +1 -1
- package/dist/tools.js +6 -1
- package/dist/tools.js.map +1 -1
- package/package.json +1 -1
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 {
|