@modelcontextprotocol/server-basic-react 1.0.0 → 1.1.0

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
@@ -27197,11 +27197,11 @@ var require_lib4 = __commonJS((exports, module) => {
27197
27197
  var headers = [], method = req.method && req.method.toUpperCase && req.method.toUpperCase();
27198
27198
  if (method === "OPTIONS") {
27199
27199
  headers.push(configureOrigin(options, req));
27200
- headers.push(configureCredentials(options));
27201
- headers.push(configureMethods(options));
27200
+ headers.push(configureCredentials(options, req));
27201
+ headers.push(configureMethods(options, req));
27202
27202
  headers.push(configureAllowedHeaders(options, req));
27203
- headers.push(configureMaxAge(options));
27204
- headers.push(configureExposedHeaders(options));
27203
+ headers.push(configureMaxAge(options, req));
27204
+ headers.push(configureExposedHeaders(options, req));
27205
27205
  applyHeaders(headers, res);
27206
27206
  if (options.preflightContinue) {
27207
27207
  next();
@@ -27212,8 +27212,8 @@ var require_lib4 = __commonJS((exports, module) => {
27212
27212
  }
27213
27213
  } else {
27214
27214
  headers.push(configureOrigin(options, req));
27215
- headers.push(configureCredentials(options));
27216
- headers.push(configureExposedHeaders(options));
27215
+ headers.push(configureCredentials(options, req));
27216
+ headers.push(configureExposedHeaders(options, req));
27217
27217
  applyHeaders(headers, res);
27218
27218
  next();
27219
27219
  }
@@ -28713,7 +28713,7 @@ class Doc {
28713
28713
  var version = {
28714
28714
  major: 4,
28715
28715
  minor: 3,
28716
- patch: 6
28716
+ patch: 5
28717
28717
  };
28718
28718
 
28719
28719
  // ../../node_modules/zod/v4/core/schemas.js
@@ -29753,7 +29753,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
29753
29753
  if (keyResult instanceof Promise) {
29754
29754
  throw new Error("Async schemas not supported in object keys currently");
29755
29755
  }
29756
- const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length;
29756
+ const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length && keyResult.issues.some((iss) => iss.code === "invalid_type" && iss.expected === "number");
29757
29757
  if (checkNumericKey) {
29758
29758
  const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
29759
29759
  if (retryResult instanceof Promise) {
@@ -30919,7 +30919,7 @@ function finalize(ctx, schema) {
30919
30919
  }
30920
30920
  }
30921
30921
  }
30922
- if (refSchema.$ref && refSeen.def) {
30922
+ if (refSchema.$ref) {
30923
30923
  for (const key in schema2) {
30924
30924
  if (key === "$ref" || key === "allOf")
30925
30925
  continue;