bestzip 3.0.0 → 3.0.1

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/lib/bestzip.js +2 -2
  2. package/package.json +2 -2
package/lib/bestzip.js CHANGED
@@ -5,7 +5,7 @@ import cp from "node:child_process";
5
5
  import fs from "node:fs";
6
6
  import path from "node:path";
7
7
 
8
- import archiver from "archiver";
8
+ import { ZipArchive } from "archiver";
9
9
  import { glob, hasMagic } from "glob";
10
10
  import which from "which";
11
11
 
@@ -101,7 +101,7 @@ const nativeZip = async (options) => {
101
101
  const nodeZip = async (options) => {
102
102
  const cwd = options.cwd || process.cwd();
103
103
  const output = fs.createWriteStream(path.resolve(cwd, options.destination));
104
- const archive = archiver("zip", {
104
+ const archive = new ZipArchive({
105
105
  zlib: { level: options.level },
106
106
  });
107
107
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestzip",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Uses OS zip command if available (for better performance and speed) or node.js version if there is no system command available. Can be called via node or command line.",
5
5
  "type": "module",
6
6
  "exports": "./lib/bestzip.js",
@@ -29,7 +29,7 @@
29
29
  "lib/"
30
30
  ],
31
31
  "dependencies": {
32
- "archiver": "^7.0.1",
32
+ "archiver": "^8.0.0",
33
33
  "glob": "^13.0.6",
34
34
  "which": "^6.0.1",
35
35
  "yargs": "^16.2.0"