Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: Changing on Dependencies #4

Closed
wants to merge 8 commits into from
Closed
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
2 changes: 1 addition & 1 deletion __test__/ikari.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3464,7 +3464,7 @@ const createContextMock = (method: HttpMethod) => {
const statusMock = jest.fn();
const jsonMock = jest.fn();
const getResWithoutBodyMock = jest.fn();
const resMock = {};
const resMock = {} as Response;
const context = {
method,
status: (param: number) => {
Expand Down
Binary file modified bun.lockb
100644 → 100755
Binary file not shown.
10 changes: 5 additions & 5 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export class Context {
this.res = new Response(jsonData, {
status: status || this.res.status,
headers: {
...this.res.headers.toJSON(),
...Object.fromEntries(this.res.headers),
"Content-Type": "application/json",
Comment on lines -324 to 325
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same above

},
});
Expand Down Expand Up @@ -371,7 +371,7 @@ export class Context {
public getResWithoutBody(): Response {
return new Response(null, {
status: this.res.status,
headers: this.res.headers,
headers: Object.fromEntries(this.res.headers),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same above

});
}

Expand Down Expand Up @@ -400,7 +400,7 @@ export class Context {
this.res = new Response(data, {
status: status || this.res.status,
headers: {
...this.res.headers.toJSON(),
...Object.fromEntries(this.res.headers),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same above

"Content-Type": contentType,
},
});
Expand All @@ -426,7 +426,7 @@ export class Context {
this.res = new Response(data, {
status: status || this.res.status,
headers: {
...this.res.headers.toJSON(),
...Object.fromEntries(this.res.headers),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same above

"Content-Type": contentType,
},
});
Expand All @@ -452,7 +452,7 @@ export class Context {
this.res = new Response(data, {
status: status || this.res.status,
headers: {
...this.res.headers.toJSON(),
...Object.fromEntries(this.res.headers),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same above

"Content-Type": contentType,
},
});
Expand Down
Loading