open-agreements 0.7.6 → 0.7.7

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.
Files changed (250) hide show
  1. package/README.md +1 -1
  2. package/content/templates/openagreements-due-diligence-request-list/template.docx +0 -0
  3. package/content/templates/openagreements-due-diligence-request-list/template.md +1 -1
  4. package/dist/core/fill-pipeline.d.ts.map +1 -1
  5. package/dist/core/fill-pipeline.js +0 -8
  6. package/dist/core/fill-pipeline.js.map +1 -1
  7. package/dist/core/unified-pipeline.d.ts.map +1 -1
  8. package/dist/core/unified-pipeline.js +4 -6
  9. package/dist/core/unified-pipeline.js.map +1 -1
  10. package/gemini-extension.json +1 -1
  11. package/node_modules/@xmldom/xmldom/CHANGELOG.md +939 -0
  12. package/node_modules/@xmldom/xmldom/LICENSE +8 -0
  13. package/node_modules/@xmldom/xmldom/SECURITY.md +50 -0
  14. package/node_modules/@xmldom/xmldom/index.d.ts +1664 -0
  15. package/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +3 -0
  16. package/node_modules/@xmldom/xmldom/lib/conventions.js +429 -0
  17. package/node_modules/@xmldom/xmldom/lib/dom-parser.js +586 -0
  18. package/node_modules/@xmldom/xmldom/lib/dom.js +3192 -0
  19. package/node_modules/@xmldom/xmldom/lib/entities.js +2171 -0
  20. package/node_modules/@xmldom/xmldom/lib/errors.js +202 -0
  21. package/node_modules/@xmldom/xmldom/lib/grammar.js +533 -0
  22. package/node_modules/@xmldom/xmldom/lib/index.js +41 -0
  23. package/node_modules/@xmldom/xmldom/lib/sax.js +929 -0
  24. package/node_modules/@xmldom/xmldom/package.json +74 -0
  25. package/node_modules/@xmldom/xmldom/readme.md +364 -0
  26. package/node_modules/core-util-is/LICENSE +19 -0
  27. package/node_modules/core-util-is/README.md +3 -0
  28. package/node_modules/core-util-is/lib/util.js +107 -0
  29. package/node_modules/core-util-is/package.json +38 -0
  30. package/node_modules/immediate/LICENSE.txt +20 -0
  31. package/node_modules/immediate/README.md +93 -0
  32. package/node_modules/immediate/dist/immediate.js +75 -0
  33. package/node_modules/immediate/dist/immediate.min.js +1 -0
  34. package/node_modules/immediate/lib/browser.js +69 -0
  35. package/node_modules/immediate/lib/index.js +73 -0
  36. package/node_modules/immediate/package.json +42 -0
  37. package/node_modules/inherits/LICENSE +16 -0
  38. package/node_modules/inherits/README.md +42 -0
  39. package/node_modules/inherits/inherits.js +9 -0
  40. package/node_modules/inherits/inherits_browser.js +27 -0
  41. package/node_modules/inherits/package.json +29 -0
  42. package/node_modules/isarray/.npmignore +1 -0
  43. package/node_modules/isarray/.travis.yml +4 -0
  44. package/node_modules/isarray/Makefile +6 -0
  45. package/node_modules/isarray/README.md +60 -0
  46. package/node_modules/isarray/component.json +19 -0
  47. package/node_modules/isarray/index.js +5 -0
  48. package/node_modules/isarray/package.json +45 -0
  49. package/node_modules/isarray/test.js +20 -0
  50. package/node_modules/jszip/.codeclimate.yml +16 -0
  51. package/node_modules/jszip/.editorconfig +8 -0
  52. package/node_modules/jszip/.eslintrc.js +43 -0
  53. package/node_modules/jszip/.github/workflows/pr.yaml +58 -0
  54. package/node_modules/jszip/.jekyll-metadata +0 -0
  55. package/node_modules/jszip/.travis.yml +17 -0
  56. package/node_modules/jszip/CHANGES.md +204 -0
  57. package/node_modules/jszip/LICENSE.markdown +651 -0
  58. package/node_modules/jszip/README.markdown +33 -0
  59. package/node_modules/jszip/deps.js +37 -0
  60. package/node_modules/jszip/dist/jszip.js +11577 -0
  61. package/node_modules/jszip/dist/jszip.min.js +13 -0
  62. package/node_modules/jszip/graph.svg +601 -0
  63. package/node_modules/jszip/index.d.ts +330 -0
  64. package/node_modules/jszip/lib/base64.js +106 -0
  65. package/node_modules/jszip/lib/compressedObject.js +74 -0
  66. package/node_modules/jszip/lib/compressions.js +14 -0
  67. package/node_modules/jszip/lib/crc32.js +77 -0
  68. package/node_modules/jszip/lib/defaults.js +11 -0
  69. package/node_modules/jszip/lib/external.js +18 -0
  70. package/node_modules/jszip/lib/flate.js +85 -0
  71. package/node_modules/jszip/lib/generate/ZipFileWorker.js +539 -0
  72. package/node_modules/jszip/lib/generate/index.js +57 -0
  73. package/node_modules/jszip/lib/index.js +55 -0
  74. package/node_modules/jszip/lib/license_header.js +11 -0
  75. package/node_modules/jszip/lib/load.js +88 -0
  76. package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +74 -0
  77. package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +42 -0
  78. package/node_modules/jszip/lib/nodejsUtils.js +57 -0
  79. package/node_modules/jszip/lib/object.js +384 -0
  80. package/node_modules/jszip/lib/readable-stream-browser.js +10 -0
  81. package/node_modules/jszip/lib/reader/ArrayReader.js +57 -0
  82. package/node_modules/jszip/lib/reader/DataReader.js +116 -0
  83. package/node_modules/jszip/lib/reader/NodeBufferReader.js +19 -0
  84. package/node_modules/jszip/lib/reader/StringReader.js +38 -0
  85. package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +22 -0
  86. package/node_modules/jszip/lib/reader/readerFor.js +28 -0
  87. package/node_modules/jszip/lib/signature.js +7 -0
  88. package/node_modules/jszip/lib/stream/ConvertWorker.js +26 -0
  89. package/node_modules/jszip/lib/stream/Crc32Probe.js +24 -0
  90. package/node_modules/jszip/lib/stream/DataLengthProbe.js +29 -0
  91. package/node_modules/jszip/lib/stream/DataWorker.js +116 -0
  92. package/node_modules/jszip/lib/stream/GenericWorker.js +263 -0
  93. package/node_modules/jszip/lib/stream/StreamHelper.js +214 -0
  94. package/node_modules/jszip/lib/support.js +38 -0
  95. package/node_modules/jszip/lib/utf8.js +275 -0
  96. package/node_modules/jszip/lib/utils.js +501 -0
  97. package/node_modules/jszip/lib/zipEntries.js +261 -0
  98. package/node_modules/jszip/lib/zipEntry.js +293 -0
  99. package/node_modules/jszip/lib/zipObject.js +133 -0
  100. package/node_modules/jszip/package.json +67 -0
  101. package/node_modules/jszip/sponsors.md +21 -0
  102. package/node_modules/jszip/tsconfig.json +101 -0
  103. package/node_modules/jszip/vendor/FileSaver.js +247 -0
  104. package/node_modules/lie/README.md +62 -0
  105. package/node_modules/lie/dist/lie.js +350 -0
  106. package/node_modules/lie/dist/lie.min.js +1 -0
  107. package/node_modules/lie/dist/lie.polyfill.js +358 -0
  108. package/node_modules/lie/dist/lie.polyfill.min.js +1 -0
  109. package/node_modules/lie/lib/browser.js +273 -0
  110. package/node_modules/lie/lib/index.js +298 -0
  111. package/node_modules/lie/license.md +7 -0
  112. package/node_modules/lie/lie.d.ts +244 -0
  113. package/node_modules/lie/package.json +69 -0
  114. package/node_modules/lie/polyfill.js +4 -0
  115. package/node_modules/pako/LICENSE +21 -0
  116. package/node_modules/pako/README.md +191 -0
  117. package/node_modules/pako/dist/pako.js +6818 -0
  118. package/node_modules/pako/dist/pako.min.js +1 -0
  119. package/node_modules/pako/dist/pako_deflate.js +3997 -0
  120. package/node_modules/pako/dist/pako_deflate.min.js +1 -0
  121. package/node_modules/pako/dist/pako_inflate.js +3300 -0
  122. package/node_modules/pako/dist/pako_inflate.min.js +1 -0
  123. package/node_modules/pako/index.js +14 -0
  124. package/node_modules/pako/lib/deflate.js +400 -0
  125. package/node_modules/pako/lib/inflate.js +423 -0
  126. package/node_modules/pako/lib/utils/common.js +105 -0
  127. package/node_modules/pako/lib/utils/strings.js +187 -0
  128. package/node_modules/pako/lib/zlib/README +59 -0
  129. package/node_modules/pako/lib/zlib/adler32.js +51 -0
  130. package/node_modules/pako/lib/zlib/constants.js +68 -0
  131. package/node_modules/pako/lib/zlib/crc32.js +59 -0
  132. package/node_modules/pako/lib/zlib/deflate.js +1874 -0
  133. package/node_modules/pako/lib/zlib/gzheader.js +58 -0
  134. package/node_modules/pako/lib/zlib/inffast.js +345 -0
  135. package/node_modules/pako/lib/zlib/inflate.js +1556 -0
  136. package/node_modules/pako/lib/zlib/inftrees.js +343 -0
  137. package/node_modules/pako/lib/zlib/messages.js +32 -0
  138. package/node_modules/pako/lib/zlib/trees.js +1222 -0
  139. package/node_modules/pako/lib/zlib/zstream.js +47 -0
  140. package/node_modules/pako/package.json +44 -0
  141. package/node_modules/process-nextick-args/index.js +45 -0
  142. package/node_modules/process-nextick-args/license.md +19 -0
  143. package/node_modules/process-nextick-args/package.json +25 -0
  144. package/node_modules/process-nextick-args/readme.md +18 -0
  145. package/node_modules/readable-stream/.travis.yml +34 -0
  146. package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  147. package/node_modules/readable-stream/GOVERNANCE.md +136 -0
  148. package/node_modules/readable-stream/LICENSE +47 -0
  149. package/node_modules/readable-stream/README.md +58 -0
  150. package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  151. package/node_modules/readable-stream/duplex-browser.js +1 -0
  152. package/node_modules/readable-stream/duplex.js +1 -0
  153. package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
  154. package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
  155. package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
  156. package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
  157. package/node_modules/readable-stream/lib/_stream_writable.js +685 -0
  158. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
  159. package/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
  160. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  161. package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  162. package/node_modules/readable-stream/package.json +52 -0
  163. package/node_modules/readable-stream/passthrough.js +1 -0
  164. package/node_modules/readable-stream/readable-browser.js +7 -0
  165. package/node_modules/readable-stream/readable.js +19 -0
  166. package/node_modules/readable-stream/transform.js +1 -0
  167. package/node_modules/readable-stream/writable-browser.js +1 -0
  168. package/node_modules/readable-stream/writable.js +8 -0
  169. package/node_modules/safe-buffer/LICENSE +21 -0
  170. package/node_modules/safe-buffer/README.md +584 -0
  171. package/node_modules/safe-buffer/index.d.ts +187 -0
  172. package/node_modules/safe-buffer/index.js +62 -0
  173. package/node_modules/safe-buffer/package.json +37 -0
  174. package/node_modules/setimmediate/LICENSE.txt +20 -0
  175. package/node_modules/setimmediate/package.json +30 -0
  176. package/node_modules/setimmediate/setImmediate.js +186 -0
  177. package/node_modules/string_decoder/.travis.yml +50 -0
  178. package/node_modules/string_decoder/LICENSE +48 -0
  179. package/node_modules/string_decoder/README.md +47 -0
  180. package/node_modules/string_decoder/lib/string_decoder.js +296 -0
  181. package/node_modules/string_decoder/package.json +31 -0
  182. package/node_modules/util-deprecate/History.md +16 -0
  183. package/node_modules/util-deprecate/LICENSE +24 -0
  184. package/node_modules/util-deprecate/README.md +53 -0
  185. package/node_modules/util-deprecate/browser.js +67 -0
  186. package/node_modules/util-deprecate/node.js +6 -0
  187. package/node_modules/util-deprecate/package.json +27 -0
  188. package/package.json +1 -1
  189. package/skills/client-email/SKILL.md +8 -6
  190. package/skills/employment-contract/SKILL.md +23 -6
  191. package/skills/non-compete-contract-explainer/content/alabama.md +251 -0
  192. package/skills/non-compete-contract-explainer/content/alaska.md +160 -0
  193. package/skills/non-compete-contract-explainer/content/american-samoa.md +187 -0
  194. package/skills/non-compete-contract-explainer/content/arizona.md +293 -0
  195. package/skills/non-compete-contract-explainer/content/arkansas.md +235 -0
  196. package/skills/non-compete-contract-explainer/content/california.md +270 -0
  197. package/skills/non-compete-contract-explainer/content/cnmi.md +168 -0
  198. package/skills/non-compete-contract-explainer/content/colorado.md +277 -0
  199. package/skills/non-compete-contract-explainer/content/connecticut.md +220 -0
  200. package/skills/non-compete-contract-explainer/content/delaware.md +222 -0
  201. package/skills/non-compete-contract-explainer/content/district-of-columbia.md +263 -0
  202. package/skills/non-compete-contract-explainer/content/florida.md +267 -0
  203. package/skills/non-compete-contract-explainer/content/georgia.md +323 -0
  204. package/skills/non-compete-contract-explainer/content/guam.md +180 -0
  205. package/skills/non-compete-contract-explainer/content/hawaii.md +236 -0
  206. package/skills/non-compete-contract-explainer/content/idaho.md +258 -0
  207. package/skills/non-compete-contract-explainer/content/illinois.md +266 -0
  208. package/skills/non-compete-contract-explainer/content/india.md +269 -0
  209. package/skills/non-compete-contract-explainer/content/indiana.md +253 -0
  210. package/skills/non-compete-contract-explainer/content/iowa.md +232 -0
  211. package/skills/non-compete-contract-explainer/content/kansas.md +227 -0
  212. package/skills/non-compete-contract-explainer/content/kentucky.md +201 -0
  213. package/skills/non-compete-contract-explainer/content/louisiana.md +272 -0
  214. package/skills/non-compete-contract-explainer/content/maine.md +178 -0
  215. package/skills/non-compete-contract-explainer/content/maryland.md +244 -0
  216. package/skills/non-compete-contract-explainer/content/massachusetts.md +272 -0
  217. package/skills/non-compete-contract-explainer/content/michigan.md +222 -0
  218. package/skills/non-compete-contract-explainer/content/minnesota.md +171 -0
  219. package/skills/non-compete-contract-explainer/content/mississippi.md +237 -0
  220. package/skills/non-compete-contract-explainer/content/missouri.md +219 -0
  221. package/skills/non-compete-contract-explainer/content/montana.md +202 -0
  222. package/skills/non-compete-contract-explainer/content/nebraska.md +206 -0
  223. package/skills/non-compete-contract-explainer/content/nevada.md +278 -0
  224. package/skills/non-compete-contract-explainer/content/new-hampshire.md +233 -0
  225. package/skills/non-compete-contract-explainer/content/new-jersey.md +277 -0
  226. package/skills/non-compete-contract-explainer/content/new-mexico.md +244 -0
  227. package/skills/non-compete-contract-explainer/content/new-york.md +226 -0
  228. package/skills/non-compete-contract-explainer/content/north-carolina.md +346 -0
  229. package/skills/non-compete-contract-explainer/content/north-dakota.md +187 -0
  230. package/skills/non-compete-contract-explainer/content/ohio.md +207 -0
  231. package/skills/non-compete-contract-explainer/content/oklahoma.md +196 -0
  232. package/skills/non-compete-contract-explainer/content/oregon.md +359 -0
  233. package/skills/non-compete-contract-explainer/content/pennsylvania.md +254 -0
  234. package/skills/non-compete-contract-explainer/content/philippines.md +211 -0
  235. package/skills/non-compete-contract-explainer/content/puerto-rico.md +163 -0
  236. package/skills/non-compete-contract-explainer/content/rhode-island.md +171 -0
  237. package/skills/non-compete-contract-explainer/content/singapore.md +229 -0
  238. package/skills/non-compete-contract-explainer/content/south-carolina.md +226 -0
  239. package/skills/non-compete-contract-explainer/content/south-dakota.md +222 -0
  240. package/skills/non-compete-contract-explainer/content/tennessee.md +251 -0
  241. package/skills/non-compete-contract-explainer/content/texas.md +297 -0
  242. package/skills/non-compete-contract-explainer/content/us-virgin-islands.md +193 -0
  243. package/skills/non-compete-contract-explainer/content/utah.md +250 -0
  244. package/skills/non-compete-contract-explainer/content/vermont.md +193 -0
  245. package/skills/non-compete-contract-explainer/content/virginia.md +213 -0
  246. package/skills/non-compete-contract-explainer/content/washington.md +296 -0
  247. package/skills/non-compete-contract-explainer/content/west-virginia.md +187 -0
  248. package/skills/non-compete-contract-explainer/content/wisconsin.md +293 -0
  249. package/skills/non-compete-contract-explainer/content/wyoming.md +55 -45
  250. package/skills/non-compete-contract-explainer/manifest.json +523 -1
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "@xmldom/xmldom",
3
+ "version": "0.9.9",
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 examples lib test",
32
+ "format": "prettier --write examples lib test index.d.ts",
33
+ "format:check": "prettier --check examples lib test index.d.ts",
34
+ "changelog": "auto-changelog --unreleased-only",
35
+ "start": "nodemon --watch package.json --watch lib --watch test --exec 'npm --silent run test && npm --silent run lint'",
36
+ "test": "jest",
37
+ "fuzz": "jest --config=./jest.fuzz.config.js",
38
+ "test:types": "cd examples/typescript-node-es6 && ./pretest.sh 3 && ./pretest.sh 4 && ./pretest.sh 5 && node dist/index.js",
39
+ "testrelease": "npm test && eslint lib",
40
+ "version": "./changelog-has-version.sh",
41
+ "release": "np --no-yarn --test-script testrelease"
42
+ },
43
+ "engines": {
44
+ "node": ">=14.6"
45
+ },
46
+ "devDependencies": {
47
+ "@homer0/prettier-plugin-jsdoc": "10.0.0",
48
+ "auto-changelog": "2.5.0",
49
+ "eslint": "8.57.1",
50
+ "eslint-config-prettier": "10.1.8",
51
+ "eslint-plugin-anti-trojan-source": "1.1.1",
52
+ "eslint-plugin-es5": "1.5.0",
53
+ "eslint-plugin-n": "17.21.3",
54
+ "eslint-plugin-prettier": "5.5.4",
55
+ "get-stream": "6.0.1",
56
+ "jest": "29.7.0",
57
+ "nodemon": "3.1.10",
58
+ "np": "8.0.4",
59
+ "prettier": "3.6.2",
60
+ "xmltest": "2.0.3",
61
+ "yauzl": "3.2.1"
62
+ },
63
+ "bugs": {
64
+ "url": "https://github.com/xmldom/xmldom/issues"
65
+ },
66
+ "license": "MIT",
67
+ "auto-changelog": {
68
+ "prepend": true,
69
+ "remote": "origin",
70
+ "tagPrefix": "",
71
+ "template": "./auto-changelog.hbs"
72
+ },
73
+ "packageManager": "npm@11.6.3+sha512.4085a763162e0e3acd19a4e9d23ad3aa0978e501ccf947dd7233c12a689ae0bb0190763c4ef12366990056b34eec438903ffed38fde4fbd722a17c2a7407ee92"
74
+ }
@@ -0,0 +1,364 @@
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
+ [![license(MIT)](https://img.shields.io/npm/l/@xmldom/xmldom?color=blue&style=flat-square)](https://github.com/xmldom/xmldom/blob/master/LICENSE)
7
+ [![no dependencies](https://img.shields.io/badge/dependencies-0-lightgreen)](https://socket.dev/npm/package/@xmldom/xmldom)
8
+ [![codecov](https://codecov.io/gh/xmldom/xmldom/branch/master/graph/badge.svg?token=NisDcchEOV)](https://codecov.io/gh/xmldom/xmldom)
9
+ [![install size](https://packagephobia.com/badge?p=@xmldom/xmldom)](https://packagephobia.com/result?p=@xmldom/xmldom)
10
+
11
+ [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/7879/badge)](https://www.bestpractices.dev/projects/7879)
12
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/xmldom/xmldom/badge)](https://securityscorecards.dev/viewer/?uri=github.com/xmldom/xmldom)
13
+ [![Socket Badge](https://socket.dev/api/badge/npm/package/@xmldom/xmldom)](https://socket.dev/npm/package/@xmldom/xmldom)
14
+ [![snyk.io package health](https://snyk.io/advisor/npm-package/@xmldom/xmldom/badge.svg)](https://snyk.io/advisor/npm-package/@xmldom/xmldom)
15
+
16
+ [![npm:latest](https://img.shields.io/npm/v/@xmldom/xmldom/latest?style=flat-square)](https://www.npmjs.com/package/@xmldom/xmldom)
17
+ [![npm:next](https://img.shields.io/npm/v/@xmldom/xmldom/next?style=flat-square)](https://www.npmjs.com/package/@xmldom/xmldom?activeTab=versions)
18
+ [![npm:lts](https://img.shields.io/npm/v/@xmldom/xmldom/lts?style=flat-square)](https://www.npmjs.com/package/@xmldom/xmldom?activeTab=versions)
19
+
20
+ [![bug issues](https://img.shields.io/github/issues/xmldom/xmldom/bug?color=red&style=flat-square)](https://github.com/xmldom/xmldom/issues?q=is%3Aissue+is%3Aopen+label%3Abug)
21
+ [![help-wanted issues](https://img.shields.io/github/issues/xmldom/xmldom/help-wanted?color=darkgreen&style=flat-square)](https://github.com/xmldom/xmldom/issues?q=is%3Aissue+is%3Aopen+label%3Ahelp-wanted)
22
+
23
+ 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:
24
+ - convert an XML string into a DOM tree
25
+ ```
26
+ new DOMParser().parseFromString(xml, mimeType) => Document
27
+ ```
28
+ - create, access and modify a DOM tree
29
+ ```
30
+ new DOMImplementation().createDocument(...) => Document
31
+ ```
32
+ - serialize a DOM tree back into an XML string
33
+ ```
34
+ new XMLSerializer().serializeToString(node) => string
35
+ ```
36
+
37
+ The target runtimes `xmldom` supports are currently Node >= v14.6 (and very likely any other [ES5 compatible runtime](https://compat-table.github.io/compat-table/es5/)).
38
+
39
+ When deciding how to fix bugs or implement features, `xmldom` tries to stay as close as possible to the various [related specifications/standards](#specs).
40
+ As indicated by the version starting with `0.`, this implementation is not feature complete and some implemented features differ from what the specifications describe.
41
+ **Issues and PRs for such differences are always welcome, even when they only provide a failing test case.**
42
+
43
+ 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).
44
+
45
+ ## Usage
46
+
47
+ ### Install:
48
+
49
+ ```
50
+ npm install @xmldom/xmldom
51
+ ```
52
+
53
+ ### Example:
54
+
55
+ [In NodeJS](examples/nodejs/src/index.js)
56
+ ```javascript
57
+ const { DOMParser, XMLSerializer } = require('@xmldom/xmldom')
58
+
59
+ const source = `<xml xmlns="a">
60
+ <child>test</child>
61
+ <child/>
62
+ </xml>`
63
+
64
+ const doc = new DOMParser().parseFromString(source, 'text/xml')
65
+
66
+ const serialized = new XMLSerializer().serializeToString(doc)
67
+ ```
68
+
69
+ Note: in Typescript ~~and ES6~~ (see [#316](https://github.com/xmldom/xmldom/issues/316)) you can use the `import` approach, as follows:
70
+
71
+ ```typescript
72
+ import { DOMParser } from '@xmldom/xmldom'
73
+ ```
74
+
75
+ ## API Reference
76
+
77
+ * [DOMParser](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser):
78
+
79
+ ```javascript
80
+ parseFromString(xmlsource, mimeType)
81
+ ```
82
+ * **options extension** _by xmldom_ (not DOM standard!!)
83
+
84
+ ```javascript
85
+ // the options argument can be used to modify behavior
86
+ // for more details check the documentation on the code or type definition
87
+ new DOMParser(options)
88
+ ```
89
+
90
+ * [XMLSerializer](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer)
91
+
92
+ ```javascript
93
+ serializeToString(node)
94
+ ```
95
+ ### DOM level2 method and attribute:
96
+
97
+ * [Node](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247)
98
+
99
+ readonly class properties (aka `NodeType`),
100
+ these can be accessed from any `Node` instance `node`:
101
+ `if (node.nodeType === node.ELEMENT_NODE) {...`
102
+
103
+ 1. `ELEMENT_NODE` (`1`)
104
+ 2. `ATTRIBUTE_NODE` (`2`)
105
+ 3. `TEXT_NODE` (`3`)
106
+ 4. `CDATA_SECTION_NODE` (`4`)
107
+ 5. `ENTITY_REFERENCE_NODE` (`5`)
108
+ 6. `ENTITY_NODE` (`6`)
109
+ 7. `PROCESSING_INSTRUCTION_NODE` (`7`)
110
+ 8. `COMMENT_NODE` (`8`)
111
+ 9. `DOCUMENT_NODE` (`9`)
112
+ 10. `DOCUMENT_TYPE_NODE` (`10`)
113
+ 11. `DOCUMENT_FRAGMENT_NODE` (`11`)
114
+ 12. `NOTATION_NODE` (`12`)
115
+
116
+ attribute:
117
+ - `nodeValue` | `prefix` | `textContent`
118
+
119
+ readonly attribute:
120
+ - `nodeName` | `nodeType` | `parentNode` | `parentElement` | `childNodes` | `firstChild` | `lastChild` | `previousSibling` | `nextSibling` | `attributes` | `ownerDocument` | `namespaceURI` | `localName` | `isConnected` | `baseURI`
121
+
122
+ method:
123
+ * `insertBefore(newChild, refChild)`
124
+ * `replaceChild(newChild, oldChild)`
125
+ * `removeChild(oldChild)`
126
+ * `appendChild(newChild)`
127
+ * `hasChildNodes()`
128
+ * `cloneNode(deep)`
129
+ * `normalize()`
130
+ * `contains(otherNode)`
131
+ * `getRootNode()`
132
+ * `isEqualNode(otherNode)`
133
+ * `isSameNode(otherNode)`
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)` (deprecated)
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 Living Standard support:
293
+
294
+ * [ParentNode](https://dom.spec.whatwg.org/#interface-parentnode) mixin (on `Document`, `DocumentFragment`, `Element`)
295
+
296
+ readonly attribute:
297
+ - `children`
298
+
299
+ ### DOM extension by xmldom
300
+
301
+ * [Node] Source position extension;
302
+
303
+ attribute:
304
+ - `lineNumber` //number starting from `1`
305
+ - `columnNumber` //number starting from `1`
306
+
307
+ ## Specs
308
+
309
+ The implementation is based on several specifications:
310
+
311
+ <!-- Should open in new tab and the links in the SVG should be clickable there! -->
312
+ <a href="https://raw.githubusercontent.com/xmldom/xmldom/master/docs/specs.svg" target="_blank" rel="noopener noreferrer nofollow" >![Overview of related specifications and their relations](docs/specs.svg)</a>
313
+
314
+ ### DOM Parsing and Serialization
315
+
316
+ 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:
317
+ - `DOMParser`
318
+ - `XMLSerializer`
319
+
320
+ Note that there are some known deviations between this implementation and the W3 specifications.
321
+
322
+ 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)
323
+
324
+
325
+ ### DOM
326
+
327
+ 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.
328
+ In the past, there have been multiple (even breaking) changes to align xmldom with the living standard,
329
+ so if you find a difference that is not documented, any contribution to resolve the difference is very welcome (even just reporting it as an issue).
330
+
331
+ xmldom implements the following interfaces:
332
+ - `Attr`
333
+ - `CDATASection`
334
+ - `CharacterData`
335
+ - `Comment`
336
+ - `Document`
337
+ - `DocumentFragment`
338
+ - `DocumentType`
339
+ - `DOMException`
340
+ - `DOMImplementation`
341
+ - `Element`
342
+ - `Entity`
343
+ - `EntityReference`
344
+ - `LiveNodeList`
345
+ - `NamedNodeMap`
346
+ - `Node`
347
+ - `NodeList`
348
+ - `Notation`
349
+ - `ProcessingInstruction`
350
+ - `Text`
351
+
352
+ more details are available in the (incomplete) [API Reference](#api-reference) section.
353
+
354
+ ### HTML
355
+
356
+ xmldom does not have any goal of supporting the full spec, but it has some capability to parse, report and serialize things differently when it is told to parse HTML (by passing the HTML namespace).
357
+
358
+ ### SAX, XML, XMLNS
359
+
360
+ xmldom has an own SAX parser implementation to do the actual parsing, which implements some interfaces in alignment with the Java interfaces SAX defines:
361
+ - `XMLReader`
362
+ - `DOMHandler`
363
+
364
+ There is an idea/proposal to make it possible to replace it with something else in <https://github.com/xmldom/xmldom/issues/55>
@@ -0,0 +1,19 @@
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.
@@ -0,0 +1,3 @@
1
+ # core-util-is
2
+
3
+ The `util.is*` functions introduced in Node v0.12.
@@ -0,0 +1,107 @@
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
+ }
@@ -0,0 +1,38 @@
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
+ }
@@ -0,0 +1,20 @@
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.