Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dcmjs

Package Overview
Dependencies
Maintainers
15
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dcmjs - npm Package Compare versions

Comparing version 0.29.1 to 0.29.2

2

package.json
{
"name": "dcmjs",
"version": "0.29.1",
"version": "0.29.2",
"description": "Javascript implementation of DICOM manipulation",

@@ -5,0 +5,0 @@ "main": "build/dcmjs.js",

@@ -768,1 +768,26 @@ import "regenerator-runtime/runtime.js";

});
it("Tests that reading fails on a DICOM without a meta length tag", () => {
const rawFile = fs.readFileSync("test/no-meta-length-test.dcm");
let arrayBuffer = rawFile.buffer;
if (
rawFile.byteOffset !== 0 ||
rawFile.byteLength !== arrayBuffer.byteLength
) {
arrayBuffer = arrayBuffer.slice(
rawFile.byteOffset,
rawFile.byteOffset + rawFile.byteLength
);
}
expect(() => {
dcmjs.data.DicomMessage.readFile(arrayBuffer, {
ignoreErrors: false,
untilTag: "0020000E",
includeUntilTagValue: true
});
}).toThrow(
"Invalid DICOM file, meta length tag is malformed or not present."
);
});

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc