We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95a59da commit 396d5b6Copy full SHA for 396d5b6
lib/bestzip.js
@@ -71,7 +71,12 @@ const nativeZip = (options) =>
71
const args = ["--quiet", "--recurse-paths", options.destination].concat(
72
sources
73
);
74
- if (typeof options.level == "number" && !isNaN(options.level) && options.level >= 0 && options.level <= 9) {
+ if (
75
+ typeof options.level == "number" &&
76
+ !isNaN(options.level) &&
77
+ options.level >= 0 &&
78
+ options.level <= 9
79
+ ) {
80
args.splice(0, 0, "-" + options.level.toString());
81
}
82
0 commit comments