node-modules / compressing

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

feat: support absolute path zip file #10

Closed fengmk2 closed 6 years ago

fengmk2 commented 6 years ago

try to transfer absolute and relative path to an validate filepath.

e.g.:

fengmk2 commented 6 years ago

对路径进行容错处理,不是所有 zip 文件都很规范,有些程序生成的 zip 文件路径是绝对路径,但是其实能够解析出来的,自动按相对路径处理即可。

image

codecov[bot] commented 6 years ago

Codecov Report

Merging #10 into master will increase coverage by 0.09%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
+ Coverage      98%   98.09%   +0.09%     
==========================================
  Files          18       19       +1     
  Lines         501      525      +24     
==========================================
+ Hits          491      515      +24     
  Misses         10       10
Impacted Files Coverage Δ
lib/base_stream.js 87.5% <100%> (+20.83%) :arrow_up:
lib/utils.js 97.16% <100%> (+0.39%) :arrow_up:
lib/base_write_stream.js 100% <100%> (ø)
lib/zip/uncompress_stream.js 98.07% <100%> (-0.04%) :arrow_down:

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 90c8eda...a37c73c. Read the comment docs.