Skip to content

Commit

Permalink
chore: apply automated lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] committed Sep 26, 2023
1 parent 498a540 commit 0610b52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/adapters/plain.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { IncomingMessage } from "node:http";
import { IncomingMessage as NodeIncomingMessage } from "unenv/runtime/node/http/_request";
import { ServerResponse as NodeServerResponse } from "unenv/runtime/node/http/_response";
import type { App } from "../app";
Expand All @@ -10,7 +11,6 @@ import {
setResponseStatus,
splitCookiesString,
} from "../utils";
import { IncomingMessage } from "node:http";

export interface PlainRequest {
_eventOverrides?: Partial<H3Event>;
Expand Down Expand Up @@ -67,7 +67,8 @@ export async function _handlePlainRequest(app: App, request: PlainRequest) {

// Shim for Node.js request and response objects
// TODO: Remove in next major version
const nodeReq = new NodeIncomingMessage() as unknown /* unenv */ as IncomingMessage;
const nodeReq =
new NodeIncomingMessage() as unknown /* unenv */ as IncomingMessage;
const nodeRes = new NodeServerResponse(nodeReq);

// Fill node request properties
Expand Down

0 comments on commit 0610b52

Please sign in to comment.