mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-09-20 04:34:39 -04:00
upgrade to zlib 1.2.12
This commit is contained in:
parent
ffab73a314
commit
f2e0c1a701
7 changed files with 6 additions and 6 deletions
|
@ -12,7 +12,7 @@ global.WebCrypto = require('@peculiar/webcrypto').Crypto;
|
|||
// application libraries to test
|
||||
global.$ = global.jQuery = require('./jquery-3.6.0');
|
||||
global.RawDeflate = require('./rawinflate-0.3').RawDeflate;
|
||||
global.zlib = require('./zlib-1.2.11').zlib;
|
||||
global.zlib = require('./zlib-1.2.12').zlib;
|
||||
require('./prettify');
|
||||
global.prettyPrint = window.PR.prettyPrint;
|
||||
global.prettyPrintOne = window.PR.prettyPrintOne;
|
||||
|
|
Binary file not shown.
|
@ -26,9 +26,9 @@
|
|||
|
||||
let buff;
|
||||
if (typeof fetch === 'undefined') {
|
||||
buff = fs.readFileSync('zlib-1.2.11.wasm');
|
||||
buff = fs.readFileSync('zlib-1.2.12.wasm');
|
||||
} else {
|
||||
const resp = await fetch('js/zlib-1.2.11.wasm');
|
||||
const resp = await fetch('js/zlib-1.2.12.wasm');
|
||||
buff = await resp.arrayBuffer();
|
||||
}
|
||||
const module = await WebAssembly.compile(buff);
|
BIN
js/zlib-1.2.12.wasm
Normal file
BIN
js/zlib-1.2.12.wasm
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue