@jini-ai/http-kit 0.6.15-rc.1 → 0.6.15-rc.2

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/sse.js CHANGED
@@ -92,7 +92,7 @@ export function createSseChannel({ res }, options = {}) {
92
92
  }
93
93
  if (wroteOk === false)
94
94
  writable = false;
95
- if (options.isEndEvent?.({ event })) {
95
+ if (isTerminalEvent(event)) {
96
96
  finish();
97
97
  return;
98
98
  }
@@ -100,6 +100,7 @@ export function createSseChannel({ res }, options = {}) {
100
100
  if (ending)
101
101
  end();
102
102
  };
103
+ const isTerminalEvent = (event) => options.isEndEvent?.({ event });
103
104
  const enqueue = ({ event }) => {
104
105
  if (closed || ending)
105
106
  return;
@@ -1,6 +1,5 @@
1
1
  import type { VerifiedOriginRequestContext, OriginRegistryPort, OriginSettingRepoPort, RedirectTargetContext, EgressTargetContext } from "./ports.js";
2
- import { OriginNotVerifiedError, type VerifiedOrigin } from "./types.js";
3
- export { OriginNotVerifiedError };
2
+ import { type VerifiedOrigin } from "./types.js";
4
3
  export interface NormalizedTarget {
5
4
  scheme: "https" | "http";
6
5
  host: string;
@@ -1,5 +1,4 @@
1
1
  import { OriginNotVerifiedError, createVerifiedOrigin } from "./types.js";
2
- export { OriginNotVerifiedError };
3
2
  /**
4
3
  * Check the original string before the WHATWG parser strips whitespace/controls or converts a
5
4
  * backslash to a slash. A stored backslash plus a request tail can become a browser-followed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jini-ai/http-kit",
3
- "version": "0.6.15-rc.1",
3
+ "version": "0.6.15-rc.2",
4
4
  "description": "Generic Express transport primitives, request parsing, response serialization, origin guards and route-pack mounting.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -71,16 +71,16 @@
71
71
  "@types/express": "^4.17.21",
72
72
  "@vitest/coverage-v8": "^2.1.9",
73
73
  "express": "^4.21.0",
74
- "@jini-ai/protocol": "0.6.15-rc.1",
75
- "@jini-ai/core": "0.6.15-rc.1",
76
- "@jini-ai/platform": "0.6.15-rc.1"
74
+ "@jini-ai/core": "0.6.15-rc.2",
75
+ "@jini-ai/platform": "0.6.15-rc.2",
76
+ "@jini-ai/protocol": "0.6.15-rc.2"
77
77
  },
78
78
  "dependencies": {
79
- "@jini-ai/core": "^0.6.15-rc.1",
80
- "@jini-ai/protocol": "^0.6.15-rc.1"
79
+ "@jini-ai/protocol": "^0.6.15-rc.2",
80
+ "@jini-ai/core": "^0.6.15-rc.2"
81
81
  },
82
82
  "peerDependencies": {
83
- "@jini-ai/platform": "^0.6.15-rc.1",
83
+ "@jini-ai/platform": "^0.6.15-rc.2",
84
84
  "express": "^4.21.0 || ^5.0.0"
85
85
  },
86
86
  "peerDependenciesMeta": {