xshell 1.3.65 → 1.3.66
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/fzip.js +4 -2
- package/package.json +1 -1
package/fzip.js
CHANGED
|
@@ -48,8 +48,10 @@ async function _zip(data, fp_zip, { dirname, print = { files: true, info: true }
|
|
|
48
48
|
}
|
|
49
49
|
if (print.info)
|
|
50
50
|
log_action('开始压缩', fpd_src ? ` ${fpd_src}` : '文件索引', fp_zip ? `${fp_zip}/${dirname || '{entries}'}` : '内存');
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
// 等待 @types/archiver 更新,和最新版本的实现匹配
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
const { ZipArchive } = await import('archiver');
|
|
54
|
+
let archive = new ZipArchive();
|
|
53
55
|
let ostream = fp_zip ?
|
|
54
56
|
fs.createWriteStream(fp_zip, { highWaterMark: 16 * 2 ** 20 /* 16 MB */ })
|
|
55
57
|
:
|