@lowlysre/icd-10-cm 1.0.3 → 1.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/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@lowlysre/icd-10-cm",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "ICD-10-CM (Clinical Modification) data for use in the US healthcare system",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "scripts": {
9
- "test": "jest",
9
+ "test": "npm run build --silent && node --test",
10
10
  "lint": "eslint . --ext .ts",
11
- "build": "tsup src/index.ts --format esm,cjs --dts --minify --treeshake --clean",
12
- "parse-icd": "ts-node scripts/parseICD.ts"
11
+ "build": "tsup src/index.ts --format esm,cjs --minify --treeshake --clean && tsc --emitDeclarationOnly --project tsconfig.json --outDir dist --rootDir src",
12
+ "parse-icd": "node --experimental-strip-types scripts/parseICD.ts"
13
13
  },
14
14
  "exports": {
15
15
  ".": {
@@ -21,27 +21,36 @@
21
21
  "sideEffects": false,
22
22
  "author": "John McCall",
23
23
  "license": "MIT",
24
- "files": ["dist"],
24
+ "files": [
25
+ "dist"
26
+ ],
25
27
  "publishConfig": {
26
28
  "registry": "https://registry.npmjs.org/",
27
29
  "access": "public",
28
30
  "tag": "latest"
29
31
  },
30
- "repository": { "url": "https://github.com/lowlysre/icd-10-cm" },
31
- "keywords": ["icd","icd-10","icd-code", "icd10", "icd-10-cm", "medical", "healthcare", "diagnosis", "who"],
32
+ "repository": {
33
+ "url": "https://github.com/lowlysre/icd-10-cm"
34
+ },
35
+ "keywords": [
36
+ "icd",
37
+ "icd-10",
38
+ "icd-code",
39
+ "icd10",
40
+ "icd-10-cm",
41
+ "medical",
42
+ "healthcare",
43
+ "diagnosis",
44
+ "who"
45
+ ],
32
46
  "devDependencies": {
33
- "@types/jest": "^30.0.0",
34
- "@typescript-eslint/eslint-plugin": "^8.51.0",
35
- "@typescript-eslint/parser": "^8.51.0",
47
+ "@typescript-eslint/eslint-plugin": "^8.59.2",
48
+ "@typescript-eslint/parser": "^8.59.2",
36
49
  "eslint": "^9.39.2",
37
50
  "eslint-config-prettier": "^10.0.1",
38
- "eslint-plugin-jest": "^29.12.0",
39
51
  "eslint-plugin-prettier": "^5.2.2",
40
- "jest": "^30.2.0",
41
52
  "prettier": "^3.3.2",
42
- "ts-jest": "^29.1.5",
43
- "ts-node": "^10.9.2",
44
53
  "tsup": "^8.3.0",
45
- "typescript": "^5.5.3"
54
+ "typescript": "^6.0.3"
46
55
  }
47
56
  }
package/dist/index.d.mts DELETED
@@ -1,6 +0,0 @@
1
- type ICD10Dictionary = { [code: string]: string };
2
-
3
- declare const normalizeICD10Code: (code: string) => string;
4
- declare const getICD10Description: (code: string) => string | undefined;
5
-
6
- export { type ICD10Dictionary, getICD10Description as default, getICD10Description, normalizeICD10Code };