Skip to content

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

Merged
RobertCraigie merged 3 commits intomasterfrom
robert/add-request-id
Sep 17, 2024
Merged

feat(client): add ._request_id property to object responses#1078
RobertCraigie merged 3 commits intomasterfrom
robert/add-request-id

Conversation

@RobertCraigie
Copy link
Copy Markdown
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
Comment thread src/core.ts
}

return Object.defineProperty(value, '_request_id', {
value: response.headers.get('x-request-id'),
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.

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

Copy link
Copy Markdown
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

Comment thread README.md Outdated
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