From 563f2a42bcc6231a9e90872ab0689fe6c7c0415d Mon Sep 17 00:00:00 2001 From: nick-w-nick <43578531+nick-w-nick@users.noreply.github.com> Date: Wed, 5 Feb 2025 14:45:17 -0500 Subject: [PATCH 1/3] fixed typos in test file --- test/index.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/index.test.ts b/test/index.test.ts index dd74de1..a0c78c9 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -31,7 +31,7 @@ describe("fetchNodeRequestHandler", () => { }); }); - it("heaaders (object)", async () => { + it("headers (object)", async () => { const res = await fetchNodeRequestHandler(echoHandler, "/test", { headers: { foo: "bar", empty: "" }, }); @@ -41,7 +41,7 @@ describe("fetchNodeRequestHandler", () => { }); }); - it("heaaders (Headers)", async () => { + it("headers (Headers)", async () => { const res = await fetchNodeRequestHandler(echoHandler, "/test", { headers: new Headers({ foo: "bar", empty: "" }), }); @@ -51,7 +51,7 @@ describe("fetchNodeRequestHandler", () => { }); }); - it("heaaders (array)", async () => { + it("headers (array)", async () => { const res = await fetchNodeRequestHandler(echoHandler, "/test", { headers: [ ["foo", "bar"], From 107399dce2780ababdf631fe11d27d3145dc23c6 Mon Sep 17 00:00:00 2001 From: nick-w-nick <43578531+nick-w-nick@users.noreply.github.com> Date: Wed, 5 Feb 2025 14:45:29 -0500 Subject: [PATCH 2/3] fixed typo in events polyfill --- src/_polyfill/events/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_polyfill/events/events.ts b/src/_polyfill/events/events.ts index 8793470..299f070 100644 --- a/src/_polyfill/events/events.ts +++ b/src/_polyfill/events/events.ts @@ -84,7 +84,7 @@ export class EventEmitter implements NodeEventEmitter { static kMaxEventTargetListenersWarned = kMaxEventTargetListenersWarned; // Static utils - static usingDomains = false; // backwards compatibilit + static usingDomains = false; // backwards compatibility static get on() { return on; } From d129b97e46ba95ad2cc1504d6cb77660f7905e20 Mon Sep 17 00:00:00 2001 From: nick-w-nick <43578531+nick-w-nick@users.noreply.github.com> Date: Wed, 5 Feb 2025 14:45:46 -0500 Subject: [PATCH 3/3] fixed typo in readable stream method --- src/stream/readable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream/readable.ts b/src/stream/readable.ts index b9c62e7..362d483 100644 --- a/src/stream/readable.ts +++ b/src/stream/readable.ts @@ -75,7 +75,7 @@ export class Readable extends EventEmitter implements NodeStream.Readable { return this; } - pipe(_destenition: T, _options?: { end?: boolean }): T { + pipe(_destination: T, _options?: { end?: boolean }): T { return {} as T; }