@mastra/nestjs 0.2.35-alpha.8 → 0.2.35

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 CHANGED
@@ -10974,10 +10974,11 @@ function parseMultipartFormData(request, options = {}) {
10974
10974
  reject(new _nestjs_common.PayloadTooLargeException(`File size limit exceeded${maxSize ? ` (max: ${formatBytes(maxSize)})` : ""}`));
10975
10975
  });
10976
10976
  file.on("end", () => {
10977
- if (!limitExceeded) result[fieldname] = Buffer.concat(chunks);
10977
+ if (!limitExceeded && (0, _mastra_server_server_adapter.isSafeObjectKey)(fieldname)) result[fieldname] = Buffer.concat(chunks);
10978
10978
  });
10979
10979
  });
10980
10980
  busboy.on("field", (fieldname, value) => {
10981
+ if (!(0, _mastra_server_server_adapter.isSafeObjectKey)(fieldname)) return;
10981
10982
  try {
10982
10983
  result[fieldname] = JSON.parse(value);
10983
10984
  } catch {