File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 102102 "prepublishOnly" : " yarn run build:loader"
103103 },
104104 "dependencies" : {
105- "@cornerstonejs/codec-charls" : " 5.0.0-beta.1 " ,
106- "@cornerstonejs/codec-libjpeg-turbo-8bit" : " 5.0.0-beta.1 " ,
107- "@cornerstonejs/codec-openjpeg" : " 5.0.0-beta.1 " ,
108- "@cornerstonejs/codec-openjph" : " 5.0.0-beta.1 " ,
105+ "@cornerstonejs/codec-charls" : " 1.2.3 " ,
106+ "@cornerstonejs/codec-libjpeg-turbo-8bit" : " 1.2.2 " ,
107+ "@cornerstonejs/codec-openjpeg" : " 1.3.0 " ,
108+ "@cornerstonejs/codec-openjph" : " 2.4.7 " ,
109109 "comlink" : " 4.4.2" ,
110110 "dicom-parser" : " 1.8.21" ,
111111 "jpeg-lossless-decoder-js" : " 2.1.2" ,
121121 "@cornerstonejs/metadata" : " >=4.18.0 <6.0.0-0" ,
122122 "dicom-parser" : " 1.8.21"
123123 },
124- "devDependencies" : {
125- "@cornerstonejs/core" : " 5.0.0-beta.1"
126- },
127124 "config" : {
128125 "commitizen" : {
129126 "path" : " ./node_modules/cz-conventional-changelog"
Original file line number Diff line number Diff line change 6363 "@cornerstonejs/core" : " >=5.0.0-beta.1 <6.0.0-0" ,
6464 "@cornerstonejs/tools" : " >=5.0.0-beta.1 <6.0.0-0" ,
6565 "@kitware/vtk.js" : " 34.15.1"
66- },
67- "devDependencies" : {
68- "@cornerstonejs/core" : " 5.0.0-beta.1" ,
69- "@cornerstonejs/tools" : " 5.0.0-beta.1"
7066 }
7167}
Original file line number Diff line number Diff line change 22 * Removes the data loader scheme from the imageId
33 *
44 * @param imageId - Image ID
5- * @returns imageId without the data loader scheme
5+ * @returns imageId without the data loader scheme, or empty string if imageId is falsy
66 */
77export default function imageIdToURI ( imageId : string ) : string {
8+ if ( ! imageId ) {
9+ return '' ;
10+ }
11+
812 const colonIndex = imageId . indexOf ( ':' ) ;
9- return imageId . substring ( colonIndex + 1 ) ;
13+ return colonIndex === - 1 ? imageId : imageId . substring ( colonIndex + 1 ) ;
1014}
Original file line number Diff line number Diff line change 6161 "@cornerstonejs/core" : " >=5.0.0-beta.1 <6.0.0-0" ,
6262 "@cornerstonejs/tools" : " >=5.0.0-beta.1 <6.0.0-0" ,
6363 "@kitware/vtk.js" : " 34.15.1"
64- },
65- "devDependencies" : {
66- "@cornerstonejs/core" : " 5.0.0-beta.1" ,
67- "@cornerstonejs/tools" : " 5.0.0-beta.1"
6864 }
6965}
You can’t perform that action at this time.
0 commit comments