Merge branch 'develop' into feature/lss

This commit is contained in:
Book Pauk
2019-11-03 17:06:04 +07:00
4 changed files with 15 additions and 2 deletions

View File

@@ -1,4 +1,15 @@
export const versionHistory = [ export const versionHistory = [
{
showUntil: '2019-10-29',
header: '0.7.6 (2019-10-30)',
content:
`
<ul>
<li>исправления багов</li>
</ul>
`
},
{ {
showUntil: '2019-10-21', showUntil: '2019-10-21',
header: '0.7.5 (2019-10-22)', header: '0.7.5 (2019-10-22)',

View File

@@ -1,6 +1,6 @@
{ {
"name": "Liberama", "name": "Liberama",
"version": "0.7.5", "version": "0.7.6",
"engines": { "engines": {
"node": ">=10.0.0" "node": ">=10.0.0"
}, },

View File

@@ -112,7 +112,7 @@ class FileDecompressor {
async unZip(filename, outputDir) { async unZip(filename, outputDir) {
const zip = new ZipStreamer(); const zip = new ZipStreamer();
return await await zip.unpack(filename, outputDir); return await zip.unpack(filename, outputDir);
} }
unBz2(filename, outputDir) { unBz2(filename, outputDir) {

View File

@@ -57,6 +57,8 @@ class ZipStreamer {
entryCallback = (entryCallback ? entryCallback : () => {}); entryCallback = (entryCallback ? entryCallback : () => {});
const unzip = new unzipStream({file: zipFile}); const unzip = new unzipStream({file: zipFile});
unzip.on('error', reject);
let files = []; let files = [];
unzip.on('extract', (en) => { unzip.on('extract', (en) => {
const entry = {path: en.name, size: en.size, compressedSize: en.compressedSize}; const entry = {path: en.name, size: en.size, compressedSize: en.compressedSize};