浏览代码

Мелкая поправка

Book Pauk 2 年之前
父节点
当前提交
6e2ff07a48
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server/core/ZipReader.js

+ 2 - 2
server/core/ZipReader.js

@@ -1,4 +1,4 @@
-const StreamZip = require('node-stream-zip');
+const StreamUnzip = require('node-stream-zip');
 
 
 class ZipReader {
 class ZipReader {
     constructor() {
     constructor() {
@@ -14,7 +14,7 @@ class ZipReader {
         if (this.zip)
         if (this.zip)
             throw new Error('Zip file is already open');
             throw new Error('Zip file is already open');
 
 
-         const zip = new StreamZip.async({file: zipFile, skipEntryNameValidation: true});
+         const zip = new StreamUnzip.async({file: zipFile, skipEntryNameValidation: true});
          
          
         if (zipEntries)
         if (zipEntries)
             this.zipEntries = await zip.entries();
             this.zipEntries = await zip.entries();