From d339172915456d79bd62c8955e7683fae2ee079b Mon Sep 17 00:00:00 2001 From: v1rtl Date: Fri, 21 Feb 2025 23:38:07 +0200 Subject: [PATCH] fix: lower engines to 18.13 || 19.20 --- .github/workflows/main.yml | 4 ++-- package.json | 2 +- src/index.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f17596c..244153e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,8 +27,8 @@ jobs: run: corepack enable pnpm - uses: actions/setup-node@v4 with: - node-version: 20 - cache: 'pnpm' + node-version: 18.13 + cache: "pnpm" - run: pnpm install - run: pnpm test:coverage - run: pnpm test:report diff --git a/package.json b/package.json index 9362ebb..7aee659 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "body-parsing" ], "engines": { - "node": ">=20" + "node": ">=18.13 || >=19.20 || >=20" }, "exports": "./dist/index.js", "devDependencies": { diff --git a/src/index.ts b/src/index.ts index f633e7e..5dd51e4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import { Buffer } from 'node:buffer' +import { Buffer, File } from 'node:buffer' import type { IncomingMessage, ServerResponse as Response } from 'node:http' type NextFunction = (err?: any) => void