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.
Files changed (2) hide show
  1. package/fzip.js +4 -2
  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
- const { default: archiver } = await import('archiver');
52
- let archive = archiver('zip');
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
  :
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.3.65",
3
+ "version": "1.3.66",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {