We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0d4e6b commit d9384ebCopy full SHA for d9384eb
1 file changed
lib/archivers/zip/constants.js
@@ -13,9 +13,9 @@ module.exports = {
13
SHORT: 2,
14
SHORT_MASK: 0xffff,
15
SHORT_SHIFT: 16,
16
- SHORT_ZERO: Buffer.alloc(Array(2)),
+ SHORT_ZERO: Buffer.from(Array(2)),
17
LONG: 4,
18
- LONG_ZERO: Buffer.alloc(Array(4)),
+ LONG_ZERO: Buffer.from(Array(4)),
19
20
MIN_VERSION_INITIAL: 10,
21
MIN_VERSION_DATA_DESCRIPTOR: 20,
0 commit comments