@radicalimaging/static-wado-creator 1.7.6 → 1.7.7
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/bin/mkdicomweb.mjs +0 -0
- package/dist/index.mjs +18 -18
- package/dist/uids.js +11 -0
- package/dist/util/resultsReport.ts +87 -87
- package/lib/index.mjs +18 -18
- package/lib/uids.js +11 -0
- package/lib/util/resultsReport.ts +87 -87
- package/package.json +14 -15
- package/CHANGELOG.md +0 -234
- package/dist/canvas-xaqc8v6y.node +0 -0
- package/dist/index.js +0 -500838
package/bin/mkdicomweb.mjs
CHANGED
|
File without changes
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import mkdicomwebConfig from './mkdicomwebConfig.js';
|
|
2
|
-
import StaticWado from './StaticWado.js';
|
|
3
|
-
import programIndex from './program/index.js';
|
|
4
|
-
import createMain from './createMain.js';
|
|
5
|
-
import deleteMain from './deleteMain.js';
|
|
6
|
-
import adaptProgramOpts from './util/adaptProgramOpts.js';
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
const { configureProgram } = programIndex;
|
|
10
|
-
|
|
11
|
-
StaticWado.mkdicomwebConfig = mkdicomwebConfig;
|
|
12
|
-
StaticWado.createMain = createMain;
|
|
13
|
-
StaticWado.deleteMain = deleteMain;
|
|
14
|
-
StaticWado.adaptProgramOpts = adaptProgramOpts;
|
|
15
|
-
StaticWado.configureProgram = configureProgram;
|
|
16
|
-
|
|
17
|
-
export default StaticWado;
|
|
18
|
-
export { uids, StaticWado };
|
|
1
|
+
import mkdicomwebConfig from './mkdicomwebConfig.js';
|
|
2
|
+
import StaticWado from './StaticWado.js';
|
|
3
|
+
import programIndex from './program/index.js';
|
|
4
|
+
import createMain from './createMain.js';
|
|
5
|
+
import deleteMain from './deleteMain.js';
|
|
6
|
+
import adaptProgramOpts from './util/adaptProgramOpts.js';
|
|
7
|
+
import uids from './uids.js';
|
|
8
|
+
|
|
9
|
+
const { configureProgram } = programIndex;
|
|
10
|
+
|
|
11
|
+
StaticWado.mkdicomwebConfig = mkdicomwebConfig;
|
|
12
|
+
StaticWado.createMain = createMain;
|
|
13
|
+
StaticWado.deleteMain = deleteMain;
|
|
14
|
+
StaticWado.adaptProgramOpts = adaptProgramOpts;
|
|
15
|
+
StaticWado.configureProgram = configureProgram;
|
|
16
|
+
|
|
17
|
+
export default StaticWado;
|
|
18
|
+
export { uids, StaticWado };
|
package/dist/uids.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Re-exported through CommonJS on purpose. The rest of this package is CommonJS and
|
|
2
|
+
// require()s @radicalimaging/static-wado-util, but that package is ESM. If the .mjs entry
|
|
3
|
+
// point also imports it directly, the util package joins the entry's ESM graph and Bun
|
|
4
|
+
// treats it as an async module for the duration of that graph's evaluation, so every
|
|
5
|
+
// require() of it from this package throws "require() async module ... is unsupported".
|
|
6
|
+
// Reaching it through a CommonJS hop keeps it out of the ESM graph. A createRequire() call
|
|
7
|
+
// in index.mjs also fixes Bun, but babel-jest renames that binding and the transpiled
|
|
8
|
+
// module then throws "Cannot access '_require' before initialization".
|
|
9
|
+
const { uids } = require('@radicalimaging/static-wado-util');
|
|
10
|
+
|
|
11
|
+
module.exports = uids;
|
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
|
|
3
|
-
const results = [];
|
|
4
|
-
let sopResponse = null;
|
|
5
|
-
|
|
6
|
-
function ensureSOPResponse(data) {
|
|
7
|
-
if (!data.ReferencedSOPSequence && !data.FailedSOPSequence) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
if (!sopResponse) {
|
|
11
|
-
sopResponse = {
|
|
12
|
-
...data,
|
|
13
|
-
FailedSOPSequence: undefined,
|
|
14
|
-
ReferencedSOPSequence: undefined,
|
|
15
|
-
};
|
|
16
|
-
results.push(sopResponse);
|
|
17
|
-
}
|
|
18
|
-
if (data.ReferencedSOPSequence) {
|
|
19
|
-
sopResponse.ReferencedSOPSequence ||= [];
|
|
20
|
-
sopResponse.ReferencedSOPSequence.push(...data.ReferencedSOPSequence);
|
|
21
|
-
}
|
|
22
|
-
if (data.FailedSOPSequence) {
|
|
23
|
-
sopResponse.FailedSOPSequence ||= [];
|
|
24
|
-
sopResponse.FailedSOPSequence.push(...data.FailedSOPSequence);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export function Success(options) {
|
|
28
|
-
const { deleteInput = false } = options;
|
|
29
|
-
|
|
30
|
-
return (_action, data, file) => {
|
|
31
|
-
if (data.ReferencedSOPSequence) {
|
|
32
|
-
ensureSOPResponse(data);
|
|
33
|
-
} else {
|
|
34
|
-
results.push(data);
|
|
35
|
-
}
|
|
36
|
-
if (file && deleteInput) {
|
|
37
|
-
console.noQuiet('Deleting', file);
|
|
38
|
-
fs.unlinkSync(file);
|
|
39
|
-
} else if (file) {
|
|
40
|
-
console.verbose('Not deleting', file);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function Failure(options) {
|
|
46
|
-
const { deleteFailed } = options;
|
|
47
|
-
|
|
48
|
-
return (_action, data, file) => {
|
|
49
|
-
if (data.FailedSOPSequence) {
|
|
50
|
-
ensureSOPResponse(data);
|
|
51
|
-
} else {
|
|
52
|
-
results.push(data);
|
|
53
|
-
}
|
|
54
|
-
if (file && deleteFailed) {
|
|
55
|
-
console.noQuiet('Deleting failure', file);
|
|
56
|
-
fs.unlinkSync(file);
|
|
57
|
-
} else if (file) {
|
|
58
|
-
console.verbose('Not deleting failure file', file);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function clearResults() {
|
|
64
|
-
results.splice(0, results.length);
|
|
65
|
-
sopResponse = null;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function WriteResults(options) {
|
|
69
|
-
const { multipart } = options;
|
|
70
|
-
|
|
71
|
-
return function () {
|
|
72
|
-
if (multipart) {
|
|
73
|
-
const str =
|
|
74
|
-
results.length === 1
|
|
75
|
-
? JSON.stringify(results[0])
|
|
76
|
-
: `[\n${results.map(r => JSON.stringify(r, null, 2)).join(',\n')}\n]`;
|
|
77
|
-
console.log(
|
|
78
|
-
'\r\n--boundary-response\r\n' +
|
|
79
|
-
'content-type: application/json\r\n\r\n' +
|
|
80
|
-
str +
|
|
81
|
-
'\r\n--boundary-response--\r\n'
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
clearResults();
|
|
86
|
-
};
|
|
87
|
-
}
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
|
|
3
|
+
const results = [];
|
|
4
|
+
let sopResponse = null;
|
|
5
|
+
|
|
6
|
+
function ensureSOPResponse(data) {
|
|
7
|
+
if (!data.ReferencedSOPSequence && !data.FailedSOPSequence) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (!sopResponse) {
|
|
11
|
+
sopResponse = {
|
|
12
|
+
...data,
|
|
13
|
+
FailedSOPSequence: undefined,
|
|
14
|
+
ReferencedSOPSequence: undefined,
|
|
15
|
+
};
|
|
16
|
+
results.push(sopResponse);
|
|
17
|
+
}
|
|
18
|
+
if (data.ReferencedSOPSequence) {
|
|
19
|
+
sopResponse.ReferencedSOPSequence ||= [];
|
|
20
|
+
sopResponse.ReferencedSOPSequence.push(...data.ReferencedSOPSequence);
|
|
21
|
+
}
|
|
22
|
+
if (data.FailedSOPSequence) {
|
|
23
|
+
sopResponse.FailedSOPSequence ||= [];
|
|
24
|
+
sopResponse.FailedSOPSequence.push(...data.FailedSOPSequence);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function Success(options) {
|
|
28
|
+
const { deleteInput = false } = options;
|
|
29
|
+
|
|
30
|
+
return (_action, data, file) => {
|
|
31
|
+
if (data.ReferencedSOPSequence) {
|
|
32
|
+
ensureSOPResponse(data);
|
|
33
|
+
} else {
|
|
34
|
+
results.push(data);
|
|
35
|
+
}
|
|
36
|
+
if (file && deleteInput) {
|
|
37
|
+
console.noQuiet('Deleting', file);
|
|
38
|
+
fs.unlinkSync(file);
|
|
39
|
+
} else if (file) {
|
|
40
|
+
console.verbose('Not deleting', file);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function Failure(options) {
|
|
46
|
+
const { deleteFailed } = options;
|
|
47
|
+
|
|
48
|
+
return (_action, data, file) => {
|
|
49
|
+
if (data.FailedSOPSequence) {
|
|
50
|
+
ensureSOPResponse(data);
|
|
51
|
+
} else {
|
|
52
|
+
results.push(data);
|
|
53
|
+
}
|
|
54
|
+
if (file && deleteFailed) {
|
|
55
|
+
console.noQuiet('Deleting failure', file);
|
|
56
|
+
fs.unlinkSync(file);
|
|
57
|
+
} else if (file) {
|
|
58
|
+
console.verbose('Not deleting failure file', file);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function clearResults() {
|
|
64
|
+
results.splice(0, results.length);
|
|
65
|
+
sopResponse = null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function WriteResults(options) {
|
|
69
|
+
const { multipart } = options;
|
|
70
|
+
|
|
71
|
+
return function () {
|
|
72
|
+
if (multipart) {
|
|
73
|
+
const str =
|
|
74
|
+
results.length === 1
|
|
75
|
+
? JSON.stringify(results[0])
|
|
76
|
+
: `[\n${results.map(r => JSON.stringify(r, null, 2)).join(',\n')}\n]`;
|
|
77
|
+
console.log(
|
|
78
|
+
'\r\n--boundary-response\r\n' +
|
|
79
|
+
'content-type: application/json\r\n\r\n' +
|
|
80
|
+
str +
|
|
81
|
+
'\r\n--boundary-response--\r\n'
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
clearResults();
|
|
86
|
+
};
|
|
87
|
+
}
|
package/lib/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import mkdicomwebConfig from './mkdicomwebConfig.js';
|
|
2
|
-
import StaticWado from './StaticWado.js';
|
|
3
|
-
import programIndex from './program/index.js';
|
|
4
|
-
import createMain from './createMain.js';
|
|
5
|
-
import deleteMain from './deleteMain.js';
|
|
6
|
-
import adaptProgramOpts from './util/adaptProgramOpts.js';
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
const { configureProgram } = programIndex;
|
|
10
|
-
|
|
11
|
-
StaticWado.mkdicomwebConfig = mkdicomwebConfig;
|
|
12
|
-
StaticWado.createMain = createMain;
|
|
13
|
-
StaticWado.deleteMain = deleteMain;
|
|
14
|
-
StaticWado.adaptProgramOpts = adaptProgramOpts;
|
|
15
|
-
StaticWado.configureProgram = configureProgram;
|
|
16
|
-
|
|
17
|
-
export default StaticWado;
|
|
18
|
-
export { uids, StaticWado };
|
|
1
|
+
import mkdicomwebConfig from './mkdicomwebConfig.js';
|
|
2
|
+
import StaticWado from './StaticWado.js';
|
|
3
|
+
import programIndex from './program/index.js';
|
|
4
|
+
import createMain from './createMain.js';
|
|
5
|
+
import deleteMain from './deleteMain.js';
|
|
6
|
+
import adaptProgramOpts from './util/adaptProgramOpts.js';
|
|
7
|
+
import uids from './uids.js';
|
|
8
|
+
|
|
9
|
+
const { configureProgram } = programIndex;
|
|
10
|
+
|
|
11
|
+
StaticWado.mkdicomwebConfig = mkdicomwebConfig;
|
|
12
|
+
StaticWado.createMain = createMain;
|
|
13
|
+
StaticWado.deleteMain = deleteMain;
|
|
14
|
+
StaticWado.adaptProgramOpts = adaptProgramOpts;
|
|
15
|
+
StaticWado.configureProgram = configureProgram;
|
|
16
|
+
|
|
17
|
+
export default StaticWado;
|
|
18
|
+
export { uids, StaticWado };
|
package/lib/uids.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Re-exported through CommonJS on purpose. The rest of this package is CommonJS and
|
|
2
|
+
// require()s @radicalimaging/static-wado-util, but that package is ESM. If the .mjs entry
|
|
3
|
+
// point also imports it directly, the util package joins the entry's ESM graph and Bun
|
|
4
|
+
// treats it as an async module for the duration of that graph's evaluation, so every
|
|
5
|
+
// require() of it from this package throws "require() async module ... is unsupported".
|
|
6
|
+
// Reaching it through a CommonJS hop keeps it out of the ESM graph. A createRequire() call
|
|
7
|
+
// in index.mjs also fixes Bun, but babel-jest renames that binding and the transpiled
|
|
8
|
+
// module then throws "Cannot access '_require' before initialization".
|
|
9
|
+
const { uids } = require('@radicalimaging/static-wado-util');
|
|
10
|
+
|
|
11
|
+
module.exports = uids;
|
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
|
|
3
|
-
const results = [];
|
|
4
|
-
let sopResponse = null;
|
|
5
|
-
|
|
6
|
-
function ensureSOPResponse(data) {
|
|
7
|
-
if (!data.ReferencedSOPSequence && !data.FailedSOPSequence) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
if (!sopResponse) {
|
|
11
|
-
sopResponse = {
|
|
12
|
-
...data,
|
|
13
|
-
FailedSOPSequence: undefined,
|
|
14
|
-
ReferencedSOPSequence: undefined,
|
|
15
|
-
};
|
|
16
|
-
results.push(sopResponse);
|
|
17
|
-
}
|
|
18
|
-
if (data.ReferencedSOPSequence) {
|
|
19
|
-
sopResponse.ReferencedSOPSequence ||= [];
|
|
20
|
-
sopResponse.ReferencedSOPSequence.push(...data.ReferencedSOPSequence);
|
|
21
|
-
}
|
|
22
|
-
if (data.FailedSOPSequence) {
|
|
23
|
-
sopResponse.FailedSOPSequence ||= [];
|
|
24
|
-
sopResponse.FailedSOPSequence.push(...data.FailedSOPSequence);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export function Success(options) {
|
|
28
|
-
const { deleteInput = false } = options;
|
|
29
|
-
|
|
30
|
-
return (_action, data, file) => {
|
|
31
|
-
if (data.ReferencedSOPSequence) {
|
|
32
|
-
ensureSOPResponse(data);
|
|
33
|
-
} else {
|
|
34
|
-
results.push(data);
|
|
35
|
-
}
|
|
36
|
-
if (file && deleteInput) {
|
|
37
|
-
console.noQuiet('Deleting', file);
|
|
38
|
-
fs.unlinkSync(file);
|
|
39
|
-
} else if (file) {
|
|
40
|
-
console.verbose('Not deleting', file);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function Failure(options) {
|
|
46
|
-
const { deleteFailed } = options;
|
|
47
|
-
|
|
48
|
-
return (_action, data, file) => {
|
|
49
|
-
if (data.FailedSOPSequence) {
|
|
50
|
-
ensureSOPResponse(data);
|
|
51
|
-
} else {
|
|
52
|
-
results.push(data);
|
|
53
|
-
}
|
|
54
|
-
if (file && deleteFailed) {
|
|
55
|
-
console.noQuiet('Deleting failure', file);
|
|
56
|
-
fs.unlinkSync(file);
|
|
57
|
-
} else if (file) {
|
|
58
|
-
console.verbose('Not deleting failure file', file);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function clearResults() {
|
|
64
|
-
results.splice(0, results.length);
|
|
65
|
-
sopResponse = null;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function WriteResults(options) {
|
|
69
|
-
const { multipart } = options;
|
|
70
|
-
|
|
71
|
-
return function () {
|
|
72
|
-
if (multipart) {
|
|
73
|
-
const str =
|
|
74
|
-
results.length === 1
|
|
75
|
-
? JSON.stringify(results[0])
|
|
76
|
-
: `[\n${results.map(r => JSON.stringify(r, null, 2)).join(',\n')}\n]`;
|
|
77
|
-
console.log(
|
|
78
|
-
'\r\n--boundary-response\r\n' +
|
|
79
|
-
'content-type: application/json\r\n\r\n' +
|
|
80
|
-
str +
|
|
81
|
-
'\r\n--boundary-response--\r\n'
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
clearResults();
|
|
86
|
-
};
|
|
87
|
-
}
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
|
|
3
|
+
const results = [];
|
|
4
|
+
let sopResponse = null;
|
|
5
|
+
|
|
6
|
+
function ensureSOPResponse(data) {
|
|
7
|
+
if (!data.ReferencedSOPSequence && !data.FailedSOPSequence) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (!sopResponse) {
|
|
11
|
+
sopResponse = {
|
|
12
|
+
...data,
|
|
13
|
+
FailedSOPSequence: undefined,
|
|
14
|
+
ReferencedSOPSequence: undefined,
|
|
15
|
+
};
|
|
16
|
+
results.push(sopResponse);
|
|
17
|
+
}
|
|
18
|
+
if (data.ReferencedSOPSequence) {
|
|
19
|
+
sopResponse.ReferencedSOPSequence ||= [];
|
|
20
|
+
sopResponse.ReferencedSOPSequence.push(...data.ReferencedSOPSequence);
|
|
21
|
+
}
|
|
22
|
+
if (data.FailedSOPSequence) {
|
|
23
|
+
sopResponse.FailedSOPSequence ||= [];
|
|
24
|
+
sopResponse.FailedSOPSequence.push(...data.FailedSOPSequence);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function Success(options) {
|
|
28
|
+
const { deleteInput = false } = options;
|
|
29
|
+
|
|
30
|
+
return (_action, data, file) => {
|
|
31
|
+
if (data.ReferencedSOPSequence) {
|
|
32
|
+
ensureSOPResponse(data);
|
|
33
|
+
} else {
|
|
34
|
+
results.push(data);
|
|
35
|
+
}
|
|
36
|
+
if (file && deleteInput) {
|
|
37
|
+
console.noQuiet('Deleting', file);
|
|
38
|
+
fs.unlinkSync(file);
|
|
39
|
+
} else if (file) {
|
|
40
|
+
console.verbose('Not deleting', file);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function Failure(options) {
|
|
46
|
+
const { deleteFailed } = options;
|
|
47
|
+
|
|
48
|
+
return (_action, data, file) => {
|
|
49
|
+
if (data.FailedSOPSequence) {
|
|
50
|
+
ensureSOPResponse(data);
|
|
51
|
+
} else {
|
|
52
|
+
results.push(data);
|
|
53
|
+
}
|
|
54
|
+
if (file && deleteFailed) {
|
|
55
|
+
console.noQuiet('Deleting failure', file);
|
|
56
|
+
fs.unlinkSync(file);
|
|
57
|
+
} else if (file) {
|
|
58
|
+
console.verbose('Not deleting failure file', file);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function clearResults() {
|
|
64
|
+
results.splice(0, results.length);
|
|
65
|
+
sopResponse = null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function WriteResults(options) {
|
|
69
|
+
const { multipart } = options;
|
|
70
|
+
|
|
71
|
+
return function () {
|
|
72
|
+
if (multipart) {
|
|
73
|
+
const str =
|
|
74
|
+
results.length === 1
|
|
75
|
+
? JSON.stringify(results[0])
|
|
76
|
+
: `[\n${results.map(r => JSON.stringify(r, null, 2)).join(',\n')}\n]`;
|
|
77
|
+
console.log(
|
|
78
|
+
'\r\n--boundary-response\r\n' +
|
|
79
|
+
'content-type: application/json\r\n\r\n' +
|
|
80
|
+
str +
|
|
81
|
+
'\r\n--boundary-response--\r\n'
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
clearResults();
|
|
86
|
+
};
|
|
87
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@radicalimaging/static-wado-creator",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.7",
|
|
4
4
|
"description": "Library to convert DICOMP10 to DICOMweb format. Original upstream: https://github.com/chafey/dicomp10-to-dicomweb-js",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "https://github.com/
|
|
25
|
+
"url": "git+https://github.com/RadicalImaging/Static-DICOMWeb.git",
|
|
26
26
|
"directory": "packages/static-wado-creator"
|
|
27
27
|
},
|
|
28
28
|
"bugs": {
|
|
@@ -52,31 +52,30 @@
|
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"test": "jest --config ./jest.config.js",
|
|
55
|
-
"build": "
|
|
56
|
-
"build:esm": "
|
|
55
|
+
"build": "pnpm run build:esm",
|
|
56
|
+
"build:esm": "node -e \"const fs=require('fs'); fs.mkdirSync('dist',{recursive:true}); fs.cpSync('lib','dist',{recursive:true});\"",
|
|
57
57
|
"clean": "rimraf dist",
|
|
58
58
|
"link:exec": "bun link",
|
|
59
59
|
"lint": "npx eslint --color \"**/*.{js,mjs,cjs}\"",
|
|
60
60
|
"mkdicomweb": "bun bin/mkdicomwebDev.mjs --",
|
|
61
61
|
"pack:js": "npm pack --",
|
|
62
|
-
"publishJS": "yarn publish --no-git-tag-version",
|
|
63
62
|
"lint:fix": "npx eslint --fix --color \"**/*.{js,mjs,cjs}\""
|
|
64
63
|
},
|
|
65
64
|
"jest": {
|
|
66
65
|
"verbose": true
|
|
67
66
|
},
|
|
68
67
|
"dependencies": {
|
|
69
|
-
"@radicalimaging/cs3d": ">=1.7.
|
|
70
|
-
"@radicalimaging/static-wado-util": ">=1.7.
|
|
71
|
-
"canvas": "
|
|
72
|
-
"config-point": "
|
|
73
|
-
"dcmjs": "0.
|
|
74
|
-
"dicom-parser": "
|
|
75
|
-
"glob": "
|
|
76
|
-
"node-object-hash": "
|
|
77
|
-
"uuid": "
|
|
68
|
+
"@radicalimaging/cs3d": ">=1.7.7",
|
|
69
|
+
"@radicalimaging/static-wado-util": ">=1.7.7",
|
|
70
|
+
"canvas": "3.1.0",
|
|
71
|
+
"config-point": "0.8.0",
|
|
72
|
+
"dcmjs": "0.52.0",
|
|
73
|
+
"dicom-parser": "1.8.21",
|
|
74
|
+
"glob": "11.1.0",
|
|
75
|
+
"node-object-hash": "3.1.1",
|
|
76
|
+
"uuid": "11.1.0"
|
|
78
77
|
},
|
|
79
78
|
"devDependencies": {
|
|
80
|
-
"must": "
|
|
79
|
+
"must": "0.13.4"
|
|
81
80
|
}
|
|
82
81
|
}
|