SuperFlyTV / casparcg-connection

node.js Javascript/TypeScript library for CasparCG connection and commands.
https://www.npmjs.com/package/casparcg-connection
MIT License
86 stars 22 forks source link

fix: bug fix in INFO CHANNEL deserializer #194

Closed nytamin closed 11 months ago

nytamin commented 11 months ago

Bug fix

Deserializer fails when the element was missing (when there is an empty channel)

Deserializer returns layers: [] as expected

codecov-commenter commented 11 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (81757d1) 81.32% compared to head (985417b) 81.35%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #194 +/- ## ========================================== + Coverage 81.32% 81.35% +0.02% ========================================== Files 14 14 Lines 723 724 +1 Branches 164 165 +1 ========================================== + Hits 588 589 +1 Misses 131 131 Partials 4 4 ``` | [Files](https://app.codecov.io/gh/SuperFlyTV/casparcg-connection/pull/194?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SuperFlyTV) | Coverage Δ | | |---|---|---| | [src/deserializers/deserializeInfoChannel.ts](https://app.codecov.io/gh/SuperFlyTV/casparcg-connection/pull/194?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SuperFlyTV#diff-c3JjL2Rlc2VyaWFsaXplcnMvZGVzZXJpYWxpemVJbmZvQ2hhbm5lbC50cw==) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.