node-modules / compressing

Everything you need for compressing and uncompressing
MIT License
428 stars 36 forks source link

fix: throw error when source is not exists #78

Closed acyza closed 1 year ago

acyza commented 1 year ago

compressing.zip.uncompress 的source传入undefined时既不报错也不响应

acyza commented 1 year ago

compressing.zip.uncompress返回的Promise,pipe用不了,碰到source传入undefined,null,false之类的会开启pipe模式,会导致Promise永远处于pending状态。

codecov[bot] commented 1 year ago

Codecov Report

Merging #78 (351daea) into master (fc3a98b) will increase coverage by 0.02%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #78      +/-   ##
==========================================
+ Coverage   96.58%   96.61%   +0.02%     
==========================================
  Files          19       19              
  Lines         586      590       +4     
  Branches      110      111       +1     
==========================================
+ Hits          566      570       +4     
  Misses         20       20              
Impacted Files Coverage Δ
lib/utils.js 97.29% <100.00%> (+0.10%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.6.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: