Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

fix: Ensure Marshalled GaxiosResponse has all properties#605

Merged
sofisl merged 2 commits intomainfrom
fix-martial-gaxiosresponse
May 23, 2025
Merged

fix: Ensure Marshalled GaxiosResponse has all properties#605
sofisl merged 2 commits intomainfrom
fix-martial-gaxiosresponse

Conversation

@d-goog
Copy link
Copy Markdown
Contributor

@d-goog d-goog commented May 23, 2025

🦕

@d-goog d-goog requested a review from a team May 23, 2025 16:40
@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label May 23, 2025
@sofisl sofisl changed the title fix: Ensure Martialed GaxiosResponse has all properties fix: Ensure Marshalled GaxiosResponse has all properties May 23, 2025
Comment thread src/util.ts Outdated
@@ -49,7 +50,12 @@ export function headersToClassicHeaders<T extends Record<string, string>>(
* @returns the GaxiosResponse with HTTP2-ready/compatible headers
*/
export function martialGaxiosResponse<T extends GaxiosResponse>(res?: T) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
export function martialGaxiosResponse<T extends GaxiosResponse>(res?: T) {
export function marshallGaxiosResponse<T extends GaxiosResponse>(res?: T) {

Comment thread test/test.util.ts Outdated
});
});

describe('martialGaxiosResponse', () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
describe('martialGaxiosResponse', () => {
describe('marshallGaxiosResponse', () => {

Comment thread test/test.util.ts Outdated
data: {},
});

const newRes = martialGaxiosResponse(gRes);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
const newRes = martialGaxiosResponse(gRes);
const newRes = marshallGaxiosResponse(gRes);

@sofisl sofisl merged commit 2b9dba5 into main May 23, 2025
18 checks passed
@sofisl sofisl deleted the fix-martial-gaxiosresponse branch May 23, 2025 21:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants