Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [18, 19, 20]
node-version: [20, 21]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
check-latest: true

- name: Import GPG key
Expand Down
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx commitlint --edit $1
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
8 changes: 2 additions & 6 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { File as NodeFile } from "node:buffer";
import { BindenError, Middleware, IMiddlewareParams, Context } from "binden";
import busboy, { BusboyConfig } from "busboy";

Expand Down Expand Up @@ -32,7 +31,7 @@ export class Multipart extends Middleware {
case "HEAD":
case "OPTIONS":
case "TRACE":
context.log.trace("Method does not support incoming body", { method });
log.trace("Method does not support incoming body", { method });
return;
default:
break;
Expand Down Expand Up @@ -66,10 +65,7 @@ export class Multipart extends Middleware {
const chunks: Buffer[] = [];
stream
.once("close", () => {
fd.append(
name,
new NodeFile(chunks, filename, { type }) as File & NodeFile,
);
fd.append(name, new File(chunks, filename, { type }));
})
.on("data", (chunk: Buffer) => {
chunks.push(chunk);
Expand Down
Loading