webpack / webpack-sources

Source code handling classes for webpack
MIT License
261 stars 71 forks source link

fix crash when checking name but no sourcesContent is provided #128

Closed sokra closed 3 years ago

sokra commented 3 years ago

fixes #121 fixes webpack/webpack#13879

codecov[bot] commented 3 years ago

Codecov Report

Merging #128 (5222eec) into main (cfebf95) will increase coverage by 0.91%. The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #128      +/-   ##
==========================================
+ Coverage   92.52%   93.44%   +0.91%     
==========================================
  Files          21       21              
  Lines        1579     1587       +8     
  Branches      461      463       +2     
==========================================
+ Hits         1461     1483      +22     
+ Misses        109       97      -12     
+ Partials        9        7       -2     
Flag Coverage Δ
integration 93.44% <87.50%> (+0.91%) :arrow_up:

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

Impacted Files Coverage Δ
lib/helpers/streamChunksOfCombinedSourceMap.js 94.88% <87.50%> (+7.38%) :arrow_up:
lib/helpers/getFromStreamChunks.js 92.59% <0.00%> (+1.85%) :arrow_up:
lib/helpers/readMappings.js 100.00% <0.00%> (+1.88%) :arrow_up:

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 cfebf95...5222eec. Read the comment docs.