Skip to content

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
@netlify
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.

@netlify
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.

💪

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

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
tsi added a commit that referenced this pull request Jan 7, 2025
fix: update dependencies (#746)

feat: light esm build (#765)

---------

Co-authored-by: Tsachi Shlidor <[email protected]>
Co-authored-by: ShayLevi <[email protected]>
Co-authored-by: cloudinary-jenkins <[email protected]>
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.

3 participants