@alcyone-labs/arg-parser 2.4.0 → 2.4.1
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.min.mjs +1 -1
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
package/dist/index.cjs
CHANGED
|
@@ -41,7 +41,7 @@ const zod = require("zod");
|
|
|
41
41
|
const simpleMcpLogger = require("@alcyone-labs/simple-mcp-logger");
|
|
42
42
|
const process$1 = require("node:process");
|
|
43
43
|
const node_crypto = require("node:crypto");
|
|
44
|
-
const
|
|
44
|
+
const url = require("url");
|
|
45
45
|
var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
|
|
46
46
|
function _interopNamespaceDefault(e) {
|
|
47
47
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -23261,7 +23261,7 @@ class SSEServerTransport {
|
|
|
23261
23261
|
Connection: "keep-alive"
|
|
23262
23262
|
});
|
|
23263
23263
|
const dummyBase = "http://localhost";
|
|
23264
|
-
const endpointUrl = new
|
|
23264
|
+
const endpointUrl = new url.URL(this._endpoint, dummyBase);
|
|
23265
23265
|
endpointUrl.searchParams.set("sessionId", this._sessionId);
|
|
23266
23266
|
const relativeUrlWithSession = endpointUrl.pathname + endpointUrl.search + endpointUrl.hash;
|
|
23267
23267
|
this.res.write(`event: endpoint
|