Skip to content

Commit

Permalink
Fixed error in example html
Browse files Browse the repository at this point in the history
Updated npm dependencies
  • Loading branch information
PantelisGeorgiadis committed Jul 23, 2023
1 parent d55ff7d commit ce2b333
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 38 deletions.
4 changes: 2 additions & 2 deletions examples/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<title>dcmjs-imaging rendering example</title>
Expand Down Expand Up @@ -212,7 +212,7 @@
gl.shaderSource(fragmentShader, BaseFragmentShader);
gl.compileShader(fragmentShader);
if (!gl.getShaderParameter(vertexShader, gl.COMPILE_STATUS)) {
throw new Error('Error compiling fragment shader', gl.getShaderInfoLog(vertexShader));
throw new Error('Error compiling fragment shader', gl.getShaderInfoLog(fragmentShader));
}

const program = gl.createProgram();
Expand Down
7 changes: 6 additions & 1 deletion index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ expectType<number>(dicomImage.getHeight());
expectType<number>(dicomImage.getNumberOfFrames());

expectError(
dicomImage.render({ frame: '1', windowLevel: 'WW/WL', renderOverlays: 1, calculateHistograms: 0 })
dicomImage.render({
frame: '1',
windowLevel: 'WW/WL',
renderOverlays: 1,
calculateHistograms: 0,
})
);
expectError(dicomImage.renderIcon({ frame: 1 }));
expectType<{
Expand Down
54 changes: 25 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dcmjs-imaging",
"version": "0.1.17",
"version": "0.1.18",
"description": "DICOM image and overlay rendering for Node.js and browser using dcmjs",
"main": "build/dcmjs-imaging.min.js",
"module": "build/dcmjs-imaging.min.js",
Expand All @@ -25,7 +25,7 @@
"test:types": "tsd",
"test": "npm run test:types && npm run test:node && npm run test:browser",
"format:cpp": "clang-format -i --glob=wasm/src/*.{h,cpp}",
"lint": "eslint -c .eslintrc.json --fix src && prettier --tab-width 2 --single-quote true --print-width 100 --use-tabs false --write src/**/*.js test/**/*.js examples/**/*.{js,ts,html} *.ts"
"lint": "eslint -c .eslintrc.json --fix src && prettier --tab-width 2 --single-quote true --print-width 100 --use-tabs false --trailing-comma es5 --write src/**/*.js test/**/*.js examples/**/*.{js,ts,html} *.ts"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -57,7 +57,7 @@
"clang-format": "^1.8.0",
"copy-webpack-plugin": "^11.0.0",
"docdash": "^2.0.1",
"eslint": "^8.44.0",
"eslint": "^8.45.0",
"jsdoc": "^4.0.2",
"karma": "^6.4.2",
"karma-browserify": "^8.1.0",
Expand All @@ -69,14 +69,14 @@
"mocha": "^10.2.0",
"open-cli": "^7.2.0",
"pako": "^2.1.0",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"shx": "^0.3.4",
"sinon": "^15.2.0",
"terser-webpack-plugin": "^5.3.9",
"ts-node": "^10.9.1",
"tsd": "^0.28.1",
"typescript": "^5.1.6",
"webpack": "^5.88.1",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = '0.1.17';
module.exports = '0.1.18';

0 comments on commit ce2b333

Please sign in to comment.