@cj-tech-master/excelts 9.2.0 → 9.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/modules/archive/compression/compress.browser.js +3 -3
- package/dist/browser/modules/archive/compression/crc32.js +1 -1
- package/dist/browser/modules/archive/compression/streaming-compress.browser.js +6 -6
- package/dist/browser/modules/archive/compression/streaming-compress.js +1 -1
- package/dist/browser/modules/archive/compression/worker-pool/pool.browser.d.ts +1 -1
- package/dist/browser/modules/archive/crypto/aes.js +1 -1
- package/dist/browser/modules/archive/fs/archive-file.js +9 -9
- package/dist/browser/modules/archive/fs/types.d.ts +3 -3
- package/dist/browser/modules/archive/io/archive-sink.js +1 -1
- package/dist/browser/modules/archive/io/archive-source.js +3 -3
- package/dist/browser/modules/archive/shared/bytes.js +7 -3
- package/dist/browser/modules/archive/tar/tar-archive.d.ts +1 -1
- package/dist/browser/modules/archive/tar/tar-archive.js +1 -1
- package/dist/browser/modules/archive/tar/tar-gzip.js +2 -2
- package/dist/browser/modules/archive/tar/tar-header.js +2 -2
- package/dist/browser/modules/archive/tar/tar-parser.js +2 -2
- package/dist/browser/modules/archive/unzip/parser-core.js +2 -2
- package/dist/browser/modules/archive/unzip/progress.d.ts +2 -2
- package/dist/browser/modules/archive/unzip/remote-zip-reader.d.ts +2 -2
- package/dist/browser/modules/archive/unzip/remote-zip-reader.js +5 -5
- package/dist/browser/modules/archive/unzip/stream.base.d.ts +1 -1
- package/dist/browser/modules/archive/unzip/stream.base.js +4 -3
- package/dist/browser/modules/archive/unzip/stream.browser.d.ts +2 -2
- package/dist/browser/modules/archive/unzip/stream.browser.js +7 -7
- package/dist/browser/modules/archive/unzip/stream.d.ts +2 -2
- package/dist/browser/modules/archive/unzip/stream.js +1 -1
- package/dist/browser/modules/archive/unzip/zip-extract-core.js +4 -4
- package/dist/browser/modules/archive/unzip/zip-parser.d.ts +1 -1
- package/dist/browser/modules/archive/unzip/zip-reader.d.ts +4 -4
- package/dist/browser/modules/archive/unzip/zip-reader.js +6 -6
- package/dist/browser/modules/archive/zip/progress.d.ts +1 -1
- package/dist/browser/modules/archive/zip/stream.d.ts +3 -3
- package/dist/browser/modules/archive/zip/stream.js +6 -6
- package/dist/browser/modules/archive/zip/zip-archive.d.ts +4 -4
- package/dist/browser/modules/archive/zip/zip-archive.js +11 -11
- package/dist/browser/modules/archive/zip/zip-bytes.d.ts +1 -1
- package/dist/browser/modules/archive/zip/zip-bytes.js +5 -5
- package/dist/browser/modules/archive/zip/zip-editor.d.ts +6 -6
- package/dist/browser/modules/archive/zip/zip-editor.js +9 -9
- package/dist/browser/modules/archive/zip/zip-entry-metadata.js +1 -1
- package/dist/browser/modules/archive/zip/zip-entry-options.d.ts +2 -2
- package/dist/browser/modules/archive/zip/zip-output-pipeline.d.ts +1 -1
- package/dist/browser/modules/archive/zip/zip-output-pipeline.js +1 -1
- package/dist/browser/modules/archive/zip-spec/zip-extra-fields.js +1 -1
- package/dist/browser/modules/archive/zip-spec/zip-parser-core.d.ts +1 -1
- package/dist/browser/modules/archive/zip-spec/zip-parser-core.js +2 -2
- package/dist/browser/modules/csv/format/config.js +3 -3
- package/dist/browser/modules/csv/format/formatter.js +2 -2
- package/dist/browser/modules/csv/parse/async.js +7 -6
- package/dist/browser/modules/csv/parse/config.js +2 -2
- package/dist/browser/modules/csv/parse/helpers.d.ts +1 -1
- package/dist/browser/modules/csv/parse/helpers.js +2 -2
- package/dist/browser/modules/csv/parse/lines.js +25 -23
- package/dist/browser/modules/csv/parse/row-processor.js +2 -2
- package/dist/browser/modules/csv/parse/sync.d.ts +1 -1
- package/dist/browser/modules/csv/parse/sync.js +5 -5
- package/dist/browser/modules/csv/stream/parser.js +6 -6
- package/dist/browser/modules/csv/worker/worker-script.generated.d.ts +1 -1
- package/dist/browser/modules/csv/worker/worker-script.generated.js +1 -1
- package/dist/browser/modules/csv/worker/worker.entry.js +1 -1
- package/dist/browser/modules/excel/cell.d.ts +3 -3
- package/dist/browser/modules/excel/cell.js +4 -4
- package/dist/browser/modules/excel/column.d.ts +1 -1
- package/dist/browser/modules/excel/column.js +2 -2
- package/dist/browser/modules/excel/defined-names.d.ts +2 -2
- package/dist/browser/modules/excel/defined-names.js +14 -6
- package/dist/browser/modules/excel/image.js +1 -1
- package/dist/browser/modules/excel/pivot-table.js +2 -2
- package/dist/browser/modules/excel/range.js +1 -1
- package/dist/browser/modules/excel/row.d.ts +1 -1
- package/dist/browser/modules/excel/row.js +2 -2
- package/dist/browser/modules/excel/stream/hyperlink-reader.d.ts +1 -1
- package/dist/browser/modules/excel/stream/hyperlink-reader.js +2 -2
- package/dist/browser/modules/excel/stream/sheet-comments-writer.js +3 -3
- package/dist/browser/modules/excel/stream/sheet-rels-writer.js +2 -2
- package/dist/browser/modules/excel/stream/workbook-reader.browser.d.ts +4 -4
- package/dist/browser/modules/excel/stream/workbook-reader.browser.js +6 -6
- package/dist/browser/modules/excel/stream/workbook-reader.d.ts +2 -2
- package/dist/browser/modules/excel/stream/workbook-reader.js +3 -3
- package/dist/browser/modules/excel/stream/workbook-writer.browser.d.ts +4 -4
- package/dist/browser/modules/excel/stream/workbook-writer.browser.js +13 -13
- package/dist/browser/modules/excel/stream/workbook-writer.d.ts +1 -1
- package/dist/browser/modules/excel/stream/workbook-writer.js +2 -2
- package/dist/browser/modules/excel/stream/worksheet-reader.d.ts +2 -2
- package/dist/browser/modules/excel/stream/worksheet-reader.js +6 -6
- package/dist/browser/modules/excel/stream/worksheet-writer.d.ts +14 -4
- package/dist/browser/modules/excel/stream/worksheet-writer.js +49 -20
- package/dist/browser/modules/excel/table.js +2 -2
- package/dist/browser/modules/excel/utils/cell-matrix.js +1 -1
- package/dist/browser/modules/excel/utils/drawing-utils.js +1 -1
- package/dist/browser/modules/excel/utils/encryptor.browser.js +1 -1
- package/dist/browser/modules/excel/utils/encryptor.js +1 -1
- package/dist/browser/modules/excel/utils/iterate-stream.js +2 -1
- package/dist/browser/modules/excel/utils/stream-buf.d.ts +5 -5
- package/dist/browser/modules/excel/utils/stream-buf.js +2 -2
- package/dist/browser/modules/excel/utils/text-metrics.d.ts +1 -1
- package/dist/browser/modules/excel/workbook.browser.d.ts +7 -7
- package/dist/browser/modules/excel/workbook.browser.js +10 -10
- package/dist/browser/modules/excel/workbook.js +2 -2
- package/dist/browser/modules/excel/worksheet.d.ts +6 -6
- package/dist/browser/modules/excel/worksheet.js +9 -9
- package/dist/browser/modules/excel/xlsx/xform/base-xform.js +4 -3
- package/dist/browser/modules/excel/xlsx/xform/book/defined-name-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/book/sheet-xform.d.ts +1 -1
- package/dist/browser/modules/excel/xlsx/xform/book/workbook-xform.js +5 -5
- package/dist/browser/modules/excel/xlsx/xform/comment/comment-xform.d.ts +1 -1
- package/dist/browser/modules/excel/xlsx/xform/comment/comment-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/comment/comments-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/comment/vml-client-data-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/comment/vml-notes-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/comment/vml-shape-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/core/app-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/core/content-types-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/core/core-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/core/relationships-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/drawing/c-nv-pr-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/ctrl-prop-xform.d.ts +1 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/ctrl-prop-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/drawing-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/drawing/nv-pic-pr-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/pic-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/vml-drawing-xform.d.ts +1 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/vml-drawing-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/list-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/pivot-table/cache-field-xform.d.ts +1 -1
- package/dist/browser/modules/excel/xlsx/xform/pivot-table/cache-field-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/pivot-table/cache-field.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/pivot-table/pivot-cache-definition-xform.d.ts +1 -1
- package/dist/browser/modules/excel/xlsx/xform/pivot-table/pivot-cache-definition-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/pivot-table/pivot-cache-records-xform.d.ts +2 -2
- package/dist/browser/modules/excel/xlsx/xform/pivot-table/pivot-cache-records-xform.js +5 -5
- package/dist/browser/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.d.ts +2 -2
- package/dist/browser/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/sheet/cell-xform.js +4 -4
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf/cf-rule-xform.d.ts +1 -1
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf/cf-rule-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf/color-scale-xform.d.ts +1 -1
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf/color-scale-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf/databar-xform.d.ts +1 -1
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf/databar-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf/ext-lst-ref-xform.js +3 -0
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf-ext/cf-rule-ext-xform.d.ts +5 -0
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf-ext/cf-rule-ext-xform.js +10 -3
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formatting-ext-xform.d.ts +1 -1
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formatting-ext-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf-ext/databar-ext-xform.d.ts +2 -2
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf-ext/databar-ext-xform.js +8 -5
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf-ext/icon-set-ext-xform.d.ts +1 -1
- package/dist/browser/modules/excel/xlsx/xform/sheet/cf-ext/icon-set-ext-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/sheet/col-breaks-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/sheet/data-validations-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/sheet/merges.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/sheet/row-breaks-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/sheet/row-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/sheet/sheet-properties-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/sheet/worksheet-xform.js +19 -19
- package/dist/browser/modules/excel/xlsx/xform/strings/phonetic-text-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/strings/rich-text-xform.d.ts +1 -1
- package/dist/browser/modules/excel/xlsx/xform/strings/rich-text-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/strings/shared-string-xform.js +3 -3
- package/dist/browser/modules/excel/xlsx/xform/strings/shared-strings-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/style/border-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/style/font-xform.js +2 -2
- package/dist/browser/modules/excel/xlsx/xform/style/style-xform.js +2 -1
- package/dist/browser/modules/excel/xlsx/xform/style/styles-xform.js +5 -5
- package/dist/browser/modules/excel/xlsx/xform/table/auto-filter-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/table/filter-column-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/table/table-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xlsx.browser.d.ts +2 -2
- package/dist/browser/modules/excel/xlsx/xlsx.browser.js +22 -22
- package/dist/browser/modules/excel/xlsx/xlsx.js +5 -4
- package/dist/browser/modules/pdf/builder/document-builder.js +2 -2
- package/dist/browser/modules/pdf/builder/form-appearance.js +1 -1
- package/dist/browser/modules/pdf/builder/pdf-editor.js +56 -11
- package/dist/browser/modules/pdf/core/digital-signature.js +15 -7
- package/dist/browser/modules/pdf/core/encryption.js +6 -5
- package/dist/browser/modules/pdf/core/pdf-kdf.browser.d.ts +10 -0
- package/dist/browser/modules/pdf/core/pdf-kdf.browser.js +15 -0
- package/dist/browser/modules/pdf/core/pdf-kdf.d.ts +12 -0
- package/dist/browser/modules/pdf/core/pdf-kdf.js +17 -0
- package/dist/browser/modules/pdf/core/pdf-writer.d.ts +1 -1
- package/dist/browser/modules/pdf/core/pdf-writer.js +3 -3
- package/dist/browser/modules/pdf/errors.d.ts +1 -2
- package/dist/browser/modules/pdf/errors.js +2 -2
- package/dist/browser/modules/pdf/font/font-embedder.d.ts +1 -1
- package/dist/browser/modules/pdf/font/font-embedder.js +1 -1
- package/dist/browser/modules/pdf/font/font-manager.d.ts +1 -1
- package/dist/browser/modules/pdf/font/font-manager.js +1 -1
- package/dist/browser/modules/pdf/pdf.js +1 -1
- package/dist/browser/modules/pdf/reader/content-interpreter.js +1 -1
- package/dist/browser/modules/pdf/reader/pdf-decrypt.js +14 -13
- package/dist/browser/modules/pdf/reader/pdf-document.js +2 -2
- package/dist/browser/modules/pdf/reader/pdf-parser.js +1 -1
- package/dist/browser/modules/pdf/reader/pdf-reader.d.ts +4 -4
- package/dist/browser/modules/pdf/reader/pdf-reader.js +8 -8
- package/dist/browser/modules/pdf/reader/stream-filters.js +1 -1
- package/dist/browser/modules/pdf/render/layout-engine.d.ts +1 -1
- package/dist/browser/modules/pdf/render/layout-engine.js +4 -4
- package/dist/browser/modules/pdf/render/page-renderer.js +1 -1
- package/dist/browser/modules/pdf/render/pdf-exporter.js +7 -7
- package/dist/browser/modules/stream/browser/collector.js +1 -1
- package/dist/browser/modules/stream/browser/compose.js +1 -1
- package/dist/browser/modules/stream/browser/duplex.js +4 -4
- package/dist/browser/modules/stream/browser/factories.d.ts +3 -3
- package/dist/browser/modules/stream/browser/factories.js +6 -6
- package/dist/browser/modules/stream/browser/passthrough.d.ts +0 -4
- package/dist/browser/modules/stream/browser/passthrough.js +0 -3
- package/dist/browser/modules/stream/browser/pipeline.d.ts +1 -1
- package/dist/browser/modules/stream/browser/pipeline.js +4 -4
- package/dist/browser/modules/stream/browser/readable.js +8 -8
- package/dist/browser/modules/stream/browser/transform.d.ts +1 -1
- package/dist/browser/modules/stream/browser/transform.js +8 -8
- package/dist/browser/modules/stream/browser/utils.js +8 -8
- package/dist/browser/modules/stream/browser/writable.js +3 -3
- package/dist/browser/modules/stream/buffered-stream.d.ts +1 -1
- package/dist/browser/modules/stream/buffered-stream.js +1 -1
- package/dist/browser/modules/stream/chunked-builder.js +1 -1
- package/dist/browser/modules/stream/node/collector.js +1 -1
- package/dist/browser/modules/stream/node/factories.d.ts +2 -2
- package/dist/browser/modules/stream/node/factories.js +1 -1
- package/dist/browser/modules/stream/node/pipeline.d.ts +1 -1
- package/dist/browser/modules/stream/node/utils.js +5 -5
- package/dist/browser/modules/stream/pull-stream.d.ts +1 -1
- package/dist/browser/modules/stream/pull-stream.js +1 -1
- package/dist/browser/modules/stream/utils.base.js +1 -1
- package/dist/browser/modules/xml/dom.js +3 -2
- package/dist/browser/modules/xml/encode.js +1 -1
- package/dist/browser/modules/xml/query.js +1 -1
- package/dist/browser/modules/xml/sax.js +5 -4
- package/dist/browser/modules/xml/to-object.js +3 -2
- package/dist/browser/utils/binary.js +7 -3
- package/dist/browser/utils/crypto.d.ts +9 -1
- package/dist/browser/utils/crypto.js +12 -4
- package/dist/browser/utils/datetime.js +11 -11
- package/dist/cjs/modules/archive/compression/compress.browser.js +9 -9
- package/dist/cjs/modules/archive/compression/crc32.js +1 -1
- package/dist/cjs/modules/archive/compression/streaming-compress.browser.js +6 -6
- package/dist/cjs/modules/archive/compression/streaming-compress.js +1 -1
- package/dist/cjs/modules/archive/crypto/aes.js +1 -1
- package/dist/cjs/modules/archive/fs/archive-file.js +9 -9
- package/dist/cjs/modules/archive/io/archive-sink.js +1 -1
- package/dist/cjs/modules/archive/io/archive-source.js +3 -3
- package/dist/cjs/modules/archive/shared/bytes.js +7 -3
- package/dist/cjs/modules/archive/tar/tar-archive.js +1 -1
- package/dist/cjs/modules/archive/tar/tar-gzip.js +2 -2
- package/dist/cjs/modules/archive/tar/tar-header.js +2 -2
- package/dist/cjs/modules/archive/tar/tar-parser.js +2 -2
- package/dist/cjs/modules/archive/unzip/parser-core.js +2 -2
- package/dist/cjs/modules/archive/unzip/remote-zip-reader.js +5 -5
- package/dist/cjs/modules/archive/unzip/stream.base.js +4 -3
- package/dist/cjs/modules/archive/unzip/stream.browser.js +7 -7
- package/dist/cjs/modules/archive/unzip/stream.js +1 -1
- package/dist/cjs/modules/archive/unzip/zip-extract-core.js +4 -4
- package/dist/cjs/modules/archive/unzip/zip-reader.js +6 -6
- package/dist/cjs/modules/archive/zip/stream.js +6 -6
- package/dist/cjs/modules/archive/zip/zip-archive.js +11 -11
- package/dist/cjs/modules/archive/zip/zip-bytes.js +4 -4
- package/dist/cjs/modules/archive/zip/zip-editor.js +9 -9
- package/dist/cjs/modules/archive/zip/zip-entry-metadata.js +1 -1
- package/dist/cjs/modules/archive/zip/zip-output-pipeline.js +1 -1
- package/dist/cjs/modules/archive/zip-spec/zip-extra-fields.js +1 -1
- package/dist/cjs/modules/archive/zip-spec/zip-parser-core.js +2 -2
- package/dist/cjs/modules/csv/format/config.js +3 -3
- package/dist/cjs/modules/csv/format/formatter.js +2 -2
- package/dist/cjs/modules/csv/parse/async.js +10 -9
- package/dist/cjs/modules/csv/parse/config.js +2 -2
- package/dist/cjs/modules/csv/parse/helpers.js +2 -2
- package/dist/cjs/modules/csv/parse/lines.js +25 -23
- package/dist/cjs/modules/csv/parse/row-processor.js +2 -2
- package/dist/cjs/modules/csv/parse/sync.js +5 -5
- package/dist/cjs/modules/csv/stream/parser.js +6 -6
- package/dist/cjs/modules/csv/worker/worker-script.generated.js +1 -1
- package/dist/cjs/modules/csv/worker/worker.entry.js +1 -1
- package/dist/cjs/modules/excel/cell.js +4 -4
- package/dist/cjs/modules/excel/column.js +2 -2
- package/dist/cjs/modules/excel/defined-names.js +14 -6
- package/dist/cjs/modules/excel/image.js +1 -1
- package/dist/cjs/modules/excel/pivot-table.js +2 -2
- package/dist/cjs/modules/excel/range.js +1 -1
- package/dist/cjs/modules/excel/row.js +2 -2
- package/dist/cjs/modules/excel/stream/hyperlink-reader.js +2 -2
- package/dist/cjs/modules/excel/stream/sheet-comments-writer.js +3 -3
- package/dist/cjs/modules/excel/stream/sheet-rels-writer.js +2 -2
- package/dist/cjs/modules/excel/stream/workbook-reader.browser.js +6 -6
- package/dist/cjs/modules/excel/stream/workbook-reader.js +3 -3
- package/dist/cjs/modules/excel/stream/workbook-writer.browser.js +13 -13
- package/dist/cjs/modules/excel/stream/workbook-writer.js +2 -2
- package/dist/cjs/modules/excel/stream/worksheet-reader.js +6 -6
- package/dist/cjs/modules/excel/stream/worksheet-writer.js +49 -20
- package/dist/cjs/modules/excel/table.js +2 -2
- package/dist/cjs/modules/excel/utils/cell-matrix.js +1 -1
- package/dist/cjs/modules/excel/utils/drawing-utils.js +1 -1
- package/dist/cjs/modules/excel/utils/encryptor.browser.js +1 -1
- package/dist/cjs/modules/excel/utils/encryptor.js +1 -1
- package/dist/cjs/modules/excel/utils/iterate-stream.js +2 -1
- package/dist/cjs/modules/excel/utils/stream-buf.js +2 -2
- package/dist/cjs/modules/excel/workbook.browser.js +13 -13
- package/dist/cjs/modules/excel/workbook.js +2 -2
- package/dist/cjs/modules/excel/worksheet.js +9 -9
- package/dist/cjs/modules/excel/xlsx/xform/base-xform.js +4 -3
- package/dist/cjs/modules/excel/xlsx/xform/book/defined-name-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/book/workbook-xform.js +5 -5
- package/dist/cjs/modules/excel/xlsx/xform/comment/comment-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/comment/comments-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/comment/vml-client-data-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/comment/vml-notes-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/comment/vml-shape-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/core/app-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/core/content-types-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/core/core-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/core/relationships-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/drawing/c-nv-pr-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/ctrl-prop-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/drawing-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/drawing/nv-pic-pr-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/pic-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/vml-drawing-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/list-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/pivot-table/cache-field-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/pivot-table/cache-field.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/pivot-table/pivot-cache-definition-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/pivot-table/pivot-cache-records-xform.js +5 -5
- package/dist/cjs/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cell-xform.js +4 -4
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf/cf-rule-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf/color-scale-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf/databar-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf/ext-lst-ref-xform.js +3 -0
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf-ext/cf-rule-ext-xform.js +10 -3
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formatting-ext-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf-ext/databar-ext-xform.js +8 -5
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf-ext/icon-set-ext-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/col-breaks-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/data-validations-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/merges.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/row-breaks-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/row-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/sheet-properties-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/worksheet-xform.js +19 -19
- package/dist/cjs/modules/excel/xlsx/xform/strings/phonetic-text-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/strings/rich-text-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/strings/shared-string-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/strings/shared-strings-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/style/border-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/style/font-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/style/style-xform.js +2 -1
- package/dist/cjs/modules/excel/xlsx/xform/style/styles-xform.js +5 -5
- package/dist/cjs/modules/excel/xlsx/xform/table/auto-filter-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/table/filter-column-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/table/table-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xlsx.browser.js +22 -22
- package/dist/cjs/modules/excel/xlsx/xlsx.js +5 -4
- package/dist/cjs/modules/pdf/builder/document-builder.js +2 -2
- package/dist/cjs/modules/pdf/builder/form-appearance.js +1 -1
- package/dist/cjs/modules/pdf/builder/pdf-editor.js +56 -11
- package/dist/cjs/modules/pdf/core/digital-signature.js +15 -7
- package/dist/cjs/modules/pdf/core/encryption.js +6 -5
- package/dist/cjs/modules/pdf/core/pdf-kdf.browser.js +19 -0
- package/dist/cjs/modules/pdf/core/pdf-kdf.js +24 -0
- package/dist/cjs/modules/pdf/core/pdf-writer.js +3 -3
- package/dist/cjs/modules/pdf/errors.js +2 -2
- package/dist/cjs/modules/pdf/font/font-embedder.js +1 -1
- package/dist/cjs/modules/pdf/font/font-manager.js +1 -1
- package/dist/cjs/modules/pdf/pdf.js +1 -1
- package/dist/cjs/modules/pdf/reader/content-interpreter.js +1 -1
- package/dist/cjs/modules/pdf/reader/pdf-decrypt.js +14 -13
- package/dist/cjs/modules/pdf/reader/pdf-document.js +2 -2
- package/dist/cjs/modules/pdf/reader/pdf-reader.js +8 -8
- package/dist/cjs/modules/pdf/reader/stream-filters.js +1 -1
- package/dist/cjs/modules/pdf/render/layout-engine.js +4 -4
- package/dist/cjs/modules/pdf/render/page-renderer.js +1 -1
- package/dist/cjs/modules/pdf/render/pdf-exporter.js +7 -7
- package/dist/cjs/modules/stream/browser/collector.js +1 -1
- package/dist/cjs/modules/stream/browser/compose.js +1 -1
- package/dist/cjs/modules/stream/browser/duplex.js +4 -4
- package/dist/cjs/modules/stream/browser/factories.js +9 -9
- package/dist/cjs/modules/stream/browser/passthrough.js +0 -3
- package/dist/cjs/modules/stream/browser/pipeline.js +4 -4
- package/dist/cjs/modules/stream/browser/readable.js +7 -7
- package/dist/cjs/modules/stream/browser/transform.js +8 -8
- package/dist/cjs/modules/stream/browser/utils.js +13 -13
- package/dist/cjs/modules/stream/browser/writable.js +3 -3
- package/dist/cjs/modules/stream/buffered-stream.js +1 -1
- package/dist/cjs/modules/stream/chunked-builder.js +1 -1
- package/dist/cjs/modules/stream/node/collector.js +1 -1
- package/dist/cjs/modules/stream/node/factories.js +2 -2
- package/dist/cjs/modules/stream/node/utils.js +15 -15
- package/dist/cjs/modules/stream/pull-stream.js +1 -1
- package/dist/cjs/modules/stream/utils.base.js +1 -1
- package/dist/cjs/modules/xml/dom.js +6 -5
- package/dist/cjs/modules/xml/encode.js +1 -1
- package/dist/cjs/modules/xml/query.js +1 -1
- package/dist/cjs/modules/xml/sax.js +7 -6
- package/dist/cjs/modules/xml/to-object.js +4 -3
- package/dist/cjs/utils/binary.js +7 -3
- package/dist/cjs/utils/crypto.js +12 -4
- package/dist/cjs/utils/datetime.js +11 -11
- package/dist/esm/modules/archive/compression/compress.browser.js +3 -3
- package/dist/esm/modules/archive/compression/crc32.js +1 -1
- package/dist/esm/modules/archive/compression/streaming-compress.browser.js +6 -6
- package/dist/esm/modules/archive/compression/streaming-compress.js +1 -1
- package/dist/esm/modules/archive/crypto/aes.js +1 -1
- package/dist/esm/modules/archive/fs/archive-file.js +9 -9
- package/dist/esm/modules/archive/io/archive-sink.js +1 -1
- package/dist/esm/modules/archive/io/archive-source.js +3 -3
- package/dist/esm/modules/archive/shared/bytes.js +7 -3
- package/dist/esm/modules/archive/tar/tar-archive.js +1 -1
- package/dist/esm/modules/archive/tar/tar-gzip.js +2 -2
- package/dist/esm/modules/archive/tar/tar-header.js +2 -2
- package/dist/esm/modules/archive/tar/tar-parser.js +2 -2
- package/dist/esm/modules/archive/unzip/parser-core.js +2 -2
- package/dist/esm/modules/archive/unzip/remote-zip-reader.js +5 -5
- package/dist/esm/modules/archive/unzip/stream.base.js +4 -3
- package/dist/esm/modules/archive/unzip/stream.browser.js +7 -7
- package/dist/esm/modules/archive/unzip/stream.js +1 -1
- package/dist/esm/modules/archive/unzip/zip-extract-core.js +4 -4
- package/dist/esm/modules/archive/unzip/zip-reader.js +6 -6
- package/dist/esm/modules/archive/zip/stream.js +6 -6
- package/dist/esm/modules/archive/zip/zip-archive.js +11 -11
- package/dist/esm/modules/archive/zip/zip-bytes.js +5 -5
- package/dist/esm/modules/archive/zip/zip-editor.js +9 -9
- package/dist/esm/modules/archive/zip/zip-entry-metadata.js +1 -1
- package/dist/esm/modules/archive/zip/zip-output-pipeline.js +1 -1
- package/dist/esm/modules/archive/zip-spec/zip-extra-fields.js +1 -1
- package/dist/esm/modules/archive/zip-spec/zip-parser-core.js +2 -2
- package/dist/esm/modules/csv/format/config.js +3 -3
- package/dist/esm/modules/csv/format/formatter.js +2 -2
- package/dist/esm/modules/csv/parse/async.js +7 -6
- package/dist/esm/modules/csv/parse/config.js +2 -2
- package/dist/esm/modules/csv/parse/helpers.js +2 -2
- package/dist/esm/modules/csv/parse/lines.js +25 -23
- package/dist/esm/modules/csv/parse/row-processor.js +2 -2
- package/dist/esm/modules/csv/parse/sync.js +5 -5
- package/dist/esm/modules/csv/stream/parser.js +6 -6
- package/dist/esm/modules/csv/worker/worker-script.generated.js +1 -1
- package/dist/esm/modules/csv/worker/worker.entry.js +1 -1
- package/dist/esm/modules/excel/cell.js +4 -4
- package/dist/esm/modules/excel/column.js +2 -2
- package/dist/esm/modules/excel/defined-names.js +14 -6
- package/dist/esm/modules/excel/image.js +1 -1
- package/dist/esm/modules/excel/pivot-table.js +2 -2
- package/dist/esm/modules/excel/range.js +1 -1
- package/dist/esm/modules/excel/row.js +2 -2
- package/dist/esm/modules/excel/stream/hyperlink-reader.js +2 -2
- package/dist/esm/modules/excel/stream/sheet-comments-writer.js +3 -3
- package/dist/esm/modules/excel/stream/sheet-rels-writer.js +2 -2
- package/dist/esm/modules/excel/stream/workbook-reader.browser.js +6 -6
- package/dist/esm/modules/excel/stream/workbook-reader.js +3 -3
- package/dist/esm/modules/excel/stream/workbook-writer.browser.js +13 -13
- package/dist/esm/modules/excel/stream/workbook-writer.js +2 -2
- package/dist/esm/modules/excel/stream/worksheet-reader.js +6 -6
- package/dist/esm/modules/excel/stream/worksheet-writer.js +49 -20
- package/dist/esm/modules/excel/table.js +2 -2
- package/dist/esm/modules/excel/utils/cell-matrix.js +1 -1
- package/dist/esm/modules/excel/utils/drawing-utils.js +1 -1
- package/dist/esm/modules/excel/utils/encryptor.browser.js +1 -1
- package/dist/esm/modules/excel/utils/encryptor.js +1 -1
- package/dist/esm/modules/excel/utils/iterate-stream.js +2 -1
- package/dist/esm/modules/excel/utils/stream-buf.js +2 -2
- package/dist/esm/modules/excel/workbook.browser.js +10 -10
- package/dist/esm/modules/excel/workbook.js +2 -2
- package/dist/esm/modules/excel/worksheet.js +9 -9
- package/dist/esm/modules/excel/xlsx/xform/base-xform.js +4 -3
- package/dist/esm/modules/excel/xlsx/xform/book/defined-name-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/book/workbook-xform.js +5 -5
- package/dist/esm/modules/excel/xlsx/xform/comment/comment-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/comment/comments-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/comment/vml-client-data-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/comment/vml-notes-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/comment/vml-shape-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/core/app-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/core/content-types-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/core/core-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/core/relationships-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/drawing/c-nv-pr-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/ctrl-prop-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/drawing-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/drawing/nv-pic-pr-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/pic-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/vml-drawing-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/list-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/pivot-table/cache-field-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/pivot-table/cache-field.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/pivot-table/pivot-cache-definition-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/pivot-table/pivot-cache-records-xform.js +5 -5
- package/dist/esm/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/cell-xform.js +4 -4
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf/cf-rule-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf/color-scale-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf/databar-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf/ext-lst-ref-xform.js +3 -0
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf-ext/cf-rule-ext-xform.js +10 -3
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formatting-ext-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf-ext/databar-ext-xform.js +8 -5
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf-ext/icon-set-ext-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/col-breaks-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/data-validations-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/merges.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/row-breaks-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/row-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/sheet-properties-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/worksheet-xform.js +19 -19
- package/dist/esm/modules/excel/xlsx/xform/strings/phonetic-text-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/strings/rich-text-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/strings/shared-string-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/strings/shared-strings-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/style/border-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/style/font-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/style/style-xform.js +2 -1
- package/dist/esm/modules/excel/xlsx/xform/style/styles-xform.js +5 -5
- package/dist/esm/modules/excel/xlsx/xform/table/auto-filter-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/table/filter-column-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/table/table-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xlsx.browser.js +22 -22
- package/dist/esm/modules/excel/xlsx/xlsx.js +5 -4
- package/dist/esm/modules/pdf/builder/document-builder.js +2 -2
- package/dist/esm/modules/pdf/builder/form-appearance.js +1 -1
- package/dist/esm/modules/pdf/builder/pdf-editor.js +56 -11
- package/dist/esm/modules/pdf/core/digital-signature.js +15 -7
- package/dist/esm/modules/pdf/core/encryption.js +6 -5
- package/dist/esm/modules/pdf/core/pdf-kdf.browser.js +15 -0
- package/dist/esm/modules/pdf/core/pdf-kdf.js +17 -0
- package/dist/esm/modules/pdf/core/pdf-writer.js +3 -3
- package/dist/esm/modules/pdf/errors.js +2 -2
- package/dist/esm/modules/pdf/font/font-embedder.js +1 -1
- package/dist/esm/modules/pdf/font/font-manager.js +1 -1
- package/dist/esm/modules/pdf/pdf.js +1 -1
- package/dist/esm/modules/pdf/reader/content-interpreter.js +1 -1
- package/dist/esm/modules/pdf/reader/pdf-decrypt.js +14 -13
- package/dist/esm/modules/pdf/reader/pdf-document.js +2 -2
- package/dist/esm/modules/pdf/reader/pdf-parser.js +1 -1
- package/dist/esm/modules/pdf/reader/pdf-reader.js +8 -8
- package/dist/esm/modules/pdf/reader/stream-filters.js +1 -1
- package/dist/esm/modules/pdf/render/layout-engine.js +4 -4
- package/dist/esm/modules/pdf/render/page-renderer.js +1 -1
- package/dist/esm/modules/pdf/render/pdf-exporter.js +7 -7
- package/dist/esm/modules/stream/browser/collector.js +1 -1
- package/dist/esm/modules/stream/browser/compose.js +1 -1
- package/dist/esm/modules/stream/browser/duplex.js +4 -4
- package/dist/esm/modules/stream/browser/factories.js +6 -6
- package/dist/esm/modules/stream/browser/passthrough.js +0 -3
- package/dist/esm/modules/stream/browser/pipeline.js +4 -4
- package/dist/esm/modules/stream/browser/readable.js +8 -8
- package/dist/esm/modules/stream/browser/transform.js +8 -8
- package/dist/esm/modules/stream/browser/utils.js +8 -8
- package/dist/esm/modules/stream/browser/writable.js +3 -3
- package/dist/esm/modules/stream/buffered-stream.js +1 -1
- package/dist/esm/modules/stream/chunked-builder.js +1 -1
- package/dist/esm/modules/stream/node/collector.js +1 -1
- package/dist/esm/modules/stream/node/factories.js +1 -1
- package/dist/esm/modules/stream/node/utils.js +5 -5
- package/dist/esm/modules/stream/pull-stream.js +1 -1
- package/dist/esm/modules/stream/utils.base.js +1 -1
- package/dist/esm/modules/xml/dom.js +3 -2
- package/dist/esm/modules/xml/encode.js +1 -1
- package/dist/esm/modules/xml/query.js +1 -1
- package/dist/esm/modules/xml/sax.js +5 -4
- package/dist/esm/modules/xml/to-object.js +3 -2
- package/dist/esm/utils/binary.js +7 -3
- package/dist/esm/utils/crypto.js +12 -4
- package/dist/esm/utils/datetime.js +11 -11
- package/dist/iife/excelts.iife.js +43364 -43159
- package/dist/iife/excelts.iife.js.map +1 -1
- package/dist/iife/excelts.iife.min.js +149 -149
- package/dist/types/modules/archive/compression/worker-pool/pool.browser.d.ts +1 -1
- package/dist/types/modules/archive/fs/types.d.ts +3 -3
- package/dist/types/modules/archive/tar/tar-archive.d.ts +1 -1
- package/dist/types/modules/archive/unzip/progress.d.ts +2 -2
- package/dist/types/modules/archive/unzip/remote-zip-reader.d.ts +2 -2
- package/dist/types/modules/archive/unzip/stream.base.d.ts +1 -1
- package/dist/types/modules/archive/unzip/stream.browser.d.ts +2 -2
- package/dist/types/modules/archive/unzip/stream.d.ts +2 -2
- package/dist/types/modules/archive/unzip/zip-parser.d.ts +1 -1
- package/dist/types/modules/archive/unzip/zip-reader.d.ts +4 -4
- package/dist/types/modules/archive/zip/progress.d.ts +1 -1
- package/dist/types/modules/archive/zip/stream.d.ts +3 -3
- package/dist/types/modules/archive/zip/zip-archive.d.ts +4 -4
- package/dist/types/modules/archive/zip/zip-bytes.d.ts +1 -1
- package/dist/types/modules/archive/zip/zip-editor.d.ts +6 -6
- package/dist/types/modules/archive/zip/zip-entry-options.d.ts +2 -2
- package/dist/types/modules/archive/zip/zip-output-pipeline.d.ts +1 -1
- package/dist/types/modules/archive/zip-spec/zip-parser-core.d.ts +1 -1
- package/dist/types/modules/csv/parse/helpers.d.ts +1 -1
- package/dist/types/modules/csv/parse/sync.d.ts +1 -1
- package/dist/types/modules/csv/worker/worker-script.generated.d.ts +1 -1
- package/dist/types/modules/excel/cell.d.ts +3 -3
- package/dist/types/modules/excel/column.d.ts +1 -1
- package/dist/types/modules/excel/defined-names.d.ts +2 -2
- package/dist/types/modules/excel/row.d.ts +1 -1
- package/dist/types/modules/excel/stream/hyperlink-reader.d.ts +1 -1
- package/dist/types/modules/excel/stream/workbook-reader.browser.d.ts +4 -4
- package/dist/types/modules/excel/stream/workbook-reader.d.ts +2 -2
- package/dist/types/modules/excel/stream/workbook-writer.browser.d.ts +4 -4
- package/dist/types/modules/excel/stream/workbook-writer.d.ts +1 -1
- package/dist/types/modules/excel/stream/worksheet-reader.d.ts +2 -2
- package/dist/types/modules/excel/stream/worksheet-writer.d.ts +14 -4
- package/dist/types/modules/excel/utils/stream-buf.d.ts +5 -5
- package/dist/types/modules/excel/utils/text-metrics.d.ts +1 -1
- package/dist/types/modules/excel/workbook.browser.d.ts +7 -7
- package/dist/types/modules/excel/worksheet.d.ts +6 -6
- package/dist/types/modules/excel/xlsx/xform/book/sheet-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/comment/comment-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/ctrl-prop-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/vml-drawing-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/pivot-table/cache-field-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/pivot-table/pivot-cache-definition-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/pivot-table/pivot-cache-records-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/sheet/cf/cf-rule-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/cf/color-scale-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/cf/databar-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/cf-ext/cf-rule-ext-xform.d.ts +5 -0
- package/dist/types/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formatting-ext-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/cf-ext/databar-ext-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/sheet/cf-ext/icon-set-ext-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/strings/rich-text-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xlsx.browser.d.ts +2 -2
- package/dist/types/modules/pdf/core/pdf-kdf.browser.d.ts +10 -0
- package/dist/types/modules/pdf/core/pdf-kdf.d.ts +12 -0
- package/dist/types/modules/pdf/core/pdf-writer.d.ts +1 -1
- package/dist/types/modules/pdf/errors.d.ts +1 -2
- package/dist/types/modules/pdf/font/font-embedder.d.ts +1 -1
- package/dist/types/modules/pdf/font/font-manager.d.ts +1 -1
- package/dist/types/modules/pdf/reader/pdf-reader.d.ts +4 -4
- package/dist/types/modules/pdf/render/layout-engine.d.ts +1 -1
- package/dist/types/modules/stream/browser/factories.d.ts +3 -3
- package/dist/types/modules/stream/browser/passthrough.d.ts +0 -4
- package/dist/types/modules/stream/browser/pipeline.d.ts +1 -1
- package/dist/types/modules/stream/browser/transform.d.ts +1 -1
- package/dist/types/modules/stream/buffered-stream.d.ts +1 -1
- package/dist/types/modules/stream/node/factories.d.ts +2 -2
- package/dist/types/modules/stream/node/pipeline.d.ts +1 -1
- package/dist/types/modules/stream/pull-stream.d.ts +1 -1
- package/dist/types/utils/crypto.d.ts +9 -1
- package/package.json +5 -13
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
* Worker Pool: Optional off-main-thread compression/decompression
|
|
12
12
|
* to prevent UI blocking for large files.
|
|
13
13
|
*/
|
|
14
|
-
import { concatUint8Arrays } from "../../../utils/binary.js";
|
|
15
14
|
import { compressWithStream, decompressWithStream, transformWithStream, hasCompressionStream, hasDeflateRawCompressionStream, hasDeflateRawDecompressionStream,
|
|
16
15
|
// GZIP
|
|
17
16
|
GZIP_ID1, GZIP_ID2, GZIP_CM_DEFLATE, GZIP_FLAG_FEXTRA, GZIP_FLAG_FNAME, GZIP_FLAG_FCOMMENT, GZIP_FLAG_FHCRC, GZIP_MIN_SIZE, hasGzipCompressionStream, hasGzipDecompressionStream,
|
|
@@ -19,12 +18,13 @@ GZIP_ID1, GZIP_ID2, GZIP_CM_DEFLATE, GZIP_FLAG_FEXTRA, GZIP_FLAG_FNAME, GZIP_FLA
|
|
|
19
18
|
ZLIB_CM_DEFLATE, ZLIB_CINFO_MAX, ZLIB_MIN_SIZE, isZlibData, detectCompressionFormat, adler32,
|
|
20
19
|
// Zlib helpers (shared)
|
|
21
20
|
hasDeflateCompressionStream, hasDeflateDecompressionStream, getZlibHeader, buildZlibTrailer, parseZlibHeader, readZlibTrailer, verifyAdler32 } from "./compress.base.js";
|
|
21
|
+
import { crc32 } from "./crc32.browser.js";
|
|
22
22
|
import { inflateRaw, deflateRawCompressed, deflateRawStore } from "./deflate-fallback.js";
|
|
23
|
+
import { deflateWithPool, inflateWithPool, hasWorkerSupport } from "./worker-pool/index.browser.js";
|
|
23
24
|
import { DEFAULT_COMPRESS_LEVEL } from "../shared/defaults.js";
|
|
24
25
|
import { createAbortError, isAbortError, throwIfAborted } from "../shared/errors.js";
|
|
25
|
-
import { deflateWithPool, inflateWithPool, hasWorkerSupport } from "./worker-pool/index.browser.js";
|
|
26
|
-
import { crc32 } from "./crc32.browser.js";
|
|
27
26
|
import { readUint32LE } from "../zip-spec/binary.js";
|
|
27
|
+
import { concatUint8Arrays } from "../../../utils/binary.js";
|
|
28
28
|
// Re-export shared types and GZIP utilities
|
|
29
29
|
export {};
|
|
30
30
|
export { hasCompressionStream, hasWorkerSupport,
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x + 1
|
|
9
9
|
* Represented as 0xEDB88320 in reversed (LSB-first) form
|
|
10
10
|
*/
|
|
11
|
-
import { isNode } from "../../../utils/env.js";
|
|
12
11
|
import { crc32JS, crc32UpdateJS, crc32Finalize } from "./crc32.base.js";
|
|
12
|
+
import { isNode } from "../../../utils/env.js";
|
|
13
13
|
// Lazy-loaded zlib module for Node.js
|
|
14
14
|
let _zlib = null;
|
|
15
15
|
let _zlibLoading = null;
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
*
|
|
10
10
|
* API compatible with Node.js version - supports .on("data"), .on("end"), .write(callback), .end()
|
|
11
11
|
*/
|
|
12
|
-
import { EventEmitter } from "../../../utils/event-emitter.js";
|
|
13
|
-
import { deflateRawCompressed, inflateRaw, SyncDeflater as PureJsSyncDeflater } from "./deflate-fallback.js";
|
|
14
12
|
import { hasDeflateRawWebStreams, hasDeflateRawCompressionStream, hasGzipCompressionStream, hasGzipDecompressionStream, hasDeflateCompressionStream, hasDeflateDecompressionStream } from "./compress.base.js";
|
|
15
|
-
import { concatUint8Arrays } from "../../../utils/binary.js";
|
|
16
|
-
import { DEFAULT_COMPRESS_LEVEL } from "../shared/defaults.js";
|
|
17
|
-
import { hasWorkerSupport, getDefaultWorkerPool } from "./worker-pool/index.browser.js";
|
|
18
13
|
import { gzipSync, gunzipSync, zlibSync, unzlibSync } from "./compress.browser.js";
|
|
14
|
+
import { deflateRawCompressed, inflateRaw, SyncDeflater as PureJsSyncDeflater } from "./deflate-fallback.js";
|
|
15
|
+
import { hasWorkerSupport, getDefaultWorkerPool } from "./worker-pool/index.browser.js";
|
|
16
|
+
import { DEFAULT_COMPRESS_LEVEL } from "../shared/defaults.js";
|
|
17
|
+
import { concatUint8Arrays } from "../../../utils/binary.js";
|
|
18
|
+
import { EventEmitter } from "../../../utils/event-emitter.js";
|
|
19
19
|
import { toError } from "./streaming-compress.base.js";
|
|
20
20
|
import { EMPTY_UINT8ARRAY } from "../shared/bytes.js";
|
|
21
21
|
export { hasWorkerSupport };
|
|
@@ -139,7 +139,7 @@ function createNativeWebStreamCodec(format, isCompress) {
|
|
|
139
139
|
await writer.close();
|
|
140
140
|
await readLoop;
|
|
141
141
|
if (readLoopError) {
|
|
142
|
-
throw readLoopError;
|
|
142
|
+
throw toError(readLoopError);
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
abort: err => {
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Each write() immediately produces compressed output without waiting for end().
|
|
6
6
|
*/
|
|
7
7
|
import { createDeflateRaw, createInflateRaw, createGzip, createGunzip, createDeflate, createInflate, deflateRawSync, constants } from "zlib";
|
|
8
|
-
import { Transform } from "../../stream/index.browser.js";
|
|
9
8
|
import { DEFAULT_COMPRESS_LEVEL } from "../shared/defaults.js";
|
|
9
|
+
import { Transform } from "../../stream/index.browser.js";
|
|
10
10
|
/**
|
|
11
11
|
* Generic wrapper around zlib streams that flushes after every write.
|
|
12
12
|
* This ensures true streaming behavior - data is emitted immediately, not buffered.
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* - Task cancellation via AbortSignal
|
|
13
13
|
* - Graceful error handling and recovery
|
|
14
14
|
*/
|
|
15
|
-
import type { WorkerPoolOptions, WorkerPoolStats, TaskOptions, TaskResult, WorkerTaskType } from "./types.js";
|
|
16
15
|
import { hasWorkerSupport } from "./pool.base.js";
|
|
16
|
+
import type { WorkerPoolOptions, WorkerPoolStats, TaskOptions, TaskResult, WorkerTaskType } from "./types.js";
|
|
17
17
|
export type { WorkerPoolOptions, WorkerPoolStats, TaskOptions, TaskResult, WorkerTaskType };
|
|
18
18
|
export { hasWorkerSupport };
|
|
19
19
|
export interface WorkerPoolStream {
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* Works in both Node.js and browsers using the Web Crypto API.
|
|
15
15
|
*/
|
|
16
|
+
import { toArrayBuffer } from "../shared/text.js";
|
|
16
17
|
import { stringToUint8Array as encodeUtf8 } from "../../../utils/binary.js";
|
|
17
18
|
import { randomBytes } from "../../../utils/crypto.browser.js";
|
|
18
|
-
import { toArrayBuffer } from "../shared/text.js";
|
|
19
19
|
/**
|
|
20
20
|
* AES vendor ID for WinZip format.
|
|
21
21
|
*/
|
|
@@ -29,21 +29,21 @@
|
|
|
29
29
|
*
|
|
30
30
|
* @module
|
|
31
31
|
*/
|
|
32
|
+
import { createReadStream, createWriteStream } from "node:fs";
|
|
32
33
|
import * as path from "node:path";
|
|
33
|
-
import { TarArchive, TarReader } from "../tar/tar-archive.js";
|
|
34
|
-
import { isDirectory as isTarDirectory } from "../tar/tar-entry-info.js";
|
|
35
|
-
import { textEncoder as utf8Encoder } from "../../../utils/binary.js";
|
|
36
34
|
import { gzipSync, gunzipSync } from "../compression/compress.browser.js";
|
|
37
35
|
import { createGzipStream } from "../compression/streaming-compress.browser.js";
|
|
38
|
-
import { ZipParser } from "../unzip/zip-parser.js";
|
|
39
|
-
import { createZip, createZipSync } from "../zip/zip-bytes.js";
|
|
40
|
-
import { ZipArchive } from "../zip/zip-archive.js";
|
|
41
|
-
import { collectUint8ArrayStream, toAsyncIterable } from "../io/archive-source.js";
|
|
42
36
|
import { pipeIterableToSink } from "../io/archive-sink.js";
|
|
37
|
+
import { collectUint8ArrayStream, toAsyncIterable } from "../io/archive-source.js";
|
|
38
|
+
import { EMPTY_UINT8ARRAY } from "../shared/bytes.js";
|
|
39
|
+
import { TarArchive, TarReader } from "../tar/tar-archive.js";
|
|
40
|
+
import { isDirectory as isTarDirectory } from "../tar/tar-entry-info.js";
|
|
41
|
+
import { ZipParser } from "../unzip/zip-parser.js";
|
|
43
42
|
import { joinZipPath, normalizeZipPath } from "../zip-spec/zip-path.js";
|
|
43
|
+
import { ZipArchive } from "../zip/zip-archive.js";
|
|
44
|
+
import { createZip, createZipSync } from "../zip/zip-bytes.js";
|
|
44
45
|
import { ZipEditView } from "../zip/zip-edit-view.js";
|
|
45
|
-
import {
|
|
46
|
-
import { createReadStream, createWriteStream } from "node:fs";
|
|
46
|
+
import { textEncoder as utf8Encoder } from "../../../utils/binary.js";
|
|
47
47
|
import { traverseDirectory, traverseDirectorySync, glob as globFiles, globSync as globFilesSync, ensureDir, ensureDirSync, fileExists, fileExistsSync, readFileBytes, readFileBytesSync, writeFileBytes, writeFileBytesSync, setFileTime, setFileTimeSync, safeStats, safeStatsSync, createSymlink, createSymlinkSync, chmod, chmodSync, supportsUnixPermissions } from "../../../utils/fs.browser.js";
|
|
48
48
|
// =============================================================================
|
|
49
49
|
// Transform Helpers (internal)
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module
|
|
8
8
|
*/
|
|
9
|
-
import type { ZipTimestampMode } from "../zip-spec/timestamps.js";
|
|
10
|
-
import type { Zip64Mode } from "../zip-spec/zip-records.js";
|
|
11
9
|
import type { ZipEncryptionMethod } from "../crypto/index.js";
|
|
12
|
-
import type { ZipPathOptions } from "../zip-spec/zip-path.js";
|
|
13
10
|
import type { ZipStringEncoding } from "../shared/text.js";
|
|
14
11
|
import type { ArchiveFormat } from "../shared/types.js";
|
|
12
|
+
import type { ZipTimestampMode } from "../zip-spec/timestamps.js";
|
|
13
|
+
import type { ZipPathOptions } from "../zip-spec/zip-path.js";
|
|
14
|
+
import type { Zip64Mode } from "../zip-spec/zip-records.js";
|
|
15
15
|
export type { ArchiveFormat };
|
|
16
16
|
/** Entry data passed to transform function */
|
|
17
17
|
export interface TransformEntryData {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { concatUint8Arrays } from "../../../utils/binary.js";
|
|
2
1
|
import { onceEvent } from "../../stream/internal/event-utils.js";
|
|
3
2
|
import { isWritableStream } from "../../stream/internal/type-guards.js";
|
|
3
|
+
import { concatUint8Arrays } from "../../../utils/binary.js";
|
|
4
4
|
export async function pipeIterableToSink(iterable, sink) {
|
|
5
5
|
if (isWritableStream(sink)) {
|
|
6
6
|
const writer = sink.getWriter();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { stringToUint8Array as encodeUtf8, concatUint8Arrays } from "../../../utils/binary.js";
|
|
2
|
-
import { isAsyncIterable, isReadableStream } from "../../stream/internal/type-guards.js";
|
|
3
|
-
import { createAbortError } from "../shared/errors.js";
|
|
4
1
|
import { EMPTY_UINT8ARRAY } from "../shared/bytes.js";
|
|
2
|
+
import { createAbortError } from "../shared/errors.js";
|
|
3
|
+
import { isAsyncIterable, isReadableStream } from "../../stream/internal/type-guards.js";
|
|
4
|
+
import { stringToUint8Array as encodeUtf8, concatUint8Arrays } from "../../../utils/binary.js";
|
|
5
5
|
/**
|
|
6
6
|
* Convert an ArchiveSource to a web ReadableStream of Uint8Array chunks.
|
|
7
7
|
*
|
|
@@ -78,13 +78,17 @@ export function indexOfUint8ArrayPattern(buffer, pattern, startIndex = 0) {
|
|
|
78
78
|
}
|
|
79
79
|
return -1;
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
for (let i = start; i <= bufLen - patLen; i++) {
|
|
82
|
+
let matched = true;
|
|
82
83
|
for (let j = 0; j < patLen; j++) {
|
|
83
84
|
if (buffer[i + j] !== pattern[j]) {
|
|
84
|
-
|
|
85
|
+
matched = false;
|
|
86
|
+
break;
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
|
-
|
|
89
|
+
if (matched) {
|
|
90
|
+
return i;
|
|
91
|
+
}
|
|
88
92
|
}
|
|
89
93
|
return -1;
|
|
90
94
|
}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Provides TarArchive and TarReader classes with the same interface
|
|
5
5
|
* as ZipArchive and ZipReader, allowing seamless format switching.
|
|
6
6
|
*/
|
|
7
|
-
import type { ArchiveSource } from "../io/archive-source.js";
|
|
8
7
|
import { type ArchiveSink } from "../io/archive-sink.js";
|
|
8
|
+
import type { ArchiveSource } from "../io/archive-source.js";
|
|
9
9
|
import type { ArchiveProgressPhase, ArchiveStreamOptions, ArchiveOperationBase } from "../shared/progress.js";
|
|
10
10
|
import { type TarType } from "./tar-constants.js";
|
|
11
11
|
import { type TarEntryInfo } from "./tar-entry-info.js";
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Provides TarArchive and TarReader classes with the same interface
|
|
5
5
|
* as ZipArchive and ZipReader, allowing seamless format switching.
|
|
6
6
|
*/
|
|
7
|
-
import { toAsyncIterable, toUint8Array, isInMemoryArchiveSource } from "../io/archive-source.js";
|
|
8
7
|
import { collect, pipeIterableToSink } from "../io/archive-sink.js";
|
|
8
|
+
import { toAsyncIterable, toUint8Array, isInMemoryArchiveSource } from "../io/archive-source.js";
|
|
9
9
|
import { createLinkedAbortController } from "../shared/errors.js";
|
|
10
10
|
import { concatUint8Arrays, textEncoder, getTextDecoder } from "../../../utils/binary.js";
|
|
11
11
|
import { TAR_TYPE, DEFAULT_TAR_MODE, DEFAULT_TAR_DIR_MODE } from "./tar-constants.js";
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* Provides utilities for creating and extracting gzip-compressed TAR archives.
|
|
5
5
|
* Uses the unified compress module for compression/decompression.
|
|
6
6
|
*/
|
|
7
|
-
import { DEFAULT_COMPRESS_LEVEL } from "../shared/defaults.js";
|
|
8
7
|
import { gunzip } from "../compression/compress.browser.js";
|
|
9
8
|
import { createGzipStream } from "../compression/streaming-compress.browser.js";
|
|
10
|
-
import { toUint8Array, isInMemoryArchiveSource, toAsyncIterable } from "../io/archive-source.js";
|
|
11
9
|
import { collect } from "../io/archive-sink.js";
|
|
10
|
+
import { toUint8Array, isInMemoryArchiveSource, toAsyncIterable } from "../io/archive-source.js";
|
|
11
|
+
import { DEFAULT_COMPRESS_LEVEL } from "../shared/defaults.js";
|
|
12
12
|
import { TarArchive, addEntries } from "./tar-archive.js";
|
|
13
13
|
import { parseTar, untar } from "./tar-parser.js";
|
|
14
14
|
/**
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Functions for encoding and decoding TAR headers.
|
|
5
5
|
*/
|
|
6
|
-
import { TAR_BLOCK_SIZE, TAR_HEADER, TAR_TYPE, USTAR_MAGIC, USTAR_VERSION, DEFAULT_TAR_MODE, DEFAULT_TAR_DIR_MODE, DEFAULT_TAR_UID, DEFAULT_TAR_GID, DEFAULT_TAR_UNAME, DEFAULT_TAR_GNAME } from "./tar-constants.js";
|
|
7
|
-
import { textEncoder, textDecoder } from "../../../utils/binary.js";
|
|
8
6
|
import { EMPTY_UINT8ARRAY } from "../shared/bytes.js";
|
|
7
|
+
import { textEncoder, textDecoder } from "../../../utils/binary.js";
|
|
8
|
+
import { TAR_BLOCK_SIZE, TAR_HEADER, TAR_TYPE, USTAR_MAGIC, USTAR_VERSION, DEFAULT_TAR_MODE, DEFAULT_TAR_DIR_MODE, DEFAULT_TAR_UID, DEFAULT_TAR_GID, DEFAULT_TAR_UNAME, DEFAULT_TAR_GNAME } from "./tar-constants.js";
|
|
9
9
|
/**
|
|
10
10
|
* Encode a string to a fixed-size field (null-terminated if space allows)
|
|
11
11
|
*/
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Parses TAR archives from various input sources.
|
|
5
5
|
* Supports POSIX ustar, GNU tar (long filenames), and PAX extensions.
|
|
6
6
|
*/
|
|
7
|
+
import { EMPTY_UINT8ARRAY } from "../shared/bytes.js";
|
|
8
|
+
import { textDecoder } from "../../../utils/binary.js";
|
|
7
9
|
import { TAR_BLOCK_SIZE, TAR_TYPE } from "./tar-constants.js";
|
|
8
10
|
import { decodeHeader, isZeroBlock, calculatePadding } from "./tar-header.js";
|
|
9
|
-
import { textDecoder } from "../../../utils/binary.js";
|
|
10
|
-
import { EMPTY_UINT8ARRAY } from "../shared/bytes.js";
|
|
11
11
|
// Helper to strip trailing null characters without using control char regex
|
|
12
12
|
const NULL_CHAR = String.fromCharCode(0);
|
|
13
13
|
function stripTrailingNulls(str) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { parseDosDateTimeUTC, resolveZipLastModifiedDateFromUnixSeconds } from "../zip-spec/timestamps.js";
|
|
2
|
-
import { parseFormattedTyped as parseBuffer, readUint32LE, writeUint32LE } from "../zip-spec/binary.js";
|
|
3
1
|
import { indexOfUint8ArrayPattern } from "../shared/bytes.js";
|
|
2
|
+
import { parseFormattedTyped as parseBuffer, readUint32LE, writeUint32LE } from "../zip-spec/binary.js";
|
|
3
|
+
import { parseDosDateTimeUTC, resolveZipLastModifiedDateFromUnixSeconds } from "../zip-spec/timestamps.js";
|
|
4
4
|
import { parseZipExtraFields } from "../zip-spec/zip-extra-fields.js";
|
|
5
5
|
import { CENTRAL_DIR_HEADER_SIG, DATA_DESCRIPTOR_SIG, END_OF_CENTRAL_DIR_SIG, FLAG_UTF8, LOCAL_FILE_HEADER_SIG, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIG, ZIP64_END_OF_CENTRAL_DIR_SIG } from "../zip-spec/zip-records.js";
|
|
6
6
|
// Shared parseBuffer() formats
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { UnzipEntry } from "./index.js";
|
|
2
|
-
import type { ZipEntryType } from "../zip-spec/zip-entry-info.js";
|
|
3
1
|
import type { ArchiveProgressPhase, ArchiveStreamOptions, ArchiveOperationBase } from "../shared/progress.js";
|
|
2
|
+
import type { ZipEntryType } from "../zip-spec/zip-entry-info.js";
|
|
3
|
+
import type { UnzipEntry } from "./index.js";
|
|
4
4
|
/**
|
|
5
5
|
* Progress phase for unzip operations.
|
|
6
6
|
*/
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @module
|
|
15
15
|
*/
|
|
16
|
-
import type { ZipEntryInfo } from "../zip-spec/zip-entry-info.js";
|
|
17
|
-
import { type ZipStringEncoding } from "../shared/text.js";
|
|
18
16
|
import type { RandomAccessReader, HttpRangeReaderOptions } from "../io/random-access.js";
|
|
17
|
+
import { type ZipStringEncoding } from "../shared/text.js";
|
|
18
|
+
import type { ZipEntryInfo } from "../zip-spec/zip-entry-info.js";
|
|
19
19
|
/**
|
|
20
20
|
* Options for RemoteZipReader
|
|
21
21
|
*/
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @module
|
|
15
15
|
*/
|
|
16
|
-
import { BinaryReader } from "../zip-spec/binary.js";
|
|
17
16
|
import { crc32 } from "../compression/crc32.browser.js";
|
|
18
17
|
import { zipCryptoVerifyPassword, aesVerifyPassword, AES_PASSWORD_VERIFY_LENGTH, AES_SALT_LENGTH, ZIP_CRYPTO_HEADER_SIZE } from "../crypto/index.js";
|
|
19
|
-
import { processEntryData, processEntryDataStream, LOCAL_HEADER_FIXED_SIZE } from "./zip-extract-core.js";
|
|
20
|
-
import { EMPTY_UINT8ARRAY } from "../shared/bytes.js";
|
|
21
18
|
import { pipeIterableToSink } from "../io/archive-sink.js";
|
|
22
|
-
import {
|
|
19
|
+
import { HttpRangeReader } from "../io/random-access.js";
|
|
20
|
+
import { EMPTY_UINT8ARRAY } from "../shared/bytes.js";
|
|
23
21
|
import { resolveZipStringCodec } from "../shared/text.js";
|
|
22
|
+
import { processEntryData, processEntryDataStream, LOCAL_HEADER_FIXED_SIZE } from "./zip-extract-core.js";
|
|
23
|
+
import { BinaryReader } from "../zip-spec/binary.js";
|
|
24
|
+
import { EOCD_MAX_SEARCH_SIZE, ZIP64_EOCD_LOCATOR_SIZE, findEOCDSignature, parseEOCD, parseZIP64EOCDLocator, parseZIP64EOCD, applyZIP64ToEOCD, parseCentralDirectory } from "../zip-spec/zip-parser-core.js";
|
|
24
25
|
import { LOCAL_FILE_HEADER_SIG } from "../zip-spec/zip-records.js";
|
|
25
|
-
import { HttpRangeReader } from "../io/random-access.js";
|
|
26
26
|
/**
|
|
27
27
|
* Error thrown when CRC32 validation fails
|
|
28
28
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Duplex, PassThrough, Transform, type Readable } from "../../stream/index.js";
|
|
2
1
|
import { ByteQueue } from "../shared/byte-queue.js";
|
|
2
|
+
import { Duplex, PassThrough, Transform, type Readable } from "../../stream/index.js";
|
|
3
3
|
import { type CrxHeader, type EntryProps, type EntryVars, type ParseDriverState, type ParseOptions, type ZipExtraFields } from "./parser-core.js";
|
|
4
4
|
export declare const DEFAULT_UNZIP_STREAM_HIGH_WATER_MARK: number;
|
|
5
5
|
export type DrainStream = Transform & {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Duplex, PassThrough, Transform, pipeline, finished } from "../../stream/index.browser.js";
|
|
2
|
-
import { concatUint8Arrays, textEncoder as utf8Encoder } from "../../../utils/binary.js";
|
|
3
1
|
import { ByteQueue } from "../shared/byte-queue.js";
|
|
4
2
|
import { EMPTY_UINT8ARRAY } from "../shared/bytes.js";
|
|
5
3
|
import { decodeZipPath, resolveZipStringCodec } from "../shared/text.js";
|
|
6
4
|
import { PatternScanner } from "./pattern-scanner.js";
|
|
5
|
+
import { Duplex, PassThrough, Transform, pipeline, finished } from "../../stream/index.browser.js";
|
|
6
|
+
import { concatUint8Arrays, textEncoder as utf8Encoder } from "../../../utils/binary.js";
|
|
7
|
+
import { toError } from "../../../utils/errors.js";
|
|
7
8
|
/**
|
|
8
9
|
* Returns true when `err` is the Node.js ERR_STREAM_PREMATURE_CLOSE error.
|
|
9
10
|
*
|
|
@@ -742,7 +743,7 @@ async function pumpKnownCompressedSizeToEntry(io, inflater, entry, compressedSiz
|
|
|
742
743
|
inflater.pipe(entry);
|
|
743
744
|
while (remaining > 0) {
|
|
744
745
|
if (err) {
|
|
745
|
-
throw err;
|
|
746
|
+
throw toError(err);
|
|
746
747
|
}
|
|
747
748
|
// If downstream decides to autodrain mid-entry (common when a consumer bails out
|
|
748
749
|
// early due to a limit), stop inflating and just skip the remaining compressed bytes.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Falls back to pure JavaScript implementation for older browsers.
|
|
6
6
|
* Uses the browser Duplex stream implementation for compatibility.
|
|
7
7
|
*/
|
|
8
|
-
import { Duplex } from "../../stream/index.js";
|
|
9
|
-
import { type PullStreamPublicApi, type InflateFactory, type ZipEntry } from "./stream.base.js";
|
|
10
8
|
import { type CrxHeader, type EntryProps, type EntryVars, type ParseOptions } from "./parser-core.js";
|
|
9
|
+
import { type PullStreamPublicApi, type InflateFactory, type ZipEntry } from "./stream.base.js";
|
|
10
|
+
import { Duplex } from "../../stream/index.js";
|
|
11
11
|
export type { CrxHeader, EntryProps, EntryVars, ParseOptions, ZipEntry };
|
|
12
12
|
export type ParseStream = Duplex & {
|
|
13
13
|
promise(): Promise<void>;
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
* Falls back to pure JavaScript implementation for older browsers.
|
|
6
6
|
* Uses the browser Duplex stream implementation for compatibility.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { concatUint8Arrays } from "../../../utils/binary.js";
|
|
10
|
-
import { toError } from "../shared/errors.js";
|
|
11
|
-
import { runParseLoop, DEFAULT_UNZIP_STREAM_HIGH_WATER_MARK, streamUntilValidatedDataDescriptor } from "./stream.base.js";
|
|
12
|
-
import { DATA_DESCRIPTOR_SIGNATURE_BYTES } from "./parser-core.js";
|
|
13
|
-
import { PatternScanner } from "./pattern-scanner.js";
|
|
8
|
+
import { hasDeflateRawDecompressionStream } from "../compression/compress.base.js";
|
|
14
9
|
import { inflateRaw as fallbackInflateRaw } from "../compression/deflate-fallback.js";
|
|
15
10
|
import { ByteQueue } from "../shared/byte-queue.js";
|
|
16
11
|
import { EMPTY_UINT8ARRAY } from "../shared/bytes.js";
|
|
17
|
-
import {
|
|
12
|
+
import { toError } from "../shared/errors.js";
|
|
13
|
+
import { DATA_DESCRIPTOR_SIGNATURE_BYTES } from "./parser-core.js";
|
|
14
|
+
import { PatternScanner } from "./pattern-scanner.js";
|
|
15
|
+
import { runParseLoop, DEFAULT_UNZIP_STREAM_HIGH_WATER_MARK, streamUntilValidatedDataDescriptor } from "./stream.base.js";
|
|
16
|
+
import { Duplex, PassThrough } from "../../stream/index.browser.js";
|
|
17
|
+
import { concatUint8Arrays } from "../../../utils/binary.js";
|
|
18
18
|
// =============================================================================
|
|
19
19
|
// Browser InflateRaw using DecompressionStream
|
|
20
20
|
// =============================================================================
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Duplex } from "../../stream/index.js";
|
|
2
|
-
import { type PullStreamPublicApi, type InflateFactory } from "./stream.base.js";
|
|
3
1
|
import { type CrxHeader, type ParseOptions } from "./parser-core.js";
|
|
2
|
+
import { type PullStreamPublicApi, type InflateFactory } from "./stream.base.js";
|
|
3
|
+
import type { Duplex } from "../../stream/index.js";
|
|
4
4
|
export type { CrxHeader, EntryProps, EntryVars, ParseOptions } from "./parser-core.js";
|
|
5
5
|
export type { ZipEntry } from "./stream.base.js";
|
|
6
6
|
export type ParseStream = Duplex & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import zlib from "zlib";
|
|
2
|
-
import { PullStream, runParseLoop, streamUntilValidatedDataDescriptor } from "./stream.base.js";
|
|
3
2
|
import { DATA_DESCRIPTOR_SIGNATURE_BYTES } from "./parser-core.js";
|
|
3
|
+
import { PullStream, runParseLoop, streamUntilValidatedDataDescriptor } from "./stream.base.js";
|
|
4
4
|
/**
|
|
5
5
|
* Creates an InflateRaw stream using Node.js native zlib.
|
|
6
6
|
*/
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { decompress, decompressSync } from "../compression/compress.browser.js";
|
|
13
13
|
import { crc32, crc32Finalize, crc32Update } from "../compression/crc32.browser.js";
|
|
14
|
+
import { createInflateStream } from "../compression/streaming-compress.browser.js";
|
|
14
15
|
import { ZIP_CRYPTO_HEADER_SIZE, aesDecrypt, zipCryptoDecrypt, zipCryptoDecryptByte, zipCryptoInitKeys } from "../crypto/index.js";
|
|
16
|
+
import { collect } from "../io/archive-sink.js";
|
|
17
|
+
import { createAsyncQueue } from "../shared/async-queue.js";
|
|
18
|
+
import { Crc32MismatchError, DecryptionError, EntrySizeMismatchError, PasswordRequiredError, UnsupportedCompressionError, throwIfAborted, toError } from "../shared/errors.js";
|
|
15
19
|
import { BinaryReader } from "../zip-spec/binary.js";
|
|
16
20
|
import { COMPRESSION_DEFLATE, COMPRESSION_STORE, LOCAL_FILE_HEADER_SIG } from "../zip-spec/zip-records.js";
|
|
17
|
-
import { Crc32MismatchError, DecryptionError, EntrySizeMismatchError, PasswordRequiredError, UnsupportedCompressionError, throwIfAborted, toError } from "../shared/errors.js";
|
|
18
|
-
import { createAsyncQueue } from "../shared/async-queue.js";
|
|
19
|
-
import { createInflateStream } from "../compression/streaming-compress.browser.js";
|
|
20
|
-
import { collect } from "../io/archive-sink.js";
|
|
21
21
|
/**
|
|
22
22
|
* Local file header fixed size (30 bytes)
|
|
23
23
|
*/
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Works in both Node.js and browser environments
|
|
4
4
|
* No dependency on Node.js stream module
|
|
5
5
|
*/
|
|
6
|
-
import type { ZipEntryInfo } from "../zip-spec/zip-entry-info.js";
|
|
7
6
|
import type { ZipStringEncoding } from "../shared/text.js";
|
|
7
|
+
import type { ZipEntryInfo } from "../zip-spec/zip-entry-info.js";
|
|
8
8
|
export type { ZipEntryInfo };
|
|
9
9
|
/**
|
|
10
10
|
* ZIP parsing options
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type ZipEntryInfo } from "./zip-parser.js";
|
|
2
|
-
import { type ParseOptions, type ZipEntry as ParseZipEntry } from "./stream.js";
|
|
3
1
|
import { type ArchiveSink } from "../io/archive-sink.js";
|
|
4
2
|
import { type ArchiveSource } from "../io/archive-source.js";
|
|
5
|
-
import type { UnzipOperation, UnzipProgress, UnzipStreamOptions } from "./progress.js";
|
|
6
|
-
import type { ArchiveFormat } from "../shared/types.js";
|
|
7
3
|
import type { ZipStringEncoding } from "../shared/text.js";
|
|
4
|
+
import type { ArchiveFormat } from "../shared/types.js";
|
|
5
|
+
import { type ParseOptions, type ZipEntry as ParseZipEntry } from "./stream.js";
|
|
6
|
+
import { type ZipEntryInfo } from "./zip-parser.js";
|
|
8
7
|
import type { ZipEntryType } from "../zip-spec/zip-entry-info.js";
|
|
8
|
+
import type { UnzipOperation, UnzipProgress, UnzipStreamOptions } from "./progress.js";
|
|
9
9
|
type PipeToOptions = {
|
|
10
10
|
preventClose?: boolean;
|
|
11
11
|
preventAbort?: boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ZipParser } from "./zip-parser.js";
|
|
2
|
-
import { processEntryData, processEntryDataStream, readEntryCompressedData } from "./zip-extract-core.js";
|
|
3
|
-
import { createParse } from "./stream.browser.js";
|
|
4
1
|
import { pipeIterableToSink } from "../io/archive-sink.js";
|
|
5
2
|
import { isInMemoryArchiveSource, toAsyncIterable, toUint8Array } from "../io/archive-source.js";
|
|
6
3
|
import { createAbortError, createLinkedAbortController, throwIfAborted, toError, suppressUnhandledRejection } from "../shared/errors.js";
|
|
7
4
|
import { ProgressEmitter } from "../shared/progress.js";
|
|
8
|
-
import {
|
|
5
|
+
import { createParse } from "./stream.browser.js";
|
|
6
|
+
import { processEntryData, processEntryDataStream, readEntryCompressedData } from "./zip-extract-core.js";
|
|
7
|
+
import { ZipParser } from "./zip-parser.js";
|
|
8
|
+
import { isSymlink } from "../zip-spec/zip-entry-info.js";
|
|
9
|
+
import { COMPRESSION_AES } from "../zip-spec/zip-records.js";
|
|
9
10
|
import { eventedReadableToAsyncIterableNoDestroy } from "../../stream/internal/evented-readable-to-async-iterable.js";
|
|
10
11
|
import { isWritableStream } from "../../stream/internal/type-guards.js";
|
|
11
|
-
import {
|
|
12
|
-
import { isSymlink } from "../zip-spec/zip-entry-info.js";
|
|
12
|
+
import { getTextDecoder } from "../../../utils/binary.js";
|
|
13
13
|
function attachAbortToParseEntry(entry, signal) {
|
|
14
14
|
let cleanedUp = false;
|
|
15
15
|
const cleanup = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Zip64Mode } from "../zip-spec/zip-records.js";
|
|
2
1
|
import type { ArchiveProgressPhase, ArchiveStreamOptions, ArchiveOperationBase } from "../shared/progress.js";
|
|
2
|
+
import type { Zip64Mode } from "../zip-spec/zip-records.js";
|
|
3
3
|
/**
|
|
4
4
|
* Progress phase for ZIP creation operations.
|
|
5
5
|
*/
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* - In browser builds the bundler aliases those imports to their browser variants.
|
|
7
7
|
*/
|
|
8
8
|
import { type ZipEncryptionMethod } from "../crypto/index.js";
|
|
9
|
-
import type { ZipTimestampMode } from "../zip-spec/timestamps.js";
|
|
10
|
-
import { type ZipPathOptions } from "../zip-spec/zip-path.js";
|
|
11
9
|
import { type ZipStringCodec, type ZipStringEncoding } from "../shared/text.js";
|
|
10
|
+
import type { ZipTimestampMode } from "../zip-spec/timestamps.js";
|
|
12
11
|
import type { ZipEntryInfo } from "../zip-spec/zip-entry-info.js";
|
|
13
|
-
import
|
|
12
|
+
import { type ZipPathOptions } from "../zip-spec/zip-path.js";
|
|
14
13
|
import { type Zip64Mode } from "../zip-spec/zip-records.js";
|
|
14
|
+
import type { ZipCentralDirEntry, ZipWritableFile } from "./writable-file.js";
|
|
15
15
|
export type { Zip64Mode } from "../zip-spec/zip-records.js";
|
|
16
16
|
export type { ZipCentralDirEntry, ZipWritableFile } from "./writable-file.js";
|
|
17
17
|
/**
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
import { crc32Update, crc32Finalize, ensureZlibSync } from "../compression/crc32.browser.js";
|
|
9
9
|
import { createDeflateStream, SyncDeflater, hasNativeAsyncDeflate } from "../compression/streaming-compress.browser.js";
|
|
10
10
|
import { zipCryptoInitKeys, zipCryptoCreateHeader, zipCryptoEncryptByte, aesEncrypt, buildAesExtraField, randomBytes, isAesEncryption, getAesKeyStrength } from "../crypto/index.js";
|
|
11
|
-
import { DEFAULT_ZIP_LEVEL, DEFAULT_ZIP_TIMESTAMPS } from "../shared/defaults.js";
|
|
12
11
|
import { EMPTY_UINT8ARRAY } from "../shared/bytes.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { normalizeZipPath } from "../zip-spec/zip-path.js";
|
|
12
|
+
import { DEFAULT_ZIP_LEVEL, DEFAULT_ZIP_TIMESTAMPS } from "../shared/defaults.js";
|
|
13
|
+
import { createAbortError, toError } from "../shared/errors.js";
|
|
16
14
|
import { encodeZipStringWithCodec, resolveZipStringCodec } from "../shared/text.js";
|
|
15
|
+
import { normalizeZipPath } from "../zip-spec/zip-path.js";
|
|
16
|
+
import { buildDataDescriptor, buildDataDescriptorZip64, concatExtraFields, UINT16_MAX, UINT32_MAX, buildLocalFileHeader, VERSION_ZIP64, VERSION_NEEDED, FLAG_ENCRYPTED, FLAG_DATA_DESCRIPTOR, FLAG_UTF8, COMPRESSION_AES, getUnixModeFromExternalAttributes, isSymlinkMode } from "../zip-spec/zip-records.js";
|
|
17
17
|
import { isProbablyIncompressibleChunks } from "./compressibility.js";
|
|
18
|
-
import {
|
|
18
|
+
import { resolveZipExternalAttributesAndVersionMadeBy } from "./zip-entry-attributes.js";
|
|
19
|
+
import { buildZipEntryMetadata, resolveZipCompressionMethod } from "./zip-entry-metadata.js";
|
|
19
20
|
import { measureCentralDirectoryAndEocd, writeCentralDirectoryAndEocdInto } from "./writer-core.js";
|
|
20
|
-
import { buildDataDescriptor, buildDataDescriptorZip64, concatExtraFields, UINT16_MAX, UINT32_MAX, buildLocalFileHeader, VERSION_ZIP64, VERSION_NEEDED, FLAG_ENCRYPTED, FLAG_DATA_DESCRIPTOR, FLAG_UTF8, COMPRESSION_AES, getUnixModeFromExternalAttributes, isSymlinkMode } from "../zip-spec/zip-records.js";
|
|
21
21
|
const SMART_STORE_DECIDE_BYTES = 16 * 1024;
|
|
22
22
|
/** Input batching threshold for push(). Small chunks are accumulated in an
|
|
23
23
|
* internal buffer and flushed to the compression pipeline once this size is
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { ZipTimestampMode } from "../zip-spec/timestamps.js";
|
|
2
1
|
import { type ArchiveSink } from "../io/archive-sink.js";
|
|
3
2
|
import { type ArchiveSource } from "../io/archive-source.js";
|
|
3
|
+
import { type ZipStringEncoding } from "../shared/text.js";
|
|
4
|
+
import type { ArchiveFormat } from "../shared/types.js";
|
|
5
|
+
import type { ZipTimestampMode } from "../zip-spec/timestamps.js";
|
|
6
|
+
import type { ZipPathOptions } from "../zip-spec/zip-path.js";
|
|
4
7
|
import { type Zip64Mode } from "../zip-spec/zip-records.js";
|
|
5
8
|
import type { ZipOperation, ZipProgress, ZipStreamOptions } from "./progress.js";
|
|
6
|
-
import type { ZipPathOptions } from "../zip-spec/zip-path.js";
|
|
7
|
-
import type { ArchiveFormat } from "../shared/types.js";
|
|
8
|
-
import { type ZipStringEncoding } from "../shared/text.js";
|
|
9
9
|
/** Archive options */
|
|
10
10
|
export interface ZipOptions {
|
|
11
11
|
/**
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ZipDeflateFile } from "./stream.js";
|
|
3
|
-
import { createZip, createZipSync } from "./zip-bytes.js";
|
|
1
|
+
import { crc32Finalize, crc32Update } from "../compression/crc32.browser.js";
|
|
4
2
|
import { collect, pipeIterableToSink } from "../io/archive-sink.js";
|
|
5
3
|
import { toAsyncIterable, toUint8Array, toUint8ArraySync, isSyncArchiveSource, isInMemoryArchiveSource } from "../io/archive-source.js";
|
|
6
|
-
import { throwIfAborted } from "../shared/errors.js";
|
|
7
|
-
import { createZipOperation } from "./zip-output-pipeline.js";
|
|
8
|
-
import { stringToUint8Array as encodeUtf8 } from "../../../utils/binary.js";
|
|
9
|
-
import { buildDataDescriptor, FLAG_DATA_DESCRIPTOR, UINT16_MAX, UINT32_MAX, writeLocalFileHeaderInto } from "../zip-spec/zip-records.js";
|
|
10
|
-
import { isNode } from "../../../utils/env.js";
|
|
11
4
|
import { ByteQueue } from "../shared/byte-queue.js";
|
|
5
|
+
import { DEFAULT_ZIP_LEVEL, DEFAULT_ZIP_TIMESTAMPS, REPRODUCIBLE_ZIP_MOD_TIME } from "../shared/defaults.js";
|
|
6
|
+
import { throwIfAborted } from "../shared/errors.js";
|
|
12
7
|
import { encodeZipString } from "../shared/text.js";
|
|
13
|
-
import {
|
|
8
|
+
import { buildDataDescriptor, FLAG_DATA_DESCRIPTOR, UINT16_MAX, UINT32_MAX, writeLocalFileHeaderInto } from "../zip-spec/zip-records.js";
|
|
9
|
+
import { ZipDeflateFile } from "./stream.js";
|
|
14
10
|
import { measureCentralDirectoryAndEocd, writeCentralDirectoryAndEocdInto } from "./writer-core.js";
|
|
11
|
+
import { createZip, createZipSync } from "./zip-bytes.js";
|
|
15
12
|
import { buildZipEntryMetadata } from "./zip-entry-metadata.js";
|
|
16
|
-
import {
|
|
13
|
+
import { buildZipDeflateFileOptions } from "./zip-entry-options.js";
|
|
14
|
+
import { stringToUint8Array as encodeUtf8 } from "../../../utils/binary.js";
|
|
15
|
+
import { isNode } from "../../../utils/env.js";
|
|
16
|
+
import { createZipOperation } from "./zip-output-pipeline.js";
|
|
17
17
|
export class ZipArchive {
|
|
18
18
|
constructor(options = {}) {
|
|
19
19
|
this._entries = [];
|
|
@@ -288,7 +288,7 @@ export class ZipArchive {
|
|
|
288
288
|
// Browser fast path: stream Blob sources through CompressionStream
|
|
289
289
|
const canUseBrowserFastPath = !isNode() &&
|
|
290
290
|
hasBlobSource &&
|
|
291
|
-
this._options.smartStore
|
|
291
|
+
!this._options.smartStore &&
|
|
292
292
|
this._options.zip64 !== true &&
|
|
293
293
|
typeof CompressionStream !== "undefined";
|
|
294
294
|
if (canUseBrowserFastPath && allSourcesInMemory) {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { type CompressOptions } from "../compression/compress.js";
|
|
11
11
|
import { type ZipEncryptionMethod } from "../crypto/index.js";
|
|
12
|
-
import { type ZipTimestampMode } from "../zip-spec/timestamps.js";
|
|
13
12
|
import { type ZipStringEncoding } from "../shared/text.js";
|
|
13
|
+
import { type ZipTimestampMode } from "../zip-spec/timestamps.js";
|
|
14
14
|
import { type ZipPathOptions } from "../zip-spec/zip-path.js";
|
|
15
15
|
import type { Zip64Mode } from "../zip-spec/zip-records.js";
|
|
16
16
|
/**
|