@dnax/core 0.6.2 → 0.6.4

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.
Files changed (2) hide show
  1. package/app/hono.ts +8 -2
  2. package/package.json +1 -1
package/app/hono.ts CHANGED
@@ -289,7 +289,10 @@ function HonoInstance(): typeof app {
289
289
  c.req?.raw?.headers.get("content-type") ==
290
290
  "application/x-www-form-urlencoded"
291
291
  ) {
292
- parseBody = (await c?.req.parseBody()) || {};
292
+ parseBody =
293
+ (await c?.req.parseBody({
294
+ all: true,
295
+ })) || {};
293
296
  }
294
297
 
295
298
  const body = await c?.req
@@ -378,7 +381,10 @@ function HonoInstance(): typeof app {
378
381
  let insertedFiles = [];
379
382
  for await (let file of parseBody?.file) {
380
383
  let insertedFile = await drive.write(file.name, file);
381
- insertedFiles.push(insertedFile);
384
+ insertedFiles.push({
385
+ ...data,
386
+ _file: insertedFile,
387
+ });
382
388
  }
383
389
  response = await rest.insertMany(col?.slug, insertedFiles);
384
390
  } else if (typeof parseBody?.file == "object") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {