From e3c6afc6cc61c144656d986f5517b86066f2c987 Mon Sep 17 00:00:00 2001 From: 5saviahv <5saviahv@users.noreply.github.com> Date: Sun, 23 Jun 2024 13:25:30 +0300 Subject: [PATCH] typo --- adm-zip.js | 1 - zipEntry.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/adm-zip.js b/adm-zip.js index eb9c6ee..c3bebf3 100644 --- a/adm-zip.js +++ b/adm-zip.js @@ -46,7 +46,6 @@ module.exports = function (/**String*/ input, /** object */ options) { // instanciate utils filesystem const filetools = new Utils(opts); - opts.decoder = Utils.decoder; if (typeof opts.decoder !== "object" || typeof opts.decoder.encode !== "function" || typeof opts.decoder.decode !== "function") { opts.decoder = Utils.decoder; } diff --git a/zipEntry.js b/zipEntry.js index 51c44a2..c2cae53 100644 --- a/zipEntry.js +++ b/zipEntry.js @@ -339,7 +339,7 @@ module.exports = function (/** object */ options, /*Buffer*/ input) { }, packCentralHeader: function () { - _centralHeader.flag_efs = this.efs; + _centralHeader.flags_efs = this.efs; // 1. create header (buffer) var header = _centralHeader.centralHeaderToBinary(); var addpos = Utils.Constants.CENHDR; @@ -360,7 +360,7 @@ module.exports = function (/** object */ options, /*Buffer*/ input) { packLocalHeader: function () { let addpos = 0; - + _centralHeader.flags_efs = this.efs; // 1. construct local header Buffer const localHeaderBuf = _centralHeader.localHeaderToBinary(); // 2. localHeader - crate header buffer