simple-zstd 1.3.0 → 2.0.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.js CHANGED
@@ -9,9 +9,11 @@ module.exports = {
9
9
  SharedArrayBuffer: 'readonly',
10
10
  },
11
11
  parserOptions: {
12
- ecmaVersion: 2018,
12
+ ecmaVersion: 'latest',
13
13
  sourceType: 'module',
14
14
  },
15
15
  rules: {
16
+ 'max-len': 'off',
17
+ 'no-underscore-dangle': 'off',
16
18
  },
17
19
  };
@@ -0,0 +1 @@
1
+ {"/home/stieneee/git/standalone/simple-zstd/index.js":{"path":"/home/stieneee/git/standalone/simple-zstd/index.js","statementMap":{"0":{"start":{"line":1,"column":11},"end":{"line":1,"column":29}},"1":{"start":{"line":2,"column":22},"end":{"line":2,"column":49}},"2":{"start":{"line":3,"column":31},"end":{"line":3,"column":53}},"3":{"start":{"line":4,"column":13},"end":{"line":4,"column":33}},"4":{"start":{"line":6,"column":22},"end":{"line":6,"column":48}},"5":{"start":{"line":7,"column":21},"end":{"line":7,"column":50}},"6":{"start":{"line":8,"column":14},"end":{"line":8,"column":31}},"7":{"start":{"line":9,"column":13},"end":{"line":9,"column":35}},"8":{"start":{"line":10,"column":16},"end":{"line":10,"column":35}},"9":{"start":{"line":11,"column":17},"end":{"line":11,"column":39}},"10":{"start":{"line":12,"column":14},"end":{"line":12,"column":44}},"11":{"start":{"line":14,"column":13},"end":{"line":14,"column":30}},"12":{"start":{"line":15,"column":23},"end":{"line":15,"column":51}},"13":{"start":{"line":17,"column":22},"end":{"line":17,"column":46}},"14":{"start":{"line":19,"column":13},"end":{"line":19,"column":77}},"15":{"start":{"line":23,"column":0},"end":{"line":28,"column":1}},"16":{"start":{"line":24,"column":2},"end":{"line":24,"column":94}},"17":{"start":{"line":25,"column":2},"end":{"line":25,"column":13}},"18":{"start":{"line":27,"column":2},"end":{"line":27,"column":59}},"19":{"start":{"line":30,"column":0},"end":{"line":34,"column":1}},"20":{"start":{"line":31,"column":2},"end":{"line":31,"column":40}},"21":{"start":{"line":33,"column":2},"end":{"line":33,"column":44}},"22":{"start":{"line":37,"column":13},"end":{"line":37,"column":32}},"23":{"start":{"line":39,"column":12},"end":{"line":39,"column":21}},"24":{"start":{"line":40,"column":13},"end":{"line":40,"column":30}},"25":{"start":{"line":41,"column":13},"end":{"line":41,"column":17}},"26":{"start":{"line":42,"column":16},"end":{"line":42,"column":20}},"27":{"start":{"line":44,"column":2},"end":{"line":44,"column":20}},"28":{"start":{"line":44,"column":12},"end":{"line":44,"column":20}},"29":{"start":{"line":45,"column":2},"end":{"line":45,"column":35}},"30":{"start":{"line":45,"column":27},"end":{"line":45,"column":35}},"31":{"start":{"line":48,"column":2},"end":{"line":54,"column":3}},"32":{"start":{"line":49,"column":4},"end":{"line":49,"column":49}},"33":{"start":{"line":50,"column":9},"end":{"line":54,"column":3}},"34":{"start":{"line":51,"column":4},"end":{"line":51,"column":39}},"35":{"start":{"line":52,"column":4},"end":{"line":52,"column":38}},"36":{"start":{"line":53,"column":4},"end":{"line":53,"column":38}},"37":{"start":{"line":58,"column":2},"end":{"line":65,"column":3}},"38":{"start":{"line":59,"column":4},"end":{"line":59,"column":73}},"39":{"start":{"line":60,"column":4},"end":{"line":60,"column":73}},"40":{"start":{"line":63,"column":4},"end":{"line":63,"column":27}},"41":{"start":{"line":63,"column":17},"end":{"line":63,"column":27}},"42":{"start":{"line":64,"column":4},"end":{"line":64,"column":14}},"43":{"start":{"line":67,"column":2},"end":{"line":75,"column":5}},"44":{"start":{"line":68,"column":4},"end":{"line":68,"column":32}},"45":{"start":{"line":69,"column":4},"end":{"line":73,"column":5}},"46":{"start":{"line":70,"column":6},"end":{"line":72,"column":12}},"47":{"start":{"line":71,"column":8},"end":{"line":71,"column":86}},"48":{"start":{"line":74,"column":4},"end":{"line":74,"column":27}},"49":{"start":{"line":74,"column":17},"end":{"line":74,"column":27}},"50":{"start":{"line":77,"column":2},"end":{"line":77,"column":11}},"51":{"start":{"line":81,"column":2},"end":{"line":91,"column":5}},"52":{"start":{"line":82,"column":14},"end":{"line":82,"column":34}},"53":{"start":{"line":84,"column":4},"end":{"line":90,"column":35}},"54":{"start":{"line":89,"column":18},"end":{"line":89,"column":35}},"55":{"start":{"line":90,"column":22},"end":{"line":90,"column":33}},"56":{"start":{"line":96,"column":13},"end":{"line":96,"column":32}},"57":{"start":{"line":98,"column":13},"end":{"line":98,"column":30}},"58":{"start":{"line":99,"column":13},"end":{"line":99,"column":17}},"59":{"start":{"line":100,"column":16},"end":{"line":100,"column":20}},"60":{"start":{"line":102,"column":2},"end":{"line":108,"column":3}},"61":{"start":{"line":103,"column":4},"end":{"line":103,"column":49}},"62":{"start":{"line":104,"column":9},"end":{"line":108,"column":3}},"63":{"start":{"line":105,"column":4},"end":{"line":105,"column":39}},"64":{"start":{"line":106,"column":4},"end":{"line":106,"column":38}},"65":{"start":{"line":107,"column":4},"end":{"line":107,"column":38}},"66":{"start":{"line":112,"column":2},"end":{"line":119,"column":3}},"67":{"start":{"line":113,"column":4},"end":{"line":113,"column":61}},"68":{"start":{"line":114,"column":4},"end":{"line":114,"column":68}},"69":{"start":{"line":117,"column":4},"end":{"line":117,"column":27}},"70":{"start":{"line":117,"column":17},"end":{"line":117,"column":27}},"71":{"start":{"line":118,"column":4},"end":{"line":118,"column":14}},"72":{"start":{"line":121,"column":2},"end":{"line":129,"column":5}},"73":{"start":{"line":122,"column":4},"end":{"line":122,"column":32}},"74":{"start":{"line":123,"column":4},"end":{"line":127,"column":5}},"75":{"start":{"line":124,"column":6},"end":{"line":126,"column":12}},"76":{"start":{"line":125,"column":8},"end":{"line":125,"column":86}},"77":{"start":{"line":128,"column":4},"end":{"line":128,"column":27}},"78":{"start":{"line":128,"column":17},"end":{"line":128,"column":27}},"79":{"start":{"line":131,"column":2},"end":{"line":134,"column":5}},"80":{"start":{"line":132,"column":4},"end":{"line":132,"column":42}},"81":{"start":{"line":132,"column":21},"end":{"line":132,"column":42}},"82":{"start":{"line":133,"column":4},"end":{"line":133,"column":33}},"83":{"start":{"line":138,"column":2},"end":{"line":148,"column":5}},"84":{"start":{"line":139,"column":14},"end":{"line":139,"column":34}},"85":{"start":{"line":141,"column":4},"end":{"line":147,"column":35}},"86":{"start":{"line":146,"column":18},"end":{"line":146,"column":35}},"87":{"start":{"line":147,"column":22},"end":{"line":147,"column":33}},"88":{"start":{"line":155,"column":2},"end":{"line":155,"column":95}},"89":{"start":{"line":159,"column":12},"end":{"line":159,"column":103}},"90":{"start":{"line":160,"column":2},"end":{"line":160,"column":35}},"91":{"start":{"line":165,"column":2},"end":{"line":165,"column":86}},"92":{"start":{"line":169,"column":12},"end":{"line":169,"column":94}},"93":{"start":{"line":170,"column":2},"end":{"line":170,"column":37}},"94":{"start":{"line":185,"column":4},"end":{"line":185,"column":103}},"95":{"start":{"line":186,"column":21},"end":{"line":186,"column":38}},"96":{"start":{"line":187,"column":4},"end":{"line":236,"column":7}},"97":{"start":{"line":188,"column":17},"end":{"line":188,"column":21}},"98":{"start":{"line":189,"column":20},"end":{"line":189,"column":24}},"99":{"start":{"line":191,"column":6},"end":{"line":231,"column":7}},"100":{"start":{"line":193,"column":8},"end":{"line":195,"column":9}},"101":{"start":{"line":194,"column":10},"end":{"line":194,"column":33}},"102":{"start":{"line":196,"column":8},"end":{"line":200,"column":9}},"103":{"start":{"line":197,"column":10},"end":{"line":197,"column":45}},"104":{"start":{"line":198,"column":10},"end":{"line":198,"column":44}},"105":{"start":{"line":199,"column":10},"end":{"line":199,"column":44}},"106":{"start":{"line":202,"column":8},"end":{"line":212,"column":10}},"107":{"start":{"line":205,"column":12},"end":{"line":205,"column":38}},"108":{"start":{"line":206,"column":12},"end":{"line":206,"column":103}},"109":{"start":{"line":209,"column":12},"end":{"line":209,"column":38}},"110":{"start":{"line":210,"column":12},"end":{"line":210,"column":29}},"111":{"start":{"line":214,"column":8},"end":{"line":224,"column":10}},"112":{"start":{"line":217,"column":12},"end":{"line":217,"column":40}},"113":{"start":{"line":218,"column":12},"end":{"line":218,"column":94}},"114":{"start":{"line":221,"column":12},"end":{"line":221,"column":40}},"115":{"start":{"line":222,"column":12},"end":{"line":222,"column":29}},"116":{"start":{"line":226,"column":8},"end":{"line":226,"column":23}},"117":{"start":{"line":227,"column":8},"end":{"line":227,"column":18}},"118":{"start":{"line":229,"column":8},"end":{"line":229,"column":31}},"119":{"start":{"line":229,"column":21},"end":{"line":229,"column":31}},"120":{"start":{"line":230,"column":8},"end":{"line":230,"column":20}},"121":{"start":{"line":233,"column":6},"end":{"line":233,"column":32}},"122":{"start":{"line":234,"column":6},"end":{"line":234,"column":61}},"123":{"start":{"line":234,"column":35},"end":{"line":234,"column":61}},"124":{"start":{"line":235,"column":6},"end":{"line":235,"column":37}},"125":{"start":{"line":240,"column":4},"end":{"line":240,"column":33}},"126":{"start":{"line":241,"column":4},"end":{"line":241,"column":35}},"127":{"start":{"line":242,"column":4},"end":{"line":242,"column":59}},"128":{"start":{"line":242,"column":33},"end":{"line":242,"column":59}},"129":{"start":{"line":243,"column":4},"end":{"line":243,"column":35}},"130":{"start":{"line":247,"column":4},"end":{"line":247,"column":22}},"131":{"start":{"line":248,"column":4},"end":{"line":248,"column":40}},"132":{"start":{"line":252,"column":4},"end":{"line":252,"column":22}},"133":{"start":{"line":253,"column":14},"end":{"line":253,"column":48}},"134":{"start":{"line":254,"column":4},"end":{"line":254,"column":37}},"135":{"start":{"line":258,"column":4},"end":{"line":258,"column":22}},"136":{"start":{"line":259,"column":4},"end":{"line":259,"column":42}},"137":{"start":{"line":263,"column":4},"end":{"line":263,"column":22}},"138":{"start":{"line":264,"column":14},"end":{"line":264,"column":50}},"139":{"start":{"line":265,"column":4},"end":{"line":265,"column":39}},"140":{"start":{"line":269,"column":0},"end":{"line":275,"column":2}}},"fnMap":{"0":{"name":"CreateCompressStream","decl":{"start":{"line":36,"column":15},"end":{"line":36,"column":35}},"loc":{"start":{"line":36,"column":101},"end":{"line":78,"column":1}},"line":36},"1":{"name":"(anonymous_1)","decl":{"start":{"line":67,"column":15},"end":{"line":67,"column":16}},"loc":{"start":{"line":67,"column":33},"end":{"line":75,"column":3}},"line":67},"2":{"name":"(anonymous_2)","decl":{"start":{"line":70,"column":17},"end":{"line":70,"column":18}},"loc":{"start":{"line":70,"column":23},"end":{"line":72,"column":7}},"line":70},"3":{"name":"CompressBuffer","decl":{"start":{"line":80,"column":9},"end":{"line":80,"column":23}},"loc":{"start":{"line":80,"column":35},"end":{"line":92,"column":1}},"line":80},"4":{"name":"(anonymous_4)","decl":{"start":{"line":81,"column":21},"end":{"line":81,"column":22}},"loc":{"start":{"line":81,"column":42},"end":{"line":91,"column":3}},"line":81},"5":{"name":"(anonymous_5)","decl":{"start":{"line":89,"column":12},"end":{"line":89,"column":13}},"loc":{"start":{"line":89,"column":18},"end":{"line":89,"column":35}},"line":89},"6":{"name":"(anonymous_6)","decl":{"start":{"line":90,"column":13},"end":{"line":90,"column":14}},"loc":{"start":{"line":90,"column":22},"end":{"line":90,"column":33}},"line":90},"7":{"name":"CreateDecompressStream","decl":{"start":{"line":94,"column":15},"end":{"line":94,"column":37}},"loc":{"start":{"line":94,"column":92},"end":{"line":135,"column":1}},"line":94},"8":{"name":"(anonymous_8)","decl":{"start":{"line":121,"column":15},"end":{"line":121,"column":16}},"loc":{"start":{"line":121,"column":33},"end":{"line":129,"column":3}},"line":121},"9":{"name":"(anonymous_9)","decl":{"start":{"line":124,"column":17},"end":{"line":124,"column":18}},"loc":{"start":{"line":124,"column":23},"end":{"line":126,"column":7}},"line":124},"10":{"name":"(anonymous_10)","decl":{"start":{"line":131,"column":49},"end":{"line":131,"column":50}},"loc":{"start":{"line":131,"column":65},"end":{"line":134,"column":3}},"line":131},"11":{"name":"DecompressBuffer","decl":{"start":{"line":137,"column":9},"end":{"line":137,"column":25}},"loc":{"start":{"line":137,"column":37},"end":{"line":149,"column":1}},"line":137},"12":{"name":"(anonymous_12)","decl":{"start":{"line":138,"column":21},"end":{"line":138,"column":22}},"loc":{"start":{"line":138,"column":42},"end":{"line":148,"column":3}},"line":138},"13":{"name":"(anonymous_13)","decl":{"start":{"line":146,"column":12},"end":{"line":146,"column":13}},"loc":{"start":{"line":146,"column":18},"end":{"line":146,"column":35}},"line":146},"14":{"name":"(anonymous_14)","decl":{"start":{"line":147,"column":13},"end":{"line":147,"column":14}},"loc":{"start":{"line":147,"column":22},"end":{"line":147,"column":33}},"line":147},"15":{"name":"compress","decl":{"start":{"line":153,"column":9},"end":{"line":153,"column":17}},"loc":{"start":{"line":153,"column":83},"end":{"line":156,"column":1}},"line":153},"16":{"name":"compressBuffer","decl":{"start":{"line":158,"column":15},"end":{"line":158,"column":29}},"loc":{"start":{"line":158,"column":103},"end":{"line":161,"column":1}},"line":158},"17":{"name":"decompress","decl":{"start":{"line":163,"column":9},"end":{"line":163,"column":19}},"loc":{"start":{"line":163,"column":74},"end":{"line":166,"column":1}},"line":163},"18":{"name":"decompressBuffer","decl":{"start":{"line":168,"column":15},"end":{"line":168,"column":31}},"loc":{"start":{"line":168,"column":94},"end":{"line":171,"column":1}},"line":168},"19":{"name":"(anonymous_19)","decl":{"start":{"line":183,"column":2},"end":{"line":183,"column":3}},"loc":{"start":{"line":183,"column":92},"end":{"line":237,"column":3}},"line":183},"20":{"name":"(anonymous_20)","decl":{"start":{"line":187,"column":30},"end":{"line":187,"column":31}},"loc":{"start":{"line":187,"column":57},"end":{"line":232,"column":5}},"line":187},"21":{"name":"(anonymous_21)","decl":{"start":{"line":204,"column":11},"end":{"line":204,"column":12}},"loc":{"start":{"line":204,"column":17},"end":{"line":207,"column":11}},"line":204},"22":{"name":"(anonymous_22)","decl":{"start":{"line":208,"column":10},"end":{"line":208,"column":11}},"loc":{"start":{"line":208,"column":23},"end":{"line":211,"column":11}},"line":208},"23":{"name":"(anonymous_23)","decl":{"start":{"line":216,"column":11},"end":{"line":216,"column":12}},"loc":{"start":{"line":216,"column":17},"end":{"line":219,"column":11}},"line":216},"24":{"name":"(anonymous_24)","decl":{"start":{"line":220,"column":10},"end":{"line":220,"column":11}},"loc":{"start":{"line":220,"column":23},"end":{"line":223,"column":11}},"line":220},"25":{"name":"(anonymous_25)","decl":{"start":{"line":232,"column":13},"end":{"line":232,"column":14}},"loc":{"start":{"line":232,"column":22},"end":{"line":236,"column":5}},"line":232},"26":{"name":"(anonymous_26)","decl":{"start":{"line":239,"column":2},"end":{"line":239,"column":3}},"loc":{"start":{"line":239,"column":12},"end":{"line":244,"column":3}},"line":239},"27":{"name":"(anonymous_27)","decl":{"start":{"line":246,"column":2},"end":{"line":246,"column":3}},"loc":{"start":{"line":246,"column":19},"end":{"line":249,"column":3}},"line":246},"28":{"name":"(anonymous_28)","decl":{"start":{"line":251,"column":2},"end":{"line":251,"column":3}},"loc":{"start":{"line":251,"column":31},"end":{"line":255,"column":3}},"line":251},"29":{"name":"(anonymous_29)","decl":{"start":{"line":257,"column":2},"end":{"line":257,"column":3}},"loc":{"start":{"line":257,"column":21},"end":{"line":260,"column":3}},"line":257},"30":{"name":"(anonymous_30)","decl":{"start":{"line":262,"column":2},"end":{"line":262,"column":3}},"loc":{"start":{"line":262,"column":33},"end":{"line":266,"column":3}},"line":262}},"branchMap":{"0":{"loc":{"start":{"line":19,"column":13},"end":{"line":19,"column":77}},"type":"cond-expr","locations":[{"start":{"line":19,"column":46},"end":{"line":19,"column":62}},{"start":{"line":19,"column":65},"end":{"line":19,"column":77}}],"line":19},"1":{"loc":{"start":{"line":40,"column":13},"end":{"line":40,"column":30}},"type":"binary-expr","locations":[{"start":{"line":40,"column":13},"end":{"line":40,"column":24}},{"start":{"line":40,"column":28},"end":{"line":40,"column":30}}],"line":40},"2":{"loc":{"start":{"line":44,"column":2},"end":{"line":44,"column":20}},"type":"if","locations":[{"start":{"line":44,"column":2},"end":{"line":44,"column":20}},{"start":{"line":44,"column":2},"end":{"line":44,"column":20}}],"line":44},"3":{"loc":{"start":{"line":45,"column":2},"end":{"line":45,"column":35}},"type":"if","locations":[{"start":{"line":45,"column":2},"end":{"line":45,"column":35}},{"start":{"line":45,"column":2},"end":{"line":45,"column":35}}],"line":45},"4":{"loc":{"start":{"line":45,"column":6},"end":{"line":45,"column":25}},"type":"binary-expr","locations":[{"start":{"line":45,"column":6},"end":{"line":45,"column":13}},{"start":{"line":45,"column":17},"end":{"line":45,"column":25}}],"line":45},"5":{"loc":{"start":{"line":48,"column":2},"end":{"line":54,"column":3}},"type":"if","locations":[{"start":{"line":48,"column":2},"end":{"line":54,"column":3}},{"start":{"line":48,"column":2},"end":{"line":54,"column":3}}],"line":48},"6":{"loc":{"start":{"line":48,"column":6},"end":{"line":48,"column":35}},"type":"binary-expr","locations":[{"start":{"line":48,"column":6},"end":{"line":48,"column":16}},{"start":{"line":48,"column":20},"end":{"line":48,"column":35}}],"line":48},"7":{"loc":{"start":{"line":50,"column":9},"end":{"line":54,"column":3}},"type":"if","locations":[{"start":{"line":50,"column":9},"end":{"line":54,"column":3}},{"start":{"line":50,"column":9},"end":{"line":54,"column":3}}],"line":50},"8":{"loc":{"start":{"line":63,"column":4},"end":{"line":63,"column":27}},"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":63,"column":27}},{"start":{"line":63,"column":4},"end":{"line":63,"column":27}}],"line":63},"9":{"loc":{"start":{"line":69,"column":4},"end":{"line":73,"column":5}},"type":"if","locations":[{"start":{"line":69,"column":4},"end":{"line":73,"column":5}},{"start":{"line":69,"column":4},"end":{"line":73,"column":5}}],"line":69},"10":{"loc":{"start":{"line":74,"column":4},"end":{"line":74,"column":27}},"type":"if","locations":[{"start":{"line":74,"column":4},"end":{"line":74,"column":27}},{"start":{"line":74,"column":4},"end":{"line":74,"column":27}}],"line":74},"11":{"loc":{"start":{"line":98,"column":13},"end":{"line":98,"column":30}},"type":"binary-expr","locations":[{"start":{"line":98,"column":13},"end":{"line":98,"column":24}},{"start":{"line":98,"column":28},"end":{"line":98,"column":30}}],"line":98},"12":{"loc":{"start":{"line":102,"column":2},"end":{"line":108,"column":3}},"type":"if","locations":[{"start":{"line":102,"column":2},"end":{"line":108,"column":3}},{"start":{"line":102,"column":2},"end":{"line":108,"column":3}}],"line":102},"13":{"loc":{"start":{"line":102,"column":6},"end":{"line":102,"column":35}},"type":"binary-expr","locations":[{"start":{"line":102,"column":6},"end":{"line":102,"column":16}},{"start":{"line":102,"column":20},"end":{"line":102,"column":35}}],"line":102},"14":{"loc":{"start":{"line":104,"column":9},"end":{"line":108,"column":3}},"type":"if","locations":[{"start":{"line":104,"column":9},"end":{"line":108,"column":3}},{"start":{"line":104,"column":9},"end":{"line":108,"column":3}}],"line":104},"15":{"loc":{"start":{"line":117,"column":4},"end":{"line":117,"column":27}},"type":"if","locations":[{"start":{"line":117,"column":4},"end":{"line":117,"column":27}},{"start":{"line":117,"column":4},"end":{"line":117,"column":27}}],"line":117},"16":{"loc":{"start":{"line":123,"column":4},"end":{"line":127,"column":5}},"type":"if","locations":[{"start":{"line":123,"column":4},"end":{"line":127,"column":5}},{"start":{"line":123,"column":4},"end":{"line":127,"column":5}}],"line":123},"17":{"loc":{"start":{"line":128,"column":4},"end":{"line":128,"column":27}},"type":"if","locations":[{"start":{"line":128,"column":4},"end":{"line":128,"column":27}},{"start":{"line":128,"column":4},"end":{"line":128,"column":27}}],"line":128},"18":{"loc":{"start":{"line":132,"column":4},"end":{"line":132,"column":42}},"type":"if","locations":[{"start":{"line":132,"column":4},"end":{"line":132,"column":42}},{"start":{"line":132,"column":4},"end":{"line":132,"column":42}}],"line":132},"19":{"loc":{"start":{"line":186,"column":21},"end":{"line":186,"column":38}},"type":"binary-expr","locations":[{"start":{"line":186,"column":21},"end":{"line":186,"column":32}},{"start":{"line":186,"column":36},"end":{"line":186,"column":38}}],"line":186},"20":{"loc":{"start":{"line":193,"column":8},"end":{"line":195,"column":9}},"type":"if","locations":[{"start":{"line":193,"column":8},"end":{"line":195,"column":9}},{"start":{"line":193,"column":8},"end":{"line":195,"column":9}}],"line":193},"21":{"loc":{"start":{"line":193,"column":12},"end":{"line":193,"column":41}},"type":"binary-expr","locations":[{"start":{"line":193,"column":12},"end":{"line":193,"column":22}},{"start":{"line":193,"column":26},"end":{"line":193,"column":41}}],"line":193},"22":{"loc":{"start":{"line":196,"column":8},"end":{"line":200,"column":9}},"type":"if","locations":[{"start":{"line":196,"column":8},"end":{"line":200,"column":9}},{"start":{"line":196,"column":8},"end":{"line":200,"column":9}}],"line":196},"23":{"loc":{"start":{"line":196,"column":12},"end":{"line":196,"column":53}},"type":"binary-expr","locations":[{"start":{"line":196,"column":12},"end":{"line":196,"column":22}},{"start":{"line":196,"column":26},"end":{"line":196,"column":53}}],"line":196},"24":{"loc":{"start":{"line":229,"column":8},"end":{"line":229,"column":31}},"type":"if","locations":[{"start":{"line":229,"column":8},"end":{"line":229,"column":31}},{"start":{"line":229,"column":8},"end":{"line":229,"column":31}}],"line":229},"25":{"loc":{"start":{"line":234,"column":6},"end":{"line":234,"column":61}},"type":"if","locations":[{"start":{"line":234,"column":6},"end":{"line":234,"column":61}},{"start":{"line":234,"column":6},"end":{"line":234,"column":61}}],"line":234},"26":{"loc":{"start":{"line":242,"column":4},"end":{"line":242,"column":59}},"type":"if","locations":[{"start":{"line":242,"column":4},"end":{"line":242,"column":59}},{"start":{"line":242,"column":4},"end":{"line":242,"column":59}}],"line":242}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":0,"19":1,"20":1,"21":0,"22":21,"23":21,"24":21,"25":21,"26":21,"27":21,"28":3,"29":21,"30":0,"31":21,"32":5,"33":16,"34":1,"35":1,"36":1,"37":21,"38":21,"39":21,"40":0,"41":0,"42":0,"43":21,"44":17,"45":17,"46":1,"47":1,"48":17,"49":1,"50":21,"51":7,"52":7,"53":7,"54":7,"55":0,"56":16,"57":16,"58":16,"59":16,"60":16,"61":5,"62":11,"63":1,"64":1,"65":1,"66":16,"67":16,"68":16,"69":0,"70":0,"71":0,"72":16,"73":12,"74":12,"75":0,"76":0,"77":12,"78":1,"79":16,"80":12,"81":12,"82":0,"83":7,"84":7,"85":7,"86":7,"87":0,"88":8,"89":4,"90":4,"91":3,"92":4,"93":4,"94":5,"95":5,"96":5,"97":5,"98":5,"99":5,"100":5,"101":1,"102":5,"103":1,"104":1,"105":1,"106":5,"107":9,"108":9,"109":4,"110":4,"111":5,"112":9,"113":9,"114":4,"115":4,"116":5,"117":5,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":5,"126":5,"127":5,"128":1,"129":5,"130":2,"131":2,"132":3,"133":3,"134":3,"135":2,"136":2,"137":3,"138":3,"139":3,"140":1},"f":{"0":21,"1":17,"2":1,"3":7,"4":7,"5":7,"6":0,"7":16,"8":12,"9":0,"10":12,"11":7,"12":7,"13":7,"14":0,"15":8,"16":4,"17":3,"18":4,"19":5,"20":5,"21":9,"22":4,"23":9,"24":4,"25":0,"26":5,"27":2,"28":3,"29":2,"30":3},"b":{"0":[0,1],"1":[21,11],"2":[3,18],"3":[0,21],"4":[21,21],"5":[5,16],"6":[21,11],"7":[1,15],"8":[0,0],"9":[1,16],"10":[1,16],"11":[16,10],"12":[5,11],"13":[16,11],"14":[1,10],"15":[0,0],"16":[0,12],"17":[1,11],"18":[12,0],"19":[5,1],"20":[1,4],"21":[5,2],"22":[1,4],"23":[5,2],"24":[0,0],"25":[0,0],"26":[1,4]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"b06f9e5f232af9739b2b730c9de381a743ec5731","contentHash":"75d7cb7837d4f6317077f0e330972338088059679e76b73d1303007e701ff623"},"/home/stieneee/git/standalone/simple-zstd/oven.js":{"path":"/home/stieneee/git/standalone/simple-zstd/oven.js","statementMap":{"0":{"start":{"line":1,"column":14},"end":{"line":1,"column":48}},"1":{"start":{"line":13,"column":4},"end":{"line":13,"column":38}},"2":{"start":{"line":14,"column":4},"end":{"line":14,"column":42}},"3":{"start":{"line":15,"column":4},"end":{"line":15,"column":21}},"4":{"start":{"line":16,"column":4},"end":{"line":16,"column":28}},"5":{"start":{"line":17,"column":4},"end":{"line":17,"column":28}},"6":{"start":{"line":19,"column":4},"end":{"line":21,"column":5}},"7":{"start":{"line":19,"column":17},"end":{"line":19,"column":18}},"8":{"start":{"line":20,"column":6},"end":{"line":20,"column":29}},"9":{"start":{"line":25,"column":4},"end":{"line":25,"column":49}},"10":{"start":{"line":26,"column":4},"end":{"line":29,"column":5}},"11":{"start":{"line":27,"column":6},"end":{"line":27,"column":43}},"12":{"start":{"line":28,"column":6},"end":{"line":28,"column":40}},"13":{"start":{"line":33,"column":4},"end":{"line":33,"column":21}},"14":{"start":{"line":34,"column":4},"end":{"line":40,"column":5}},"15":{"start":{"line":35,"column":6},"end":{"line":37,"column":12}},"16":{"start":{"line":36,"column":8},"end":{"line":36,"column":31}},"17":{"start":{"line":38,"column":6},"end":{"line":38,"column":34}},"18":{"start":{"line":39,"column":6},"end":{"line":39,"column":31}},"19":{"start":{"line":41,"column":4},"end":{"line":41,"column":38}},"20":{"start":{"line":42,"column":4},"end":{"line":42,"column":27}},"21":{"start":{"line":46,"column":4},"end":{"line":46,"column":41}},"22":{"start":{"line":47,"column":4},"end":{"line":49,"column":5}},"23":{"start":{"line":48,"column":6},"end":{"line":48,"column":39}},"24":{"start":{"line":53,"column":0},"end":{"line":53,"column":22}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":12,"column":2},"end":{"line":12,"column":3}},"loc":{"start":{"line":12,"column":45},"end":{"line":22,"column":3}},"line":12},"1":{"name":"(anonymous_1)","decl":{"start":{"line":32,"column":2},"end":{"line":32,"column":3}},"loc":{"start":{"line":32,"column":18},"end":{"line":43,"column":3}},"line":32},"2":{"name":"(anonymous_2)","decl":{"start":{"line":35,"column":17},"end":{"line":35,"column":18}},"loc":{"start":{"line":35,"column":23},"end":{"line":37,"column":7}},"line":35},"3":{"name":"(anonymous_3)","decl":{"start":{"line":45,"column":2},"end":{"line":45,"column":3}},"loc":{"start":{"line":45,"column":18},"end":{"line":50,"column":3}},"line":45}},"branchMap":{"0":{"loc":{"start":{"line":14,"column":24},"end":{"line":14,"column":41}},"type":"binary-expr","locations":[{"start":{"line":14,"column":24},"end":{"line":14,"column":35}},{"start":{"line":14,"column":39},"end":{"line":14,"column":41}}],"line":14},"1":{"loc":{"start":{"line":19,"column":20},"end":{"line":19,"column":57}},"type":"binary-expr","locations":[{"start":{"line":19,"column":20},"end":{"line":19,"column":52}},{"start":{"line":19,"column":56},"end":{"line":19,"column":57}}],"line":19},"2":{"loc":{"start":{"line":26,"column":4},"end":{"line":29,"column":5}},"type":"if","locations":[{"start":{"line":26,"column":4},"end":{"line":29,"column":5}},{"start":{"line":26,"column":4},"end":{"line":29,"column":5}}],"line":26},"3":{"loc":{"start":{"line":34,"column":4},"end":{"line":40,"column":5}},"type":"if","locations":[{"start":{"line":34,"column":4},"end":{"line":40,"column":5}},{"start":{"line":34,"column":4},"end":{"line":40,"column":5}}],"line":34}},"s":{"0":1,"1":10,"2":10,"3":10,"4":10,"5":10,"6":10,"7":10,"8":8,"9":16,"10":16,"11":16,"12":16,"13":10,"14":10,"15":8,"16":8,"17":8,"18":8,"19":2,"20":2,"21":10,"22":10,"23":8,"24":1},"f":{"0":10,"1":10,"2":8,"3":10},"b":{"0":[10,2],"1":[18,10],"2":[16,0],"3":[8,2]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"cb7ac9a6ac8cfc8205ebf0a7f89d4b1c20588eec","contentHash":"69cd4c1447fc7e263765f1b36ca543d736af55d8fcd3130df424d7a23e28ccc0"},"/home/stieneee/git/standalone/simple-zstd/buffer-writable.js":{"path":"/home/stieneee/git/standalone/simple-zstd/buffer-writable.js","statementMap":{"0":{"start":{"line":1,"column":21},"end":{"line":1,"column":43}},"1":{"start":{"line":7,"column":4},"end":{"line":7,"column":19}},"2":{"start":{"line":8,"column":4},"end":{"line":8,"column":19}},"3":{"start":{"line":9,"column":4},"end":{"line":9,"column":23}},"4":{"start":{"line":13,"column":4},"end":{"line":13,"column":26}},"5":{"start":{"line":14,"column":4},"end":{"line":14,"column":15}},"6":{"start":{"line":18,"column":4},"end":{"line":18,"column":43}},"7":{"start":{"line":19,"column":4},"end":{"line":19,"column":15}},"8":{"start":{"line":23,"column":0},"end":{"line":23,"column":32}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":2},"end":{"line":6,"column":3}},"loc":{"start":{"line":6,"column":23},"end":{"line":10,"column":3}},"line":6},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":2},"end":{"line":12,"column":3}},"loc":{"start":{"line":12,"column":36},"end":{"line":15,"column":3}},"line":12},"2":{"name":"(anonymous_2)","decl":{"start":{"line":17,"column":2},"end":{"line":17,"column":3}},"loc":{"start":{"line":17,"column":19},"end":{"line":20,"column":3}},"line":17}},"branchMap":{},"s":{"0":1,"1":14,"2":14,"3":14,"4":1838,"5":1838,"6":14,"7":14,"8":1},"f":{"0":14,"1":1838,"2":14},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"ec768bf72b248cf695be0ac0c11936f9227ed5ef","contentHash":"c96eef9da48cd9143d50553366bfd3c3634d22d69fc25b6e24e6603946c4c88e"}}
@@ -0,0 +1 @@
1
+ {"parent":"cb2a47ed-9ada-42b3-863b-b8437ca49715","pid":48818,"argv":["/usr/bin/node","/home/stieneee/git/standalone/simple-zstd/node_modules/.bin/mocha"],"execArgv":[],"cwd":"/home/stieneee/git/standalone/simple-zstd","time":1659585747967,"ppid":48817,"coverageFilename":"/home/stieneee/git/standalone/simple-zstd/.nyc_output/88144029-aa5a-40fb-a072-f586e59e4a38.json","externalId":"","uuid":"88144029-aa5a-40fb-a072-f586e59e4a38","files":["/home/stieneee/git/standalone/simple-zstd/index.js","/home/stieneee/git/standalone/simple-zstd/oven.js","/home/stieneee/git/standalone/simple-zstd/buffer-writable.js"]}
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":48806,"argv":["/usr/bin/node","/home/stieneee/.npm-global/bin/npm","run","test"],"execArgv":[],"cwd":"/home/stieneee/git/standalone/simple-zstd","time":1659585747709,"ppid":48795,"coverageFilename":"/home/stieneee/git/standalone/simple-zstd/.nyc_output/cb2a47ed-9ada-42b3-863b-b8437ca49715.json","externalId":"","uuid":"cb2a47ed-9ada-42b3-863b-b8437ca49715","files":[]}
@@ -0,0 +1 @@
1
+ {"processes":{"88144029-aa5a-40fb-a072-f586e59e4a38":{"parent":"cb2a47ed-9ada-42b3-863b-b8437ca49715","children":[]},"cb2a47ed-9ada-42b3-863b-b8437ca49715":{"parent":null,"children":["88144029-aa5a-40fb-a072-f586e59e4a38"]}},"files":{"/home/stieneee/git/standalone/simple-zstd/index.js":["88144029-aa5a-40fb-a072-f586e59e4a38"],"/home/stieneee/git/standalone/simple-zstd/oven.js":["88144029-aa5a-40fb-a072-f586e59e4a38"],"/home/stieneee/git/standalone/simple-zstd/buffer-writable.js":["88144029-aa5a-40fb-a072-f586e59e4a38"]},"externalIds":{}}
package/README.md CHANGED
@@ -6,14 +6,29 @@
6
6
 
