@rethinkhealth/hl7v2-parser 0.3.1 → 0.3.3

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/dist/index.d.ts CHANGED
@@ -3,4 +3,3 @@ export * from "./preprocessor";
3
3
  export { parseHL7v2FromIterator } from "./processor";
4
4
  export * from "./tokenizer";
5
5
  export * from "./types";
6
- //# sourceMappingURL=index.d.ts.map
package/dist/parser.d.ts CHANGED
@@ -4,4 +4,3 @@ import type { ParseOptions } from "./types";
4
4
  export declare function parseHL7v2(input: string, opts: ParseOptions): Root;
5
5
  declare const hl7v2Parser: Plugin<[ParseOptions?], string, Root>;
6
6
  export default hl7v2Parser;
7
- //# sourceMappingURL=parser.d.ts.map
@@ -19,4 +19,3 @@ export declare const defaultPreprocessors: PreprocessorStep[];
19
19
  * Run the pipeline to initialize ParserContext.
20
20
  */
21
21
  export declare function runPreprocessors(ctx: ParserContext, steps: PreprocessorStep[]): ParserContext;
22
- //# sourceMappingURL=preprocessor.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import type { Root } from "@rethinkhealth/hl7v2-ast";
2
2
  import type { ParserContext, Token } from "./types";
3
3
  export declare function parseHL7v2FromIterator(tokens: Iterable<Token>, ctx: ParserContext): Root;
4
- //# sourceMappingURL=processor.d.ts.map
@@ -15,4 +15,3 @@ export declare class HL7v2Tokenizer implements Tokenizer, Iterable<Token> {
15
15
  private _tok;
16
16
  [Symbol.iterator](): Iterator<Token>;
17
17
  }
18
- //# sourceMappingURL=tokenizer.d.ts.map
package/dist/types.d.ts CHANGED
@@ -31,4 +31,3 @@ export type Tokenizer = {
31
31
  reset(ctx: ParserContext): void;
32
32
  next(): Token | null;
33
33
  };
34
- //# sourceMappingURL=types.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rethinkhealth/hl7v2-parser",
3
3
  "description": "hl7v2 plugin to parse hl7v2 messages",
4
- "version": "0.3.1",
4
+ "version": "0.3.3",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Melek Somai",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "unified": "11.0.5",
20
- "@rethinkhealth/hl7v2-utils": "0.3.1"
20
+ "@rethinkhealth/hl7v2-utils": "0.3.3"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "24.10.0",
@@ -26,9 +26,9 @@
26
26
  "tsup": "8.5.0",
27
27
  "typescript": "^5.9.3",
28
28
  "vitest": "^4.0.6",
29
- "@rethinkhealth/hl7v2-ast": "0.3.1",
30
- "@rethinkhealth/testing": "0.0.2",
31
- "@rethinkhealth/tsconfig": "0.0.1"
29
+ "@rethinkhealth/tsconfig": "0.0.1",
30
+ "@rethinkhealth/hl7v2-ast": "0.3.3",
31
+ "@rethinkhealth/testing": "0.0.2"
32
32
  },
33
33
  "repository": "rethinkhealth/hl7v2.git",
34
34
  "homepage": "https://www.rethinkhealth.io/hl7v2/docs",
@@ -40,6 +40,9 @@
40
40
  "nodejs",
41
41
  "typescript"
42
42
  ],
43
+ "engines": {
44
+ "node": ">=18"
45
+ },
43
46
  "packageManager": "pnpm@10.14.0",
44
47
  "publishConfig": {
45
48
  "access": "public"
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,UAAU,CAAC;AAClD,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAItC,OAAO,KAAK,EAAE,YAAY,EAAmC,MAAM,SAAS,CAAC;AAQ7E,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,IAAI,CAgBlE;AAED,QAAA,MAAM,WAAW,EAAE,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAItD,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"preprocessor.d.ts","sourceRoot":"","sources":["../src/preprocessor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAI/D;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,gBAKtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,gBAG/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,gBAoB9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,gBAAgB,EAIlD,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,aAAa,EAClB,KAAK,EAAE,gBAAgB,EAAE,GACxB,aAAa,CAOf"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../src/processor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAIV,IAAI,EAIL,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,aAAa,EAAY,KAAK,EAAE,MAAM,SAAS,CAAC;AAwT9D,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,EACvB,GAAG,EAAE,aAAa,GACjB,IAAI,CAMN"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tokenizer.d.ts","sourceRoot":"","sources":["../src/tokenizer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EAEb,KA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