From dc8cb66adcb72218a08e60d639754058988bc9e7 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Tue, 19 Dec 2023 06:22:30 +0100 Subject: [PATCH] updating zlib to 1.3 --- CHANGELOG.md | 1 + js/common.js | 2 +- js/{zlib-1.2.13-1.js => zlib-1.3.js} | 4 ++-- js/{zlib-1.2.13.wasm => zlib-1.3.wasm} | Bin 58828 -> 58825 bytes tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) rename js/{zlib-1.2.13-1.js => zlib-1.3.js} (97%) rename js/{zlib-1.2.13.wasm => zlib-1.3.wasm} (99%) diff --git a/CHANGELOG.md b/CHANGELOG.md index bdee9864..36830d6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 1.6.3 (not yet released) * ADDED: Detect and report on damaged pastes (#1218) +* CHANGED: Upgrading libraries to: zlib 1.3 ## 1.6.2 (2023-12-15) * FIXED: English not selectable when `languageselection` enabled (#1208) diff --git a/js/common.js b/js/common.js index a1f4421a..7e406acb 100644 --- a/js/common.js +++ b/js/common.js @@ -12,7 +12,7 @@ global.WebCrypto = require('@peculiar/webcrypto').Crypto; // application libraries to test global.$ = global.jQuery = require('./jquery-3.7.0'); global.RawDeflate = require('./rawinflate-0.3').RawDeflate; -global.zlib = require('./zlib-1.2.13-1').zlib; +global.zlib = require('./zlib-1.3').zlib; require('./prettify'); global.prettyPrint = window.PR.prettyPrint; global.prettyPrintOne = window.PR.prettyPrintOne; diff --git a/js/zlib-1.2.13-1.js b/js/zlib-1.3.js similarity index 97% rename from js/zlib-1.2.13-1.js rename to js/zlib-1.3.js index a9760e96..268d0841 100644 --- a/js/zlib-1.2.13-1.js +++ b/js/zlib-1.3.js @@ -26,9 +26,9 @@ let buff; if (typeof fs === 'object') { - buff = fs.readFileSync('zlib-1.2.13.wasm'); + buff = fs.readFileSync('zlib-1.3.wasm'); } else { - const resp = await fetch('js/zlib-1.2.13.wasm'); + const resp = await fetch('js/zlib-1.3.wasm'); buff = await resp.arrayBuffer(); } const module = await WebAssembly.compile(buff); diff --git a/js/zlib-1.2.13.wasm b/js/zlib-1.3.wasm similarity index 99% rename from js/zlib-1.2.13.wasm rename to js/zlib-1.3.wasm index 145060df799555df0311644a0e00801b00a803ed..c954fbd400e2f4cecc5d8c4188a451b1a93c6ca2 100644 GIT binary patch delta 39 xcmV+?0NDS`%LB>F1F-hF6wcRxfB-iDK?Dl|uvGv-5DNn_F0&1~yek970Lw{Y4vPQ) delta 42 ycmX?kn)%FW<_+I=ieJ3m(7<5M;K;(wv>}wiQGlDxP|rxua5LAgJ=)BN7#sm_nGTcy diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index be24e666..a307c4e7 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -55,7 +55,7 @@ if ($ZEROBINCOMPATIBILITY) : - + diff --git a/tpl/page.php b/tpl/page.php index c00462c9..fa70097a 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -34,7 +34,7 @@ if ($ZEROBINCOMPATIBILITY): - +