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

feat(client): add ._request_id property to object responses #1078

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

RobertCraigie
Copy link
Collaborator

on the tin

@RobertCraigie RobertCraigie marked this pull request as ready for review September 16, 2024 19:23
@RobertCraigie RobertCraigie requested a review from a team as a code owner September 16, 2024 19:23
}

return Object.defineProperty(value, '_request_id', {
value: response.headers.get('x-request-id'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will this error if the value doesn't exist, or return undefined?

Copy link
Collaborator Author

@RobertCraigie RobertCraigie Sep 17, 2024

Choose a reason for hiding this comment

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

it'll return undefined or null

README.md Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants