@mantiq/core 0.7.0 → 0.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantiq/core",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Service container, router, middleware, HTTP kernel, config, and exception handler",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -280,7 +280,7 @@ export class MantiqRequest implements MantiqRequestContract {
280
280
  } else if (contentType.includes('multipart/form-data')) {
281
281
  const formData = await this.bunRequest.clone().formData()
282
282
  for (const [key, value] of formData.entries()) {
283
- if (value instanceof File) {
283
+ if (typeof value === 'object' && value instanceof File) {
284
284
  const uploaded = new UploadedFile(value)
285
285
  if (this.parsedFiles[key]) {
286
286
  const existing = this.parsedFiles[key]!
@@ -93,7 +93,7 @@ export class MantiqResponse {
93
93
  ? `attachment; filename="${sanitized}"`
94
94
  : `attachment; filename="${sanitized}"; filename*=UTF-8''${encodeURIComponent(sanitized)}`
95
95
 
96
- return new Response(content, {
96
+ return new Response(content as any, {
97
97
  headers: {
98
98
  'Content-Type': mimeType ?? 'application/octet-stream',
99
99
  'Content-Disposition': disposition,