Skip to content

Commit

Permalink
Merge 7175529 into 36ace1e
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-exini committed May 8, 2019
2 parents 36ace1e + 7175529 commit d7ae5c9
Show file tree
Hide file tree
Showing 16 changed files with 209 additions and 180 deletions.
3 changes: 3 additions & 0 deletions lib/dicom-character-set.min.js

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

89 changes: 79 additions & 10 deletions package-lock.json

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

19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@exini/dicom-streams-js",
"version": "0.0.22",
"version": "0.0.23",
"description": "Streaming parsing and processing of DICOM data",
"main": "node/index.js",
"browser": "web/index.js",
"scripts": {
"test": "mocha 'test/*-test.js'",
"test-one": "mocha 'test/elements-test.js'",
"test-coverage": "./node_modules/istanbul/lib/cli.js cover -x \"**/tag.js\" -x \"**/tag-to-vr.js\" ./node_modules/mocha/bin/_mocha -- -R spec test/*-test.js",
"build": "rm -rf dist; webpack --config webpack-back.config.js; webpack --config webpack-front.config.js;",
"publish-to-npm": "npm run build; cp package.json LICENSE README.md dist; npm publish dist"
"test": "cross-env NODE_ICU_DATA=node_modules/full-icu mocha 'test/*-test.js'",
"test-one": "cross-env NODE_ICU_DATA=node_modules/full-icu mocha 'test/sinks-test.js'",
"test-coverage": "cross-env NODE_ICU_DATA=node_modules/full-icu ./node_modules/istanbul/lib/cli.js cover -x \"**/tag.js\" -x \"**/tag-to-vr.js\" ./node_modules/mocha/bin/_mocha -- -R spec test/*-test.js",
"build": "shx rm -rf dist; webpack --config webpack.config.js",
"publish-to-npm": "npm run build; shx cp package.json LICENSE README.md dist; npm publish dist"
},
"keywords": [
"dicom",
Expand All @@ -27,16 +27,19 @@
"dependencies": {
"readable-stream": "^3.1.1",
"multipipe": "^3.0.0",
"iconv-lite": "^0.4.24",
"js-joda": "^1.10.1",
"uuid": "^3.3.2"
},
"devDependencies": {
"full-icu": "^1.2.1",
"shx": "^0.2.2",
"cross-env": "^5.2.0",
"mocha": "^5.2.0",
"istanbul": "^0.4.5",
"coveralls": "^3.0.3",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.0",
"webpack-node-externals": "^1.7.2"
"webpack-node-externals": "^1.7.2",
"webpack-merge": "^4.2.1"
}
}
4 changes: 2 additions & 2 deletions src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const uuidv5 = require("uuid/v5");
const Lookup = require("./lookup");
const Tag = require("./tag");
const UID = require("./uid");
const {CharacterSets} = require("./character-sets");
const {CharacterSets, defaultCharacterSet} = require("./character-sets");

const indeterminateLength = 0xFFFFFFFF;
const zero4Bytes = Buffer.from([0, 0, 0, 0]);
Expand Down Expand Up @@ -160,7 +160,7 @@ const self = module.exports = {
isDeflated: function(transferSyntaxUid) { return transferSyntaxUid === UID.DeflatedExplicitVRLittleEndian || transferSyntaxUid === UID.JPIPReferencedDeflate; },

systemZone: joda.ZoneId.SYSTEM,
defaultCharacterSet: CharacterSets.defaultOnly(),
defaultCharacterSet: defaultCharacterSet,

createUID: function() { return randomUID(uidRoot); },
createUIDFromRoot: function(root) { return randomUID(root); },
Expand Down
Loading

0 comments on commit d7ae5c9

Please sign in to comment.