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

fix(pillarbox-monitoring): inconsistent error name value #284

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

amtins
Copy link
Member

@amtins amtins commented Nov 18, 2024

Description

Fixes #283, by modifying the value of the error name sent, allowing clearer errors when consumed by other tools.

This modification supports the properties as defined by the WHATWG as well as the two custom properties provided by video.js which are MEDIA_ERR_CUSTOM and MEDIA_ERR_ENCRYPTED.

Changes made

  • add a static method for setting the value of the error name
  • add mock for MediaError

Fixes #283, by modifying the value of the error name sent, allowing clearer
errors when consumed by other tools.

This modification supports the properties as defined by the WHATWG as well as
the two custom properties provided by video.js which are `MEDIA_ERR_CUSTOM`
and `MEDIA_ERR_ENCRYPTED`.

- add a static method for setting the value of the error name
- add mock for `MediaError`
Copy link

github-actions bot commented Nov 18, 2024

PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-12-16 13:28 UTC

Copy link

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
98.11% (+0% 🔼)
832/848
🟢 Branches 93% 385/414
🟢 Functions
98.69% (+0.01% 🔼)
226/229
🟢 Lines
98.5% (+0% 🔼)
789/801

Test suite run success

247 tests passing in 10 suites.

Report generated by 🧪jest coverage report action from 722dde6

Copy link
Contributor

@jboix jboix left a comment

Choose a reason for hiding this comment

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

LGTM

@amtins amtins merged commit 0e311be into main Dec 16, 2024
5 checks passed
@amtins amtins deleted the fix/283-inconsistent-monitoring-error-message-payload branch December 16, 2024 13:28
Copy link

🎉 This PR is included in version 1.15.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Inconsistent monitoring error message payload
2 participants