Skip to content

Commit

Permalink
update dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed May 6, 2024
1 parent b494074 commit ae27bb9
Show file tree
Hide file tree
Showing 18 changed files with 397 additions and 228 deletions.
33 changes: 26 additions & 7 deletions dist/zip-fs-full.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

const { Array, Object, String, Number, BigInt, Math, Date, Map, Set, Response, URL, Error, Uint8Array, Uint16Array, Uint32Array, DataView, Blob, Promise, TextEncoder, TextDecoder, document, crypto, btoa, TransformStream, ReadableStream, WritableStream, CompressionStream, DecompressionStream, navigator, Worker } = typeof globalThis !== 'undefined' ? globalThis : this || self;

var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
/*
Copyright (c) 2022 Gildas Lormeau. All rights reserved.
Expand Down Expand Up @@ -1046,7 +1047,7 @@
bi_windup(); // align on byte boundary
last_eob_len = 8; // enough lookahead for inflate

if (header) {
{
put_short(len);
put_short(~len);
}
Expand All @@ -1061,7 +1062,7 @@
eof // true if this is the last block for a file
) {
send_bits((STORED_BLOCK << 1) + (eof ? 1 : 0), 3); // send block type
copy_block(buf, stored_len, true); // with header
copy_block(buf, stored_len); // with header
}

// Determine the best encoding for the current block: dynamic trees, static
Expand Down Expand Up @@ -4331,6 +4332,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


class StreamAdapter {

constructor(Codec) {
Expand Down Expand Up @@ -4381,6 +4383,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const MINIMUM_CHUNK_SIZE = 64;
let maxWorkers = 2;
try {
Expand Down Expand Up @@ -4495,6 +4498,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


function getMimeType$1() {
return "application/octet-stream";
}
Expand Down Expand Up @@ -4527,6 +4531,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const table$1 = {
"application": {
"andrew-inset": "ez",
Expand Down Expand Up @@ -6218,6 +6223,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


class Crc32Stream extends TransformStream {

constructor() {
Expand Down Expand Up @@ -6267,6 +6273,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


function encodeText(value) {
if (typeof TextEncoder == UNDEFINED_TYPE) {
value = unescape(encodeURIComponent(value));
Expand Down Expand Up @@ -7128,6 +7135,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const GET_RANDOM_VALUES_SUPPORTED = typeof crypto != UNDEFINED_TYPE && typeof crypto.getRandomValues == FUNCTION_TYPE;

const ERR_INVALID_PASSWORD = "Invalid password";
Expand Down Expand Up @@ -7170,6 +7178,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const BLOCK_LENGTH = 16;
const RAW_FORMAT = "raw";
const PBKDF2_ALGORITHM = { name: "PBKDF2" };
Expand Down Expand Up @@ -7473,6 +7482,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const HEADER_LENGTH = 12;

class ZipCryptoDecryptionStream extends TransformStream {
Expand Down Expand Up @@ -7620,6 +7630,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const COMPRESSION_FORMAT = "deflate-raw";

class DeflateStream extends TransformStream {
Expand Down Expand Up @@ -7760,6 +7771,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const MESSAGE_EVENT_TYPE = "message";
const MESSAGE_START = "start";
const MESSAGE_PULL = "pull";
Expand Down Expand Up @@ -7881,6 +7893,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


// deno-lint-ignore valid-typeof
let WEB_WORKERS_SUPPORTED = typeof Worker != UNDEFINED_TYPE;

Expand Down Expand Up @@ -8209,6 +8222,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


let pool = [];
const pendingRequests = [];

Expand Down Expand Up @@ -8372,6 +8386,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const ERR_HTTP_STATUS = "HTTP error ";
const ERR_HTTP_RANGE = "HTTP Range not supported";
const ERR_ITERATOR_COMPLETED_TOO_SOON = "Writer iterator completed too soon";
Expand Down Expand Up @@ -9132,6 +9147,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


function decodeText(value, encoding) {
if (encoding && encoding.trim().toLowerCase() == "cp437") {
return decodeCP437(value);
Expand Down Expand Up @@ -9233,6 +9249,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const ERR_BAD_FORMAT = "File format is not recognized";
const ERR_EOCDR_NOT_FOUND = "End of central directory not found";
const ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND = "End of Zip64 central directory locator not found";
Expand Down Expand Up @@ -9494,7 +9511,7 @@
}
}

class ZipEntry$1 {
let ZipEntry$1 = class ZipEntry {

constructor(reader, config, options) {
Object.assign(this, {
Expand Down Expand Up @@ -9608,7 +9625,7 @@
}
return checkPasswordOnly ? UNDEFINED_VALUE : writer.getData ? writer.getData() : writable;
}
}
};

function readCommonHeader(directory, dataView, offset) {
const rawBitFlag = directory.rawBitFlag = getUint16(dataView, offset + 2);
Expand Down Expand Up @@ -9902,6 +9919,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const ERR_DUPLICATED_NAME = "File already exists";
const ERR_INVALID_COMMENT = "Zip file comment exceeds 64KB";
const ERR_INVALID_ENTRY_COMMENT = "File entry comment exceeds 64KB";
Expand Down Expand Up @@ -11012,6 +11030,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


class ZipEntry {

constructor(fs, name, params, parent) {
Expand Down Expand Up @@ -11849,9 +11868,10 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


let baseURL;
try {
baseURL = (typeof document === 'undefined' && typeof location === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('zip-fs-full.js', document.baseURI).href));
baseURL = (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('zip-fs-full.js', document.baseURI).href));
} catch (_error) {
// ignored
}
Expand All @@ -11860,6 +11880,7 @@

/// <reference types="./index.d.ts" />


configure({ Deflate: ZipDeflate, Inflate: ZipInflate });

exports.BlobReader = BlobReader;
Expand Down Expand Up @@ -11911,6 +11932,4 @@
exports.initShimAsyncCodec = initShimAsyncCodec;
exports.terminateWorkers = terminateWorkers;

Object.defineProperty(exports, '__esModule', { value: true });

}));
2 changes: 1 addition & 1 deletion dist/zip-fs-full.min.js

Large diffs are not rendered by default.

27 changes: 22 additions & 5 deletions dist/zip-fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

const { Array, Object, String, Number, BigInt, Math, Date, Map, Set, Response, URL, Error, Uint8Array, Uint16Array, Uint32Array, DataView, Blob, Promise, TextEncoder, TextDecoder, document, crypto, btoa, TransformStream, ReadableStream, WritableStream, CompressionStream, DecompressionStream, navigator, Worker } = typeof globalThis !== 'undefined' ? globalThis : this || self;

var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
/*
Copyright (c) 2022 Gildas Lormeau. All rights reserved.
Expand Down Expand Up @@ -108,6 +109,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


class StreamAdapter {

constructor(Codec) {
Expand Down Expand Up @@ -158,6 +160,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const MINIMUM_CHUNK_SIZE = 64;
let maxWorkers = 2;
try {
Expand Down Expand Up @@ -274,6 +277,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


function getMimeType() {
return "application/octet-stream";
}
Expand Down Expand Up @@ -421,6 +425,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


class Crc32Stream extends TransformStream {

constructor() {
Expand Down Expand Up @@ -470,6 +475,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


function encodeText(value) {
if (typeof TextEncoder == UNDEFINED_TYPE) {
value = unescape(encodeURIComponent(value));
Expand Down Expand Up @@ -1331,6 +1337,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const GET_RANDOM_VALUES_SUPPORTED = typeof crypto != UNDEFINED_TYPE && typeof crypto.getRandomValues == FUNCTION_TYPE;

const ERR_INVALID_PASSWORD = "Invalid password";
Expand Down Expand Up @@ -1373,6 +1380,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const BLOCK_LENGTH = 16;
const RAW_FORMAT = "raw";
const PBKDF2_ALGORITHM = { name: "PBKDF2" };
Expand Down Expand Up @@ -1676,6 +1684,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const HEADER_LENGTH = 12;

class ZipCryptoDecryptionStream extends TransformStream {
Expand Down Expand Up @@ -1823,6 +1832,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const COMPRESSION_FORMAT = "deflate-raw";

class DeflateStream extends TransformStream {
Expand Down Expand Up @@ -1963,6 +1973,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const MESSAGE_EVENT_TYPE = "message";
const MESSAGE_START = "start";
const MESSAGE_PULL = "pull";
Expand Down Expand Up @@ -2084,6 +2095,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


// deno-lint-ignore valid-typeof
let WEB_WORKERS_SUPPORTED = typeof Worker != UNDEFINED_TYPE;

Expand Down Expand Up @@ -2412,6 +2424,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


let pool = [];
const pendingRequests = [];

Expand Down Expand Up @@ -2518,6 +2531,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const ERR_HTTP_STATUS = "HTTP error ";
const ERR_HTTP_RANGE = "HTTP Range not supported";
const ERR_ITERATOR_COMPLETED_TOO_SOON = "Writer iterator completed too soon";
Expand Down Expand Up @@ -3278,6 +3292,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


function decodeText(value, encoding) {
if (encoding && encoding.trim().toLowerCase() == "cp437") {
return decodeCP437(value);
Expand Down Expand Up @@ -3379,6 +3394,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const ERR_BAD_FORMAT = "File format is not recognized";
const ERR_EOCDR_NOT_FOUND = "End of central directory not found";
const ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND = "End of Zip64 central directory locator not found";
Expand Down Expand Up @@ -3640,7 +3656,7 @@
}
}

class ZipEntry$1 {
let ZipEntry$1 = class ZipEntry {

constructor(reader, config, options) {
Object.assign(this, {
Expand Down Expand Up @@ -3754,7 +3770,7 @@
}
return checkPasswordOnly ? UNDEFINED_VALUE : writer.getData ? writer.getData() : writable;
}
}
};

function readCommonHeader(directory, dataView, offset) {
const rawBitFlag = directory.rawBitFlag = getUint16(dataView, offset + 2);
Expand Down Expand Up @@ -4048,6 +4064,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


const ERR_DUPLICATED_NAME = "File already exists";
const ERR_INVALID_COMMENT = "Zip file comment exceeds 64KB";
const ERR_INVALID_ENTRY_COMMENT = "File entry comment exceeds 64KB";
Expand Down Expand Up @@ -5158,6 +5175,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


class ZipEntry {

constructor(fs, name, params, parent) {
Expand Down Expand Up @@ -5995,9 +6013,10 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


let baseURL;
try {
baseURL = (typeof document === 'undefined' && typeof location === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('zip-fs.js', document.baseURI).href));
baseURL = (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('zip-fs.js', document.baseURI).href));
} catch (_error) {
// ignored
}
Expand Down Expand Up @@ -6057,6 +6076,4 @@
exports.readUint8Array = readUint8Array;
exports.terminateWorkers = terminateWorkers;

Object.defineProperty(exports, '__esModule', { value: true });

}));
2 changes: 1 addition & 1 deletion dist/zip-fs.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit ae27bb9

Please sign in to comment.