@cosyte/mllp 0.0.3 → 0.0.4
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 +20 -0
- package/README.md +21 -5
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1704,7 +1704,9 @@ interface ServerOptions {
|
|
|
1704
1704
|
*
|
|
1705
1705
|
* const server = await createStarterServer({
|
|
1706
1706
|
* port: 2575,
|
|
1707
|
-
* onMessage: (
|
|
1707
|
+
* onMessage: async (payload) => {
|
|
1708
|
+
* await db.commit(payload); // the durable-commit step; a throw answers a negative ACK
|
|
1709
|
+
* },
|
|
1708
1710
|
* });
|
|
1709
1711
|
* // server is listening, auto-ACK enabled, Symbol.asyncDispose wired
|
|
1710
1712
|
* await using _ = server; // closes on scope exit
|
|
@@ -2029,7 +2031,9 @@ declare function createServer(opts?: ServerOptions): MllpServer;
|
|
|
2029
2031
|
*
|
|
2030
2032
|
* const server = await createStarterServer({
|
|
2031
2033
|
* port: 2575,
|
|
2032
|
-
* onMessage: (payload) =>
|
|
2034
|
+
* onMessage: async (payload) => {
|
|
2035
|
+
* await db.commit(payload); // the durable-commit step; a throw answers a negative ACK
|
|
2036
|
+
* },
|
|
2033
2037
|
* });
|
|
2034
2038
|
* ```
|
|
2035
2039
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1704,7 +1704,9 @@ interface ServerOptions {
|
|
|
1704
1704
|
*
|
|
1705
1705
|
* const server = await createStarterServer({
|
|
1706
1706
|
* port: 2575,
|
|
1707
|
-
* onMessage: (
|
|
1707
|
+
* onMessage: async (payload) => {
|
|
1708
|
+
* await db.commit(payload); // the durable-commit step; a throw answers a negative ACK
|
|
1709
|
+
* },
|
|
1708
1710
|
* });
|
|
1709
1711
|
* // server is listening, auto-ACK enabled, Symbol.asyncDispose wired
|
|
1710
1712
|
* await using _ = server; // closes on scope exit
|
|
@@ -2029,7 +2031,9 @@ declare function createServer(opts?: ServerOptions): MllpServer;
|
|
|
2029
2031
|
*
|
|
2030
2032
|
* const server = await createStarterServer({
|
|
2031
2033
|
* port: 2575,
|
|
2032
|
-
* onMessage: (payload) =>
|
|
2034
|
+
* onMessage: async (payload) => {
|
|
2035
|
+
* await db.commit(payload); // the durable-commit step; a throw answers a negative ACK
|
|
2036
|
+
* },
|
|
2033
2037
|
* });
|
|
2034
2038
|
* ```
|
|
2035
2039
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -3410,7 +3410,7 @@ async function createStarterClient(opts) {
|
|
|
3410
3410
|
}
|
|
3411
3411
|
|
|
3412
3412
|
// src/index.ts
|
|
3413
|
-
var VERSION = "0.0.
|
|
3413
|
+
var VERSION = "0.0.4";
|
|
3414
3414
|
|
|
3415
3415
|
export { Connection, FrameReader, MLLP_BIND_ALL_INTERFACES, MLLP_TLS_VERIFY_DISABLED, MllpAckError, MllpBackpressureError, MllpClient, MllpConnectionError, MllpFramingError, MllpServer, MllpTimeoutError, NetTransport, TlsTransport, VERSION, buildRawAck, createClient, createServer, createStarterClient, createStarterServer, createWarning, encodeFrame, isTlsProtocolError, isTlsVerificationErrorCode, isTransientConnectionError, rawAckUncorrelatable, resolveNackCode };
|
|
3416
3416
|
//# sourceMappingURL=index.mjs.map
|