Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

handle invalid mappings #127

Merged
merged 2 commits into from
Jul 30, 2021
Merged

handle invalid mappings #127

merged 2 commits into from
Jul 30, 2021

Conversation

sokra
Copy link
Member

@sokra sokra commented Jul 30, 2021

ignore invalid mappings when reading a source map

avoid generating invalid mappings when source maps contains mapping for the final position

@sokra sokra force-pushed the bugfix/invalid-mappings branch 2 times, most recently from 7dea838 to 42487aa Compare July 30, 2021 09:46
@sokra sokra force-pushed the bugfix/invalid-mappings branch from 42487aa to dfff046 Compare July 30, 2021 10:05
@codecov
Copy link

codecov bot commented Jul 30, 2021

Codecov Report

Merging #127 (dfff046) into main (d103b21) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #127      +/-   ##
==========================================
+ Coverage   92.50%   92.52%   +0.02%     
==========================================
  Files          21       21              
  Lines        1561     1579      +18     
  Branches      451      461      +10     
==========================================
+ Hits         1444     1461      +17     
- Misses        108      109       +1     
  Partials        9        9              
Flag Coverage Δ
integration 92.52% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/ConcatSource.js 92.57% <ø> (-0.09%) ⬇️
lib/PrefixSource.js 82.00% <100.00%> (+0.36%) ⬆️
lib/helpers/readMappings.js 98.11% <100.00%> (+2.19%) ⬆️
lib/helpers/streamChunksOfSourceMap.js 96.85% <100.00%> (-1.07%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d103b21...dfff046. Read the comment docs.

@sokra sokra merged commit 2621df2 into main Jul 30, 2021
@sokra sokra deleted the bugfix/invalid-mappings branch July 30, 2021 10:10
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant