@cosyte/mllp 0.0.10 → 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/package.json CHANGED
@@ -1,14 +1,22 @@
1
1
  {
2
2
  "name": "@cosyte/mllp",
3
- "version": "0.0.10",
4
- "description": "Production-grade MLLP client and server for Node.js, transport-only sibling to @cosyte/hl7",
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://github.com/cosyte/mllp#readme",
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
- "hl7v2",
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": "file:vendor/cosyte-hl7-0.0.0.tgz",
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,29 +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",
125
+ "check:agent-notes": "tsx scripts/check-agent-notes.ts",
116
126
  "check:no-emdash": "bash scripts/check-no-emdash.sh",
117
127
  "check:no-internal-refs": "bash scripts/check-no-internal-refs.sh",
118
- "lint": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --max-warnings=0 --no-error-on-unmatched-pattern",
119
- "lint:fix": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --fix --no-error-on-unmatched-pattern",
120
- "format": "prettier --write \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"*.{json,md,yml}\"",
121
- "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}\"",
122
132
  "test": "vitest run",
123
133
  "test:watch": "vitest",
124
134
  "test:coverage": "vitest run --coverage",
135
+ "examples": "tsx scripts/run-examples.ts",
125
136
  "certs:gen": "node scripts/generate-test-certs.mjs",
126
137
  "clean": "rm -rf dist coverage",
127
138
  "attw": "node scripts/attw.mjs --profile node16",
128
139
  "pack:docs": "bash scripts/build-docs-artifacts.sh",
129
140
  "version": "changeset version && node scripts/sync-version.mjs && prettier --write package.json src/index.ts",
130
141
  "publish:dry": "pnpm publish --dry-run --no-git-checks",
131
- "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"
132
148
  }
133
- }
149
+ }