7
7
  Node.js interface to system installed zstandard (zstd).
8
8
 
9
- ## Why Another ZSTD Package
9
+ ## "Simple"-ZSTD
10
10
 
11
- Other packages were either using out-of-date ZSTD versions or depended on native C bindings that required a compilation step during installation.
12
- A package was needed that would cleanly work with [pkg](https://www.npmjs.com/package/pkg).
11
+ The package name is inspired by another simple-git which is a wrapper around the git binary installed on the system.
12
+ In summary this package, like simple-git, attempts to provide a lightwieght wrapper around the system installed ZSTD binary.
13
+ This provides a more stable package in comparison to a package that builds against a library at the cost of having to manage child process.
14
+
15
+ A few additional features have made there way into version 2 including a class that will attempt to pre-start child processes before they are need for the most latenacy concerned applications.
16
+
17
+ Regardless of whether you are performing a compression or decompression or using a stream or buffer interface this package will spawn an instance of zstd to handle the action.
18
+ When the action is completed the child process will be killed.
19
+ A dicitionary parameter on all functions supports both buffer and path definintons.
20
+ If you provide the dictionary as a buffer this package will create a tmp file using the tmp (tmp-promise) package.
21
+
22
+ All functions return a promise.
23
+ This promise will return the stream or a buffer depending on the function type called.
24
+
25
+ Finally the decompression methods provide a "maybe" functionality.
26
+ If a buffer or stream is passed that is not a zstd compressed byte stream the byte stream is not altered.
13
27
 
14
28
  ## Dependencies
15
29
 
16
- ZSTD
30
+ ZSTD must be installed on the system.
31
+ It will work in both Linux and Windows environments assuming the zstd(.exe) can be found on the path.
17
32
 
18
33
  Example:
19
34
 
@@ -25,61 +40,142 @@ Example:
25
40
 
26
41
  ## Usage
27
42
 
28
- simple-zstd exposes a stream interfaces for compression and decompression.
29
- The underlying child process is destroyed with the stream.
43
+ The static functions provide the most basic interface for usage
30
44
 
31
- stream = ZSTDCompress(lvl)
32
- lvl - ZSTD compression level
45
+ ```javascript
46
+ const {compress, decompress, compressBuffer, decompressBuffer} = require('../index');
47
+
48
+ compLevel = 3; // ZSTD Compression Level
49
+ spawnOptions = {} // node:child_process spawnOptions object - adjust the spwan options of the ZSTD process
50
+ streamOptions = {} // node:stream streamOptions - adjust the stream options
51
+ zstdOptions = [] // Array of Options to pass to the zstd process e.g. ['--ultra']
52
+ dictionary = Buffer || {path} // Supply an optional dictionary buffer or path to dictionary file
53
+
54
+ // Static Functions
55
+ function compress(compLevel, spawnOptions, streamOptions, zstdOptions, dictionary) // returns a promise that resolves to a stream
56
+ function compressBuffer(buffer, compLevel, spawnOptions, streamOptions, zstdOptions, dictionary) // returns a promise that resolves to a buffer
57
+ function decompress(spawnOptions, streamOptions, zstdOptions, dictionary) // returns a promise that resolves to a stream
58
+ function decompressBuffer(buffer, spawnOptions, streamOptions, zstdOptions, dictionary) // returns a promise that resolves to a buffer
59
+ ```
33
60
 
34
- stream = ZSTDDecompress()
61
+ The SimpleZSTD class allows an the settings to be preset for a pool of child process.
62
+ The function names are the same on the class however the options can not be changed from the class constructor.
35
63
 
36
- stream = ZSTDDecompressMaybe()
64
+ ### Example - Stream Interface
37
65
 
38
- ### Example
66
+ This simple example reads a file, compressed, decopressed and writes the file as a copy.
67
+ Running this example will spawn two instances of zstd as child processes.
39
68
 
40
69
  ```javascript
41
70
  const fs = require('fs');
42
- const {ZSTDCompress, ZSTDDecompress} = require('simple-zstd');
43
-
44
- // ZSTDCompress(compressionLevel, streamOptions)
45
- // ZSTDDecompress(streamOptions)
46
-
47
- fs.createReadStream('example.txt')
48
- .pipe(ZSTDCompress(3))
49
- .pipe(ZSTDDecompress())
50
- .pipe(fs.createWriteStream('example_copy.txt'))
51
- .on('error', (err) => {
52
- //..
53
- })
54
- .on('finish', () => {
55
- console.log('Copy Complete!');
56
- })
57
-
58
- // -> Copy Complete
71
+ const { pipeline } = require('node:stream');
72
+ const {compress, decompress} = require('simple-zstd');
73
+
74
+ async function copyFile() {
75
+ const c = await compress(3);
76
+ const d = await decompress();
77
+
78
+ await pipeline(
79
+ fs.createReadStream('example.txt'),
80
+ c,
81
+ d,
82
+ fs.createWriteStream('example_copy.txt'),
83
+ () => {
84
+ console.log('The file has been compressed and decompressed to example_copy.txt')
85
+ }
86
+ );
87
+ }
88
+
89
+ copyFile();
90
+
59
91
  ```
60
92
 
61
- ### Decompress Maybe
93
+ ### Example - Buffer Interface
62
94
 
63
- A maybe variant of decompress will pass-through a non-zst stream while decompressing a zst stream.
95
+ This example demonstrates the use of the buffer interface
96
+
97
+ ```javascript
98
+ const {compressBuffer, decompressBufer} = require('simple-zstd');
99
+
100
+ async function printString() {
101
+ const buffer = Buffer.from('this is a test');
102
+
103
+ const compressed = await compressBuffer(buffer, 3);
104
+ const decompressed = await decompressBuffer(compressed);
105
+
106
+ console.log(decompressed.toString()); // this is a test
107
+ }
108
+
109
+ printString();
110
+ ```
111
+
112
+ ### Example - Class Interface
113
+
114
+ This example demonstrates the use of the class interface.
115
+ Once a class instance is created it can be used to with either the stream or buffer interface.
116
+ Options can not be changed once the class is instantiated.
117
+ This due to the fact that the class will start to spawn child processes with settings passed to the constructor.
118
+ Calling ```destroy()``` will kill all child processes.
64
119
 
65
120
  ```javascript
66
121
  const fs = require('fs');
67
- const {ZSTDDecompressMaybe} = require('simple-zstd');
68
-
69
- // ZSTDDecompressMaybe(streamOptions)
70
-
71
- fs.createReadStream('example.txt')
72
- // .pipe(ZSTDCompress(3))
73
- .pipe(ZSTDDecompressMaybe())
74
- .pipe(fs.createWriteStream('example_copy.txt'))
75
- .on('error', (err) => {
76
- //..
77
- })
78
- .on('finish', () => {
79
- console.log('Copy Complete!');
80
- })
81
-
82
- // -> Copy Complete
122
+ const { pipeline } = require('node:stream');
123
+ const { SimpleZSTD } = require('simple-zstd');
124
+
125
+ poolOptions = {
126
+ compressQueue: {
127
+ targetSize: 1 // this determines how many instances of zstd are spawned into the qeueue. leaving it empty will result child processes to bring spawned as needed.
128
+ compLevel,
129
+ spawnOptions,
130
+ streamOptions,
131
+ zstdOptions
132
+ },
133
+ decompressQueue: {
134
+ targetSize: 1 // there is a queue for both compression and decompression
135
+ spawnOptions,
136
+ streamOptions,
137
+ zstdOptions
138
+ },
139
+ }
140
+
141
+ async function copyFile() {
142
+ const i = new SimpleZSTD(poolOptions, dictionary); // poolOptions set options for the compressions and decompressiong porcess pools. dictionary is optional and set for both pools.
143
+
144
+ const c = await i.compress(3); // this will pull a instance from the queue
145
+ const d = await i.decompress();
146
+
147
+ pipeline(
148
+ fs.createReadStream('example.txt'),
149
+ c,
150
+ d,
151
+ brake(200000),
152
+ fs.createWriteStream('example_copy.txt'),
153
+ () => {
154
+ console.log('The file has been compressed and decompressed to example_copy.txt')
155
+ }
156
+ );
157
+ }
158
+
159
+ copyFile();
160
+ ```
161
+
162
+ ## zstdOptions
163
+
164
+ This interface allows you to pass any command line option to the zstd process.
165
+
166
+ ```javascript
167
+ const c2 = await compress(22, {}, {}, ['--ultra']);
168
+ ```
169
+
170
+ ## Debug
171
+
172
+ The package supports the debug package.
173
+ Setting the DEBUD Environment variable will cause the debug messages to be printed to the console.
174
+ This will presents debug information for both zstd spawns and the child process queue.
175
+
176
+ ```bash
177
+ DEBUG=SimpleZSTD,SimpleZSTDQueue node example.js
178
+
83
179
  ```
84
180
 
85
181
  ## Contributing
@@ -90,7 +186,7 @@ Pull requests are welcome.
90
186
 
91
187
  MIT License
92
188
 
93
- Copyright (c) 2020 Tyler Stiene
189
+ Copyright (c) 2022 Tyler Stiene
94
190
 
95
191
  Permission is hereby granted, free of charge, to any person obtaining a copy
96
192
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,23 @@
1
+ const { Writable } = require('node:stream');
2
+
3
+ class BufferWritable extends Writable {
4
+ #buf;
5
+
6
+ constructor(options) {
7
+ super(options);
8
+ this.#buf = [];
9
+ this.buffer = null;
10
+ }
11
+
12
+ _write(chunk, encoding, callback) {
13
+ this.#buf.push(chunk);
14
+ callback();
15
+ }
16
+
17
+ _final(callback) {
18
+ this.buffer = Buffer.concat(this.#buf);
19
+ callback();
20
+ }
21
+ }
22
+
23
+ module.exports = BufferWritable;
@@ -0,0 +1,224 @@
1
+ body, html {
2
+ margin:0; padding: 0;
3
+ height: 100%;
4
+ }
5
+ body {
6
+ font-family: Helvetica Neue, Helvetica, Arial;
7
+ font-size: 14px;
8
+ color:#333;
9
+ }
10
+ .small { font-size: 12px; }
11
+ *, *:after, *:before {
12
+ -webkit-box-sizing:border-box;
13
+ -moz-box-sizing:border-box;
14
+ box-sizing:border-box;
15
+ }
16
+ h1 { font-size: 20px; margin: 0;}
17
+ h2 { font-size: 14px; }
18
+ pre {
19
+ font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
20
+ margin: 0;
21
+ padding: 0;
22
+ -moz-tab-size: 2;
23
+ -o-tab-size: 2;
24
+ tab-size: 2;
25
+ }
26
+ a { color:#0074D9; text-decoration:none; }
27
+ a:hover { text-decoration:underline; }
28
+ .strong { font-weight: bold; }
29
+ .space-top1 { padding: 10px 0 0 0; }
30
+ .pad2y { padding: 20px 0; }
31
+ .pad1y { padding: 10px 0; }
32
+ .pad2x { padding: 0 20px; }
33
+ .pad2 { padding: 20px; }
34
+ .pad1 { padding: 10px; }
35
+ .space-left2 { padding-left:55px; }
36
+ .space-right2 { padding-right:20px; }
37
+ .center { text-align:center; }
38
+ .clearfix { display:block; }
39
+ .clearfix:after {
40
+ content:'';
41
+ display:block;
42
+ height:0;
43
+ clear:both;
44
+ visibility:hidden;
45
+ }
46
+ .fl { float: left; }
47
+ @media only screen and (max-width:640px) {
48
+ .col3 { width:100%; max-width:100%; }
49
+ .hide-mobile { display:none!important; }
50
+ }
51
+
52
+ .quiet {
53
+ color: #7f7f7f;
54
+ color: rgba(0,0,0,0.5);
55
+ }
56
+ .quiet a { opacity: 0.7; }
57
+
58
+ .fraction {
59
+ font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
60
+ font-size: 10px;
61
+ color: #555;
62
+ background: #E8E8E8;
63
+ padding: 4px 5px;
64
+ border-radius: 3px;
65
+ vertical-align: middle;
66
+ }
67
+
68
+ div.path a:link, div.path a:visited { color: #333; }
69
+ table.coverage {
70
+ border-collapse: collapse;
71
+ margin: 10px 0 0 0;
72
+ padding: 0;
73
+ }
74
+
75
+ table.coverage td {
76
+ margin: 0;
77
+ padding: 0;
78
+ vertical-align: top;
79
+ }
80
+ table.coverage td.line-count {
81
+ text-align: right;
82
+ padding: 0 5px 0 20px;
83
+ }
84
+ table.coverage td.line-coverage {
85
+ text-align: right;
86
+ padding-right: 10px;
87
+ min-width:20px;
88
+ }
89
+
90
+ table.coverage td span.cline-any {
91
+ display: inline-block;
92
+ padding: 0 5px;
93
+ width: 100%;
94
+ }
95
+ .missing-if-branch {
96
+ display: inline-block;
97
+ margin-right: 5px;
98
+ border-radius: 3px;
99
+ position: relative;
100
+ padding: 0 4px;
101
+ background: #333;
102
+ color: yellow;
103
+ }
104
+
105
+ .skip-if-branch {
106
+ display: none;
107
+ margin-right: 10px;
108
+ position: relative;
109
+ padding: 0 4px;
110
+ background: #ccc;
111
+ color: white;
112
+ }
113
+ .missing-if-branch .typ, .skip-if-branch .typ {
114
+ color: inherit !important;
115
+ }
116
+ .coverage-summary {
117
+ border-collapse: collapse;
118
+ width: 100%;
119
+ }
120
+ .coverage-summary tr { border-bottom: 1px solid #bbb; }
121
+ .keyline-all { border: 1px solid #ddd; }
122
+ .coverage-summary td, .coverage-summary th { padding: 10px; }
123
+ .coverage-summary tbody { border: 1px solid #bbb; }
124
+ .coverage-summary td { border-right: 1px solid #bbb; }
125
+ .coverage-summary td:last-child { border-right: none; }
126
+ .coverage-summary th {
127
+ text-align: left;
128
+ font-weight: normal;
129
+ white-space: nowrap;
130
+ }
131
+ .coverage-summary th.file { border-right: none !important; }
132
+ .coverage-summary th.pct { }
133
+ .coverage-summary th.pic,
134
+ .coverage-summary th.abs,
135
+ .coverage-summary td.pct,
136
+ .coverage-summary td.abs { text-align: right; }
137
+ .coverage-summary td.file { white-space: nowrap; }
138
+ .coverage-summary td.pic { min-width: 120px !important; }
139
+ .coverage-summary tfoot td { }
140
+
141
+ .coverage-summary .sorter {
142
+ height: 10px;
143
+ width: 7px;
144
+ display: inline-block;
145
+ margin-left: 0.5em;
146
+ background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
147
+ }
148
+ .coverage-summary .sorted .sorter {
149
+ background-position: 0 -20px;
150
+ }
151
+ .coverage-summary .sorted-desc .sorter {
152
+ background-position: 0 -10px;
153
+ }
154
+ .status-line { height: 10px; }
155
+ /* yellow */
156
+ .cbranch-no { background: yellow !important; color: #111; }
157
+ /* dark red */
158
+ .red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
159
+ .low .chart { border:1px solid #C21F39 }
160
+ .highlighted,
161
+ .highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
162
+ background: #C21F39 !important;
163
+ }
164
+ /* medium red */
165
+ .cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
166
+ /* light red */
167
+ .low, .cline-no { background:#FCE1E5 }
168
+ /* light green */
169
+ .high, .cline-yes { background:rgb(230,245,208) }
170
+ /* medium green */
171
+ .cstat-yes { background:rgb(161,215,106) }
172
+ /* dark green */
173
+ .status-line.high, .high .cover-fill { background:rgb(77,146,33) }
174
+ .high .chart { border:1px solid rgb(77,146,33) }
175
+ /* dark yellow (gold) */
176
+ .status-line.medium, .medium .cover-fill { background: #f9cd0b; }
177
+ .medium .chart { border:1px solid #f9cd0b; }
178
+ /* light yellow */
179
+ .medium { background: #fff4c2; }
180
+
181
+ .cstat-skip { background: #ddd; color: #111; }
182
+ .fstat-skip { background: #ddd; color: #111 !important; }
183
+ .cbranch-skip { background: #ddd !important; color: #111; }
184
+
185
+ span.cline-neutral { background: #eaeaea; }
186
+
187
+ .coverage-summary td.empty {
188
+ opacity: .5;
189
+ padding-top: 4px;
190
+ padding-bottom: 4px;
191
+ line-height: 1;
192
+ color: #888;
193
+ }
194
+
195
+ .cover-fill, .cover-empty {
196
+ display:inline-block;
197
+ height: 12px;
198
+ }
199
+ .chart {
200
+ line-height: 0;
201
+ }
202
+ .cover-empty {
203
+ background: white;
204
+ }
205
+ .cover-full {
206
+ border-right: none !important;
207
+ }
208
+ pre.prettyprint {
209
+ border: none !important;
210
+ padding: 0 !important;
211
+ margin: 0 !important;
212
+ }
213
+ .com { color: #999 !important; }
214
+ .ignore-none { color: #999; font-weight: normal; }
215
+
216
+ .wrapper {
217
+ min-height: 100%;
218
+ height: auto !important;
219
+ height: 100%;
220
+ margin: 0 auto -48px;
221
+ }
222
+ .footer, .push {
223
+ height: 48px;
224
+ }