@zip.js/zip.js
Advanced tools
Comparing version 2.7.54 to 2.7.55
{ | ||
"name": "@zip-js/zip-js", | ||
"version": "2.7.54", | ||
"version": "2.7.55", | ||
"exports": { | ||
@@ -5,0 +5,0 @@ ".": "./index.js", |
@@ -870,2 +870,6 @@ /** | ||
/** | ||
* `true` if the entry is an executable file | ||
*/ | ||
executable: boolean; | ||
/** | ||
* `true` if the content of the entry is encrypted. | ||
@@ -947,7 +951,19 @@ */ | ||
/** | ||
* `true` if `internalFileAttribute` and `externalFileAttribute` are compatible with MS-DOS format. | ||
* `true` if `internalFileAttributes` and `externalFileAttributes` are compatible with MS-DOS format. | ||
*/ | ||
msDosCompatible: boolean; | ||
/** | ||
* The internal file attributes (raw). | ||
*/ | ||
internalFileAttributes: number; | ||
/** | ||
* The external file attributes (raw). | ||
*/ | ||
externalFileAttributes: number; | ||
/** | ||
* The number of the disk where the entry data starts. | ||
*/ | ||
/** | ||
* The internal file attribute (raw). | ||
* @deprecated Use {@link EntryMetaData#internalFileAttributes} instead. | ||
*/ | ||
@@ -957,2 +973,3 @@ internalFileAttribute: number; | ||
* The external file attribute (raw). | ||
* @deprecated Use {@link EntryMetaData#externalFileAttributes} instead. | ||
*/ | ||
@@ -1344,3 +1361,3 @@ externalFileAttribute: number; | ||
/** | ||
* `true` to write {@link EntryMetaData#externalFileAttribute} in MS-DOS format for folder entries. | ||
* `true` to write {@link EntryMetaData#externalFileAttributes} in MS-DOS format for folder entries. | ||
* | ||
@@ -1355,3 +1372,3 @@ * @defaultValue true | ||
*/ | ||
externalFileAttribute?: number; | ||
externalFileAttributes?: number; | ||
/** | ||
@@ -1362,3 +1379,3 @@ * The internal file attribute. | ||
*/ | ||
internalFileAttribute?: number; | ||
internalFileAttributes?: number; | ||
/** | ||
@@ -1365,0 +1382,0 @@ * `false` to never write disk numbers in zip64 data. |
@@ -107,3 +107,4 @@ /* | ||
await workerData.terminate(); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -110,0 +111,0 @@ } |
@@ -128,3 +128,4 @@ /* | ||
await handler(...parameters); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -146,3 +147,4 @@ } | ||
worker = getWebWorker(workerData.scripts[0], baseURL, workerData); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
WEB_WORKERS_SUPPORTED = false; | ||
@@ -250,3 +252,4 @@ return createWorkerInterface(workerData, config); | ||
scriptUrl = new URL(url, baseURL); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
scriptUrl = url; | ||
@@ -257,3 +260,4 @@ } | ||
worker = new Worker(scriptUrl); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
classicWorkersSupported = false; | ||
@@ -296,3 +300,4 @@ worker = new Worker(scriptUrl, workerOptions); | ||
return true; | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
transferStreamsSupported = false; | ||
@@ -299,0 +304,0 @@ message.readable = message.writable = null; |
@@ -43,3 +43,4 @@ /* | ||
} | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -46,0 +47,0 @@ } |
@@ -61,2 +61,4 @@ /* | ||
const FILE_ATTR_MSDOS_DIR_MASK = 0x10; | ||
const FILE_ATTR_UNIX_DIR_MASK = 0x4000; | ||
const FILE_ATTR_UNIX_EXECUTABLE_MASK = 0o111; | ||
@@ -106,2 +108,4 @@ const VERSION_DEFLATE = 0x14; | ||
FILE_ATTR_MSDOS_DIR_MASK, | ||
FILE_ATTR_UNIX_DIR_MASK, | ||
FILE_ATTR_UNIX_EXECUTABLE_MASK, | ||
VERSION_DEFLATE, | ||
@@ -108,0 +112,0 @@ VERSION_ZIP64, |
@@ -268,3 +268,4 @@ /* | ||
return await subtle.importKey(format, password, algorithm, extractable, keyUsages); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
IMPORT_KEY_SUPPORTED = false; | ||
@@ -282,3 +283,4 @@ return misc.importKey(password); | ||
return await subtle.deriveBits(algorithm, baseKey, length); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
DERIVE_BITS_SUPPORTED = false; | ||
@@ -285,0 +287,0 @@ return misc.pbkdf2(baseKey, algorithm.salt, DERIVED_BITS_ALGORITHM.iterations, length); |
@@ -769,3 +769,2 @@ /* | ||
// process input and output based on current state | ||
// eslint-disable-next-line no-constant-condition | ||
while (true) { | ||
@@ -1261,3 +1260,2 @@ switch (mode) { | ||
// DEBUG dtree | ||
// eslint-disable-next-line no-constant-condition | ||
while (true) { | ||
@@ -1539,3 +1537,2 @@ let bl, bd, tl, td, bl_, bd_, tl_, td_; | ||
case DTREE: | ||
// eslint-disable-next-line no-constant-condition | ||
while (true) { | ||
@@ -1848,3 +1845,2 @@ t = table; | ||
r = Z_BUF_ERROR; | ||
// eslint-disable-next-line no-constant-condition | ||
while (true) { | ||
@@ -1851,0 +1847,0 @@ switch (istate.mode) { |
@@ -149,7 +149,9 @@ /* | ||
readable = pipeThrough(readable, new CompressionStream(COMPRESSION_FORMAT, options)); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
if (useCompressionStream) { | ||
try { | ||
readable = pipeThrough(readable, new CodecStream(COMPRESSION_FORMAT, options)); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
return readable; | ||
@@ -156,0 +158,0 @@ } |
@@ -83,3 +83,4 @@ /* | ||
} | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
importScriptSupported = false; | ||
@@ -163,3 +164,4 @@ await imporModuleScripts(scripts); | ||
postMessage(message, [message.value]); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
postMessage(message); | ||
@@ -166,0 +168,0 @@ } |
@@ -44,3 +44,5 @@ /* | ||
const PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE = "internalFileAttribute"; | ||
const PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTES = "internalFileAttributes"; | ||
const PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE = "externalFileAttribute"; | ||
const PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTES = "externalFileAttributes"; | ||
const PROPERTY_NAME_MS_DOS_COMPATIBLE = "msDosCompatible"; | ||
@@ -57,6 +59,3 @@ const PROPERTY_NAME_ZIP64 = "zip64"; | ||
PROPERTY_NAME_LAST_ACCESS_DATE, PROPERTY_NAME_CREATION_DATE, PROPERTY_NAME_OFFSET, PROPERTY_NAME_DISK_NUMBER_START, | ||
PROPERTY_NAME_DISK_NUMBER_START, PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE, PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE, | ||
PROPERTY_NAME_MS_DOS_COMPATIBLE, PROPERTY_NAME_ZIP64, PROPERTY_NAME_ENCRYPTED, PROPERTY_NAME_VERSION, PROPERTY_NAME_VERSION_MADE_BY, | ||
PROPERTY_NAME_ZIPCRYPTO, "directory", "bitFlag", "signature", "filenameUTF8", "commentUTF8", "compressionMethod", "extraField", "rawExtraField", | ||
"extraFieldZip64", "extraFieldUnicodePath", "extraFieldUnicodeComment", "extraFieldAES", "extraFieldNTFS", "extraFieldExtendedTimestamp"]; | ||
PROPERTY_NAME_DISK_NUMBER_START, PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE, PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTES, PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE, PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTES, PROPERTY_NAME_MS_DOS_COMPATIBLE, PROPERTY_NAME_ZIP64, PROPERTY_NAME_ENCRYPTED, PROPERTY_NAME_VERSION, PROPERTY_NAME_VERSION_MADE_BY, PROPERTY_NAME_ZIPCRYPTO, "directory", "executable", "bitFlag", "signature", "filenameUTF8", "commentUTF8", "compressionMethod", "extraField", "rawExtraField", "extraFieldZip64", "extraFieldUnicodePath", "extraFieldUnicodeComment", "extraFieldAES", "extraFieldNTFS", "extraFieldExtendedTimestamp"]; | ||
@@ -87,3 +86,5 @@ class Entry { | ||
PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE, | ||
PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTES, | ||
PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE, | ||
PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTES, | ||
PROPERTY_NAME_MS_DOS_COMPATIBLE, | ||
@@ -90,0 +91,0 @@ PROPERTY_NAME_ZIP64, |
@@ -428,3 +428,4 @@ /* | ||
}; | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -687,3 +688,4 @@ } | ||
}; | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -734,3 +736,3 @@ } | ||
const { | ||
externalFileAttribute, | ||
externalFileAttributes, | ||
versionMadeBy, | ||
@@ -749,3 +751,3 @@ comment, | ||
zipEntryOptions = { | ||
externalFileAttribute, | ||
externalFileAttributes, | ||
versionMadeBy, | ||
@@ -785,3 +787,4 @@ comment, | ||
await options.onprogress(Array.from(entryOffsets.values()).reduce((previousValue, currentValue) => previousValue + currentValue), totalSize); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -788,0 +791,0 @@ } |
@@ -29,3 +29,3 @@ /* | ||
/* global BigInt, Response, WritableStream, ReadableStream, TransformStream */ | ||
/* global Response, WritableStream, ReadableStream, TransformStream */ | ||
// deno-lint-ignore-file no-this-alias | ||
@@ -61,2 +61,4 @@ | ||
FILE_ATTR_MSDOS_DIR_MASK, | ||
FILE_ATTR_UNIX_DIR_MASK, | ||
FILE_ATTR_UNIX_EXECUTABLE_MASK, | ||
DIRECTORY_SIGNATURE, | ||
@@ -255,3 +257,4 @@ UNDEFINED_VALUE | ||
const versionMadeBy = getUint16(directoryView, offset + 4); | ||
const msDosCompatible = (versionMadeBy & 0) == 0; | ||
const msDosCompatible = versionMadeBy >> 8 == 0; | ||
const unixCompatible = versionMadeBy >> 8 == 3; | ||
const rawFilename = directoryArray.subarray(filenameOffset, extraFieldOffset); | ||
@@ -263,3 +266,8 @@ const commentLength = getUint16(directoryView, offset + 32); | ||
const commentUTF8 = languageEncodingFlag; | ||
const directory = msDosCompatible && ((getUint8(directoryView, offset + 38) & FILE_ATTR_MSDOS_DIR_MASK) == FILE_ATTR_MSDOS_DIR_MASK); | ||
const externalFileAttributes = getUint32(directoryView, offset + 38); | ||
const directory = | ||
(msDosCompatible && ((getUint8(directoryView, offset + 38) & FILE_ATTR_MSDOS_DIR_MASK) == FILE_ATTR_MSDOS_DIR_MASK)) || | ||
(unixCompatible && (((externalFileAttributes >> 16) & FILE_ATTR_UNIX_DIR_MASK) == FILE_ATTR_UNIX_DIR_MASK)) || | ||
(rawFilename.length && rawFilename[rawFilename.length - 1] == DIRECTORY_SIGNATURE.charCodeAt(0)); | ||
const executable = (unixCompatible && (((externalFileAttributes >> 16) & FILE_ATTR_UNIX_EXECUTABLE_MASK) == FILE_ATTR_UNIX_EXECUTABLE_MASK)); | ||
const offsetFileEntry = getUint32(directoryView, offset + 42) + prependedDataLength; | ||
@@ -275,9 +283,12 @@ Object.assign(fileEntry, { | ||
diskNumberStart: getUint16(directoryView, offset + 34), | ||
internalFileAttribute: getUint16(directoryView, offset + 36), | ||
externalFileAttribute: getUint32(directoryView, offset + 38), | ||
internalFileAttributes: getUint16(directoryView, offset + 36), | ||
externalFileAttributes, | ||
rawFilename, | ||
filenameUTF8, | ||
commentUTF8, | ||
rawExtraField: directoryArray.subarray(extraFieldOffset, commentOffset) | ||
rawExtraField: directoryArray.subarray(extraFieldOffset, commentOffset), | ||
executable | ||
}); | ||
fileEntry.internalFileAttribute = fileEntry.internalFileAttributes; | ||
fileEntry.externalFileAttribute = fileEntry.externalFileAttributes; | ||
const decode = getOptionValue(zipReader, options, "decodeText") || decodeText; | ||
@@ -310,3 +321,4 @@ const rawFilenameEncoding = filenameUTF8 ? CHARSET_UTF8 : filenameEncoding || CHARSET_CP437; | ||
await onprogress(indexFile + 1, filesLength, new Entry(fileEntry)); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -540,3 +552,4 @@ } | ||
} | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -648,3 +661,4 @@ } | ||
} | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -670,3 +684,4 @@ } | ||
} | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -740,3 +755,4 @@ } | ||
return new Date(1980 + ((date & 0xFE00) >> 9), ((date & 0x01E0) >> 5) - 1, date & 0x001F, (time & 0xF800) >> 11, (time & 0x07E0) >> 5, (time & 0x001F) * 2, 0); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -743,0 +759,0 @@ } |
@@ -29,3 +29,3 @@ /* | ||
/* global BigInt, TransformStream, Response */ | ||
/* global TransformStream, Response */ | ||
// deno-lint-ignore-file no-this-alias | ||
@@ -88,2 +88,4 @@ | ||
PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE, | ||
PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTES, | ||
PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTES, | ||
PROPERTY_NAME_MS_DOS_COMPATIBLE, | ||
@@ -263,4 +265,10 @@ PROPERTY_NAME_ZIP64, | ||
const msDosCompatible = getOptionValue(zipWriter, options, PROPERTY_NAME_MS_DOS_COMPATIBLE, true); | ||
const internalFileAttribute = getOptionValue(zipWriter, options, PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE, 0); | ||
const externalFileAttribute = getOptionValue(zipWriter, options, PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE, 0); | ||
let internalFileAttributes = getOptionValue(zipWriter, options, PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTES, 0); | ||
if (internalFileAttributes === 0) { | ||
internalFileAttributes = getOptionValue(zipWriter, options, PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE, 0); | ||
} | ||
let externalFileAttributes = getOptionValue(zipWriter, options, PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTES, 0); | ||
if (externalFileAttributes === 0) { | ||
externalFileAttributes = getOptionValue(zipWriter, options, PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE, 0); | ||
} | ||
const passThrough = getOptionValue(zipWriter, options, "passThrough"); | ||
@@ -381,4 +389,6 @@ let password, rawPassword; | ||
msDosCompatible, | ||
internalFileAttribute, | ||
externalFileAttribute, | ||
internalFileAttribute: internalFileAttributes, | ||
internalFileAttributes, | ||
externalFileAttribute: externalFileAttributes, | ||
externalFileAttributes, | ||
useCompressionStream, | ||
@@ -504,3 +514,4 @@ passThrough, | ||
error.corruptedEntry = true; | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -598,4 +609,4 @@ } | ||
msDosCompatible, | ||
internalFileAttribute, | ||
externalFileAttribute, | ||
internalFileAttributes, | ||
externalFileAttributes, | ||
useCompressionStream, | ||
@@ -619,4 +630,4 @@ passThrough | ||
msDosCompatible, | ||
internalFileAttribute, | ||
externalFileAttribute, | ||
internalFileAttributes, | ||
externalFileAttributes, | ||
diskNumberStart | ||
@@ -781,3 +792,4 @@ }; | ||
setBigUint64(extraFieldNTFSView, 28, getTimeNTFS(creationDate) || lastModTimeNTFS); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
rawExtraFieldNTFS = new Uint8Array(); | ||
@@ -1077,4 +1089,4 @@ } | ||
msDosCompatible, | ||
internalFileAttribute, | ||
externalFileAttribute, | ||
internalFileAttributes, | ||
externalFileAttributes, | ||
diskNumberStart, | ||
@@ -1098,5 +1110,5 @@ uncompressedSize, | ||
setUint16(directoryView, offset + 34, zip64 && zip64DiskNumberStart ? MAX_16_BITS : diskNumberStart); | ||
setUint16(directoryView, offset + 36, internalFileAttribute); | ||
if (externalFileAttribute) { | ||
setUint32(directoryView, offset + 38, externalFileAttribute); | ||
setUint16(directoryView, offset + 36, internalFileAttributes); | ||
if (externalFileAttributes) { | ||
setUint32(directoryView, offset + 38, externalFileAttributes); | ||
} else if (directory && msDosCompatible) { | ||
@@ -1123,3 +1135,4 @@ setUint8(directoryView, offset + 38, FILE_ATTR_MSDOS_DIR_MASK); | ||
await options.onprogress(indexFileEntry + 1, files.size, new Entry(fileEntry)); | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -1126,0 +1139,0 @@ } |
@@ -38,3 +38,4 @@ /* | ||
baseURL = import.meta.url; | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -41,0 +42,0 @@ } |
@@ -38,3 +38,4 @@ /* | ||
baseURL = import.meta.url; | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -41,0 +42,0 @@ } |
@@ -39,3 +39,4 @@ /* | ||
baseURL = import.meta.url; | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -42,0 +43,0 @@ } |
@@ -40,3 +40,4 @@ /* | ||
baseURL = import.meta.url; | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -43,0 +44,0 @@ } |
@@ -38,3 +38,4 @@ /* | ||
baseURL = import.meta.url; | ||
} catch (_error) { | ||
// eslint-disable-next-line no-unused-vars | ||
} catch (_) { | ||
// ignored | ||
@@ -41,0 +42,0 @@ } |
171
package.json
{ | ||
"name": "@zip.js/zip.js", | ||
"description": "A JavaScript library to zip and unzip files in the browser, Deno and Node.js", | ||
"author": "Gildas Lormeau", | ||
"license": "BSD-3-Clause", | ||
"version": "2.7.54", | ||
"type": "module", | ||
"keywords": [ | ||
"zip", | ||
"unzip", | ||
"browser", | ||
"web", | ||
"aes-256", | ||
"aes-192", | ||
"aes-128", | ||
"zip-crypto", | ||
"encryption", | ||
"zip64", | ||
"web-streams", | ||
"compression-streams", | ||
"web-crypto", | ||
"web-workers", | ||
"deno", | ||
"node.js", | ||
"multi-core", | ||
"split-zip", | ||
"usdz" | ||
], | ||
"engines": { | ||
"deno": ">=1.0.0", | ||
"node": ">=16.5.0", | ||
"bun": ">=0.7.0" | ||
"name": "@zip.js/zip.js", | ||
"description": "A JavaScript library to zip and unzip files in the browser, Deno and Node.js", | ||
"author": "Gildas Lormeau", | ||
"license": "BSD-3-Clause", | ||
"version": "2.7.55", | ||
"type": "module", | ||
"keywords": [ | ||
"zip", | ||
"unzip", | ||
"browser", | ||
"web", | ||
"aes-256", | ||
"aes-192", | ||
"aes-128", | ||
"zip-crypto", | ||
"encryption", | ||
"zip64", | ||
"web-streams", | ||
"compression-streams", | ||
"web-crypto", | ||
"web-workers", | ||
"deno", | ||
"node.js", | ||
"multi-core", | ||
"split-zip", | ||
"usdz" | ||
], | ||
"engines": { | ||
"deno": ">=1.0.0", | ||
"node": ">=16.5.0", | ||
"bun": ">=0.7.0" | ||
}, | ||
"scripts": { | ||
"build": "npx rollup -c", | ||
"build-dev": "npx rollup -c rollup.config.dev.js", | ||
"build-fflate": "npm i --no-save fflate && npx rollup -c rollup-fflate.config.js", | ||
"build-fflate-dev": "npm i --no-save fflate && npx rollup -c rollup-fflate.config.dev.js", | ||
"build-doc-api": "npx typedoc", | ||
"build-markdown-docs": "npx typedoc --plugin typedoc-plugin-markdown --out ./docs", | ||
"test-deno": "cd ./tests && deno test --allow-read ./deno-runner.js", | ||
"test-node": "cd ./tests && node ./node-runner.js", | ||
"test-bun": "cd ./tests && bun test ./bun-runner.js", | ||
"test-firefox": "firefox http://localhost:8081/tests/ & npx http-server -p=8081 & wait $!", | ||
"test-chrome": "google-chrome http://localhost:8081/tests/ & npx http-server -p=8081 & wait $!" | ||
}, | ||
"main": "./index.cjs", | ||
"module": "./index.js", | ||
"types": "./index.d.ts", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
"./index.min.js": "./index.min.js", | ||
".": { | ||
"import": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"require": { | ||
"types": "./index.d.ts", | ||
"default": "./index.cjs" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "npx rollup -c", | ||
"build-dev": "npx rollup -c rollup.config.dev.js", | ||
"build-fflate": "npm i --no-save fflate && npx rollup -c rollup-fflate.config.js", | ||
"build-fflate-dev": "npm i --no-save fflate && npx rollup -c rollup-fflate.config.dev.js", | ||
"build-doc-api": "npx typedoc", | ||
"test-deno": "cd ./tests && deno test --allow-read ./deno-runner.js", | ||
"test-node": "cd ./tests && node ./node-runner.js", | ||
"test-bun": "cd ./tests && bun test ./bun-runner.js", | ||
"test-firefox": "firefox http://localhost:8081/tests/ & npx http-server -p=8081 & wait $!", | ||
"test-chrome": "google-chrome http://localhost:8081/tests/ & npx http-server -p=8081 & wait $!" | ||
}, | ||
"main": "./index.cjs", | ||
"module": "./index.js", | ||
"types": "./index.d.ts", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
"./index.min.js": "./index.min.js", | ||
".": { | ||
"import": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"require": { | ||
"types": "./index.d.ts", | ||
"default": "./index.cjs" | ||
} | ||
}, | ||
"./data-uri.js": "./lib/zip-data-uri.js", | ||
"./lib/zip-fs.js": "./lib/zip-fs.js", | ||
"./lib/zip-full.js": "./lib/zip-full.js", | ||
"./lib/zip-no-worker-deflate.js": "./lib/zip-no-worker-deflate.js", | ||
"./lib/zip-no-worker-inflate.js": "./lib/zip-no-worker-inflate.js", | ||
"./lib/zip-no-worker.js": "./lib/zip-no-worker.js", | ||
"./lib/zip.js": "./lib/zip.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/gildas-lormeau/zip.js.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/gildas-lormeau/zip.js/issues" | ||
}, | ||
"homepage": "https://gildas-lormeau.github.io/zip.js", | ||
"devDependencies": { | ||
"@rollup/plugin-node-resolve": "^15.3.0", | ||
"@rollup/plugin-replace": "^6.0.1", | ||
"@rollup/plugin-terser": "^0.4.4", | ||
"http-server": "^14.1.1", | ||
"rollup": "^4.28.0", | ||
"typedoc": "^0.27.3" | ||
} | ||
} | ||
"./data-uri.js": "./lib/zip-data-uri.js", | ||
"./lib/zip-fs.js": "./lib/zip-fs.js", | ||
"./lib/zip-full.js": "./lib/zip-full.js", | ||
"./lib/zip-no-worker-deflate.js": "./lib/zip-no-worker-deflate.js", | ||
"./lib/zip-no-worker-inflate.js": "./lib/zip-no-worker-inflate.js", | ||
"./lib/zip-no-worker.js": "./lib/zip-no-worker.js", | ||
"./lib/zip.js": "./lib/zip.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/gildas-lormeau/zip.js.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/gildas-lormeau/zip.js/issues" | ||
}, | ||
"homepage": "https://gildas-lormeau.github.io/zip.js", | ||
"devDependencies": { | ||
"@rollup/plugin-node-resolve": "^15.3.0", | ||
"@rollup/plugin-replace": "^6.0.1", | ||
"@rollup/plugin-terser": "^0.4.4", | ||
"eslint": "^9.19.0", | ||
"http-server": "^14.1.1", | ||
"rollup": "^4.28.0", | ||
"typedoc": "^0.27.4", | ||
"typedoc-plugin-markdown": "^4.3.2" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
3118373
70
59488
8