@cosyte/mllp 0.0.11 → 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 +210 -0
- package/README.md +301 -78
- package/dist/ack-from-hl7/index.cjs +11 -16
- package/dist/ack-from-hl7/index.cjs.map +1 -1
- package/dist/ack-from-hl7/index.mjs +11 -16
- package/dist/ack-from-hl7/index.mjs.map +1 -1
- package/dist/index.cjs +1603 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2060 -297
- package/dist/index.d.ts +2060 -297
- package/dist/index.mjs +1585 -76
- package/dist/index.mjs.map +1 -1
- package/package.json +31 -16
package/package.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosyte/mllp",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "MLLP transport for HL7 v2 in Node.js and TypeScript: client and server, framing, ACK correlation, auto-reconnect, TLS, and an in-memory transport for tests.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.0.0"
|
|
8
8
|
},
|
|
9
|
+
"packageManager": "pnpm@10.0.0",
|
|
10
|
+
"pnpm": {
|
|
11
|
+
"overrides": {
|
|
12
|
+
"brace-expansion@>=4.0.0 <5.0.9": "5.0.9",
|
|
13
|
+
"esbuild@>=0.27.3 <0.28.1": "0.28.1",
|
|
14
|
+
"js-yaml@>=4.0.0 <4.3.0": "4.3.0"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
9
17
|
"license": "MIT",
|
|
10
18
|
"author": "Cosyte <hello@cosyte.com> (https://cosyte.com)",
|
|
11
|
-
"homepage": "https://
|
|
19
|
+
"homepage": "https://docs.cosyte.com/mllp",
|
|
12
20
|
"bugs": {
|
|
13
21
|
"url": "https://github.com/cosyte/mllp/issues"
|
|
14
22
|
},
|
|
@@ -18,10 +26,14 @@
|
|
|
18
26
|
},
|
|
19
27
|
"keywords": [
|
|
20
28
|
"hl7",
|
|
29
|
+
"hl7v2",
|
|
21
30
|
"mllp",
|
|
31
|
+
"mllps",
|
|
22
32
|
"healthcare",
|
|
23
|
-
"
|
|
24
|
-
"tcp"
|
|
33
|
+
"interoperability",
|
|
34
|
+
"tcp",
|
|
35
|
+
"tls",
|
|
36
|
+
"typescript"
|
|
25
37
|
],
|
|
26
38
|
"files": [
|
|
27
39
|
"dist",
|
|
@@ -84,7 +96,7 @@
|
|
|
84
96
|
"@arethetypeswrong/cli": "0.18.4",
|
|
85
97
|
"@changesets/cli": "2.31.0",
|
|
86
98
|
"@cosyte/eslint-config": "^0.0.3",
|
|
87
|
-
"@cosyte/hl7": "
|
|
99
|
+
"@cosyte/hl7": "^0.1.0",
|
|
88
100
|
"@cosyte/prettier-config": "^0.0.2",
|
|
89
101
|
"@cosyte/test-utils": "^0.0.2",
|
|
90
102
|
"@cosyte/tsconfig": "^0.0.2",
|
|
@@ -105,30 +117,33 @@
|
|
|
105
117
|
"vite": "7.3.6",
|
|
106
118
|
"vitest": "4.1.4"
|
|
107
119
|
},
|
|
108
|
-
"simple-git-hooks": {
|
|
109
|
-
"pre-commit": "pnpm phi-scan --staged"
|
|
110
|
-
},
|
|
111
120
|
"scripts": {
|
|
112
121
|
"build": "tsup",
|
|
113
122
|
"changeset": "changeset",
|
|
114
|
-
"typecheck": "tsc --noEmit",
|
|
123
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p examples",
|
|
115
124
|
"phi-scan": "tsx scripts/phi-scan.ts",
|
|
116
125
|
"check:agent-notes": "tsx scripts/check-agent-notes.ts",
|
|
117
126
|
"check:no-emdash": "bash scripts/check-no-emdash.sh",
|
|
118
127
|
"check:no-internal-refs": "bash scripts/check-no-internal-refs.sh",
|
|
119
|
-
"lint": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --max-warnings=0 --no-error-on-unmatched-pattern",
|
|
120
|
-
"lint:fix": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --fix --no-error-on-unmatched-pattern",
|
|
121
|
-
"format": "prettier --write \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"*.{json,md,yml}\"",
|
|
122
|
-
"format:check": "prettier --check \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"*.{json,md,yml}\"",
|
|
128
|
+
"lint": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" \"examples/**/*.ts\" --max-warnings=0 --no-error-on-unmatched-pattern",
|
|
129
|
+
"lint:fix": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" \"examples/**/*.ts\" --fix --no-error-on-unmatched-pattern",
|
|
130
|
+
"format": "prettier --write \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"examples/**/*.{ts,json}\" \"docs-content/**/*.{md,json}\" \"*.{json,md,yml}\"",
|
|
131
|
+
"format:check": "prettier --check \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"examples/**/*.{ts,json}\" \"docs-content/**/*.{md,json}\" \"*.{json,md,yml}\"",
|
|
123
132
|
"test": "vitest run",
|
|
124
133
|
"test:watch": "vitest",
|
|
125
134
|
"test:coverage": "vitest run --coverage",
|
|
135
|
+
"examples": "tsx scripts/run-examples.ts",
|
|
126
136
|
"certs:gen": "node scripts/generate-test-certs.mjs",
|
|
127
137
|
"clean": "rm -rf dist coverage",
|
|
128
138
|
"attw": "node scripts/attw.mjs --profile node16",
|
|
129
139
|
"pack:docs": "bash scripts/build-docs-artifacts.sh",
|
|
130
140
|
"version": "changeset version && node scripts/sync-version.mjs && prettier --write package.json src/index.ts",
|
|
131
141
|
"publish:dry": "pnpm publish --dry-run --no-git-checks",
|
|
132
|
-
"release": "changeset publish"
|
|
142
|
+
"release": "changeset publish",
|
|
143
|
+
"prepublishOnly": "pnpm clean && pnpm typecheck && pnpm lint && pnpm test && pnpm build && pnpm attw",
|
|
144
|
+
"prepare": "command -v simple-git-hooks >/dev/null 2>&1 && simple-git-hooks || true"
|
|
145
|
+
},
|
|
146
|
+
"simple-git-hooks": {
|
|
147
|
+
"pre-commit": "pnpm phi-scan --staged"
|
|
133
148
|
}
|
|
134
|
-
}
|
|
149
|
+
}
|