open-agreements 0.3.1 → 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,244 @@
|
|
|
1
|
+
// Type definitions for lie 3.2
|
|
2
|
+
// Project: https://github.com/calvinmetcalf/lie#readme
|
|
3
|
+
// Definitions by: Andre Wiggins <https://github.com/andrewiggins>
|
|
4
|
+
// TypeScript Version: 2.3
|
|
5
|
+
|
|
6
|
+
// These types are copied from TypeScript's built-in Promise types
|
|
7
|
+
// and extended with extra Lie utilities namely, finally.
|
|
8
|
+
|
|
9
|
+
export as namespace Promise;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Represents the completion of an asynchronous operation
|
|
13
|
+
*/
|
|
14
|
+
interface Promise<T> {
|
|
15
|
+
/**
|
|
16
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
17
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
18
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
19
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
20
|
+
*/
|
|
21
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
25
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
26
|
+
* @returns A Promise for the completion of the callback.
|
|
27
|
+
*/
|
|
28
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* When the promise is settled, whether fulfilled or rejected, execute the
|
|
32
|
+
* specified callback function. This provides a way for code that must be
|
|
33
|
+
* executed once the Promise has been dealt with to be run whether the promise
|
|
34
|
+
* was fulfilled successfully or rejected.
|
|
35
|
+
* @param onfinally Function called when the Promise is settled
|
|
36
|
+
* @returns A Promise whose finally handler is set to the specified function, onfinally.
|
|
37
|
+
*/
|
|
38
|
+
finally<TResult = never>(onfinally?: (() => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface PromiseConstructor {
|
|
42
|
+
/**
|
|
43
|
+
* A reference to the prototype.
|
|
44
|
+
*/
|
|
45
|
+
readonly prototype: Promise<any>;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Creates a new Promise.
|
|
49
|
+
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
|
|
50
|
+
* a resolve callback used resolve the promise with a value or the result of another promise,
|
|
51
|
+
* and a reject callback used to reject the promise with a provided reason or error.
|
|
52
|
+
*/
|
|
53
|
+
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
57
|
+
* resolve, or rejected when any Promise is rejected.
|
|
58
|
+
* @param values An array of Promises.
|
|
59
|
+
* @returns A new Promise.
|
|
60
|
+
*/
|
|
61
|
+
all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
65
|
+
* resolve, or rejected when any Promise is rejected.
|
|
66
|
+
* @param values An array of Promises.
|
|
67
|
+
* @returns A new Promise.
|
|
68
|
+
*/
|
|
69
|
+
all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
73
|
+
* resolve, or rejected when any Promise is rejected.
|
|
74
|
+
* @param values An array of Promises.
|
|
75
|
+
* @returns A new Promise.
|
|
76
|
+
*/
|
|
77
|
+
all<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
81
|
+
* resolve, or rejected when any Promise is rejected.
|
|
82
|
+
* @param values An array of Promises.
|
|
83
|
+
* @returns A new Promise.
|
|
84
|
+
*/
|
|
85
|
+
all<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
89
|
+
* resolve, or rejected when any Promise is rejected.
|
|
90
|
+
* @param values An array of Promises.
|
|
91
|
+
* @returns A new Promise.
|
|
92
|
+
*/
|
|
93
|
+
all<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
97
|
+
* resolve, or rejected when any Promise is rejected.
|
|
98
|
+
* @param values An array of Promises.
|
|
99
|
+
* @returns A new Promise.
|
|
100
|
+
*/
|
|
101
|
+
all<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
105
|
+
* resolve, or rejected when any Promise is rejected.
|
|
106
|
+
* @param values An array of Promises.
|
|
107
|
+
* @returns A new Promise.
|
|
108
|
+
*/
|
|
109
|
+
all<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<[T1, T2, T3, T4]>;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
113
|
+
* resolve, or rejected when any Promise is rejected.
|
|
114
|
+
* @param values An array of Promises.
|
|
115
|
+
* @returns A new Promise.
|
|
116
|
+
*/
|
|
117
|
+
all<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
121
|
+
* resolve, or rejected when any Promise is rejected.
|
|
122
|
+
* @param values An array of Promises.
|
|
123
|
+
* @returns A new Promise.
|
|
124
|
+
*/
|
|
125
|
+
all<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
129
|
+
* resolve, or rejected when any Promise is rejected.
|
|
130
|
+
* @param values An array of Promises.
|
|
131
|
+
* @returns A new Promise.
|
|
132
|
+
*/
|
|
133
|
+
all<T>(values: (T | PromiseLike<T>)[]): Promise<T[]>;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
137
|
+
* or rejected.
|
|
138
|
+
* @param values An array of Promises.
|
|
139
|
+
* @returns A new Promise.
|
|
140
|
+
*/
|
|
141
|
+
race<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
145
|
+
* or rejected.
|
|
146
|
+
* @param values An array of Promises.
|
|
147
|
+
* @returns A new Promise.
|
|
148
|
+
*/
|
|
149
|
+
race<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9>;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
153
|
+
* or rejected.
|
|
154
|
+
* @param values An array of Promises.
|
|
155
|
+
* @returns A new Promise.
|
|
156
|
+
*/
|
|
157
|
+
race<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8>;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
161
|
+
* or rejected.
|
|
162
|
+
* @param values An array of Promises.
|
|
163
|
+
* @returns A new Promise.
|
|
164
|
+
*/
|
|
165
|
+
race<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7>;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
169
|
+
* or rejected.
|
|
170
|
+
* @param values An array of Promises.
|
|
171
|
+
* @returns A new Promise.
|
|
172
|
+
*/
|
|
173
|
+
race<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<T1 | T2 | T3 | T4 | T5 | T6>;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
177
|
+
* or rejected.
|
|
178
|
+
* @param values An array of Promises.
|
|
179
|
+
* @returns A new Promise.
|
|
180
|
+
*/
|
|
181
|
+
race<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>]): Promise<T1 | T2 | T3 | T4 | T5>;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
185
|
+
* or rejected.
|
|
186
|
+
* @param values An array of Promises.
|
|
187
|
+
* @returns A new Promise.
|
|
188
|
+
*/
|
|
189
|
+
race<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<T1 | T2 | T3 | T4>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
193
|
+
* or rejected.
|
|
194
|
+
* @param values An array of Promises.
|
|
195
|
+
* @returns A new Promise.
|
|
196
|
+
*/
|
|
197
|
+
race<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<T1 | T2 | T3>;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
201
|
+
* or rejected.
|
|
202
|
+
* @param values An array of Promises.
|
|
203
|
+
* @returns A new Promise.
|
|
204
|
+
*/
|
|
205
|
+
race<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<T1 | T2>;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
209
|
+
* or rejected.
|
|
210
|
+
* @param values An array of Promises.
|
|
211
|
+
* @returns A new Promise.
|
|
212
|
+
*/
|
|
213
|
+
race<T>(values: (T | PromiseLike<T>)[]): Promise<T>;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Creates a new rejected promise for the provided reason.
|
|
217
|
+
* @param reason The reason the promise was rejected.
|
|
218
|
+
* @returns A new rejected Promise.
|
|
219
|
+
*/
|
|
220
|
+
reject(reason: any): Promise<never>;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Creates a new rejected promise for the provided reason.
|
|
224
|
+
* @param reason The reason the promise was rejected.
|
|
225
|
+
* @returns A new rejected Promise.
|
|
226
|
+
*/
|
|
227
|
+
reject<T>(reason: any): Promise<T>;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Creates a new resolved promise for the provided value.
|
|
231
|
+
* @param value A promise.
|
|
232
|
+
* @returns A promise whose internal state matches the provided promise.
|
|
233
|
+
*/
|
|
234
|
+
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Creates a new resolved promise .
|
|
238
|
+
* @returns A resolved promise.
|
|
239
|
+
*/
|
|
240
|
+
resolve(): Promise<void>;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare const Promise: PromiseConstructor;
|
|
244
|
+
export default Promise;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lie",
|
|
3
|
+
"version": "3.3.0",
|
|
4
|
+
"description": "A basic but performant promise implementation",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/calvinmetcalf/lie.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/calvinmetcalf/lie/issues"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"lie",
|
|
15
|
+
"promise",
|
|
16
|
+
"async",
|
|
17
|
+
"aplus"
|
|
18
|
+
],
|
|
19
|
+
"main": "lib/index.js",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"pretest": "npm run build",
|
|
22
|
+
"test": "npm run jshint && mocha -R nyan ./test/cover.js && tsc --noEmit ./test/types.ts",
|
|
23
|
+
"build-node": "copyfiles -f src/index.js lib && browserify-transform-cli inline-process-browser unreachable-branch-transform es3ify < src/index.js > lib/browser.js",
|
|
24
|
+
"build-js": "browserify -s Promise -p bundle-collapser/plugin . | derequire > ./dist/lie.js",
|
|
25
|
+
"build-min": "uglifyjs ./dist/lie.js -mc > ./dist/lie.min.js",
|
|
26
|
+
"build-poly-js": "browserify -p bundle-collapser/plugin ./polyfill.js | derequire > ./dist/lie.polyfill.js",
|
|
27
|
+
"build-poly-min": "uglifyjs ./dist/lie.polyfill.js -mc > ./dist/lie.polyfill.min.js",
|
|
28
|
+
"build-poly": "npm run build-poly-js && npm run build-poly-min",
|
|
29
|
+
"build": "npm run build-node && npm run build-js && npm run build-min && npm run build-poly",
|
|
30
|
+
"prebuild": "rimraf lib dist && mkdirp lib dist",
|
|
31
|
+
"cover": "istanbul cover _mocha ./test/cover.js -- -R spec && istanbul check-coverage --lines 100 --function 100 --statements 100 --branches 100",
|
|
32
|
+
"jshint": "jshint src",
|
|
33
|
+
"node": "mocha -R spec ./test/cover.js",
|
|
34
|
+
"browser": "browserify test/cover.js > test/browser.js && mocha-phantomjs test/test.html"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"browserify": "^13.0.0",
|
|
38
|
+
"browserify-transform-cli": "^1.1.1",
|
|
39
|
+
"bundle-collapser": "^1.2.1",
|
|
40
|
+
"copyfiles": "^1.0.0",
|
|
41
|
+
"derequire": "^1.2.0",
|
|
42
|
+
"es3ify": "^0.2.2",
|
|
43
|
+
"inline-process-browser": "^1.0.0",
|
|
44
|
+
"istanbul": "^0.2.6",
|
|
45
|
+
"jshint": "^2.4.4",
|
|
46
|
+
"mkdirp": "^0.5.1",
|
|
47
|
+
"mocha": "^1.18.0",
|
|
48
|
+
"mocha-phantomjs": "~3.5.0",
|
|
49
|
+
"phantomjs": "^1.9.9",
|
|
50
|
+
"promises-aplus-tests": "calvinmetcalf/promises-tests#phantom",
|
|
51
|
+
"rimraf": "^2.5.4",
|
|
52
|
+
"typescript": "^2.7.1",
|
|
53
|
+
"uglify-js": "^2.4.13",
|
|
54
|
+
"unreachable-branch-transform": "^0.3.0"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"immediate": "~3.0.5"
|
|
58
|
+
},
|
|
59
|
+
"browser": {
|
|
60
|
+
"./lib/index.js": "./lib/browser.js"
|
|
61
|
+
},
|
|
62
|
+
"files": [
|
|
63
|
+
"lib",
|
|
64
|
+
"dist",
|
|
65
|
+
"polyfill.js",
|
|
66
|
+
"lie.d.ts"
|
|
67
|
+
],
|
|
68
|
+
"types": "lie.d.ts"
|
|
69
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
pako
|
|
2
|
+
==========================================
|
|
3
|
+
|
|
4
|
+
[](https://travis-ci.org/nodeca/pako)
|
|
5
|
+
[](https://www.npmjs.org/package/pako)
|
|
6
|
+
|
|
7
|
+
> zlib port to javascript, very fast!
|
|
8
|
+
|
|
9
|
+
__Why pako is cool:__
|
|
10
|
+
|
|
11
|
+
- Almost as fast in modern JS engines as C implementation (see benchmarks).
|
|
12
|
+
- Works in browsers, you can browserify any separate component.
|
|
13
|
+
- Chunking support for big blobs.
|
|
14
|
+
- Results are binary equal to well known [zlib](http://www.zlib.net/) (now contains ported zlib v1.2.8).
|
|
15
|
+
|
|
16
|
+
This project was done to understand how fast JS can be and is it necessary to
|
|
17
|
+
develop native C modules for CPU-intensive tasks. Enjoy the result!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
__Famous projects, using pako:__
|
|
21
|
+
|
|
22
|
+
- [browserify](http://browserify.org/) (via [browserify-zlib](https://github.com/devongovett/browserify-zlib))
|
|
23
|
+
- [JSZip](http://stuk.github.io/jszip/)
|
|
24
|
+
- [mincer](https://github.com/nodeca/mincer)
|
|
25
|
+
- [JS-Git](https://github.com/creationix/js-git) and
|
|
26
|
+
[Tedit](https://chrome.google.com/webstore/detail/tedit-development-environ/ooekdijbnbbjdfjocaiflnjgoohnblgf)
|
|
27
|
+
by [@creationix](https://github.com/creationix)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
__Benchmarks:__
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
node v0.10.26, 1mb sample:
|
|
34
|
+
|
|
35
|
+
deflate-dankogai x 4.73 ops/sec ±0.82% (15 runs sampled)
|
|
36
|
+
deflate-gildas x 4.58 ops/sec ±2.33% (15 runs sampled)
|
|
37
|
+
deflate-imaya x 3.22 ops/sec ±3.95% (12 runs sampled)
|
|
38
|
+
! deflate-pako x 6.99 ops/sec ±0.51% (21 runs sampled)
|
|
39
|
+
deflate-pako-string x 5.89 ops/sec ±0.77% (18 runs sampled)
|
|
40
|
+
deflate-pako-untyped x 4.39 ops/sec ±1.58% (14 runs sampled)
|
|
41
|
+
* deflate-zlib x 14.71 ops/sec ±4.23% (59 runs sampled)
|
|
42
|
+
inflate-dankogai x 32.16 ops/sec ±0.13% (56 runs sampled)
|
|
43
|
+
inflate-imaya x 30.35 ops/sec ±0.92% (53 runs sampled)
|
|
44
|
+
! inflate-pako x 69.89 ops/sec ±1.46% (71 runs sampled)
|
|
45
|
+
inflate-pako-string x 19.22 ops/sec ±1.86% (49 runs sampled)
|
|
46
|
+
inflate-pako-untyped x 17.19 ops/sec ±0.85% (32 runs sampled)
|
|
47
|
+
* inflate-zlib x 70.03 ops/sec ±1.64% (81 runs sampled)
|
|
48
|
+
|
|
49
|
+
node v0.11.12, 1mb sample:
|
|
50
|
+
|
|
51
|
+
deflate-dankogai x 5.60 ops/sec ±0.49% (17 runs sampled)
|
|
52
|
+
deflate-gildas x 5.06 ops/sec ±6.00% (16 runs sampled)
|
|
53
|
+
deflate-imaya x 3.52 ops/sec ±3.71% (13 runs sampled)
|
|
54
|
+
! deflate-pako x 11.52 ops/sec ±0.22% (32 runs sampled)
|
|
55
|
+
deflate-pako-string x 9.53 ops/sec ±1.12% (27 runs sampled)
|
|
56
|
+
deflate-pako-untyped x 5.44 ops/sec ±0.72% (17 runs sampled)
|
|
57
|
+
* deflate-zlib x 14.05 ops/sec ±3.34% (63 runs sampled)
|
|
58
|
+
inflate-dankogai x 42.19 ops/sec ±0.09% (56 runs sampled)
|
|
59
|
+
inflate-imaya x 79.68 ops/sec ±1.07% (68 runs sampled)
|
|
60
|
+
! inflate-pako x 97.52 ops/sec ±0.83% (80 runs sampled)
|
|
61
|
+
inflate-pako-string x 45.19 ops/sec ±1.69% (57 runs sampled)
|
|
62
|
+
inflate-pako-untyped x 24.35 ops/sec ±2.59% (40 runs sampled)
|
|
63
|
+
* inflate-zlib x 60.32 ops/sec ±1.36% (69 runs sampled)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
zlib's test is partially affected by marshalling (that make sense for inflate only).
|
|
67
|
+
You can change deflate level to 0 in benchmark source, to investigate details.
|
|
68
|
+
For deflate level 6 results can be considered as correct.
|
|
69
|
+
|
|
70
|
+
__Install:__
|
|
71
|
+
|
|
72
|
+
node.js:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
npm install pako
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
browser:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
bower install pako
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
Example & API
|
|
86
|
+
-------------
|
|
87
|
+
|
|
88
|
+
Full docs - http://nodeca.github.io/pako/
|
|
89
|
+
|
|
90
|
+
```javascript
|
|
91
|
+
var pako = require('pako');
|
|
92
|
+
|
|
93
|
+
// Deflate
|
|
94
|
+
//
|
|
95
|
+
var input = new Uint8Array();
|
|
96
|
+
//... fill input data here
|
|
97
|
+
var output = pako.deflate(input);
|
|
98
|
+
|
|
99
|
+
// Inflate (simple wrapper can throw exception on broken stream)
|
|
100
|
+
//
|
|
101
|
+
var compressed = new Uint8Array();
|
|
102
|
+
//... fill data to uncompress here
|
|
103
|
+
try {
|
|
104
|
+
var result = pako.inflate(compressed);
|
|
105
|
+
} catch (err) {
|
|
106
|
+
console.log(err);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
//
|
|
110
|
+
// Alternate interface for chunking & without exceptions
|
|
111
|
+
//
|
|
112
|
+
|
|
113
|
+
var inflator = new pako.Inflate();
|
|
114
|
+
|
|
115
|
+
inflator.push(chunk1, false);
|
|
116
|
+
inflator.push(chunk2, false);
|
|
117
|
+
...
|
|
118
|
+
inflator.push(chunkN, true); // true -> last chunk
|
|
119
|
+
|
|
120
|
+
if (inflator.err) {
|
|
121
|
+
console.log(inflator.msg);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
var output = inflator.result;
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Sometime you can wish to work with strings. For example, to send
|
|
129
|
+
big objects as json to server. Pako detects input data type. You can
|
|
130
|
+
force output to be string with option `{ to: 'string' }`.
|
|
131
|
+
|
|
132
|
+
```javascript
|
|
133
|
+
var pako = require('pako');
|
|
134
|
+
|
|
135
|
+
var test = { my: 'super', puper: [456, 567], awesome: 'pako' };
|
|
136
|
+
|
|
137
|
+
var binaryString = pako.deflate(JSON.stringify(test), { to: 'string' });
|
|
138
|
+
|
|
139
|
+
//
|
|
140
|
+
// Here you can do base64 encode, make xhr requests and so on.
|
|
141
|
+
//
|
|
142
|
+
|
|
143
|
+
var restored = JSON.parse(pako.inflate(binaryString, { to: 'string' }));
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
Notes
|
|
148
|
+
-----
|
|
149
|
+
|
|
150
|
+
Pako does not contain some specific zlib functions:
|
|
151
|
+
|
|
152
|
+
- __deflate__ - methods `deflateCopy`, `deflateBound`, `deflateParams`,
|
|
153
|
+
`deflatePending`, `deflatePrime`, `deflateTune`.
|
|
154
|
+
- __inflate__ - methods `inflateCopy`, `inflateMark`,
|
|
155
|
+
`inflatePrime`, `inflateGetDictionary`, `inflateSync`, `inflateSyncPoint`, `inflateUndermine`.
|
|
156
|
+
- High level inflate/deflate wrappers (classes) may not support some flush
|
|
157
|
+
modes. Those should work: Z_NO_FLUSH, Z_FINISH, Z_SYNC_FLUSH.
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
pako for enterprise
|
|
161
|
+
-------------------
|
|
162
|
+
|
|
163
|
+
Available as part of the Tidelift Subscription
|
|
164
|
+
|
|
165
|
+
The maintainers of pako and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-pako?utm_source=npm-pako&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
Authors
|
|
169
|
+
-------
|
|
170
|
+
|
|
171
|
+
- Andrey Tupitsin [@anrd83](https://github.com/andr83)
|
|
172
|
+
- Vitaly Puzrin [@puzrin](https://github.com/puzrin)
|
|
173
|
+
|
|
174
|
+
Personal thanks to:
|
|
175
|
+
|
|
176
|
+
- Vyacheslav Egorov ([@mraleph](https://github.com/mraleph)) for his awesome
|
|
177
|
+
tutorials about optimising JS code for v8, [IRHydra](http://mrale.ph/irhydra/)
|
|
178
|
+
tool and his advices.
|
|
179
|
+
- David Duponchel ([@dduponchel](https://github.com/dduponchel)) for help with
|
|
180
|
+
testing.
|
|
181
|
+
|
|
182
|
+
Original implementation (in C):
|
|
183
|
+
|
|
184
|
+
- [zlib](http://zlib.net/) by Jean-loup Gailly and Mark Adler.
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
License
|
|
188
|
+
-------
|
|
189
|
+
|
|
190
|
+
- MIT - all files, except `/lib/zlib` folder
|
|
191
|
+
- ZLIB - `/lib/zlib` content
|