@cosyte/dicom 0.0.19 → 0.1.0
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/CHANGELOG.md +761 -0
- package/README.md +329 -153
- package/dist/index.cjs +2758 -850
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1658 -269
- package/dist/index.d.ts +1658 -269
- package/dist/index.mjs +2755 -852
- package/dist/index.mjs.map +1 -1
- package/package.json +66 -37
package/package.json
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosyte/dicom",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "DICOM Part 10 parser + utility library for Node.js and TypeScript: metadata-first, vendor-quirky-tolerant, dual ESM/CJS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dicom",
|
|
7
|
-
"
|
|
7
|
+
"dicom-part-10",
|
|
8
8
|
"medical-imaging",
|
|
9
|
+
"radiology",
|
|
10
|
+
"pacs",
|
|
11
|
+
"ct",
|
|
12
|
+
"mri",
|
|
13
|
+
"metadata",
|
|
14
|
+
"de-identification",
|
|
15
|
+
"anonymization",
|
|
9
16
|
"healthcare",
|
|
10
17
|
"interoperability",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
18
|
+
"parser",
|
|
19
|
+
"serializer",
|
|
20
|
+
"typescript"
|
|
14
21
|
],
|
|
15
|
-
"homepage": "https://
|
|
22
|
+
"homepage": "https://docs.cosyte.com/dicom",
|
|
16
23
|
"bugs": {
|
|
17
24
|
"url": "https://github.com/cosyte/dicom/issues"
|
|
18
25
|
},
|
|
@@ -26,6 +33,17 @@
|
|
|
26
33
|
"engines": {
|
|
27
34
|
"node": ">=22.0.0"
|
|
28
35
|
},
|
|
36
|
+
"packageManager": "pnpm@10.34.5",
|
|
37
|
+
"pnpm": {
|
|
38
|
+
"overrides": {
|
|
39
|
+
"brace-expansion@>=5.0.0 <5.0.9": "5.0.9",
|
|
40
|
+
"esbuild@>=0.27.3 <0.28.1": "0.28.1",
|
|
41
|
+
"js-yaml@>=3.0.0 <3.15.1": "3.15.1",
|
|
42
|
+
"js-yaml@>=4.0.0 <4.3.0": "4.3.0",
|
|
43
|
+
"js-yaml@>=4.0.0 <4.3.1": "4.3.1",
|
|
44
|
+
"postcss@>=8.0.0 <8.5.23": "8.5.23"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
29
47
|
"main": "./dist/index.cjs",
|
|
30
48
|
"module": "./dist/index.mjs",
|
|
31
49
|
"types": "./dist/index.d.ts",
|
|
@@ -55,31 +73,6 @@
|
|
|
55
73
|
"provenance": true
|
|
56
74
|
},
|
|
57
75
|
"prettier": "@cosyte/prettier-config",
|
|
58
|
-
"devDependencies": {
|
|
59
|
-
"@arethetypeswrong/cli": "0.18.4",
|
|
60
|
-
"@changesets/cli": "2.31.0",
|
|
61
|
-
"@cosyte/eslint-config": "^0.0.3",
|
|
62
|
-
"@cosyte/prettier-config": "^0.0.2",
|
|
63
|
-
"@cosyte/tsconfig": "^0.0.2",
|
|
64
|
-
"@cosyte/test-utils": "^0.0.2",
|
|
65
|
-
"@cosyte/tsup-config": "^0.0.1",
|
|
66
|
-
"@cosyte/vitest-config": "^0.0.2",
|
|
67
|
-
"@types/node": "^22.0.0",
|
|
68
|
-
"@vitest/coverage-v8": "4.1.4",
|
|
69
|
-
"eslint": "10.5.0",
|
|
70
|
-
"fast-check": "3.23.2",
|
|
71
|
-
"prettier": "3.8.3",
|
|
72
|
-
"simple-git-hooks": "2.13.0",
|
|
73
|
-
"tsup": "8.5.1",
|
|
74
|
-
"tsx": "4.21.0",
|
|
75
|
-
"typescript": "5.9.3",
|
|
76
|
-
"vite": "7.3.6",
|
|
77
|
-
"vitest": "4.1.4"
|
|
78
|
-
},
|
|
79
|
-
"dependencies": {},
|
|
80
|
-
"simple-git-hooks": {
|
|
81
|
-
"pre-commit": "pnpm phi-scan --staged"
|
|
82
|
-
},
|
|
83
76
|
"scripts": {
|
|
84
77
|
"build": "tsup",
|
|
85
78
|
"changeset": "changeset",
|
|
@@ -88,26 +81,62 @@
|
|
|
88
81
|
"typecheck:exports": "node scripts/attw.mjs --profile node16",
|
|
89
82
|
"lint": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --max-warnings=0 --no-error-on-unmatched-pattern",
|
|
90
83
|
"lint:fix": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --fix --no-error-on-unmatched-pattern",
|
|
91
|
-
"format": "prettier --write \"src/**/*.{ts,md}\" \"scripts/**/*.{ts,mjs}\" \"test/**/*.ts\" \"*.{json,md,yml,yaml}\" --no-error-on-unmatched-pattern",
|
|
92
|
-
"format:check": "prettier --check \"src/**/*.{ts,md}\" \"scripts/**/*.{ts,mjs}\" \"test/**/*.ts\" \"*.{json,md,yml,yaml}\" --no-error-on-unmatched-pattern",
|
|
84
|
+
"format": "prettier --write \"src/**/*.{ts,md}\" \"scripts/**/*.{ts,mjs}\" \"test/**/*.ts\" \"examples/**/*.{ts,js,json,md}\" \"*.{json,md,yml,yaml}\" --no-error-on-unmatched-pattern",
|
|
85
|
+
"format:check": "prettier --check \"src/**/*.{ts,md}\" \"scripts/**/*.{ts,mjs}\" \"test/**/*.ts\" \"examples/**/*.{ts,js,json,md}\" \"*.{json,md,yml,yaml}\" --no-error-on-unmatched-pattern",
|
|
93
86
|
"test": "vitest run",
|
|
94
87
|
"test:watch": "vitest",
|
|
95
88
|
"test:coverage": "vitest run --coverage",
|
|
89
|
+
"examples": "tsx scripts/run-examples.ts",
|
|
90
|
+
"typecheck:examples": "tsc -p examples/tsconfig.json",
|
|
91
|
+
"lint:examples": "eslint examples --max-warnings=0",
|
|
92
|
+
"phi-scan:examples": "tsx scripts/phi-scan.ts examples/*.ts examples/data/*.ts",
|
|
96
93
|
"gen:dictionary": "tsx scripts/generate-dictionary.ts",
|
|
97
94
|
"gen:annex-e": "tsx scripts/generate-annex-e.ts",
|
|
98
95
|
"gen:repeating-groups": "tsx scripts/generate-repeating-groups.ts",
|
|
96
|
+
"gen:encapsulated-transfer-syntaxes": "tsx scripts/generate-encapsulated-transfer-syntaxes.ts",
|
|
99
97
|
"gen:clean": "find src/dictionary/generated -mindepth 1 ! -name 'README.md' -delete",
|
|
100
|
-
"gen:all": "pnpm gen:repeating-groups && pnpm gen:dictionary && pnpm gen:annex-e",
|
|
98
|
+
"gen:all": "pnpm gen:repeating-groups && pnpm gen:dictionary && pnpm gen:annex-e && pnpm gen:encapsulated-transfer-syntaxes",
|
|
101
99
|
"check:no-emdash": "bash scripts/check-no-emdash.sh",
|
|
100
|
+
"check:no-internal-refs": "node scripts/check-no-internal-refs.ts",
|
|
102
101
|
"measure:phi-scan-unread": "tsx scripts/measure-phi-scan-unread.ts",
|
|
103
102
|
"measure:phi-scan-retention": "node scripts/measure-phi-scan-retention.ts",
|
|
104
103
|
"measure:phi-scan-monotonicity": "node scripts/measure-phi-scan-monotonicity.ts",
|
|
105
104
|
"measure:phi-scan-regex-statics": "node scripts/measure-phi-scan-regex-statics.ts",
|
|
105
|
+
"measure:phi-scan-line-endings": "node scripts/measure-phi-scan-line-endings.ts",
|
|
106
|
+
"measure:phi-scan-html-blocks": "node scripts/measure-phi-scan-html-blocks.ts",
|
|
107
|
+
"measure:phi-scan-atx-heading": "node scripts/measure-phi-scan-atx-heading.ts",
|
|
106
108
|
"phi-scan": "tsx scripts/phi-scan.ts",
|
|
107
109
|
"smoke": "tsx scripts/smoke.ts",
|
|
108
110
|
"pack:docs": "bash scripts/build-docs-artifacts.sh",
|
|
109
111
|
"attw": "node scripts/attw.mjs",
|
|
110
112
|
"version": "changeset version && node scripts/sync-version.mjs && prettier --write package.json src/version.ts",
|
|
111
|
-
"release": "changeset publish"
|
|
113
|
+
"release": "changeset publish",
|
|
114
|
+
"prepublishOnly": "pnpm clean && pnpm gen:all && pnpm typecheck && pnpm lint && pnpm test && pnpm build && pnpm attw",
|
|
115
|
+
"prepare": "command -v simple-git-hooks >/dev/null 2>&1 && simple-git-hooks || true"
|
|
116
|
+
},
|
|
117
|
+
"devDependencies": {
|
|
118
|
+
"@arethetypeswrong/cli": "0.18.4",
|
|
119
|
+
"@changesets/cli": "2.31.0",
|
|
120
|
+
"@cosyte/eslint-config": "^0.0.3",
|
|
121
|
+
"@cosyte/prettier-config": "^0.0.2",
|
|
122
|
+
"@cosyte/tsconfig": "^0.0.2",
|
|
123
|
+
"@cosyte/test-utils": "^0.0.2",
|
|
124
|
+
"@cosyte/tsup-config": "^0.0.1",
|
|
125
|
+
"@cosyte/vitest-config": "^0.0.2",
|
|
126
|
+
"@types/node": "^22.0.0",
|
|
127
|
+
"@vitest/coverage-v8": "4.1.4",
|
|
128
|
+
"eslint": "10.5.0",
|
|
129
|
+
"fast-check": "3.23.2",
|
|
130
|
+
"prettier": "3.8.3",
|
|
131
|
+
"simple-git-hooks": "2.13.0",
|
|
132
|
+
"tsup": "8.5.1",
|
|
133
|
+
"tsx": "4.21.0",
|
|
134
|
+
"typescript": "5.9.3",
|
|
135
|
+
"vite": "7.3.6",
|
|
136
|
+
"vitest": "4.1.4"
|
|
137
|
+
},
|
|
138
|
+
"dependencies": {},
|
|
139
|
+
"simple-git-hooks": {
|
|
140
|
+
"pre-commit": "pnpm phi-scan --staged"
|
|
112
141
|
}
|
|
113
|
-
}
|
|
142
|
+
}
|