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: update dependencies #746

Merged
merged 11 commits into from
Dec 9, 2024
Merged

fix: update dependencies #746

merged 11 commits into from
Dec 9, 2024

Conversation

tsi
Copy link
Collaborator

@tsi tsi commented Dec 4, 2024

No description provided.

@tsi tsi self-assigned this Dec 4, 2024
@tsi tsi requested a review from a team as a code owner December 4, 2024 15:40
Copy link

netlify bot commented Dec 4, 2024

Deploy Preview for cld-video-player ready!

Name Link
🔨 Latest commit 1042122
🔍 Latest deploy log https://app.netlify.com/sites/cld-video-player/deploys/67571413139f080008c15989
😎 Deploy Preview https://deploy-preview-746--cld-video-player.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 4, 2024

Deploy Preview for cld-vp-esm-pages ready!

Name Link
🔨 Latest commit 1042122
🔍 Latest deploy log https://app.netlify.com/sites/cld-vp-esm-pages/deploys/67571413d51f250008ecd2bf
😎 Deploy Preview https://deploy-preview-746--cld-vp-esm-pages.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@ehab-cl ehab-cl left a comment

Choose a reason for hiding this comment

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

💪

@@ -41,7 +41,7 @@ export const getResolveVideoElement = (elem) => {

try {
elem = document.querySelector(`#${cssEscape(id)}`) || videojs.getPlayer(id);
} catch (e) {
} catch (err) { // eslint-disable-line no-unused-vars
elem = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

I would console.warn the error instead of the eslint disable line ... since anyway we have other console.warn statements .... later we need to start thinking how we should report these errors somewhere

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

see previous

@@ -15,7 +15,7 @@ function coerce(string) {
// Complex object
try {
val = JSON.parse(string);
} catch (e) {
} catch (e) { // eslint-disable-line no-unused-vars
Copy link
Contributor

Choose a reason for hiding this comment

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

I would console.warn the error instead of the eslint disable line ... since anyway we have other console.warn statements .... later we need to start thinking how we should report these errors somewhere

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In principle I agree, but it seems like in this case the author used try...catch to silence the failing JSON.parse()
I'll try thinking of a better way to write this

@tsi tsi merged commit 1ac07ea into edge Dec 9, 2024
10 checks passed
@tsi tsi deleted the ME-18453-update-deps branch December 9, 2024 16:10
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