open-agreements 0.3.0 → 0.4.0
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/content/templates/closing-checklist/template.docx +0 -0
- package/dist/core/checklist/docx-import.d.ts +50 -0
- package/dist/core/checklist/docx-import.d.ts.map +1 -0
- package/dist/core/checklist/docx-import.js +613 -0
- package/dist/core/checklist/docx-import.js.map +1 -0
- package/dist/core/checklist/docx-table-helpers.d.ts +33 -0
- package/dist/core/checklist/docx-table-helpers.d.ts.map +1 -0
- package/dist/core/checklist/docx-table-helpers.js +154 -0
- package/dist/core/checklist/docx-table-helpers.js.map +1 -0
- package/dist/core/checklist/format-checklist-docx.d.ts.map +1 -1
- package/dist/core/checklist/format-checklist-docx.js +37 -88
- package/dist/core/checklist/format-checklist-docx.js.map +1 -1
- package/dist/core/checklist/index.d.ts +15 -12
- package/dist/core/checklist/index.d.ts.map +1 -1
- package/dist/core/checklist/index.js +48 -30
- package/dist/core/checklist/index.js.map +1 -1
- package/dist/core/checklist/status-labels.d.ts +6 -0
- package/dist/core/checklist/status-labels.d.ts.map +1 -1
- package/dist/core/checklist/status-labels.js +8 -0
- package/dist/core/checklist/status-labels.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/atomizer.d.ts +218 -0
- package/node_modules/@usejunior/docx-core/dist/atomizer.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/atomizer.js +869 -0
- package/node_modules/@usejunior/docx-core/dist/atomizer.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.d.ts +96 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.js +347 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/consumerCompatibility.d.ts +2 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/consumerCompatibility.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/consumerCompatibility.js +188 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/consumerCompatibility.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/debug.d.ts +41 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/debug.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/debug.js +85 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/debug.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.d.ts +64 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.js +985 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.d.ts +111 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.js +469 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.d.ts +277 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.js +2279 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/numberingIntegration.d.ts +59 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/numberingIntegration.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/numberingIntegration.js +209 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/numberingIntegration.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/pipeline.d.ts +69 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/pipeline.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/pipeline.js +910 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/pipeline.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/premergeRuns.d.ts +26 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/premergeRuns.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/premergeRuns.js +153 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/premergeRuns.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/trackChangesAcceptor.d.ts +63 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/trackChangesAcceptor.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/trackChangesAcceptor.js +254 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/trackChangesAcceptor.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/trackChangesAcceptorAst.d.ts +64 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/trackChangesAcceptorAst.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/trackChangesAcceptorAst.js +616 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/trackChangesAcceptorAst.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/xmlToWmlElement.d.ts +65 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/xmlToWmlElement.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/xmlToWmlElement.js +95 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/xmlToWmlElement.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/wmlcomparer/DocxodusWasm.d.ts +51 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/wmlcomparer/DocxodusWasm.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/wmlcomparer/DocxodusWasm.js +83 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/wmlcomparer/DocxodusWasm.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/wmlcomparer/DotnetCli.d.ts +40 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/wmlcomparer/DotnetCli.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/wmlcomparer/DotnetCli.js +135 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/wmlcomparer/DotnetCli.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/cli/compare-two.d.ts +28 -0
- package/node_modules/@usejunior/docx-core/dist/cli/compare-two.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/cli/compare-two.js +110 -0
- package/node_modules/@usejunior/docx-core/dist/cli/compare-two.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/cli/index.d.ts +3 -0
- package/node_modules/@usejunior/docx-core/dist/cli/index.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/cli/index.js +21 -0
- package/node_modules/@usejunior/docx-core/dist/cli/index.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/core-types.d.ts +296 -0
- package/node_modules/@usejunior/docx-core/dist/core-types.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/core-types.js +122 -0
- package/node_modules/@usejunior/docx-core/dist/core-types.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/footnotes.d.ts +144 -0
- package/node_modules/@usejunior/docx-core/dist/footnotes.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/footnotes.js +291 -0
- package/node_modules/@usejunior/docx-core/dist/footnotes.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/format-detection.d.ts +120 -0
- package/node_modules/@usejunior/docx-core/dist/format-detection.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/format-detection.js +338 -0
- package/node_modules/@usejunior/docx-core/dist/format-detection.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/index.d.ts +177 -0
- package/node_modules/@usejunior/docx-core/dist/index.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/index.js +55 -0
- package/node_modules/@usejunior/docx-core/dist/index.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/integration/output-artifacts.d.ts +6 -0
- package/node_modules/@usejunior/docx-core/dist/integration/output-artifacts.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/integration/output-artifacts.js +30 -0
- package/node_modules/@usejunior/docx-core/dist/integration/output-artifacts.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/move-detection.d.ts +211 -0
- package/node_modules/@usejunior/docx-core/dist/move-detection.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/move-detection.js +391 -0
- package/node_modules/@usejunior/docx-core/dist/move-detection.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/numbering.d.ts +136 -0
- package/node_modules/@usejunior/docx-core/dist/numbering.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/numbering.js +446 -0
- package/node_modules/@usejunior/docx-core/dist/numbering.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/accept_changes.d.ts +30 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/accept_changes.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/accept_changes.js +241 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/accept_changes.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/bookmarks.d.ts +12 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/bookmarks.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/bookmarks.js +248 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/bookmarks.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/comments.d.ts +88 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/comments.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/comments.js +703 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/comments.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/document.d.ts +186 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/document.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/document.js +555 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/document.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/document_view.d.ts +97 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/document_view.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/document_view.js +749 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/document_view.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.d.ts +94 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.js +219 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/errors.d.ts +7 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/errors.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/errors.js +10 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/errors.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/extract_revisions.d.ts +50 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/extract_revisions.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/extract_revisions.js +340 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/extract_revisions.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/footnotes.d.ts +37 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/footnotes.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/footnotes.js +552 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/footnotes.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/formatting_tags.d.ts +43 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/formatting_tags.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/formatting_tags.js +291 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/formatting_tags.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/index.d.ts +27 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/index.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/index.js +27 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/index.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/layout.d.ts +53 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/layout.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/layout.js +178 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/layout.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/list_labels.d.ts +19 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/list_labels.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/list_labels.js +57 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/list_labels.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/matching.d.ts +31 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/matching.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/matching.js +223 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/matching.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/merge_runs.d.ts +23 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/merge_runs.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/merge_runs.js +243 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/merge_runs.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/namespaces.d.ts +91 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/namespaces.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/namespaces.js +108 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/namespaces.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/numbering.d.ts +27 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/numbering.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/numbering.js +182 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/numbering.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/prevent_double_elevation.d.ts +18 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/prevent_double_elevation.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/prevent_double_elevation.js +190 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/prevent_double_elevation.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/reject_changes.d.ts +27 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/reject_changes.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/reject_changes.js +371 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/reject_changes.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/relationships.d.ts +7 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/relationships.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/relationships.js +24 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/relationships.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/semantic_tags.d.ts +17 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/semantic_tags.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/semantic_tags.js +58 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/semantic_tags.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/simplify_redlines.d.ts +19 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/simplify_redlines.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/simplify_redlines.js +94 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/simplify_redlines.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/styles.d.ts +36 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/styles.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/styles.js +205 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/styles.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/tables.d.ts +54 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/tables.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/tables.js +205 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/tables.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/text.d.ts +30 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/text.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/text.js +461 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/text.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/validate_document.d.ts +24 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/validate_document.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/validate_document.js +147 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/validate_document.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/xml.d.ts +5 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/xml.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/xml.js +19 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/xml.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/zip.d.ts +25 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/zip.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/zip.js +78 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/zip.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/shared/docx/DocxArchive.d.ts +94 -0
- package/node_modules/@usejunior/docx-core/dist/shared/docx/DocxArchive.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/shared/docx/DocxArchive.js +169 -0
- package/node_modules/@usejunior/docx-core/dist/shared/docx/DocxArchive.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/shared/ooxml/namespaces.d.ts +149 -0
- package/node_modules/@usejunior/docx-core/dist/shared/ooxml/namespaces.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/shared/ooxml/namespaces.js +224 -0
- package/node_modules/@usejunior/docx-core/dist/shared/ooxml/namespaces.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/shared/ooxml/types.d.ts +136 -0
- package/node_modules/@usejunior/docx-core/dist/shared/ooxml/types.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/shared/ooxml/types.js +7 -0
- package/node_modules/@usejunior/docx-core/dist/shared/ooxml/types.js.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/shared/validators/structural.d.ts +31 -0
- package/node_modules/@usejunior/docx-core/dist/shared/validators/structural.d.ts.map +1 -0
- package/node_modules/@usejunior/docx-core/dist/shared/validators/structural.js +110 -0
- package/node_modules/@usejunior/docx-core/dist/shared/validators/structural.js.map +1 -0
- package/node_modules/@usejunior/docx-core/package.json +26 -0
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/README.md +3 -0
- package/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/core-util-is/package.json +38 -0
- package/node_modules/diff-match-patch/LICENSE +202 -0
- package/node_modules/diff-match-patch/README.md +94 -0
- package/node_modules/diff-match-patch/index.js +2218 -0
- package/node_modules/diff-match-patch/package.json +22 -0
- package/node_modules/immediate/LICENSE.txt +20 -0
- package/node_modules/immediate/README.md +93 -0
- package/node_modules/immediate/dist/immediate.js +75 -0
- package/node_modules/immediate/dist/immediate.min.js +1 -0
- package/node_modules/immediate/lib/browser.js +69 -0
- package/node_modules/immediate/lib/index.js +73 -0
- package/node_modules/immediate/package.json +42 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/isarray/.npmignore +1 -0
- package/node_modules/isarray/.travis.yml +4 -0
- package/node_modules/isarray/Makefile +6 -0
- package/node_modules/isarray/README.md +60 -0
- package/node_modules/isarray/component.json +19 -0
- package/node_modules/isarray/index.js +5 -0
- package/node_modules/isarray/package.json +45 -0
- package/node_modules/isarray/test.js +20 -0
- package/node_modules/jszip/.codeclimate.yml +16 -0
- package/node_modules/jszip/.editorconfig +8 -0
- package/node_modules/jszip/.eslintrc.js +43 -0
- package/node_modules/jszip/.github/workflows/pr.yaml +58 -0
- package/node_modules/jszip/.jekyll-metadata +0 -0
- package/node_modules/jszip/.travis.yml +17 -0
- package/node_modules/jszip/CHANGES.md +204 -0
- package/node_modules/jszip/LICENSE.markdown +651 -0
- package/node_modules/jszip/README.markdown +33 -0
- package/node_modules/jszip/deps.js +37 -0
- package/node_modules/jszip/dist/jszip.js +11577 -0
- package/node_modules/jszip/dist/jszip.min.js +13 -0
- package/node_modules/jszip/graph.svg +601 -0
- package/node_modules/jszip/index.d.ts +330 -0
- package/node_modules/jszip/lib/base64.js +106 -0
- package/node_modules/jszip/lib/compressedObject.js +74 -0
- package/node_modules/jszip/lib/compressions.js +14 -0
- package/node_modules/jszip/lib/crc32.js +77 -0
- package/node_modules/jszip/lib/defaults.js +11 -0
- package/node_modules/jszip/lib/external.js +18 -0
- package/node_modules/jszip/lib/flate.js +85 -0
- package/node_modules/jszip/lib/generate/ZipFileWorker.js +539 -0
- package/node_modules/jszip/lib/generate/index.js +57 -0
- package/node_modules/jszip/lib/index.js +55 -0
- package/node_modules/jszip/lib/license_header.js +11 -0
- package/node_modules/jszip/lib/load.js +88 -0
- package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +74 -0
- package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +42 -0
- package/node_modules/jszip/lib/nodejsUtils.js +57 -0
- package/node_modules/jszip/lib/object.js +384 -0
- package/node_modules/jszip/lib/readable-stream-browser.js +10 -0
- package/node_modules/jszip/lib/reader/ArrayReader.js +57 -0
- package/node_modules/jszip/lib/reader/DataReader.js +116 -0
- package/node_modules/jszip/lib/reader/NodeBufferReader.js +19 -0
- package/node_modules/jszip/lib/reader/StringReader.js +38 -0
- package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +22 -0
- package/node_modules/jszip/lib/reader/readerFor.js +28 -0
- package/node_modules/jszip/lib/signature.js +7 -0
- package/node_modules/jszip/lib/stream/ConvertWorker.js +26 -0
- package/node_modules/jszip/lib/stream/Crc32Probe.js +24 -0
- package/node_modules/jszip/lib/stream/DataLengthProbe.js +29 -0
- package/node_modules/jszip/lib/stream/DataWorker.js +116 -0
- package/node_modules/jszip/lib/stream/GenericWorker.js +263 -0
- package/node_modules/jszip/lib/stream/StreamHelper.js +214 -0
- package/node_modules/jszip/lib/support.js +38 -0
- package/node_modules/jszip/lib/utf8.js +275 -0
- package/node_modules/jszip/lib/utils.js +501 -0
- package/node_modules/jszip/lib/zipEntries.js +261 -0
- package/node_modules/jszip/lib/zipEntry.js +293 -0
- package/node_modules/jszip/lib/zipObject.js +133 -0
- package/node_modules/jszip/package.json +67 -0
- package/node_modules/jszip/sponsors.md +21 -0
- package/node_modules/jszip/tsconfig.json +101 -0
- package/node_modules/jszip/vendor/FileSaver.js +247 -0
- package/node_modules/lie/README.md +62 -0
- package/node_modules/lie/dist/lie.js +350 -0
- package/node_modules/lie/dist/lie.min.js +1 -0
- package/node_modules/lie/dist/lie.polyfill.js +358 -0
- package/node_modules/lie/dist/lie.polyfill.min.js +1 -0
- package/node_modules/lie/lib/browser.js +273 -0
- package/node_modules/lie/lib/index.js +298 -0
- package/node_modules/lie/license.md +7 -0
- package/node_modules/lie/lie.d.ts +244 -0
- package/node_modules/lie/package.json +69 -0
- package/node_modules/lie/polyfill.js +4 -0
- package/node_modules/pako/LICENSE +21 -0
- package/node_modules/pako/README.md +191 -0
- package/node_modules/pako/dist/pako.js +6818 -0
- package/node_modules/pako/dist/pako.min.js +1 -0
- package/node_modules/pako/dist/pako_deflate.js +3997 -0
- package/node_modules/pako/dist/pako_deflate.min.js +1 -0
- package/node_modules/pako/dist/pako_inflate.js +3300 -0
- package/node_modules/pako/dist/pako_inflate.min.js +1 -0
- package/node_modules/pako/index.js +14 -0
- package/node_modules/pako/lib/deflate.js +400 -0
- package/node_modules/pako/lib/inflate.js +423 -0
- package/node_modules/pako/lib/utils/common.js +105 -0
- package/node_modules/pako/lib/utils/strings.js +187 -0
- package/node_modules/pako/lib/zlib/README +59 -0
- package/node_modules/pako/lib/zlib/adler32.js +51 -0
- package/node_modules/pako/lib/zlib/constants.js +68 -0
- package/node_modules/pako/lib/zlib/crc32.js +59 -0
- package/node_modules/pako/lib/zlib/deflate.js +1874 -0
- package/node_modules/pako/lib/zlib/gzheader.js +58 -0
- package/node_modules/pako/lib/zlib/inffast.js +345 -0
- package/node_modules/pako/lib/zlib/inflate.js +1556 -0
- package/node_modules/pako/lib/zlib/inftrees.js +343 -0
- package/node_modules/pako/lib/zlib/messages.js +32 -0
- package/node_modules/pako/lib/zlib/trees.js +1222 -0
- package/node_modules/pako/lib/zlib/zstream.js +47 -0
- package/node_modules/pako/package.json +44 -0
- package/node_modules/process-nextick-args/index.js +45 -0
- package/node_modules/process-nextick-args/license.md +19 -0
- package/node_modules/process-nextick-args/package.json +25 -0
- package/node_modules/process-nextick-args/readme.md +18 -0
- package/node_modules/readable-stream/.travis.yml +34 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +58 -0
- package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/readable-stream/duplex-browser.js +1 -0
- package/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +685 -0
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +52 -0
- package/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/readable-stream/readable-browser.js +7 -0
- package/node_modules/readable-stream/readable.js +19 -0
- package/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/readable-stream/writable-browser.js +1 -0
- package/node_modules/readable-stream/writable.js +8 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/setimmediate/LICENSE.txt +20 -0
- package/node_modules/setimmediate/package.json +30 -0
- package/node_modules/setimmediate/setImmediate.js +186 -0
- package/node_modules/string_decoder/.travis.yml +50 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +31 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/package.json +9 -4
- package/packages/docx-core/node_modules/@xmldom/xmldom/CHANGELOG.md +468 -0
- package/packages/docx-core/node_modules/@xmldom/xmldom/LICENSE +8 -0
- package/packages/docx-core/node_modules/@xmldom/xmldom/SECURITY.md +50 -0
- package/packages/docx-core/node_modules/@xmldom/xmldom/index.d.ts +43 -0
- package/packages/docx-core/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +2 -0
- package/packages/docx-core/node_modules/@xmldom/xmldom/lib/conventions.js +203 -0
- package/packages/docx-core/node_modules/@xmldom/xmldom/lib/dom-parser.js +322 -0
- package/packages/docx-core/node_modules/@xmldom/xmldom/lib/dom.js +1879 -0
- package/packages/docx-core/node_modules/@xmldom/xmldom/lib/entities.js +2166 -0
- package/packages/docx-core/node_modules/@xmldom/xmldom/lib/index.js +4 -0
- package/packages/docx-core/node_modules/@xmldom/xmldom/lib/sax.js +662 -0
- package/packages/docx-core/node_modules/@xmldom/xmldom/package.json +71 -0
- package/packages/docx-core/node_modules/@xmldom/xmldom/readme.md +356 -0
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
// Type definitions for JSZip 3.1
|
|
2
|
+
// Project: http://stuk.github.com/jszip/, https://github.com/stuk/jszip
|
|
3
|
+
// Definitions by: mzeiher <https://github.com/mzeiher>, forabi <https://github.com/forabi>
|
|
4
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
|
+
// TypeScript Version: 2.3
|
|
6
|
+
|
|
7
|
+
/// <reference types="node" />
|
|
8
|
+
|
|
9
|
+
interface JSZipSupport {
|
|
10
|
+
arraybuffer: boolean;
|
|
11
|
+
uint8array: boolean;
|
|
12
|
+
blob: boolean;
|
|
13
|
+
nodebuffer: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type Compression = 'STORE' | 'DEFLATE';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Depends on the compression type. With `STORE` (no compression), these options are ignored. With
|
|
20
|
+
* `DEFLATE`, you can give the compression level between 1 (best speed) and 9 (best compression).
|
|
21
|
+
*/
|
|
22
|
+
interface CompressionOptions {
|
|
23
|
+
level: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface InputByType {
|
|
27
|
+
base64: string;
|
|
28
|
+
string: string;
|
|
29
|
+
text: string;
|
|
30
|
+
binarystring: string;
|
|
31
|
+
array: number[];
|
|
32
|
+
uint8array: Uint8Array;
|
|
33
|
+
arraybuffer: ArrayBuffer;
|
|
34
|
+
blob: Blob;
|
|
35
|
+
stream: NodeJS.ReadableStream;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface OutputByType {
|
|
39
|
+
base64: string;
|
|
40
|
+
string: string;
|
|
41
|
+
text: string;
|
|
42
|
+
binarystring: string;
|
|
43
|
+
array: number[];
|
|
44
|
+
uint8array: Uint8Array;
|
|
45
|
+
arraybuffer: ArrayBuffer;
|
|
46
|
+
blob: Blob;
|
|
47
|
+
nodebuffer: Buffer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// This private `_data` property on a JSZipObject uses this interface.
|
|
51
|
+
// If/when it is made public this should be uncommented.
|
|
52
|
+
// interface CompressedObject {
|
|
53
|
+
// compressedSize: number;
|
|
54
|
+
// uncompressedSize: number;
|
|
55
|
+
// crc32: number;
|
|
56
|
+
// compression: object;
|
|
57
|
+
// compressedContent: string|ArrayBuffer|Uint8Array|Buffer;
|
|
58
|
+
// }
|
|
59
|
+
|
|
60
|
+
type InputFileFormat = InputByType[keyof InputByType] | Promise<InputByType[keyof InputByType]>;
|
|
61
|
+
|
|
62
|
+
declare namespace JSZip {
|
|
63
|
+
type InputType = keyof InputByType;
|
|
64
|
+
|
|
65
|
+
type OutputType = keyof OutputByType;
|
|
66
|
+
|
|
67
|
+
interface JSZipMetadata {
|
|
68
|
+
percent: number;
|
|
69
|
+
currentFile: string | null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
type OnUpdateCallback = (metadata: JSZipMetadata) => void;
|
|
73
|
+
|
|
74
|
+
interface JSZipObject {
|
|
75
|
+
name: string;
|
|
76
|
+
/**
|
|
77
|
+
* Present for files loadded with `loadAsync`. May contain ".." path components that could
|
|
78
|
+
* result in a zip-slip attack. See https://snyk.io/research/zip-slip-vulnerability
|
|
79
|
+
*/
|
|
80
|
+
unsafeOriginalName?: string;
|
|
81
|
+
dir: boolean;
|
|
82
|
+
date: Date;
|
|
83
|
+
comment: string;
|
|
84
|
+
/** The UNIX permissions of the file, if any. */
|
|
85
|
+
unixPermissions: number | string | null;
|
|
86
|
+
/** The UNIX permissions of the file, if any. */
|
|
87
|
+
dosPermissions: number | null;
|
|
88
|
+
options: JSZipObjectOptions;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Prepare the content in the asked type.
|
|
92
|
+
* @param type the type of the result.
|
|
93
|
+
* @param onUpdate a function to call on each internal update.
|
|
94
|
+
* @return Promise the promise of the result.
|
|
95
|
+
*/
|
|
96
|
+
async<T extends OutputType>(type: T, onUpdate?: OnUpdateCallback): Promise<OutputByType[T]>;
|
|
97
|
+
nodeStream(type?: 'nodebuffer', onUpdate?: OnUpdateCallback): NodeJS.ReadableStream;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface JSZipFileOptions {
|
|
101
|
+
/** Set to `true` if the data is `base64` encoded. For example image data from a `<canvas>` element. Plain text and HTML do not need this option. */
|
|
102
|
+
base64?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Set to `true` if the data should be treated as raw content, `false` if this is a text. If `base64` is used,
|
|
105
|
+
* this defaults to `true`, if the data is not a `string`, this will be set to `true`.
|
|
106
|
+
*/
|
|
107
|
+
binary?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* The last modification date, defaults to the current date.
|
|
110
|
+
*/
|
|
111
|
+
date?: Date;
|
|
112
|
+
/**
|
|
113
|
+
* Sets per file compression. The `compressionOptions` parameter depends on the compression type.
|
|
114
|
+
*/
|
|
115
|
+
compression?: Compression;
|
|
116
|
+
/**
|
|
117
|
+
* Sets per file compression level for `DEFLATE` compression.
|
|
118
|
+
*/
|
|
119
|
+
compressionOptions?: null | CompressionOptions;
|
|
120
|
+
comment?: string;
|
|
121
|
+
/** Set to `true` if (and only if) the input is a "binary string" and has already been prepared with a `0xFF` mask. */
|
|
122
|
+
optimizedBinaryString?: boolean;
|
|
123
|
+
/** Set to `true` if folders in the file path should be automatically created, otherwise there will only be virtual folders that represent the path to the file. */
|
|
124
|
+
createFolders?: boolean;
|
|
125
|
+
/** Set to `true` if this is a directory and content should be ignored. */
|
|
126
|
+
dir?: boolean;
|
|
127
|
+
|
|
128
|
+
/** 6 bits number. The DOS permissions of the file, if any. */
|
|
129
|
+
dosPermissions?: number | null;
|
|
130
|
+
/**
|
|
131
|
+
* 16 bits number. The UNIX permissions of the file, if any.
|
|
132
|
+
* Also accepts a `string` representing the octal value: `"644"`, `"755"`, etc.
|
|
133
|
+
*/
|
|
134
|
+
unixPermissions?: number | string | null;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
interface JSZipObjectOptions {
|
|
138
|
+
compression: Compression;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
interface JSZipGeneratorOptions<T extends OutputType = OutputType> {
|
|
142
|
+
/**
|
|
143
|
+
* Sets compression option for all entries that have not specified their own `compression` option
|
|
144
|
+
*/
|
|
145
|
+
compression?: Compression;
|
|
146
|
+
/**
|
|
147
|
+
* Sets compression level for `DEFLATE` compression.
|
|
148
|
+
*/
|
|
149
|
+
compressionOptions?: null | CompressionOptions;
|
|
150
|
+
type?: T;
|
|
151
|
+
comment?: string;
|
|
152
|
+
/**
|
|
153
|
+
* mime-type for the generated file.
|
|
154
|
+
* Useful when you need to generate a file with a different extension, ie: “.ods”.
|
|
155
|
+
* @default 'application/zip'
|
|
156
|
+
*/
|
|
157
|
+
mimeType?: string;
|
|
158
|
+
encodeFileName?(filename: string): string;
|
|
159
|
+
/** Stream the files and create file descriptors */
|
|
160
|
+
streamFiles?: boolean;
|
|
161
|
+
/** DOS (default) or UNIX */
|
|
162
|
+
platform?: 'DOS' | 'UNIX';
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
interface JSZipLoadOptions {
|
|
166
|
+
base64?: boolean;
|
|
167
|
+
checkCRC32?: boolean;
|
|
168
|
+
optimizedBinaryString?: boolean;
|
|
169
|
+
createFolders?: boolean;
|
|
170
|
+
decodeFileName?: (bytes: string[] | Uint8Array | Buffer) => string;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
type DataEventCallback<T> = (dataChunk: T, metadata: JSZipMetadata) => void
|
|
174
|
+
type EndEventCallback = () => void
|
|
175
|
+
type ErrorEventCallback = (error: Error) => void
|
|
176
|
+
|
|
177
|
+
interface JSZipStreamHelper<T> {
|
|
178
|
+
/**
|
|
179
|
+
* Register a listener on an event
|
|
180
|
+
*/
|
|
181
|
+
on(event: 'data', callback: DataEventCallback<T>): this;
|
|
182
|
+
on(event: 'end', callback: EndEventCallback): this;
|
|
183
|
+
on(event: 'error', callback: ErrorEventCallback): this;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Read the whole stream and call a callback with the complete content
|
|
187
|
+
*
|
|
188
|
+
* @param updateCallback The function called every time the stream updates
|
|
189
|
+
* @return A Promise of the full content
|
|
190
|
+
*/
|
|
191
|
+
accumulate(updateCallback?: (metadata: JSZipMetadata) => void): Promise<T>;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Resume the stream if the stream is paused. Once resumed, the stream starts sending data events again
|
|
195
|
+
*
|
|
196
|
+
* @return The current StreamHelper object, for chaining
|
|
197
|
+
*/
|
|
198
|
+
resume(): this;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Pause the stream if the stream is running. Once paused, the stream stops sending data events
|
|
202
|
+
*
|
|
203
|
+
* @return The current StreamHelper object, for chaining
|
|
204
|
+
*/
|
|
205
|
+
pause(): this;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
interface JSZip {
|
|
210
|
+
files: {[key: string]: JSZip.JSZipObject};
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Get a file from the archive
|
|
214
|
+
*
|
|
215
|
+
* @param Path relative path to file
|
|
216
|
+
* @return File matching path, null if no file found
|
|
217
|
+
*/
|
|
218
|
+
file(path: string): JSZip.JSZipObject | null;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Get files matching a RegExp from archive
|
|
222
|
+
*
|
|
223
|
+
* @param path RegExp to match
|
|
224
|
+
* @return Return all matching files or an empty array
|
|
225
|
+
*/
|
|
226
|
+
file(path: RegExp): JSZip.JSZipObject[];
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Add a file to the archive
|
|
230
|
+
*
|
|
231
|
+
* @param path Relative path to file
|
|
232
|
+
* @param data Content of the file
|
|
233
|
+
* @param options Optional information about the file
|
|
234
|
+
* @return JSZip object
|
|
235
|
+
*/
|
|
236
|
+
file<T extends JSZip.InputType>(path: string, data: InputByType[T] | Promise<InputByType[T]>, options?: JSZip.JSZipFileOptions): this;
|
|
237
|
+
file<T extends JSZip.InputType>(path: string, data: null, options?: JSZip.JSZipFileOptions & { dir: true }): this;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Returns an new JSZip instance with the given folder as root
|
|
241
|
+
*
|
|
242
|
+
* @param name Name of the folder
|
|
243
|
+
* @return New JSZip object with the given folder as root or null
|
|
244
|
+
*/
|
|
245
|
+
folder(name: string): JSZip | null;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Returns new JSZip instances with the matching folders as root
|
|
249
|
+
*
|
|
250
|
+
* @param name RegExp to match
|
|
251
|
+
* @return New array of JSZipFile objects which match the RegExp
|
|
252
|
+
*/
|
|
253
|
+
folder(name: RegExp): JSZip.JSZipObject[];
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Call a callback function for each entry at this folder level.
|
|
257
|
+
*
|
|
258
|
+
* @param callback function
|
|
259
|
+
*/
|
|
260
|
+
forEach(callback: (relativePath: string, file: JSZip.JSZipObject) => void): void;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Get all files which match the given filter function
|
|
264
|
+
*
|
|
265
|
+
* @param predicate Filter function
|
|
266
|
+
* @return Array of matched elements
|
|
267
|
+
*/
|
|
268
|
+
filter(predicate: (relativePath: string, file: JSZip.JSZipObject) => boolean): JSZip.JSZipObject[];
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Removes the file or folder from the archive
|
|
272
|
+
*
|
|
273
|
+
* @param path Relative path of file or folder
|
|
274
|
+
* @return Returns the JSZip instance
|
|
275
|
+
*/
|
|
276
|
+
remove(path: string): JSZip;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Generates a new archive asynchronously
|
|
280
|
+
*
|
|
281
|
+
* @param options Optional options for the generator
|
|
282
|
+
* @param onUpdate The optional function called on each internal update with the metadata.
|
|
283
|
+
* @return The serialized archive
|
|
284
|
+
*/
|
|
285
|
+
generateAsync<T extends JSZip.OutputType>(options?: JSZip.JSZipGeneratorOptions<T>, onUpdate?: JSZip.OnUpdateCallback): Promise<OutputByType[T]>;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Generates a new archive asynchronously
|
|
289
|
+
*
|
|
290
|
+
* @param options Optional options for the generator
|
|
291
|
+
* @param onUpdate The optional function called on each internal update with the metadata.
|
|
292
|
+
* @return A Node.js `ReadableStream`
|
|
293
|
+
*/
|
|
294
|
+
generateNodeStream(options?: JSZip.JSZipGeneratorOptions<'nodebuffer'>, onUpdate?: JSZip.OnUpdateCallback): NodeJS.ReadableStream;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Generates the complete zip file with the internal stream implementation
|
|
298
|
+
*
|
|
299
|
+
* @param options Optional options for the generator
|
|
300
|
+
* @return a StreamHelper
|
|
301
|
+
*/
|
|
302
|
+
generateInternalStream<T extends JSZip.OutputType>(options?: JSZip.JSZipGeneratorOptions<T>): JSZip.JSZipStreamHelper<OutputByType[T]>;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Deserialize zip file asynchronously
|
|
306
|
+
*
|
|
307
|
+
* @param data Serialized zip file
|
|
308
|
+
* @param options Options for deserializing
|
|
309
|
+
* @return Returns promise
|
|
310
|
+
*/
|
|
311
|
+
loadAsync(data: InputFileFormat, options?: JSZip.JSZipLoadOptions): Promise<JSZip>;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Create JSZip instance
|
|
315
|
+
*/
|
|
316
|
+
new(): this;
|
|
317
|
+
|
|
318
|
+
(): JSZip;
|
|
319
|
+
|
|
320
|
+
prototype: JSZip;
|
|
321
|
+
support: JSZipSupport;
|
|
322
|
+
external: {
|
|
323
|
+
Promise: PromiseConstructorLike;
|
|
324
|
+
};
|
|
325
|
+
version: string;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
declare var JSZip: JSZip;
|
|
329
|
+
|
|
330
|
+
export = JSZip;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var utils = require("./utils");
|
|
3
|
+
var support = require("./support");
|
|
4
|
+
// private property
|
|
5
|
+
var _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
// public method for encoding
|
|
9
|
+
exports.encode = function(input) {
|
|
10
|
+
var output = [];
|
|
11
|
+
var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
|
|
12
|
+
var i = 0, len = input.length, remainingBytes = len;
|
|
13
|
+
|
|
14
|
+
var isArray = utils.getTypeOf(input) !== "string";
|
|
15
|
+
while (i < input.length) {
|
|
16
|
+
remainingBytes = len - i;
|
|
17
|
+
|
|
18
|
+
if (!isArray) {
|
|
19
|
+
chr1 = input.charCodeAt(i++);
|
|
20
|
+
chr2 = i < len ? input.charCodeAt(i++) : 0;
|
|
21
|
+
chr3 = i < len ? input.charCodeAt(i++) : 0;
|
|
22
|
+
} else {
|
|
23
|
+
chr1 = input[i++];
|
|
24
|
+
chr2 = i < len ? input[i++] : 0;
|
|
25
|
+
chr3 = i < len ? input[i++] : 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
enc1 = chr1 >> 2;
|
|
29
|
+
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
|
|
30
|
+
enc3 = remainingBytes > 1 ? (((chr2 & 15) << 2) | (chr3 >> 6)) : 64;
|
|
31
|
+
enc4 = remainingBytes > 2 ? (chr3 & 63) : 64;
|
|
32
|
+
|
|
33
|
+
output.push(_keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4));
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return output.join("");
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
// public method for decoding
|
|
41
|
+
exports.decode = function(input) {
|
|
42
|
+
var chr1, chr2, chr3;
|
|
43
|
+
var enc1, enc2, enc3, enc4;
|
|
44
|
+
var i = 0, resultIndex = 0;
|
|
45
|
+
|
|
46
|
+
var dataUrlPrefix = "data:";
|
|
47
|
+
|
|
48
|
+
if (input.substr(0, dataUrlPrefix.length) === dataUrlPrefix) {
|
|
49
|
+
// This is a common error: people give a data url
|
|
50
|
+
// (data:image/png;base64,iVBOR...) with a {base64: true} and
|
|
51
|
+
// wonders why things don't work.
|
|
52
|
+
// We can detect that the string input looks like a data url but we
|
|
53
|
+
// *can't* be sure it is one: removing everything up to the comma would
|
|
54
|
+
// be too dangerous.
|
|
55
|
+
throw new Error("Invalid base64 input, it looks like a data url.");
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
input = input.replace(/[^A-Za-z0-9+/=]/g, "");
|
|
59
|
+
|
|
60
|
+
var totalLength = input.length * 3 / 4;
|
|
61
|
+
if(input.charAt(input.length - 1) === _keyStr.charAt(64)) {
|
|
62
|
+
totalLength--;
|
|
63
|
+
}
|
|
64
|
+
if(input.charAt(input.length - 2) === _keyStr.charAt(64)) {
|
|
65
|
+
totalLength--;
|
|
66
|
+
}
|
|
67
|
+
if (totalLength % 1 !== 0) {
|
|
68
|
+
// totalLength is not an integer, the length does not match a valid
|
|
69
|
+
// base64 content. That can happen if:
|
|
70
|
+
// - the input is not a base64 content
|
|
71
|
+
// - the input is *almost* a base64 content, with a extra chars at the
|
|
72
|
+
// beginning or at the end
|
|
73
|
+
// - the input uses a base64 variant (base64url for example)
|
|
74
|
+
throw new Error("Invalid base64 input, bad content length.");
|
|
75
|
+
}
|
|
76
|
+
var output;
|
|
77
|
+
if (support.uint8array) {
|
|
78
|
+
output = new Uint8Array(totalLength|0);
|
|
79
|
+
} else {
|
|
80
|
+
output = new Array(totalLength|0);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
while (i < input.length) {
|
|
84
|
+
|
|
85
|
+
enc1 = _keyStr.indexOf(input.charAt(i++));
|
|
86
|
+
enc2 = _keyStr.indexOf(input.charAt(i++));
|
|
87
|
+
enc3 = _keyStr.indexOf(input.charAt(i++));
|
|
88
|
+
enc4 = _keyStr.indexOf(input.charAt(i++));
|
|
89
|
+
|
|
90
|
+
chr1 = (enc1 << 2) | (enc2 >> 4);
|
|
91
|
+
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
|
|
92
|
+
chr3 = ((enc3 & 3) << 6) | enc4;
|
|
93
|
+
|
|
94
|
+
output[resultIndex++] = chr1;
|
|
95
|
+
|
|
96
|
+
if (enc3 !== 64) {
|
|
97
|
+
output[resultIndex++] = chr2;
|
|
98
|
+
}
|
|
99
|
+
if (enc4 !== 64) {
|
|
100
|
+
output[resultIndex++] = chr3;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return output;
|
|
106
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var external = require("./external");
|
|
4
|
+
var DataWorker = require("./stream/DataWorker");
|
|
5
|
+
var Crc32Probe = require("./stream/Crc32Probe");
|
|
6
|
+
var DataLengthProbe = require("./stream/DataLengthProbe");
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Represent a compressed object, with everything needed to decompress it.
|
|
10
|
+
* @constructor
|
|
11
|
+
* @param {number} compressedSize the size of the data compressed.
|
|
12
|
+
* @param {number} uncompressedSize the size of the data after decompression.
|
|
13
|
+
* @param {number} crc32 the crc32 of the decompressed file.
|
|
14
|
+
* @param {object} compression the type of compression, see lib/compressions.js.
|
|
15
|
+
* @param {String|ArrayBuffer|Uint8Array|Buffer} data the compressed data.
|
|
16
|
+
*/
|
|
17
|
+
function CompressedObject(compressedSize, uncompressedSize, crc32, compression, data) {
|
|
18
|
+
this.compressedSize = compressedSize;
|
|
19
|
+
this.uncompressedSize = uncompressedSize;
|
|
20
|
+
this.crc32 = crc32;
|
|
21
|
+
this.compression = compression;
|
|
22
|
+
this.compressedContent = data;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
CompressedObject.prototype = {
|
|
26
|
+
/**
|
|
27
|
+
* Create a worker to get the uncompressed content.
|
|
28
|
+
* @return {GenericWorker} the worker.
|
|
29
|
+
*/
|
|
30
|
+
getContentWorker: function () {
|
|
31
|
+
var worker = new DataWorker(external.Promise.resolve(this.compressedContent))
|
|
32
|
+
.pipe(this.compression.uncompressWorker())
|
|
33
|
+
.pipe(new DataLengthProbe("data_length"));
|
|
34
|
+
|
|
35
|
+
var that = this;
|
|
36
|
+
worker.on("end", function () {
|
|
37
|
+
if (this.streamInfo["data_length"] !== that.uncompressedSize) {
|
|
38
|
+
throw new Error("Bug : uncompressed data size mismatch");
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return worker;
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* Create a worker to get the compressed content.
|
|
45
|
+
* @return {GenericWorker} the worker.
|
|
46
|
+
*/
|
|
47
|
+
getCompressedWorker: function () {
|
|
48
|
+
return new DataWorker(external.Promise.resolve(this.compressedContent))
|
|
49
|
+
.withStreamInfo("compressedSize", this.compressedSize)
|
|
50
|
+
.withStreamInfo("uncompressedSize", this.uncompressedSize)
|
|
51
|
+
.withStreamInfo("crc32", this.crc32)
|
|
52
|
+
.withStreamInfo("compression", this.compression)
|
|
53
|
+
;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Chain the given worker with other workers to compress the content with the
|
|
59
|
+
* given compression.
|
|
60
|
+
* @param {GenericWorker} uncompressedWorker the worker to pipe.
|
|
61
|
+
* @param {Object} compression the compression object.
|
|
62
|
+
* @param {Object} compressionOptions the options to use when compressing.
|
|
63
|
+
* @return {GenericWorker} the new worker compressing the content.
|
|
64
|
+
*/
|
|
65
|
+
CompressedObject.createWorkerFrom = function (uncompressedWorker, compression, compressionOptions) {
|
|
66
|
+
return uncompressedWorker
|
|
67
|
+
.pipe(new Crc32Probe())
|
|
68
|
+
.pipe(new DataLengthProbe("uncompressedSize"))
|
|
69
|
+
.pipe(compression.compressWorker(compressionOptions))
|
|
70
|
+
.pipe(new DataLengthProbe("compressedSize"))
|
|
71
|
+
.withStreamInfo("compression", compression);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
module.exports = CompressedObject;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var GenericWorker = require("./stream/GenericWorker");
|
|
4
|
+
|
|
5
|
+
exports.STORE = {
|
|
6
|
+
magic: "\x00\x00",
|
|
7
|
+
compressWorker : function () {
|
|
8
|
+
return new GenericWorker("STORE compression");
|
|
9
|
+
},
|
|
10
|
+
uncompressWorker : function () {
|
|
11
|
+
return new GenericWorker("STORE decompression");
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
exports.DEFLATE = require("./flate");
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var utils = require("./utils");
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The following functions come from pako, from pako/lib/zlib/crc32.js
|
|
7
|
+
* released under the MIT license, see pako https://github.com/nodeca/pako/
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
// Use ordinary array, since untyped makes no boost here
|
|
11
|
+
function makeTable() {
|
|
12
|
+
var c, table = [];
|
|
13
|
+
|
|
14
|
+
for(var n =0; n < 256; n++){
|
|
15
|
+
c = n;
|
|
16
|
+
for(var k =0; k < 8; k++){
|
|
17
|
+
c = ((c&1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));
|
|
18
|
+
}
|
|
19
|
+
table[n] = c;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return table;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Create table on load. Just 255 signed longs. Not a problem.
|
|
26
|
+
var crcTable = makeTable();
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
function crc32(crc, buf, len, pos) {
|
|
30
|
+
var t = crcTable, end = pos + len;
|
|
31
|
+
|
|
32
|
+
crc = crc ^ (-1);
|
|
33
|
+
|
|
34
|
+
for (var i = pos; i < end; i++ ) {
|
|
35
|
+
crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return (crc ^ (-1)); // >>> 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// That's all for the pako functions.
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Compute the crc32 of a string.
|
|
45
|
+
* This is almost the same as the function crc32, but for strings. Using the
|
|
46
|
+
* same function for the two use cases leads to horrible performances.
|
|
47
|
+
* @param {Number} crc the starting value of the crc.
|
|
48
|
+
* @param {String} str the string to use.
|
|
49
|
+
* @param {Number} len the length of the string.
|
|
50
|
+
* @param {Number} pos the starting position for the crc32 computation.
|
|
51
|
+
* @return {Number} the computed crc32.
|
|
52
|
+
*/
|
|
53
|
+
function crc32str(crc, str, len, pos) {
|
|
54
|
+
var t = crcTable, end = pos + len;
|
|
55
|
+
|
|
56
|
+
crc = crc ^ (-1);
|
|
57
|
+
|
|
58
|
+
for (var i = pos; i < end; i++ ) {
|
|
59
|
+
crc = (crc >>> 8) ^ t[(crc ^ str.charCodeAt(i)) & 0xFF];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return (crc ^ (-1)); // >>> 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
module.exports = function crc32wrapper(input, crc) {
|
|
66
|
+
if (typeof input === "undefined" || !input.length) {
|
|
67
|
+
return 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
var isArray = utils.getTypeOf(input) !== "string";
|
|
71
|
+
|
|
72
|
+
if(isArray) {
|
|
73
|
+
return crc32(crc|0, input, input.length, 0);
|
|
74
|
+
} else {
|
|
75
|
+
return crc32str(crc|0, input, input.length, 0);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.base64 = false;
|
|
3
|
+
exports.binary = false;
|
|
4
|
+
exports.dir = false;
|
|
5
|
+
exports.createFolders = true;
|
|
6
|
+
exports.date = null;
|
|
7
|
+
exports.compression = null;
|
|
8
|
+
exports.compressionOptions = null;
|
|
9
|
+
exports.comment = null;
|
|
10
|
+
exports.unixPermissions = null;
|
|
11
|
+
exports.dosPermissions = null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// load the global object first:
|
|
4
|
+
// - it should be better integrated in the system (unhandledRejection in node)
|
|
5
|
+
// - the environment may have a custom Promise implementation (see zone.js)
|
|
6
|
+
var ES6Promise = null;
|
|
7
|
+
if (typeof Promise !== "undefined") {
|
|
8
|
+
ES6Promise = Promise;
|
|
9
|
+
} else {
|
|
10
|
+
ES6Promise = require("lie");
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Let the user use/change some implementations.
|
|
15
|
+
*/
|
|
16
|
+
module.exports = {
|
|
17
|
+
Promise: ES6Promise
|
|
18
|
+
};
|