open-agreements 0.7.4 → 0.7.6
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/README.de.md +300 -255
- package/README.es.md +301 -254
- package/README.md +391 -90
- package/README.pt-br.md +301 -254
- package/README.template.md +333 -0
- package/README.zh.md +300 -253
- package/SECURITY.md +34 -0
- package/content/recipes/nvca-stock-purchase-agreement/README.md +39 -0
- package/content/recipes/nvca-voting-agreement/README.md +43 -0
- package/content/templates/bonterms-mutual-nda/README.md +2 -2
- package/content/templates/bonterms-mutual-nda/metadata.yaml +5 -11
- package/content/templates/bonterms-professional-services-agreement/README.md +2 -2
- package/content/templates/bonterms-professional-services-agreement/metadata.yaml +2 -2
- package/content/templates/closing-checklist/template.docx +0 -0
- package/content/templates/closing-checklist/template.md +30 -0
- package/content/templates/common-paper-ai-addendum/template.docx +0 -0
- package/content/templates/common-paper-ai-addendum-in-app/template.docx +0 -0
- package/content/templates/common-paper-csa-with-ai/template.docx +0 -0
- package/content/templates/common-paper-independent-contractor-agreement/template.docx +0 -0
- package/content/templates/common-paper-mutual-nda/README.md +28 -0
- package/content/templates/common-paper-one-way-nda/metadata.yaml +1 -1
- package/content/templates/common-paper-term-sheet/template.docx +0 -0
- package/content/templates/openagreements-board-consent-safe/.template.generated.json +74 -0
- package/content/templates/openagreements-board-consent-safe/README.md +61 -0
- package/content/templates/openagreements-board-consent-safe/metadata.yaml +53 -0
- package/content/templates/openagreements-board-consent-safe/reference-source.docx +0 -0
- package/content/templates/openagreements-board-consent-safe/template.docx +0 -0
- package/content/templates/openagreements-board-consent-safe/template.md +66 -0
- package/content/templates/openagreements-due-diligence-request-list/README.md +68 -0
- package/content/templates/openagreements-due-diligence-request-list/metadata.yaml +300 -0
- package/content/templates/openagreements-due-diligence-request-list/template.docx +0 -0
- package/content/templates/openagreements-due-diligence-request-list/template.md +318 -0
- package/content/templates/openagreements-employee-ip-inventions-assignment/.template.generated.json +230 -0
- package/content/templates/openagreements-employee-ip-inventions-assignment/metadata.yaml +1 -1
- package/content/templates/openagreements-employee-ip-inventions-assignment/template.docx +0 -0
- package/content/templates/openagreements-employee-ip-inventions-assignment/template.md +96 -35
- package/content/templates/openagreements-employment-confidentiality-acknowledgement/README.md +1 -1
- package/content/templates/openagreements-employment-confidentiality-acknowledgement/metadata.yaml +2 -2
- package/content/templates/openagreements-employment-confidentiality-acknowledgement/template.docx +0 -0
- package/content/templates/openagreements-employment-confidentiality-acknowledgement/template.json +75 -0
- package/content/templates/openagreements-employment-confidentiality-acknowledgement/template.md +8 -4
- package/content/templates/openagreements-employment-offer-letter/.template.generated.json +224 -0
- package/content/templates/openagreements-employment-offer-letter/README.md +65 -1
- package/content/templates/openagreements-employment-offer-letter/metadata.yaml +1 -1
- package/content/templates/openagreements-employment-offer-letter/template.docx +0 -0
- package/content/templates/openagreements-employment-offer-letter/template.md +70 -30
- package/content/templates/openagreements-restrictive-covenant-florida/.template.generated.json +456 -0
- package/content/templates/openagreements-restrictive-covenant-florida/README.md +141 -0
- package/content/templates/openagreements-restrictive-covenant-florida/metadata.yaml +419 -0
- package/content/templates/openagreements-restrictive-covenant-florida/template.docx +0 -0
- package/content/templates/openagreements-restrictive-covenant-florida/template.md +233 -0
- package/content/templates/openagreements-restrictive-covenant-wyoming/.template.generated.json +399 -0
- package/content/templates/openagreements-restrictive-covenant-wyoming/metadata.yaml +69 -12
- package/content/templates/openagreements-restrictive-covenant-wyoming/template.docx +0 -0
- package/content/templates/openagreements-restrictive-covenant-wyoming/template.md +110 -59
- package/content/templates/openagreements-stockholder-consent-safe/.template.generated.json +74 -0
- package/content/templates/openagreements-stockholder-consent-safe/README.md +62 -0
- package/content/templates/openagreements-stockholder-consent-safe/metadata.yaml +53 -0
- package/content/templates/openagreements-stockholder-consent-safe/reference-source.docx +0 -0
- package/content/templates/openagreements-stockholder-consent-safe/template.docx +0 -0
- package/content/templates/openagreements-stockholder-consent-safe/template.md +62 -0
- package/content/templates/working-group-list/template.docx +0 -0
- package/content/templates/working-group-list/template.md +18 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/fill.d.ts +1 -1
- package/dist/commands/fill.d.ts.map +1 -1
- package/dist/commands/fill.js +4 -1
- package/dist/commands/fill.js.map +1 -1
- package/dist/commands/list.js +11 -1
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/recipe.js.map +1 -1
- package/dist/core/checklist/docx-import.d.ts.map +1 -1
- package/dist/core/employment/jurisdiction-rules.js +2 -2
- package/dist/core/employment/jurisdiction-rules.js.map +1 -1
- package/dist/core/employment/memo.d.ts +1 -1
- package/dist/core/employment/memo.d.ts.map +1 -1
- package/dist/core/employment/memo.js +14 -6
- package/dist/core/employment/memo.js.map +1 -1
- package/dist/core/engine.d.ts.map +1 -1
- package/dist/core/engine.js +28 -0
- package/dist/core/engine.js.map +1 -1
- package/dist/core/fill-pipeline.d.ts +30 -5
- package/dist/core/fill-pipeline.d.ts.map +1 -1
- package/dist/core/fill-pipeline.js +173 -9
- package/dist/core/fill-pipeline.js.map +1 -1
- package/dist/core/humanize-docx.d.ts +21 -0
- package/dist/core/humanize-docx.d.ts.map +1 -0
- package/dist/core/humanize-docx.js +492 -0
- package/dist/core/humanize-docx.js.map +1 -0
- package/dist/core/metadata.d.ts +119 -65
- package/dist/core/metadata.d.ts.map +1 -1
- package/dist/core/metadata.js +269 -13
- package/dist/core/metadata.js.map +1 -1
- package/dist/core/recipe/bracket-normalizer.d.ts +1 -1
- package/dist/core/recipe/bracket-normalizer.d.ts.map +1 -1
- package/dist/core/recipe/bracket-normalizer.js +3 -0
- package/dist/core/recipe/bracket-normalizer.js.map +1 -1
- package/dist/core/recipe/computed.d.ts +1 -1
- package/dist/core/recipe/computed.d.ts.map +1 -1
- package/dist/core/recipe/index.d.ts.map +1 -1
- package/dist/core/recipe/index.js +22 -4
- package/dist/core/recipe/index.js.map +1 -1
- package/dist/core/recipe/patcher.js +0 -24
- package/dist/core/recipe/patcher.js.map +1 -1
- package/dist/core/recipe/types.d.ts +1 -1
- package/dist/core/recipe/types.d.ts.map +1 -1
- package/dist/core/recipe/verifier.js.map +1 -1
- package/dist/core/selector.js +0 -1
- package/dist/core/selector.js.map +1 -1
- package/dist/core/template-listing.d.ts +6 -8
- package/dist/core/template-listing.d.ts.map +1 -1
- package/dist/core/template-listing.js +24 -0
- package/dist/core/template-listing.js.map +1 -1
- package/dist/core/template-search.d.ts +36 -0
- package/dist/core/template-search.d.ts.map +1 -0
- package/dist/core/template-search.js +84 -0
- package/dist/core/template-search.js.map +1 -0
- package/dist/core/unified-pipeline.d.ts +2 -0
- package/dist/core/unified-pipeline.d.ts.map +1 -1
- package/dist/core/unified-pipeline.js +19 -1
- package/dist/core/unified-pipeline.js.map +1 -1
- package/dist/core/validation/template.d.ts +32 -0
- package/dist/core/validation/template.d.ts.map +1 -1
- package/dist/core/validation/template.js +163 -3
- package/dist/core/validation/template.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/gemini-extension.json +1 -1
- package/node_modules/@usejunior/docx-core/dist/.tsbuildinfo +1 -1
- package/node_modules/@usejunior/docx-core/dist/atomizer.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/atomizer.js +12 -4
- package/node_modules/@usejunior/docx-core/dist/atomizer.js.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.d.ts +0 -14
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.js +31 -2
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.js.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.d.ts +11 -0
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.js +180 -6
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.js.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.d.ts +14 -4
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.js +344 -60
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.js.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.d.ts +35 -1
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.js +186 -12
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.js.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/pipeline.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/pipeline.js +31 -13
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/pipeline.js.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/xmlToWmlElement.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/xmlToWmlElement.js +3 -2
- package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/xmlToWmlElement.js.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/format-detection.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/format-detection.js +2 -1
- package/node_modules/@usejunior/docx-core/dist/format-detection.js.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/move-detection.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/move-detection.js +3 -4
- package/node_modules/@usejunior/docx-core/dist/move-detection.js.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/primitives/comments.d.ts +2 -2
- package/node_modules/@usejunior/docx-core/dist/primitives/comments.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/primitives/comments.js +7 -2
- package/node_modules/@usejunior/docx-core/dist/primitives/comments.js.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/primitives/document.d.ts +2 -2
- package/node_modules/@usejunior/docx-core/dist/primitives/document.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.d.ts +1 -5
- package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.js +12 -25
- package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.js.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/primitives/layout.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/primitives/layout.js +4 -6
- package/node_modules/@usejunior/docx-core/dist/primitives/layout.js.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/primitives/xml.d.ts.map +1 -1
- package/node_modules/@usejunior/docx-core/dist/primitives/xml.js +2 -0
- package/node_modules/@usejunior/docx-core/dist/primitives/xml.js.map +1 -1
- package/node_modules/@usejunior/docx-core/package.json +3 -3
- package/package.json +29 -15
- package/skills/canonical-markdown-authoring/CONNECTORS.md +67 -0
- package/skills/canonical-markdown-authoring/SKILL.md +565 -0
- package/skills/client-email/SKILL.md +2 -0
- package/skills/cloud-service-agreement/CONNECTORS.md +2 -2
- package/skills/cloud-service-agreement/SKILL.md +39 -2
- package/skills/cloud-service-agreement/template-filling-execution.md +92 -0
- package/skills/data-privacy-agreement/CONNECTORS.md +2 -2
- package/skills/data-privacy-agreement/SKILL.md +2 -0
- package/skills/delaware-franchise-tax/SKILL.md +2 -0
- package/skills/edit-docx-agreement/SKILL.md +2 -0
- package/skills/employment-contract/CONNECTORS.md +2 -2
- package/skills/employment-contract/SKILL.md +2 -0
- package/skills/iso-27001-evidence-collection/SKILL.md +2 -0
- package/skills/iso-27001-internal-audit/SKILL.md +2 -0
- package/skills/nda/CONNECTORS.md +2 -2
- package/skills/nda/SKILL.md +46 -2
- package/skills/nda/template-filling-execution.md +98 -0
- package/skills/non-compete-contract-explainer/SKILL.md +107 -0
- package/skills/non-compete-contract-explainer/content/wyoming.md +286 -0
- package/skills/non-compete-contract-explainer/manifest.json +18 -0
- package/skills/open-agreements/CONNECTORS.md +2 -2
- package/skills/open-agreements/SKILL.md +165 -67
- package/skills/open-agreements/template-filling-execution.md +92 -0
- package/skills/recipe-quality-audit/SKILL.md +2 -0
- package/skills/safe/CONNECTORS.md +2 -2
- package/skills/safe/SKILL.md +39 -2
- package/skills/safe/template-filling-execution.md +92 -0
- package/skills/services-agreement/CONNECTORS.md +2 -2
- package/skills/services-agreement/SKILL.md +40 -1
- package/skills/services-agreement/template-filling-execution.md +81 -0
- package/skills/shared/template-filling-execution.md +2 -2
- package/skills/soc2-readiness/SKILL.md +2 -0
- package/skills/unit-test-philosophy/SKILL.md +3 -0
- package/skills/venture-financing/CONNECTORS.md +2 -2
- package/skills/venture-financing/SKILL.md +2 -0
- package/content/templates/openagreements-restrictive-covenant-wyoming/practice-note.md +0 -103
- package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/CHANGELOG.md +0 -468
- package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/LICENSE +0 -8
- package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/SECURITY.md +0 -50
- package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/index.d.ts +0 -43
- package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +0 -2
- package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/conventions.js +0 -203
- package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/dom-parser.js +0 -322
- package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/dom.js +0 -1879
- package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/entities.js +0 -2166
- package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/index.js +0 -4
- package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/sax.js +0 -662
- package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/package.json +0 -71
- package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/readme.md +0 -356
- package/node_modules/core-util-is/LICENSE +0 -19
- package/node_modules/core-util-is/README.md +0 -3
- package/node_modules/core-util-is/lib/util.js +0 -107
- package/node_modules/core-util-is/package.json +0 -38
- package/node_modules/immediate/LICENSE.txt +0 -20
- package/node_modules/immediate/README.md +0 -93
- package/node_modules/immediate/dist/immediate.js +0 -75
- package/node_modules/immediate/dist/immediate.min.js +0 -1
- package/node_modules/immediate/lib/browser.js +0 -69
- package/node_modules/immediate/lib/index.js +0 -73
- package/node_modules/immediate/package.json +0 -42
- package/node_modules/inherits/LICENSE +0 -16
- package/node_modules/inherits/README.md +0 -42
- package/node_modules/inherits/inherits.js +0 -9
- package/node_modules/inherits/inherits_browser.js +0 -27
- package/node_modules/inherits/package.json +0 -29
- package/node_modules/isarray/.npmignore +0 -1
- package/node_modules/isarray/.travis.yml +0 -4
- package/node_modules/isarray/Makefile +0 -6
- package/node_modules/isarray/README.md +0 -60
- package/node_modules/isarray/component.json +0 -19
- package/node_modules/isarray/index.js +0 -5
- package/node_modules/isarray/package.json +0 -45
- package/node_modules/isarray/test.js +0 -20
- package/node_modules/jszip/.codeclimate.yml +0 -16
- package/node_modules/jszip/.editorconfig +0 -8
- package/node_modules/jszip/.eslintrc.js +0 -43
- package/node_modules/jszip/.github/workflows/pr.yaml +0 -58
- package/node_modules/jszip/.jekyll-metadata +0 -0
- package/node_modules/jszip/.travis.yml +0 -17
- package/node_modules/jszip/CHANGES.md +0 -204
- package/node_modules/jszip/LICENSE.markdown +0 -651
- package/node_modules/jszip/README.markdown +0 -33
- package/node_modules/jszip/deps.js +0 -37
- package/node_modules/jszip/dist/jszip.js +0 -11577
- package/node_modules/jszip/dist/jszip.min.js +0 -13
- package/node_modules/jszip/graph.svg +0 -601
- package/node_modules/jszip/index.d.ts +0 -330
- package/node_modules/jszip/lib/base64.js +0 -106
- package/node_modules/jszip/lib/compressedObject.js +0 -74
- package/node_modules/jszip/lib/compressions.js +0 -14
- package/node_modules/jszip/lib/crc32.js +0 -77
- package/node_modules/jszip/lib/defaults.js +0 -11
- package/node_modules/jszip/lib/external.js +0 -18
- package/node_modules/jszip/lib/flate.js +0 -85
- package/node_modules/jszip/lib/generate/ZipFileWorker.js +0 -539
- package/node_modules/jszip/lib/generate/index.js +0 -57
- package/node_modules/jszip/lib/index.js +0 -55
- package/node_modules/jszip/lib/license_header.js +0 -11
- package/node_modules/jszip/lib/load.js +0 -88
- package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +0 -74
- package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +0 -42
- package/node_modules/jszip/lib/nodejsUtils.js +0 -57
- package/node_modules/jszip/lib/object.js +0 -384
- package/node_modules/jszip/lib/readable-stream-browser.js +0 -10
- package/node_modules/jszip/lib/reader/ArrayReader.js +0 -57
- package/node_modules/jszip/lib/reader/DataReader.js +0 -116
- package/node_modules/jszip/lib/reader/NodeBufferReader.js +0 -19
- package/node_modules/jszip/lib/reader/StringReader.js +0 -38
- package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +0 -22
- package/node_modules/jszip/lib/reader/readerFor.js +0 -28
- package/node_modules/jszip/lib/signature.js +0 -7
- package/node_modules/jszip/lib/stream/ConvertWorker.js +0 -26
- package/node_modules/jszip/lib/stream/Crc32Probe.js +0 -24
- package/node_modules/jszip/lib/stream/DataLengthProbe.js +0 -29
- package/node_modules/jszip/lib/stream/DataWorker.js +0 -116
- package/node_modules/jszip/lib/stream/GenericWorker.js +0 -263
- package/node_modules/jszip/lib/stream/StreamHelper.js +0 -214
- package/node_modules/jszip/lib/support.js +0 -38
- package/node_modules/jszip/lib/utf8.js +0 -275
- package/node_modules/jszip/lib/utils.js +0 -501
- package/node_modules/jszip/lib/zipEntries.js +0 -261
- package/node_modules/jszip/lib/zipEntry.js +0 -293
- package/node_modules/jszip/lib/zipObject.js +0 -133
- package/node_modules/jszip/package.json +0 -67
- package/node_modules/jszip/sponsors.md +0 -21
- package/node_modules/jszip/tsconfig.json +0 -101
- package/node_modules/jszip/vendor/FileSaver.js +0 -247
- package/node_modules/lie/README.md +0 -62
- package/node_modules/lie/dist/lie.js +0 -350
- package/node_modules/lie/dist/lie.min.js +0 -1
- package/node_modules/lie/dist/lie.polyfill.js +0 -358
- package/node_modules/lie/dist/lie.polyfill.min.js +0 -1
- package/node_modules/lie/lib/browser.js +0 -273
- package/node_modules/lie/lib/index.js +0 -298
- package/node_modules/lie/license.md +0 -7
- package/node_modules/lie/lie.d.ts +0 -244
- package/node_modules/lie/package.json +0 -69
- package/node_modules/lie/polyfill.js +0 -4
- package/node_modules/pako/LICENSE +0 -21
- package/node_modules/pako/README.md +0 -191
- package/node_modules/pako/dist/pako.js +0 -6818
- package/node_modules/pako/dist/pako.min.js +0 -1
- package/node_modules/pako/dist/pako_deflate.js +0 -3997
- package/node_modules/pako/dist/pako_deflate.min.js +0 -1
- package/node_modules/pako/dist/pako_inflate.js +0 -3300
- package/node_modules/pako/dist/pako_inflate.min.js +0 -1
- package/node_modules/pako/index.js +0 -14
- package/node_modules/pako/lib/deflate.js +0 -400
- package/node_modules/pako/lib/inflate.js +0 -423
- package/node_modules/pako/lib/utils/common.js +0 -105
- package/node_modules/pako/lib/utils/strings.js +0 -187
- package/node_modules/pako/lib/zlib/README +0 -59
- package/node_modules/pako/lib/zlib/adler32.js +0 -51
- package/node_modules/pako/lib/zlib/constants.js +0 -68
- package/node_modules/pako/lib/zlib/crc32.js +0 -59
- package/node_modules/pako/lib/zlib/deflate.js +0 -1874
- package/node_modules/pako/lib/zlib/gzheader.js +0 -58
- package/node_modules/pako/lib/zlib/inffast.js +0 -345
- package/node_modules/pako/lib/zlib/inflate.js +0 -1556
- package/node_modules/pako/lib/zlib/inftrees.js +0 -343
- package/node_modules/pako/lib/zlib/messages.js +0 -32
- package/node_modules/pako/lib/zlib/trees.js +0 -1222
- package/node_modules/pako/lib/zlib/zstream.js +0 -47
- package/node_modules/pako/package.json +0 -44
- package/node_modules/process-nextick-args/index.js +0 -45
- package/node_modules/process-nextick-args/license.md +0 -19
- package/node_modules/process-nextick-args/package.json +0 -25
- package/node_modules/process-nextick-args/readme.md +0 -18
- package/node_modules/readable-stream/.travis.yml +0 -34
- package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/readable-stream/README.md +0 -58
- package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/node_modules/readable-stream/duplex-browser.js +0 -1
- package/node_modules/readable-stream/duplex.js +0 -1
- package/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/node_modules/readable-stream/lib/_stream_writable.js +0 -685
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/readable-stream/package.json +0 -52
- package/node_modules/readable-stream/passthrough.js +0 -1
- package/node_modules/readable-stream/readable-browser.js +0 -7
- package/node_modules/readable-stream/readable.js +0 -19
- package/node_modules/readable-stream/transform.js +0 -1
- package/node_modules/readable-stream/writable-browser.js +0 -1
- package/node_modules/readable-stream/writable.js +0 -8
- package/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/safe-buffer/index.js +0 -62
- package/node_modules/safe-buffer/package.json +0 -37
- package/node_modules/setimmediate/LICENSE.txt +0 -20
- package/node_modules/setimmediate/package.json +0 -30
- package/node_modules/setimmediate/setImmediate.js +0 -186
- package/node_modules/string_decoder/.travis.yml +0 -50
- package/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/string_decoder/README.md +0 -47
- package/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/string_decoder/package.json +0 -31
- package/node_modules/util-deprecate/History.md +0 -16
- package/node_modules/util-deprecate/LICENSE +0 -24
- package/node_modules/util-deprecate/README.md +0 -53
- package/node_modules/util-deprecate/browser.js +0 -67
- package/node_modules/util-deprecate/node.js +0 -6
- package/node_modules/util-deprecate/package.json +0 -27
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@xmldom/xmldom",
|
|
3
|
-
"version": "0.8.11",
|
|
4
|
-
"description": "A pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"w3c",
|
|
7
|
-
"dom",
|
|
8
|
-
"xml",
|
|
9
|
-
"parser",
|
|
10
|
-
"javascript",
|
|
11
|
-
"DOMParser",
|
|
12
|
-
"XMLSerializer",
|
|
13
|
-
"ponyfill"
|
|
14
|
-
],
|
|
15
|
-
"homepage": "https://github.com/xmldom/xmldom",
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "git://github.com/xmldom/xmldom.git"
|
|
19
|
-
},
|
|
20
|
-
"main": "lib/index.js",
|
|
21
|
-
"types": "index.d.ts",
|
|
22
|
-
"files": [
|
|
23
|
-
"CHANGELOG.md",
|
|
24
|
-
"LICENSE",
|
|
25
|
-
"readme.md",
|
|
26
|
-
"SECURITY.md",
|
|
27
|
-
"index.d.ts",
|
|
28
|
-
"lib"
|
|
29
|
-
],
|
|
30
|
-
"scripts": {
|
|
31
|
-
"lint": "eslint lib test",
|
|
32
|
-
"format": "prettier --write test",
|
|
33
|
-
"changelog": "auto-changelog --unreleased-only",
|
|
34
|
-
"start": "nodemon --watch package.json --watch lib --watch test --exec 'npm --silent run test && npm --silent run lint'",
|
|
35
|
-
"stryker": "stryker run",
|
|
36
|
-
"stryker:dry-run": "stryker run -m '' --reporters progress",
|
|
37
|
-
"test": "jest",
|
|
38
|
-
"testrelease": "npm test && eslint lib",
|
|
39
|
-
"version": "./changelog-has-version.sh",
|
|
40
|
-
"release": "np --no-yarn --test-script testrelease --branch release-0.8.x patch"
|
|
41
|
-
},
|
|
42
|
-
"engines": {
|
|
43
|
-
"node": ">=10.0.0"
|
|
44
|
-
},
|
|
45
|
-
"dependencies": {},
|
|
46
|
-
"devDependencies": {
|
|
47
|
-
"@stryker-mutator/core": "5.6.1",
|
|
48
|
-
"auto-changelog": "2.4.0",
|
|
49
|
-
"eslint": "8.25.0",
|
|
50
|
-
"eslint-config-prettier": "8.5.0",
|
|
51
|
-
"eslint-plugin-es5": "1.5.0",
|
|
52
|
-
"eslint-plugin-prettier": "4.2.1",
|
|
53
|
-
"get-stream": "6.0.1",
|
|
54
|
-
"jest": "27.5.1",
|
|
55
|
-
"nodemon": "2.0.20",
|
|
56
|
-
"np": "9.2.0",
|
|
57
|
-
"prettier": "2.7.1",
|
|
58
|
-
"xmltest": "1.5.0",
|
|
59
|
-
"yauzl": "2.10.0"
|
|
60
|
-
},
|
|
61
|
-
"bugs": {
|
|
62
|
-
"url": "https://github.com/xmldom/xmldom/issues"
|
|
63
|
-
},
|
|
64
|
-
"license": "MIT",
|
|
65
|
-
"auto-changelog": {
|
|
66
|
-
"prepend": true,
|
|
67
|
-
"remote": "upstream",
|
|
68
|
-
"tagPrefix": "",
|
|
69
|
-
"template": "./auto-changelog.hbs"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
# @xmldom/xmldom
|
|
2
|
-
|
|
3
|
-
***Since version 0.7.0 this package is published to npm as [`@xmldom/xmldom`](https://www.npmjs.com/package/@xmldom/xmldom) and no longer as [`xmldom`](https://www.npmjs.com/package/xmldom), because [we are no longer able to publish `xmldom`](https://github.com/xmldom/xmldom/issues/271).***
|
|
4
|
-
*For better readability in the docs we will continue to talk about this library as "xmldom".*
|
|
5
|
-
|
|
6
|
-
[](https://github.com/xmldom/xmldom/blob/master/LICENSE)
|
|
7
|
-
[](https://www.npmjs.com/package/@xmldom/xmldom)
|
|
8
|
-
[](https://snyk.io/advisor/npm-package/@xmldom/xmldom)
|
|
9
|
-
[](https://github.com/xmldom/xmldom/issues?q=is%3Aissue+is%3Aopen+label%3Abug)
|
|
10
|
-
[](https://github.com/xmldom/xmldom/issues?q=is%3Aissue+is%3Aopen+label%3Ahelp-wanted)
|
|
11
|
-
[](https://dashboard.stryker-mutator.io/reports/github.com/xmldom/xmldom/master)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
xmldom is a javascript [ponyfill](https://ponyfill.com/) to provide the following APIs [that are present in modern browsers](https://caniuse.com/xml-serializer) to other runtimes:
|
|
15
|
-
- convert an XML string into a DOM tree
|
|
16
|
-
```
|
|
17
|
-
new DOMParser().parseFromString(xml, mimeType) => Document
|
|
18
|
-
```
|
|
19
|
-
- create, access and modify a DOM tree
|
|
20
|
-
```
|
|
21
|
-
new DOMImplementation().createDocument(...) => Document
|
|
22
|
-
```
|
|
23
|
-
- serialize a DOM tree back into an XML string
|
|
24
|
-
```
|
|
25
|
-
new XMLSerializer().serializeToString(node) => string
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
The target runtimes `xmldom` supports are currently Node >= v10 (ES5) and Rhino ([not tested as part of CI](https://github.com/xmldom/xmldom/discussions/214)).
|
|
29
|
-
|
|
30
|
-
When deciding how to fix bugs or implement features, `xmldom` tries to stay as close as possible to the various [related specifications/standards](#specs).
|
|
31
|
-
As indicated by the version starting with `0.`, this implementation is not feature complete and some implemented features differ from what the specifications describe.
|
|
32
|
-
**Issues and PRs for such differences are always welcome, even when they only provide a failing test case.**
|
|
33
|
-
|
|
34
|
-
This project was forked from it's [original source](https://github.com/jindw/xmldom) in 2019, more details about that transition can be found in the [CHANGELOG](CHANGELOG.md#maintainer-changes).
|
|
35
|
-
|
|
36
|
-
## Usage
|
|
37
|
-
|
|
38
|
-
### Install:
|
|
39
|
-
|
|
40
|
-
> npm install @xmldom/xmldom
|
|
41
|
-
|
|
42
|
-
### Example:
|
|
43
|
-
|
|
44
|
-
[In NodeJS](examples/nodejs/src/index.js)
|
|
45
|
-
```javascript
|
|
46
|
-
const { DOMParser, XMLSerializer } = require('@xmldom/xmldom')
|
|
47
|
-
|
|
48
|
-
const source = `<xml xmlns="a">
|
|
49
|
-
<child>test</child>
|
|
50
|
-
<child/>
|
|
51
|
-
</xml>`
|
|
52
|
-
|
|
53
|
-
const doc = new DOMParser().parseFromString(source, 'text/xml')
|
|
54
|
-
|
|
55
|
-
const serialized = new XMLSerializer().serializeToString(doc)
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
Note: in Typescript ~and ES6~(see #316) you can use the `import` approach, as follows:
|
|
59
|
-
|
|
60
|
-
```typescript
|
|
61
|
-
import { DOMParser } from '@xmldom/xmldom'
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## API Reference
|
|
65
|
-
|
|
66
|
-
* [DOMParser](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser):
|
|
67
|
-
|
|
68
|
-
```javascript
|
|
69
|
-
parseFromString(xmlsource,mimeType)
|
|
70
|
-
```
|
|
71
|
-
* **options extension** _by xmldom_ (not DOM standard!!)
|
|
72
|
-
|
|
73
|
-
```javascript
|
|
74
|
-
//added the options argument
|
|
75
|
-
new DOMParser(options)
|
|
76
|
-
|
|
77
|
-
//errorHandler is supported
|
|
78
|
-
new DOMParser({
|
|
79
|
-
/**
|
|
80
|
-
* locator is always need for error position info
|
|
81
|
-
*/
|
|
82
|
-
locator:{},
|
|
83
|
-
/**
|
|
84
|
-
* you can override the errorHandler for xml parser
|
|
85
|
-
* @link http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html
|
|
86
|
-
*/
|
|
87
|
-
errorHandler:{warning:function(w){console.warn(w)},error:callback,fatalError:callback}
|
|
88
|
-
//only callback model
|
|
89
|
-
//errorHandler:function(level,msg){console.log(level,msg)}
|
|
90
|
-
})
|
|
91
|
-
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
* [XMLSerializer](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer)
|
|
95
|
-
|
|
96
|
-
```javascript
|
|
97
|
-
serializeToString(node)
|
|
98
|
-
```
|
|
99
|
-
### DOM level2 method and attribute:
|
|
100
|
-
|
|
101
|
-
* [Node](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247)
|
|
102
|
-
|
|
103
|
-
readonly class properties (aka `NodeType`),
|
|
104
|
-
these can be accessed from any `Node` instance `node`:
|
|
105
|
-
`if (node.nodeType === node.ELEMENT_NODE) {...`
|
|
106
|
-
|
|
107
|
-
1. `ELEMENT_NODE` (`1`)
|
|
108
|
-
2. `ATTRIBUTE_NODE` (`2`)
|
|
109
|
-
3. `TEXT_NODE` (`3`)
|
|
110
|
-
4. `CDATA_SECTION_NODE` (`4`)
|
|
111
|
-
5. `ENTITY_REFERENCE_NODE` (`5`)
|
|
112
|
-
6. `ENTITY_NODE` (`6`)
|
|
113
|
-
7. `PROCESSING_INSTRUCTION_NODE` (`7`)
|
|
114
|
-
8. `COMMENT_NODE` (`8`)
|
|
115
|
-
9. `DOCUMENT_NODE` (`9`)
|
|
116
|
-
10. `DOCUMENT_TYPE_NODE` (`10`)
|
|
117
|
-
11. `DOCUMENT_FRAGMENT_NODE` (`11`)
|
|
118
|
-
12. `NOTATION_NODE` (`12`)
|
|
119
|
-
|
|
120
|
-
attribute:
|
|
121
|
-
- `nodeValue` | `prefix`
|
|
122
|
-
|
|
123
|
-
readonly attribute:
|
|
124
|
-
- `nodeName` | `nodeType` | `parentNode` | `childNodes` | `firstChild` | `lastChild` | `previousSibling` | `nextSibling` | `attributes` | `ownerDocument` | `namespaceURI` | `localName`
|
|
125
|
-
|
|
126
|
-
method:
|
|
127
|
-
* `insertBefore(newChild, refChild)`
|
|
128
|
-
* `replaceChild(newChild, oldChild)`
|
|
129
|
-
* `removeChild(oldChild)`
|
|
130
|
-
* `appendChild(newChild)`
|
|
131
|
-
* `hasChildNodes()`
|
|
132
|
-
* `cloneNode(deep)`
|
|
133
|
-
* `normalize()`
|
|
134
|
-
* `isSupported(feature, version)`
|
|
135
|
-
* `hasAttributes()`
|
|
136
|
-
* [DOMException](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ecma-script-binding.html)
|
|
137
|
-
|
|
138
|
-
extends the Error type thrown as part of DOM API.
|
|
139
|
-
|
|
140
|
-
readonly class properties:
|
|
141
|
-
- `INDEX_SIZE_ERR` (`1`)
|
|
142
|
-
- `DOMSTRING_SIZE_ERR` (`2`)
|
|
143
|
-
- `HIERARCHY_REQUEST_ERR` (`3`)
|
|
144
|
-
- `WRONG_DOCUMENT_ERR` (`4`)
|
|
145
|
-
- `INVALID_CHARACTER_ERR` (`5`)
|
|
146
|
-
- `NO_DATA_ALLOWED_ERR` (`6`)
|
|
147
|
-
- `NO_MODIFICATION_ALLOWED_ERR` (`7`)
|
|
148
|
-
- `NOT_FOUND_ERR` (`8`)
|
|
149
|
-
- `NOT_SUPPORTED_ERR` (`9`)
|
|
150
|
-
- `INUSE_ATTRIBUTE_ERR` (`10`)
|
|
151
|
-
- `INVALID_STATE_ERR` (`11`)
|
|
152
|
-
- `SYNTAX_ERR` (`12`)
|
|
153
|
-
- `INVALID_MODIFICATION_ERR` (`13`)
|
|
154
|
-
- `NAMESPACE_ERR` (`14`)
|
|
155
|
-
- `INVALID_ACCESS_ERR` (`15`)
|
|
156
|
-
|
|
157
|
-
attributes:
|
|
158
|
-
- `code` with a value matching one of the above constants.
|
|
159
|
-
|
|
160
|
-
* [DOMImplementation](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-102161490)
|
|
161
|
-
|
|
162
|
-
method:
|
|
163
|
-
- `hasFeature(feature, version)`
|
|
164
|
-
- `createDocumentType(qualifiedName, publicId, systemId)`
|
|
165
|
-
- `createDocument(namespaceURI, qualifiedName, doctype)`
|
|
166
|
-
|
|
167
|
-
* [Document](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#i-Document) : Node
|
|
168
|
-
|
|
169
|
-
readonly attribute:
|
|
170
|
-
- `doctype` | `implementation` | `documentElement`
|
|
171
|
-
|
|
172
|
-
method:
|
|
173
|
-
- `createElement(tagName)`
|
|
174
|
-
- `createDocumentFragment()`
|
|
175
|
-
- `createTextNode(data)`
|
|
176
|
-
- `createComment(data)`
|
|
177
|
-
- `createCDATASection(data)`
|
|
178
|
-
- `createProcessingInstruction(target, data)`
|
|
179
|
-
- `createAttribute(name)`
|
|
180
|
-
- `createEntityReference(name)`
|
|
181
|
-
- `getElementsByTagName(tagname)`
|
|
182
|
-
- `importNode(importedNode, deep)`
|
|
183
|
-
- `createElementNS(namespaceURI, qualifiedName)`
|
|
184
|
-
- `createAttributeNS(namespaceURI, qualifiedName)`
|
|
185
|
-
- `getElementsByTagNameNS(namespaceURI, localName)`
|
|
186
|
-
- `getElementById(elementId)`
|
|
187
|
-
|
|
188
|
-
* [DocumentFragment](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-B63ED1A3) : Node
|
|
189
|
-
* [Element](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-745549614) : Node
|
|
190
|
-
|
|
191
|
-
readonly attribute:
|
|
192
|
-
- `tagName`
|
|
193
|
-
|
|
194
|
-
method:
|
|
195
|
-
- `getAttribute(name)`
|
|
196
|
-
- `setAttribute(name, value)`
|
|
197
|
-
- `removeAttribute(name)`
|
|
198
|
-
- `getAttributeNode(name)`
|
|
199
|
-
- `setAttributeNode(newAttr)`
|
|
200
|
-
- `removeAttributeNode(oldAttr)`
|
|
201
|
-
- `getElementsByTagName(name)`
|
|
202
|
-
- `getAttributeNS(namespaceURI, localName)`
|
|
203
|
-
- `setAttributeNS(namespaceURI, qualifiedName, value)`
|
|
204
|
-
- `removeAttributeNS(namespaceURI, localName)`
|
|
205
|
-
- `getAttributeNodeNS(namespaceURI, localName)`
|
|
206
|
-
- `setAttributeNodeNS(newAttr)`
|
|
207
|
-
- `getElementsByTagNameNS(namespaceURI, localName)`
|
|
208
|
-
- `hasAttribute(name)`
|
|
209
|
-
- `hasAttributeNS(namespaceURI, localName)`
|
|
210
|
-
|
|
211
|
-
* [Attr](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-637646024) : Node
|
|
212
|
-
|
|
213
|
-
attribute:
|
|
214
|
-
- `value`
|
|
215
|
-
|
|
216
|
-
readonly attribute:
|
|
217
|
-
- `name` | `specified` | `ownerElement`
|
|
218
|
-
|
|
219
|
-
* [NodeList](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177)
|
|
220
|
-
|
|
221
|
-
readonly attribute:
|
|
222
|
-
- `length`
|
|
223
|
-
|
|
224
|
-
method:
|
|
225
|
-
- `item(index)`
|
|
226
|
-
|
|
227
|
-
* [NamedNodeMap](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1780488922)
|
|
228
|
-
|
|
229
|
-
readonly attribute:
|
|
230
|
-
- `length`
|
|
231
|
-
|
|
232
|
-
method:
|
|
233
|
-
- `getNamedItem(name)`
|
|
234
|
-
- `setNamedItem(arg)`
|
|
235
|
-
- `removeNamedItem(name)`
|
|
236
|
-
- `item(index)`
|
|
237
|
-
- `getNamedItemNS(namespaceURI, localName)`
|
|
238
|
-
- `setNamedItemNS(arg)`
|
|
239
|
-
- `removeNamedItemNS(namespaceURI, localName)`
|
|
240
|
-
|
|
241
|
-
* [CharacterData](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-FF21A306) : Node
|
|
242
|
-
|
|
243
|
-
method:
|
|
244
|
-
- `substringData(offset, count)`
|
|
245
|
-
- `appendData(arg)`
|
|
246
|
-
- `insertData(offset, arg)`
|
|
247
|
-
- `deleteData(offset, count)`
|
|
248
|
-
- `replaceData(offset, count, arg)`
|
|
249
|
-
|
|
250
|
-
* [Text](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1312295772) : CharacterData
|
|
251
|
-
|
|
252
|
-
method:
|
|
253
|
-
- `splitText(offset)`
|
|
254
|
-
|
|
255
|
-
* [CDATASection](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-667469212)
|
|
256
|
-
* [Comment](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1728279322) : CharacterData
|
|
257
|
-
|
|
258
|
-
* [DocumentType](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-412266927)
|
|
259
|
-
|
|
260
|
-
readonly attribute:
|
|
261
|
-
- `name` | `entities` | `notations` | `publicId` | `systemId` | `internalSubset`
|
|
262
|
-
|
|
263
|
-
* Notation : Node
|
|
264
|
-
|
|
265
|
-
readonly attribute:
|
|
266
|
-
- `publicId` | `systemId`
|
|
267
|
-
|
|
268
|
-
* Entity : Node
|
|
269
|
-
|
|
270
|
-
readonly attribute:
|
|
271
|
-
- `publicId` | `systemId` | `notationName`
|
|
272
|
-
|
|
273
|
-
* EntityReference : Node
|
|
274
|
-
* ProcessingInstruction : Node
|
|
275
|
-
|
|
276
|
-
attribute:
|
|
277
|
-
- `data`
|
|
278
|
-
readonly attribute:
|
|
279
|
-
- `target`
|
|
280
|
-
|
|
281
|
-
### DOM level 3 support:
|
|
282
|
-
|
|
283
|
-
* [Node](http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-textContent)
|
|
284
|
-
|
|
285
|
-
attribute:
|
|
286
|
-
- `textContent`
|
|
287
|
-
|
|
288
|
-
method:
|
|
289
|
-
- `isDefaultNamespace(namespaceURI)`
|
|
290
|
-
- `lookupNamespaceURI(prefix)`
|
|
291
|
-
|
|
292
|
-
### DOM extension by xmldom
|
|
293
|
-
|
|
294
|
-
* [Node] Source position extension;
|
|
295
|
-
|
|
296
|
-
attribute:
|
|
297
|
-
- `lineNumber` //number starting from `1`
|
|
298
|
-
- `columnNumber` //number starting from `1`
|
|
299
|
-
|
|
300
|
-
## Specs
|
|
301
|
-
|
|
302
|
-
The implementation is based on several specifications:
|
|
303
|
-
|
|
304
|
-
<!-- Should open in new tab and the links in the SVG should be clickable there! -->
|
|
305
|
-
<a href="https://raw.githubusercontent.com/xmldom/xmldom/master/docs/specs.svg" target="_blank" rel="noopener noreferrer nofollow" ></a>
|
|
306
|
-
|
|
307
|
-
### DOM Parsing and Serialization
|
|
308
|
-
|
|
309
|
-
From the [W3C DOM Parsing and Serialization (WD 2016)](https://www.w3.org/TR/2016/WD-DOM-Parsing-20160517/) `xmldom` provides an implementation for the interfaces:
|
|
310
|
-
- `DOMParser`
|
|
311
|
-
- `XMLSerializer`
|
|
312
|
-
|
|
313
|
-
Note that there are some known deviations between this implementation and the W3 specifications.
|
|
314
|
-
|
|
315
|
-
Note: [The latest version of this spec](https://w3c.github.io/DOM-Parsing/) has the status "Editors Draft", since it is under active development. One major change is that [the definition of the `DOMParser` interface has been moved to the HTML spec](https://w3c.github.io/DOM-Parsing/#the-domparser-interface)
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
### DOM
|
|
319
|
-
|
|
320
|
-
The original author claims that xmldom implements [DOM Level 2] in a "fully compatible" way and some parts of [DOM Level 3], but there are not enough tests to prove this. Both Specifications are now superseded by the [DOM Level 4 aka Living standard] wich has a much broader scope than xmldom.
|
|
321
|
-
|
|
322
|
-
xmldom implements the following interfaces (most constructors are currently not exposed):
|
|
323
|
-
- `Attr`
|
|
324
|
-
- `CDATASection`
|
|
325
|
-
- `CharacterData`
|
|
326
|
-
- `Comment`
|
|
327
|
-
- `Document`
|
|
328
|
-
- `DocumentFragment`
|
|
329
|
-
- `DocumentType`
|
|
330
|
-
- `DOMException` (constructor exposed)
|
|
331
|
-
- `DOMImplementation` (constructor exposed)
|
|
332
|
-
- `Element`
|
|
333
|
-
- `Entity`
|
|
334
|
-
- `EntityReference`
|
|
335
|
-
- `LiveNodeList`
|
|
336
|
-
- `NamedNodeMap`
|
|
337
|
-
- `Node` (constructor exposed)
|
|
338
|
-
- `NodeList`
|
|
339
|
-
- `Notation`
|
|
340
|
-
- `ProcessingInstruction`
|
|
341
|
-
- `Text`
|
|
342
|
-
|
|
343
|
-
more details are available in the (incomplete) [API Reference](#api-reference) section.
|
|
344
|
-
|
|
345
|
-
### HTML
|
|
346
|
-
|
|
347
|
-
xmldom does not have any goal of supporting the full spec, but it has some capability to parse, report and serialize things differently when "detecting HTML" (by checking the default namespace).
|
|
348
|
-
There is an upcoming change to better align the implementation with the latest specs, related to <https://github.com/xmldom/xmldom/issues/203>.
|
|
349
|
-
|
|
350
|
-
### SAX, XML, XMLNS
|
|
351
|
-
|
|
352
|
-
xmldom has an own SAX parser implementation to do the actual parsing, which implements some interfaces in alignment with the Java interfaces SAX defines:
|
|
353
|
-
- `XMLReader`
|
|
354
|
-
- `DOMHandler`
|
|
355
|
-
|
|
356
|
-
There is an idea/proposal to make it possible to replace it with something else in <https://github.com/xmldom/xmldom/issues/55>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Copyright Node.js contributors. All rights reserved.
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
of this software and associated documentation files (the "Software"), to
|
|
5
|
-
deal in the Software without restriction, including without limitation the
|
|
6
|
-
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
-
sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
furnished to do so, subject to the following conditions:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in
|
|
11
|
-
all copies or substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
18
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
19
|
-
IN THE SOFTWARE.
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
2
|
-
//
|
|
3
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
4
|
-
// copy of this software and associated documentation files (the
|
|
5
|
-
// "Software"), to deal in the Software without restriction, including
|
|
6
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
8
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
9
|
-
// following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included
|
|
12
|
-
// in all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
15
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
17
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
18
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
19
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
20
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
-
|
|
22
|
-
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
23
|
-
// because it is fragile and can be easily faked with `Object.create()`.
|
|
24
|
-
|
|
25
|
-
function isArray(arg) {
|
|
26
|
-
if (Array.isArray) {
|
|
27
|
-
return Array.isArray(arg);
|
|
28
|
-
}
|
|
29
|
-
return objectToString(arg) === '[object Array]';
|
|
30
|
-
}
|
|
31
|
-
exports.isArray = isArray;
|
|
32
|
-
|
|
33
|
-
function isBoolean(arg) {
|
|
34
|
-
return typeof arg === 'boolean';
|
|
35
|
-
}
|
|
36
|
-
exports.isBoolean = isBoolean;
|
|
37
|
-
|
|
38
|
-
function isNull(arg) {
|
|
39
|
-
return arg === null;
|
|
40
|
-
}
|
|
41
|
-
exports.isNull = isNull;
|
|
42
|
-
|
|
43
|
-
function isNullOrUndefined(arg) {
|
|
44
|
-
return arg == null;
|
|
45
|
-
}
|
|
46
|
-
exports.isNullOrUndefined = isNullOrUndefined;
|
|
47
|
-
|
|
48
|
-
function isNumber(arg) {
|
|
49
|
-
return typeof arg === 'number';
|
|
50
|
-
}
|
|
51
|
-
exports.isNumber = isNumber;
|
|
52
|
-
|
|
53
|
-
function isString(arg) {
|
|
54
|
-
return typeof arg === 'string';
|
|
55
|
-
}
|
|
56
|
-
exports.isString = isString;
|
|
57
|
-
|
|
58
|
-
function isSymbol(arg) {
|
|
59
|
-
return typeof arg === 'symbol';
|
|
60
|
-
}
|
|
61
|
-
exports.isSymbol = isSymbol;
|
|
62
|
-
|
|
63
|
-
function isUndefined(arg) {
|
|
64
|
-
return arg === void 0;
|
|
65
|
-
}
|
|
66
|
-
exports.isUndefined = isUndefined;
|
|
67
|
-
|
|
68
|
-
function isRegExp(re) {
|
|
69
|
-
return objectToString(re) === '[object RegExp]';
|
|
70
|
-
}
|
|
71
|
-
exports.isRegExp = isRegExp;
|
|
72
|
-
|
|
73
|
-
function isObject(arg) {
|
|
74
|
-
return typeof arg === 'object' && arg !== null;
|
|
75
|
-
}
|
|
76
|
-
exports.isObject = isObject;
|
|
77
|
-
|
|
78
|
-
function isDate(d) {
|
|
79
|
-
return objectToString(d) === '[object Date]';
|
|
80
|
-
}
|
|
81
|
-
exports.isDate = isDate;
|
|
82
|
-
|
|
83
|
-
function isError(e) {
|
|
84
|
-
return (objectToString(e) === '[object Error]' || e instanceof Error);
|
|
85
|
-
}
|
|
86
|
-
exports.isError = isError;
|
|
87
|
-
|
|
88
|
-
function isFunction(arg) {
|
|
89
|
-
return typeof arg === 'function';
|
|
90
|
-
}
|
|
91
|
-
exports.isFunction = isFunction;
|
|
92
|
-
|
|
93
|
-
function isPrimitive(arg) {
|
|
94
|
-
return arg === null ||
|
|
95
|
-
typeof arg === 'boolean' ||
|
|
96
|
-
typeof arg === 'number' ||
|
|
97
|
-
typeof arg === 'string' ||
|
|
98
|
-
typeof arg === 'symbol' || // ES6 symbol
|
|
99
|
-
typeof arg === 'undefined';
|
|
100
|
-
}
|
|
101
|
-
exports.isPrimitive = isPrimitive;
|
|
102
|
-
|
|
103
|
-
exports.isBuffer = require('buffer').Buffer.isBuffer;
|
|
104
|
-
|
|
105
|
-
function objectToString(o) {
|
|
106
|
-
return Object.prototype.toString.call(o);
|
|
107
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "core-util-is",
|
|
3
|
-
"version": "1.0.3",
|
|
4
|
-
"description": "The `util.is*` functions introduced in Node v0.12.",
|
|
5
|
-
"main": "lib/util.js",
|
|
6
|
-
"files": [
|
|
7
|
-
"lib"
|
|
8
|
-
],
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git://github.com/isaacs/core-util-is"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"util",
|
|
15
|
-
"isBuffer",
|
|
16
|
-
"isArray",
|
|
17
|
-
"isNumber",
|
|
18
|
-
"isString",
|
|
19
|
-
"isRegExp",
|
|
20
|
-
"isThis",
|
|
21
|
-
"isThat",
|
|
22
|
-
"polyfill"
|
|
23
|
-
],
|
|
24
|
-
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
|
25
|
-
"license": "MIT",
|
|
26
|
-
"bugs": {
|
|
27
|
-
"url": "https://github.com/isaacs/core-util-is/issues"
|
|
28
|
-
},
|
|
29
|
-
"scripts": {
|
|
30
|
-
"test": "tap test.js",
|
|
31
|
-
"preversion": "npm test",
|
|
32
|
-
"postversion": "npm publish",
|
|
33
|
-
"prepublishOnly": "git push origin --follow-tags"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"tap": "^15.0.9"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, Domenic Denicola, Brian Cavalier
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
-
a copy of this software and associated documentation files (the
|
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
-
the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
|
12
|
-
included in all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|