@mastra/mcp 1.2.0 → 1.2.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.js CHANGED
@@ -1996,7 +1996,7 @@ function createSimpleTokenProvider(accessToken, options) {
1996
1996
  });
1997
1997
  }
1998
1998
 
1999
- // ../../node_modules/.pnpm/hono@4.11.9/node_modules/hono/dist/utils/stream.js
1999
+ // ../../node_modules/.pnpm/hono@4.12.7/node_modules/hono/dist/utils/stream.js
2000
2000
  var StreamingApi = class {
2001
2001
  writer;
2002
2002
  encoder;
@@ -2073,7 +2073,7 @@ var StreamingApi = class {
2073
2073
  }
2074
2074
  };
2075
2075
 
2076
- // ../../node_modules/.pnpm/hono@4.11.9/node_modules/hono/dist/helper/streaming/utils.js
2076
+ // ../../node_modules/.pnpm/hono@4.12.7/node_modules/hono/dist/helper/streaming/utils.js
2077
2077
  var isOldBunVersion = () => {
2078
2078
  const version = typeof Bun !== "undefined" ? Bun.version : void 0;
2079
2079
  if (version === void 0) {
@@ -2084,7 +2084,7 @@ var isOldBunVersion = () => {
2084
2084
  return result;
2085
2085
  };
2086
2086
 
2087
- // ../../node_modules/.pnpm/hono@4.11.9/node_modules/hono/dist/utils/html.js
2087
+ // ../../node_modules/.pnpm/hono@4.12.7/node_modules/hono/dist/utils/html.js
2088
2088
  var HtmlEscapedCallbackPhase = {
2089
2089
  Stringify: 1};
2090
2090
  var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => {
@@ -2115,7 +2115,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
2115
2115
  }
2116
2116
  };
2117
2117
 
2118
- // ../../node_modules/.pnpm/hono@4.11.9/node_modules/hono/dist/helper/streaming/sse.js
2118
+ // ../../node_modules/.pnpm/hono@4.12.7/node_modules/hono/dist/helper/streaming/sse.js
2119
2119
  var SSEStreamingApi = class extends StreamingApi {
2120
2120
  constructor(writable, readable) {
2121
2121
  super(writable, readable);
@@ -2125,6 +2125,11 @@ var SSEStreamingApi = class extends StreamingApi {
2125
2125
  const dataLines = data.split(/\r\n|\r|\n/).map((line) => {
2126
2126
  return `data: ${line}`;
2127
2127
  }).join("\n");
2128
+ for (const key of ["event", "id", "retry"]) {
2129
+ if (message[key] && /[\r\n]/.test(message[key])) {
2130
+ throw new Error(`${key} must not contain "\\r" or "\\n"`);
2131
+ }
2132
+ }
2128
2133
  const sseData = [
2129
2134
  message.event && `event: ${message.event}`,
2130
2135
  dataLines,