Skip to content

Commit

Permalink
fix: update to batch processing (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bugs5382 authored Jan 8, 2024
2 parents ca7aae1 + b6d632c commit cf06493
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@

# [1.1.0-beta.5](https://github.com/Bugs5382/node-hl7-client/compare/v1.1.0-beta.4...v1.1.0-beta.5) (2024-01-08)

# [1.1.0](https://github.com/Bugs5382/node-hl7-client/compare/v1.0.0...v1.1.0) (2023-12-31)



### Bug Fixes


* BHS or MSH ([4e42fa1](https://github.com/Bugs5382/node-hl7-client/commit/4e42fa1c37adf8b5b5d8c4988e3ddb050c997335))
* BHS or MSH ([#65](https://github.com/Bugs5382/node-hl7-client/issues/65)) ([5b10dda](https://github.com/Bugs5382/node-hl7-client/commit/5b10dda091c31fc51858af0701581fcc04f55b32))

* fix error emit error ([3daa8e8](https://github.com/Bugs5382/node-hl7-client/commit/3daa8e872c51492cbed8842f5301605da9bceaff)), closes [#56](https://github.com/Bugs5382/node-hl7-client/issues/56)
* fix error emit error ([#57](https://github.com/Bugs5382/node-hl7-client/issues/57)) ([8aaf14a](https://github.com/Bugs5382/node-hl7-client/commit/8aaf14af973c9f4b06456a44dd3e816f3c7159c1))
* hostname -> host ([033ff25](https://github.com/Bugs5382/node-hl7-client/commit/033ff259a2f068837ab0693a8e05129607021cba))
Expand All @@ -17,6 +25,7 @@
* merge in ([#53](https://github.com/Bugs5382/node-hl7-client/issues/53)) ([031ebfe](https://github.com/Bugs5382/node-hl7-client/commit/031ebfe4b5c315d7c6344a7eef2b06cf2626fc03))
* v1.1.0 ([#61](https://github.com/Bugs5382/node-hl7-client/issues/61)) ([9adb0ab](https://github.com/Bugs5382/node-hl7-client/commit/9adb0abdfa9cc30ede354e71ab244b13bb245763))


# [1.1.0-beta.4](https://github.com/Bugs5382/node-hl7-client/compare/v1.1.0-beta.3...v1.1.0-beta.4) (2023-12-31)


Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-hl7-client",
"version": "1.1.0",
"version": "1.1.0-beta.5",
"description": "A pure Node.js HL7 Client that allows for communication to a HL7 Broker/Server that can send properly formatted HL7 messages with ease.It can also parse and then you can extract message segments out.",
"module": "./lib/esm/index.js",
"main": "./lib/cjs/index.js",
Expand All @@ -27,7 +27,7 @@
"lint": "npm run npm:lint && ts-standard | snazzy",
"lint:fix": "npm run npm:lint . && ts-standard --fix | snazzy",
"pack": "npm pack",
"prepublishOnly": "npm run clean && npm run build && npm run test:ci && npm run pack",
"prepublishOnly": "npm run clean && npm run build && npm run pack",
"test": "jest",
"test:open": "jest --detectOpenHandles",
"test:watch": "jest --watch",
Expand Down Expand Up @@ -65,12 +65,12 @@
"@semantic-release/release-notes-generator": "^12.1.0",
"@the-rabbit-hole/semantic-release-config": "^1.4.0",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.5",
"@types/node": "^20.10.6",
"@types/tcp-port-used": "^1.0.4",
"@typescript-eslint/parser": "^6.15.0",
"@typescript-eslint/parser": "^6.16.0",
"jest": "^29.7.0",
"jest-ts-webcompat-resolver": "^1.0.0",
"node-hl7-server": "^1.0.1-beta.3",
"node-hl7-server": "^1.1.0",
"npm-check-updates": "^16.14.12",
"npm-package-json-lint": "^7.1.0",
"portfinder": "^1.0.32",
Expand All @@ -81,7 +81,7 @@
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"ts-standard": "^12.0.2",
"tsd": "^0.30.0",
"tsd": "^0.30.1",
"typedoc": "^0.25.4",
"typescript": "5.3.3"
},
Expand Down
2 changes: 1 addition & 1 deletion pages/parser/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ you should know what your receiving on what port so getting the proper string ei
## Table of Contents

1. [Introduction](#introduction)
2. [basic Usage](#basic-usage)
2. [Basic Usage](#basic-usage)

## Basic Usage

Expand Down
4 changes: 2 additions & 2 deletions src/utils/normalizedBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ export function normalizedClientMessageBuilderOptions (raw?: ClientBuilderMessag
export function normalizedClientBatchBuilderOptions (raw?: ClientBuilderOptions): ClientBuilderOptions {
const props: ClientBuilderOptions = { ...DEFAULT_CLIENT_BUILDER_OPTS, ...raw }

if (typeof props.text !== 'undefined' && props.text !== '' && props.text.slice(0, 3) !== 'BHS') {
throw new Error('text must begin with the BHS segment.')
if (typeof props.text !== 'undefined' && props.text !== '' && props.text.slice(0, 3) !== 'BHS' && props.text.slice(0, 3) !== 'MSH') {
throw new Error('text must begin with the BHS or MSH segment.')
}

if ((typeof props.newLine !== 'undefined' && props.newLine === '\\r') || props.newLine === '\\n') {
Expand Down

0 comments on commit cf06493

Please sign in to comment.