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.
Files changed (391) hide show
  1. package/README.de.md +300 -255
  2. package/README.es.md +301 -254
  3. package/README.md +391 -90
  4. package/README.pt-br.md +301 -254
  5. package/README.template.md +333 -0
  6. package/README.zh.md +300 -253
  7. package/SECURITY.md +34 -0
  8. package/content/recipes/nvca-stock-purchase-agreement/README.md +39 -0
  9. package/content/recipes/nvca-voting-agreement/README.md +43 -0
  10. package/content/templates/bonterms-mutual-nda/README.md +2 -2
  11. package/content/templates/bonterms-mutual-nda/metadata.yaml +5 -11
  12. package/content/templates/bonterms-professional-services-agreement/README.md +2 -2
  13. package/content/templates/bonterms-professional-services-agreement/metadata.yaml +2 -2
  14. package/content/templates/closing-checklist/template.docx +0 -0
  15. package/content/templates/closing-checklist/template.md +30 -0
  16. package/content/templates/common-paper-ai-addendum/template.docx +0 -0
  17. package/content/templates/common-paper-ai-addendum-in-app/template.docx +0 -0
  18. package/content/templates/common-paper-csa-with-ai/template.docx +0 -0
  19. package/content/templates/common-paper-independent-contractor-agreement/template.docx +0 -0
  20. package/content/templates/common-paper-mutual-nda/README.md +28 -0
  21. package/content/templates/common-paper-one-way-nda/metadata.yaml +1 -1
  22. package/content/templates/common-paper-term-sheet/template.docx +0 -0
  23. package/content/templates/openagreements-board-consent-safe/.template.generated.json +74 -0
  24. package/content/templates/openagreements-board-consent-safe/README.md +61 -0
  25. package/content/templates/openagreements-board-consent-safe/metadata.yaml +53 -0
  26. package/content/templates/openagreements-board-consent-safe/reference-source.docx +0 -0
  27. package/content/templates/openagreements-board-consent-safe/template.docx +0 -0
  28. package/content/templates/openagreements-board-consent-safe/template.md +66 -0
  29. package/content/templates/openagreements-due-diligence-request-list/README.md +68 -0
  30. package/content/templates/openagreements-due-diligence-request-list/metadata.yaml +300 -0
  31. package/content/templates/openagreements-due-diligence-request-list/template.docx +0 -0
  32. package/content/templates/openagreements-due-diligence-request-list/template.md +318 -0
  33. package/content/templates/openagreements-employee-ip-inventions-assignment/.template.generated.json +230 -0
  34. package/content/templates/openagreements-employee-ip-inventions-assignment/metadata.yaml +1 -1
  35. package/content/templates/openagreements-employee-ip-inventions-assignment/template.docx +0 -0
  36. package/content/templates/openagreements-employee-ip-inventions-assignment/template.md +96 -35
  37. package/content/templates/openagreements-employment-confidentiality-acknowledgement/README.md +1 -1
  38. package/content/templates/openagreements-employment-confidentiality-acknowledgement/metadata.yaml +2 -2
  39. package/content/templates/openagreements-employment-confidentiality-acknowledgement/template.docx +0 -0
  40. package/content/templates/openagreements-employment-confidentiality-acknowledgement/template.json +75 -0
  41. package/content/templates/openagreements-employment-confidentiality-acknowledgement/template.md +8 -4
  42. package/content/templates/openagreements-employment-offer-letter/.template.generated.json +224 -0
  43. package/content/templates/openagreements-employment-offer-letter/README.md +65 -1
  44. package/content/templates/openagreements-employment-offer-letter/metadata.yaml +1 -1
  45. package/content/templates/openagreements-employment-offer-letter/template.docx +0 -0
  46. package/content/templates/openagreements-employment-offer-letter/template.md +70 -30
  47. package/content/templates/openagreements-restrictive-covenant-florida/.template.generated.json +456 -0
  48. package/content/templates/openagreements-restrictive-covenant-florida/README.md +141 -0
  49. package/content/templates/openagreements-restrictive-covenant-florida/metadata.yaml +419 -0
  50. package/content/templates/openagreements-restrictive-covenant-florida/template.docx +0 -0
  51. package/content/templates/openagreements-restrictive-covenant-florida/template.md +233 -0
  52. package/content/templates/openagreements-restrictive-covenant-wyoming/.template.generated.json +399 -0
  53. package/content/templates/openagreements-restrictive-covenant-wyoming/metadata.yaml +69 -12
  54. package/content/templates/openagreements-restrictive-covenant-wyoming/template.docx +0 -0
  55. package/content/templates/openagreements-restrictive-covenant-wyoming/template.md +110 -59
  56. package/content/templates/openagreements-stockholder-consent-safe/.template.generated.json +74 -0
  57. package/content/templates/openagreements-stockholder-consent-safe/README.md +62 -0
  58. package/content/templates/openagreements-stockholder-consent-safe/metadata.yaml +53 -0
  59. package/content/templates/openagreements-stockholder-consent-safe/reference-source.docx +0 -0
  60. package/content/templates/openagreements-stockholder-consent-safe/template.docx +0 -0
  61. package/content/templates/openagreements-stockholder-consent-safe/template.md +62 -0
  62. package/content/templates/working-group-list/template.docx +0 -0
  63. package/content/templates/working-group-list/template.md +18 -0
  64. package/dist/cli/index.js.map +1 -1
  65. package/dist/commands/fill.d.ts +1 -1
  66. package/dist/commands/fill.d.ts.map +1 -1
  67. package/dist/commands/fill.js +4 -1
  68. package/dist/commands/fill.js.map +1 -1
  69. package/dist/commands/list.js +11 -1
  70. package/dist/commands/list.js.map +1 -1
  71. package/dist/commands/recipe.js.map +1 -1
  72. package/dist/core/checklist/docx-import.d.ts.map +1 -1
  73. package/dist/core/employment/jurisdiction-rules.js +2 -2
  74. package/dist/core/employment/jurisdiction-rules.js.map +1 -1
  75. package/dist/core/employment/memo.d.ts +1 -1
  76. package/dist/core/employment/memo.d.ts.map +1 -1
  77. package/dist/core/employment/memo.js +14 -6
  78. package/dist/core/employment/memo.js.map +1 -1
  79. package/dist/core/engine.d.ts.map +1 -1
  80. package/dist/core/engine.js +28 -0
  81. package/dist/core/engine.js.map +1 -1
  82. package/dist/core/fill-pipeline.d.ts +30 -5
  83. package/dist/core/fill-pipeline.d.ts.map +1 -1
  84. package/dist/core/fill-pipeline.js +173 -9
  85. package/dist/core/fill-pipeline.js.map +1 -1
  86. package/dist/core/humanize-docx.d.ts +21 -0
  87. package/dist/core/humanize-docx.d.ts.map +1 -0
  88. package/dist/core/humanize-docx.js +492 -0
  89. package/dist/core/humanize-docx.js.map +1 -0
  90. package/dist/core/metadata.d.ts +119 -65
  91. package/dist/core/metadata.d.ts.map +1 -1
  92. package/dist/core/metadata.js +269 -13
  93. package/dist/core/metadata.js.map +1 -1
  94. package/dist/core/recipe/bracket-normalizer.d.ts +1 -1
  95. package/dist/core/recipe/bracket-normalizer.d.ts.map +1 -1
  96. package/dist/core/recipe/bracket-normalizer.js +3 -0
  97. package/dist/core/recipe/bracket-normalizer.js.map +1 -1
  98. package/dist/core/recipe/computed.d.ts +1 -1
  99. package/dist/core/recipe/computed.d.ts.map +1 -1
  100. package/dist/core/recipe/index.d.ts.map +1 -1
  101. package/dist/core/recipe/index.js +22 -4
  102. package/dist/core/recipe/index.js.map +1 -1
  103. package/dist/core/recipe/patcher.js +0 -24
  104. package/dist/core/recipe/patcher.js.map +1 -1
  105. package/dist/core/recipe/types.d.ts +1 -1
  106. package/dist/core/recipe/types.d.ts.map +1 -1
  107. package/dist/core/recipe/verifier.js.map +1 -1
  108. package/dist/core/selector.js +0 -1
  109. package/dist/core/selector.js.map +1 -1
  110. package/dist/core/template-listing.d.ts +6 -8
  111. package/dist/core/template-listing.d.ts.map +1 -1
  112. package/dist/core/template-listing.js +24 -0
  113. package/dist/core/template-listing.js.map +1 -1
  114. package/dist/core/template-search.d.ts +36 -0
  115. package/dist/core/template-search.d.ts.map +1 -0
  116. package/dist/core/template-search.js +84 -0
  117. package/dist/core/template-search.js.map +1 -0
  118. package/dist/core/unified-pipeline.d.ts +2 -0
  119. package/dist/core/unified-pipeline.d.ts.map +1 -1
  120. package/dist/core/unified-pipeline.js +19 -1
  121. package/dist/core/unified-pipeline.js.map +1 -1
  122. package/dist/core/validation/template.d.ts +32 -0
  123. package/dist/core/validation/template.d.ts.map +1 -1
  124. package/dist/core/validation/template.js +163 -3
  125. package/dist/core/validation/template.js.map +1 -1
  126. package/dist/index.d.ts +1 -0
  127. package/dist/index.d.ts.map +1 -1
  128. package/dist/index.js +2 -0
  129. package/dist/index.js.map +1 -1
  130. package/gemini-extension.json +1 -1
  131. package/node_modules/@usejunior/docx-core/dist/.tsbuildinfo +1 -1
  132. package/node_modules/@usejunior/docx-core/dist/atomizer.d.ts.map +1 -1
  133. package/node_modules/@usejunior/docx-core/dist/atomizer.js +12 -4
  134. package/node_modules/@usejunior/docx-core/dist/atomizer.js.map +1 -1
  135. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.d.ts +0 -14
  136. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.d.ts.map +1 -1
  137. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.js +31 -2
  138. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.js.map +1 -1
  139. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.d.ts +11 -0
  140. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.d.ts.map +1 -1
  141. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.js +180 -6
  142. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.js.map +1 -1
  143. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.d.ts +14 -4
  144. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.d.ts.map +1 -1
  145. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.js +344 -60
  146. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.js.map +1 -1
  147. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.d.ts +35 -1
  148. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.d.ts.map +1 -1
  149. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.js +186 -12
  150. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.js.map +1 -1
  151. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/pipeline.d.ts.map +1 -1
  152. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/pipeline.js +31 -13
  153. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/pipeline.js.map +1 -1
  154. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/xmlToWmlElement.d.ts.map +1 -1
  155. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/xmlToWmlElement.js +3 -2
  156. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/xmlToWmlElement.js.map +1 -1
  157. package/node_modules/@usejunior/docx-core/dist/format-detection.d.ts.map +1 -1
  158. package/node_modules/@usejunior/docx-core/dist/format-detection.js +2 -1
  159. package/node_modules/@usejunior/docx-core/dist/format-detection.js.map +1 -1
  160. package/node_modules/@usejunior/docx-core/dist/move-detection.d.ts.map +1 -1
  161. package/node_modules/@usejunior/docx-core/dist/move-detection.js +3 -4
  162. package/node_modules/@usejunior/docx-core/dist/move-detection.js.map +1 -1
  163. package/node_modules/@usejunior/docx-core/dist/primitives/comments.d.ts +2 -2
  164. package/node_modules/@usejunior/docx-core/dist/primitives/comments.d.ts.map +1 -1
  165. package/node_modules/@usejunior/docx-core/dist/primitives/comments.js +7 -2
  166. package/node_modules/@usejunior/docx-core/dist/primitives/comments.js.map +1 -1
  167. package/node_modules/@usejunior/docx-core/dist/primitives/document.d.ts +2 -2
  168. package/node_modules/@usejunior/docx-core/dist/primitives/document.d.ts.map +1 -1
  169. package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.d.ts +1 -5
  170. package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.d.ts.map +1 -1
  171. package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.js +12 -25
  172. package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.js.map +1 -1
  173. package/node_modules/@usejunior/docx-core/dist/primitives/layout.d.ts.map +1 -1
  174. package/node_modules/@usejunior/docx-core/dist/primitives/layout.js +4 -6
  175. package/node_modules/@usejunior/docx-core/dist/primitives/layout.js.map +1 -1
  176. package/node_modules/@usejunior/docx-core/dist/primitives/xml.d.ts.map +1 -1
  177. package/node_modules/@usejunior/docx-core/dist/primitives/xml.js +2 -0
  178. package/node_modules/@usejunior/docx-core/dist/primitives/xml.js.map +1 -1
  179. package/node_modules/@usejunior/docx-core/package.json +3 -3
  180. package/package.json +29 -15
  181. package/skills/canonical-markdown-authoring/CONNECTORS.md +67 -0
  182. package/skills/canonical-markdown-authoring/SKILL.md +565 -0
  183. package/skills/client-email/SKILL.md +2 -0
  184. package/skills/cloud-service-agreement/CONNECTORS.md +2 -2
  185. package/skills/cloud-service-agreement/SKILL.md +39 -2
  186. package/skills/cloud-service-agreement/template-filling-execution.md +92 -0
  187. package/skills/data-privacy-agreement/CONNECTORS.md +2 -2
  188. package/skills/data-privacy-agreement/SKILL.md +2 -0
  189. package/skills/delaware-franchise-tax/SKILL.md +2 -0
  190. package/skills/edit-docx-agreement/SKILL.md +2 -0
  191. package/skills/employment-contract/CONNECTORS.md +2 -2
  192. package/skills/employment-contract/SKILL.md +2 -0
  193. package/skills/iso-27001-evidence-collection/SKILL.md +2 -0
  194. package/skills/iso-27001-internal-audit/SKILL.md +2 -0
  195. package/skills/nda/CONNECTORS.md +2 -2
  196. package/skills/nda/SKILL.md +46 -2
  197. package/skills/nda/template-filling-execution.md +98 -0
  198. package/skills/non-compete-contract-explainer/SKILL.md +107 -0
  199. package/skills/non-compete-contract-explainer/content/wyoming.md +286 -0
  200. package/skills/non-compete-contract-explainer/manifest.json +18 -0
  201. package/skills/open-agreements/CONNECTORS.md +2 -2
  202. package/skills/open-agreements/SKILL.md +165 -67
  203. package/skills/open-agreements/template-filling-execution.md +92 -0
  204. package/skills/recipe-quality-audit/SKILL.md +2 -0
  205. package/skills/safe/CONNECTORS.md +2 -2
  206. package/skills/safe/SKILL.md +39 -2
  207. package/skills/safe/template-filling-execution.md +92 -0
  208. package/skills/services-agreement/CONNECTORS.md +2 -2
  209. package/skills/services-agreement/SKILL.md +40 -1
  210. package/skills/services-agreement/template-filling-execution.md +81 -0
  211. package/skills/shared/template-filling-execution.md +2 -2
  212. package/skills/soc2-readiness/SKILL.md +2 -0
  213. package/skills/unit-test-philosophy/SKILL.md +3 -0
  214. package/skills/venture-financing/CONNECTORS.md +2 -2
  215. package/skills/venture-financing/SKILL.md +2 -0
  216. package/content/templates/openagreements-restrictive-covenant-wyoming/practice-note.md +0 -103
  217. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/CHANGELOG.md +0 -468
  218. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/LICENSE +0 -8
  219. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/SECURITY.md +0 -50
  220. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/index.d.ts +0 -43
  221. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +0 -2
  222. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/conventions.js +0 -203
  223. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/dom-parser.js +0 -322
  224. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/dom.js +0 -1879
  225. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/entities.js +0 -2166
  226. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/index.js +0 -4
  227. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/sax.js +0 -662
  228. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/package.json +0 -71
  229. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/readme.md +0 -356
  230. package/node_modules/core-util-is/LICENSE +0 -19
  231. package/node_modules/core-util-is/README.md +0 -3
  232. package/node_modules/core-util-is/lib/util.js +0 -107
  233. package/node_modules/core-util-is/package.json +0 -38
  234. package/node_modules/immediate/LICENSE.txt +0 -20
  235. package/node_modules/immediate/README.md +0 -93
  236. package/node_modules/immediate/dist/immediate.js +0 -75
  237. package/node_modules/immediate/dist/immediate.min.js +0 -1
  238. package/node_modules/immediate/lib/browser.js +0 -69
  239. package/node_modules/immediate/lib/index.js +0 -73
  240. package/node_modules/immediate/package.json +0 -42
  241. package/node_modules/inherits/LICENSE +0 -16
  242. package/node_modules/inherits/README.md +0 -42
  243. package/node_modules/inherits/inherits.js +0 -9
  244. package/node_modules/inherits/inherits_browser.js +0 -27
  245. package/node_modules/inherits/package.json +0 -29
  246. package/node_modules/isarray/.npmignore +0 -1
  247. package/node_modules/isarray/.travis.yml +0 -4
  248. package/node_modules/isarray/Makefile +0 -6
  249. package/node_modules/isarray/README.md +0 -60
  250. package/node_modules/isarray/component.json +0 -19
  251. package/node_modules/isarray/index.js +0 -5
  252. package/node_modules/isarray/package.json +0 -45
  253. package/node_modules/isarray/test.js +0 -20
  254. package/node_modules/jszip/.codeclimate.yml +0 -16
  255. package/node_modules/jszip/.editorconfig +0 -8
  256. package/node_modules/jszip/.eslintrc.js +0 -43
  257. package/node_modules/jszip/.github/workflows/pr.yaml +0 -58
  258. package/node_modules/jszip/.jekyll-metadata +0 -0
  259. package/node_modules/jszip/.travis.yml +0 -17
  260. package/node_modules/jszip/CHANGES.md +0 -204
  261. package/node_modules/jszip/LICENSE.markdown +0 -651
  262. package/node_modules/jszip/README.markdown +0 -33
  263. package/node_modules/jszip/deps.js +0 -37
  264. package/node_modules/jszip/dist/jszip.js +0 -11577
  265. package/node_modules/jszip/dist/jszip.min.js +0 -13
  266. package/node_modules/jszip/graph.svg +0 -601
  267. package/node_modules/jszip/index.d.ts +0 -330
  268. package/node_modules/jszip/lib/base64.js +0 -106
  269. package/node_modules/jszip/lib/compressedObject.js +0 -74
  270. package/node_modules/jszip/lib/compressions.js +0 -14
  271. package/node_modules/jszip/lib/crc32.js +0 -77
  272. package/node_modules/jszip/lib/defaults.js +0 -11
  273. package/node_modules/jszip/lib/external.js +0 -18
  274. package/node_modules/jszip/lib/flate.js +0 -85
  275. package/node_modules/jszip/lib/generate/ZipFileWorker.js +0 -539
  276. package/node_modules/jszip/lib/generate/index.js +0 -57
  277. package/node_modules/jszip/lib/index.js +0 -55
  278. package/node_modules/jszip/lib/license_header.js +0 -11
  279. package/node_modules/jszip/lib/load.js +0 -88
  280. package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +0 -74
  281. package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +0 -42
  282. package/node_modules/jszip/lib/nodejsUtils.js +0 -57
  283. package/node_modules/jszip/lib/object.js +0 -384
  284. package/node_modules/jszip/lib/readable-stream-browser.js +0 -10
  285. package/node_modules/jszip/lib/reader/ArrayReader.js +0 -57
  286. package/node_modules/jszip/lib/reader/DataReader.js +0 -116
  287. package/node_modules/jszip/lib/reader/NodeBufferReader.js +0 -19
  288. package/node_modules/jszip/lib/reader/StringReader.js +0 -38
  289. package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +0 -22
  290. package/node_modules/jszip/lib/reader/readerFor.js +0 -28
  291. package/node_modules/jszip/lib/signature.js +0 -7
  292. package/node_modules/jszip/lib/stream/ConvertWorker.js +0 -26
  293. package/node_modules/jszip/lib/stream/Crc32Probe.js +0 -24
  294. package/node_modules/jszip/lib/stream/DataLengthProbe.js +0 -29
  295. package/node_modules/jszip/lib/stream/DataWorker.js +0 -116
  296. package/node_modules/jszip/lib/stream/GenericWorker.js +0 -263
  297. package/node_modules/jszip/lib/stream/StreamHelper.js +0 -214
  298. package/node_modules/jszip/lib/support.js +0 -38
  299. package/node_modules/jszip/lib/utf8.js +0 -275
  300. package/node_modules/jszip/lib/utils.js +0 -501
  301. package/node_modules/jszip/lib/zipEntries.js +0 -261
  302. package/node_modules/jszip/lib/zipEntry.js +0 -293
  303. package/node_modules/jszip/lib/zipObject.js +0 -133
  304. package/node_modules/jszip/package.json +0 -67
  305. package/node_modules/jszip/sponsors.md +0 -21
  306. package/node_modules/jszip/tsconfig.json +0 -101
  307. package/node_modules/jszip/vendor/FileSaver.js +0 -247
  308. package/node_modules/lie/README.md +0 -62
  309. package/node_modules/lie/dist/lie.js +0 -350
  310. package/node_modules/lie/dist/lie.min.js +0 -1
  311. package/node_modules/lie/dist/lie.polyfill.js +0 -358
  312. package/node_modules/lie/dist/lie.polyfill.min.js +0 -1
  313. package/node_modules/lie/lib/browser.js +0 -273
  314. package/node_modules/lie/lib/index.js +0 -298
  315. package/node_modules/lie/license.md +0 -7
  316. package/node_modules/lie/lie.d.ts +0 -244
  317. package/node_modules/lie/package.json +0 -69
  318. package/node_modules/lie/polyfill.js +0 -4
  319. package/node_modules/pako/LICENSE +0 -21
  320. package/node_modules/pako/README.md +0 -191
  321. package/node_modules/pako/dist/pako.js +0 -6818
  322. package/node_modules/pako/dist/pako.min.js +0 -1
  323. package/node_modules/pako/dist/pako_deflate.js +0 -3997
  324. package/node_modules/pako/dist/pako_deflate.min.js +0 -1
  325. package/node_modules/pako/dist/pako_inflate.js +0 -3300
  326. package/node_modules/pako/dist/pako_inflate.min.js +0 -1
  327. package/node_modules/pako/index.js +0 -14
  328. package/node_modules/pako/lib/deflate.js +0 -400
  329. package/node_modules/pako/lib/inflate.js +0 -423
  330. package/node_modules/pako/lib/utils/common.js +0 -105
  331. package/node_modules/pako/lib/utils/strings.js +0 -187
  332. package/node_modules/pako/lib/zlib/README +0 -59
  333. package/node_modules/pako/lib/zlib/adler32.js +0 -51
  334. package/node_modules/pako/lib/zlib/constants.js +0 -68
  335. package/node_modules/pako/lib/zlib/crc32.js +0 -59
  336. package/node_modules/pako/lib/zlib/deflate.js +0 -1874
  337. package/node_modules/pako/lib/zlib/gzheader.js +0 -58
  338. package/node_modules/pako/lib/zlib/inffast.js +0 -345
  339. package/node_modules/pako/lib/zlib/inflate.js +0 -1556
  340. package/node_modules/pako/lib/zlib/inftrees.js +0 -343
  341. package/node_modules/pako/lib/zlib/messages.js +0 -32
  342. package/node_modules/pako/lib/zlib/trees.js +0 -1222
  343. package/node_modules/pako/lib/zlib/zstream.js +0 -47
  344. package/node_modules/pako/package.json +0 -44
  345. package/node_modules/process-nextick-args/index.js +0 -45
  346. package/node_modules/process-nextick-args/license.md +0 -19
  347. package/node_modules/process-nextick-args/package.json +0 -25
  348. package/node_modules/process-nextick-args/readme.md +0 -18
  349. package/node_modules/readable-stream/.travis.yml +0 -34
  350. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  351. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  352. package/node_modules/readable-stream/LICENSE +0 -47
  353. package/node_modules/readable-stream/README.md +0 -58
  354. package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
  355. package/node_modules/readable-stream/duplex-browser.js +0 -1
  356. package/node_modules/readable-stream/duplex.js +0 -1
  357. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
  358. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
  359. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
  360. package/node_modules/readable-stream/lib/_stream_transform.js +0 -214
  361. package/node_modules/readable-stream/lib/_stream_writable.js +0 -685
  362. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
  363. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
  364. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  365. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  366. package/node_modules/readable-stream/package.json +0 -52
  367. package/node_modules/readable-stream/passthrough.js +0 -1
  368. package/node_modules/readable-stream/readable-browser.js +0 -7
  369. package/node_modules/readable-stream/readable.js +0 -19
  370. package/node_modules/readable-stream/transform.js +0 -1
  371. package/node_modules/readable-stream/writable-browser.js +0 -1
  372. package/node_modules/readable-stream/writable.js +0 -8
  373. package/node_modules/safe-buffer/LICENSE +0 -21
  374. package/node_modules/safe-buffer/README.md +0 -584
  375. package/node_modules/safe-buffer/index.d.ts +0 -187
  376. package/node_modules/safe-buffer/index.js +0 -62
  377. package/node_modules/safe-buffer/package.json +0 -37
  378. package/node_modules/setimmediate/LICENSE.txt +0 -20
  379. package/node_modules/setimmediate/package.json +0 -30
  380. package/node_modules/setimmediate/setImmediate.js +0 -186
  381. package/node_modules/string_decoder/.travis.yml +0 -50
  382. package/node_modules/string_decoder/LICENSE +0 -48
  383. package/node_modules/string_decoder/README.md +0 -47
  384. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  385. package/node_modules/string_decoder/package.json +0 -31
  386. package/node_modules/util-deprecate/History.md +0 -16
  387. package/node_modules/util-deprecate/LICENSE +0 -24
  388. package/node_modules/util-deprecate/README.md +0 -53
  389. package/node_modules/util-deprecate/browser.js +0 -67
  390. package/node_modules/util-deprecate/node.js +0 -6
  391. package/node_modules/util-deprecate/package.json +0 -27
@@ -1,203 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * Ponyfill for `Array.prototype.find` which is only available in ES6 runtimes.
5
- *
6
- * Works with anything that has a `length` property and index access properties, including NodeList.
7
- *
8
- * @template {unknown} T
9
- * @param {Array<T> | ({length:number, [number]: T})} list
10
- * @param {function (item: T, index: number, list:Array<T> | ({length:number, [number]: T})):boolean} predicate
11
- * @param {Partial<Pick<ArrayConstructor['prototype'], 'find'>>?} ac `Array.prototype` by default,
12
- * allows injecting a custom implementation in tests
13
- * @returns {T | undefined}
14
- *
15
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find
16
- * @see https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.find
17
- */
18
- function find(list, predicate, ac) {
19
- if (ac === undefined) {
20
- ac = Array.prototype;
21
- }
22
- if (list && typeof ac.find === 'function') {
23
- return ac.find.call(list, predicate);
24
- }
25
- for (var i = 0; i < list.length; i++) {
26
- if (Object.prototype.hasOwnProperty.call(list, i)) {
27
- var item = list[i];
28
- if (predicate.call(undefined, item, i, list)) {
29
- return item;
30
- }
31
- }
32
- }
33
- }
34
-
35
- /**
36
- * "Shallow freezes" an object to render it immutable.
37
- * Uses `Object.freeze` if available,
38
- * otherwise the immutability is only in the type.
39
- *
40
- * Is used to create "enum like" objects.
41
- *
42
- * @template T
43
- * @param {T} object the object to freeze
44
- * @param {Pick<ObjectConstructor, 'freeze'> = Object} oc `Object` by default,
45
- * allows to inject custom object constructor for tests
46
- * @returns {Readonly<T>}
47
- *
48
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze
49
- */
50
- function freeze(object, oc) {
51
- if (oc === undefined) {
52
- oc = Object
53
- }
54
- return oc && typeof oc.freeze === 'function' ? oc.freeze(object) : object
55
- }
56
-
57
- /**
58
- * Since we can not rely on `Object.assign` we provide a simplified version
59
- * that is sufficient for our needs.
60
- *
61
- * @param {Object} target
62
- * @param {Object | null | undefined} source
63
- *
64
- * @returns {Object} target
65
- * @throws TypeError if target is not an object
66
- *
67
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
68
- * @see https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.assign
69
- */
70
- function assign(target, source) {
71
- if (target === null || typeof target !== 'object') {
72
- throw new TypeError('target is not an object')
73
- }
74
- for (var key in source) {
75
- if (Object.prototype.hasOwnProperty.call(source, key)) {
76
- target[key] = source[key]
77
- }
78
- }
79
- return target
80
- }
81
-
82
- /**
83
- * All mime types that are allowed as input to `DOMParser.parseFromString`
84
- *
85
- * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString#Argument02 MDN
86
- * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparsersupportedtype WHATWG HTML Spec
87
- * @see DOMParser.prototype.parseFromString
88
- */
89
- var MIME_TYPE = freeze({
90
- /**
91
- * `text/html`, the only mime type that triggers treating an XML document as HTML.
92
- *
93
- * @see DOMParser.SupportedType.isHTML
94
- * @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration
95
- * @see https://en.wikipedia.org/wiki/HTML Wikipedia
96
- * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN
97
- * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring WHATWG HTML Spec
98
- */
99
- HTML: 'text/html',
100
-
101
- /**
102
- * Helper method to check a mime type if it indicates an HTML document
103
- *
104
- * @param {string} [value]
105
- * @returns {boolean}
106
- *
107
- * @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration
108
- * @see https://en.wikipedia.org/wiki/HTML Wikipedia
109
- * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN
110
- * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring */
111
- isHTML: function (value) {
112
- return value === MIME_TYPE.HTML
113
- },
114
-
115
- /**
116
- * `application/xml`, the standard mime type for XML documents.
117
- *
118
- * @see https://www.iana.org/assignments/media-types/application/xml IANA MimeType registration
119
- * @see https://tools.ietf.org/html/rfc7303#section-9.1 RFC 7303
120
- * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia
121
- */
122
- XML_APPLICATION: 'application/xml',
123
-
124
- /**
125
- * `text/html`, an alias for `application/xml`.
126
- *
127
- * @see https://tools.ietf.org/html/rfc7303#section-9.2 RFC 7303
128
- * @see https://www.iana.org/assignments/media-types/text/xml IANA MimeType registration
129
- * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia
130
- */
131
- XML_TEXT: 'text/xml',
132
-
133
- /**
134
- * `application/xhtml+xml`, indicates an XML document that has the default HTML namespace,
135
- * but is parsed as an XML document.
136
- *
137
- * @see https://www.iana.org/assignments/media-types/application/xhtml+xml IANA MimeType registration
138
- * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument WHATWG DOM Spec
139
- * @see https://en.wikipedia.org/wiki/XHTML Wikipedia
140
- */
141
- XML_XHTML_APPLICATION: 'application/xhtml+xml',
142
-
143
- /**
144
- * `image/svg+xml`,
145
- *
146
- * @see https://www.iana.org/assignments/media-types/image/svg+xml IANA MimeType registration
147
- * @see https://www.w3.org/TR/SVG11/ W3C SVG 1.1
148
- * @see https://en.wikipedia.org/wiki/Scalable_Vector_Graphics Wikipedia
149
- */
150
- XML_SVG_IMAGE: 'image/svg+xml',
151
- })
152
-
153
- /**
154
- * Namespaces that are used in this code base.
155
- *
156
- * @see http://www.w3.org/TR/REC-xml-names
157
- */
158
- var NAMESPACE = freeze({
159
- /**
160
- * The XHTML namespace.
161
- *
162
- * @see http://www.w3.org/1999/xhtml
163
- */
164
- HTML: 'http://www.w3.org/1999/xhtml',
165
-
166
- /**
167
- * Checks if `uri` equals `NAMESPACE.HTML`.
168
- *
169
- * @param {string} [uri]
170
- *
171
- * @see NAMESPACE.HTML
172
- */
173
- isHTML: function (uri) {
174
- return uri === NAMESPACE.HTML
175
- },
176
-
177
- /**
178
- * The SVG namespace.
179
- *
180
- * @see http://www.w3.org/2000/svg
181
- */
182
- SVG: 'http://www.w3.org/2000/svg',
183
-
184
- /**
185
- * The `xml:` namespace.
186
- *
187
- * @see http://www.w3.org/XML/1998/namespace
188
- */
189
- XML: 'http://www.w3.org/XML/1998/namespace',
190
-
191
- /**
192
- * The `xmlns:` namespace
193
- *
194
- * @see https://www.w3.org/2000/xmlns/
195
- */
196
- XMLNS: 'http://www.w3.org/2000/xmlns/',
197
- })
198
-
199
- exports.assign = assign;
200
- exports.find = find;
201
- exports.freeze = freeze;
202
- exports.MIME_TYPE = MIME_TYPE;
203
- exports.NAMESPACE = NAMESPACE;
@@ -1,322 +0,0 @@
1
- var conventions = require("./conventions");
2
- var dom = require('./dom')
3
- var entities = require('./entities');
4
- var sax = require('./sax');
5
-
6
- var DOMImplementation = dom.DOMImplementation;
7
-
8
- var NAMESPACE = conventions.NAMESPACE;
9
-
10
- var ParseError = sax.ParseError;
11
- var XMLReader = sax.XMLReader;
12
-
13
- /**
14
- * Normalizes line ending according to https://www.w3.org/TR/xml11/#sec-line-ends:
15
- *
16
- * > XML parsed entities are often stored in computer files which,
17
- * > for editing convenience, are organized into lines.
18
- * > These lines are typically separated by some combination
19
- * > of the characters CARRIAGE RETURN (#xD) and LINE FEED (#xA).
20
- * >
21
- * > To simplify the tasks of applications, the XML processor must behave
22
- * > as if it normalized all line breaks in external parsed entities (including the document entity)
23
- * > on input, before parsing, by translating all of the following to a single #xA character:
24
- * >
25
- * > 1. the two-character sequence #xD #xA
26
- * > 2. the two-character sequence #xD #x85
27
- * > 3. the single character #x85
28
- * > 4. the single character #x2028
29
- * > 5. any #xD character that is not immediately followed by #xA or #x85.
30
- *
31
- * @param {string} input
32
- * @returns {string}
33
- */
34
- function normalizeLineEndings(input) {
35
- return input
36
- .replace(/\r[\n\u0085]/g, '\n')
37
- .replace(/[\r\u0085\u2028]/g, '\n')
38
- }
39
-
40
- /**
41
- * @typedef Locator
42
- * @property {number} [columnNumber]
43
- * @property {number} [lineNumber]
44
- */
45
-
46
- /**
47
- * @typedef DOMParserOptions
48
- * @property {DOMHandler} [domBuilder]
49
- * @property {Function} [errorHandler]
50
- * @property {(string) => string} [normalizeLineEndings] used to replace line endings before parsing
51
- * defaults to `normalizeLineEndings`
52
- * @property {Locator} [locator]
53
- * @property {Record<string, string>} [xmlns]
54
- *
55
- * @see normalizeLineEndings
56
- */
57
-
58
- /**
59
- * The DOMParser interface provides the ability to parse XML or HTML source code
60
- * from a string into a DOM `Document`.
61
- *
62
- * _xmldom is different from the spec in that it allows an `options` parameter,
63
- * to override the default behavior._
64
- *
65
- * @param {DOMParserOptions} [options]
66
- * @constructor
67
- *
68
- * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser
69
- * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-parsing-and-serialization
70
- */
71
- function DOMParser(options){
72
- this.options = options ||{locator:{}};
73
- }
74
-
75
- DOMParser.prototype.parseFromString = function(source,mimeType){
76
- var options = this.options;
77
- var sax = new XMLReader();
78
- var domBuilder = options.domBuilder || new DOMHandler();//contentHandler and LexicalHandler
79
- var errorHandler = options.errorHandler;
80
- var locator = options.locator;
81
- var defaultNSMap = options.xmlns||{};
82
- var isHTML = /\/x?html?$/.test(mimeType);//mimeType.toLowerCase().indexOf('html') > -1;
83
- var entityMap = isHTML ? entities.HTML_ENTITIES : entities.XML_ENTITIES;
84
- if(locator){
85
- domBuilder.setDocumentLocator(locator)
86
- }
87
-
88
- sax.errorHandler = buildErrorHandler(errorHandler,domBuilder,locator);
89
- sax.domBuilder = options.domBuilder || domBuilder;
90
- if(isHTML){
91
- defaultNSMap[''] = NAMESPACE.HTML;
92
- }
93
- defaultNSMap.xml = defaultNSMap.xml || NAMESPACE.XML;
94
- var normalize = options.normalizeLineEndings || normalizeLineEndings;
95
- if (source && typeof source === 'string') {
96
- sax.parse(
97
- normalize(source),
98
- defaultNSMap,
99
- entityMap
100
- )
101
- } else {
102
- sax.errorHandler.error('invalid doc source')
103
- }
104
- return domBuilder.doc;
105
- }
106
- function buildErrorHandler(errorImpl,domBuilder,locator){
107
- if(!errorImpl){
108
- if(domBuilder instanceof DOMHandler){
109
- return domBuilder;
110
- }
111
- errorImpl = domBuilder ;
112
- }
113
- var errorHandler = {}
114
- var isCallback = errorImpl instanceof Function;
115
- locator = locator||{}
116
- function build(key){
117
- var fn = errorImpl[key];
118
- if(!fn && isCallback){
119
- fn = errorImpl.length == 2?function(msg){errorImpl(key,msg)}:errorImpl;
120
- }
121
- errorHandler[key] = fn && function(msg){
122
- fn('[xmldom '+key+']\t'+msg+_locator(locator));
123
- }||function(){};
124
- }
125
- build('warning');
126
- build('error');
127
- build('fatalError');
128
- return errorHandler;
129
- }
130
-
131
- //console.log('#\n\n\n\n\n\n\n####')
132
- /**
133
- * +ContentHandler+ErrorHandler
134
- * +LexicalHandler+EntityResolver2
135
- * -DeclHandler-DTDHandler
136
- *
137
- * DefaultHandler:EntityResolver, DTDHandler, ContentHandler, ErrorHandler
138
- * DefaultHandler2:DefaultHandler,LexicalHandler, DeclHandler, EntityResolver2
139
- * @link http://www.saxproject.org/apidoc/org/xml/sax/helpers/DefaultHandler.html
140
- */
141
- function DOMHandler() {
142
- this.cdata = false;
143
- }
144
- function position(locator,node){
145
- node.lineNumber = locator.lineNumber;
146
- node.columnNumber = locator.columnNumber;
147
- }
148
- /**
149
- * @see org.xml.sax.ContentHandler#startDocument
150
- * @link http://www.saxproject.org/apidoc/org/xml/sax/ContentHandler.html
151
- */
152
- DOMHandler.prototype = {
153
- startDocument : function() {
154
- this.doc = new DOMImplementation().createDocument(null, null, null);
155
- if (this.locator) {
156
- this.doc.documentURI = this.locator.systemId;
157
- }
158
- },
159
- startElement:function(namespaceURI, localName, qName, attrs) {
160
- var doc = this.doc;
161
- var el = doc.createElementNS(namespaceURI, qName||localName);
162
- var len = attrs.length;
163
- appendElement(this, el);
164
- this.currentElement = el;
165
-
166
- this.locator && position(this.locator,el)
167
- for (var i = 0 ; i < len; i++) {
168
- var namespaceURI = attrs.getURI(i);
169
- var value = attrs.getValue(i);
170
- var qName = attrs.getQName(i);
171
- var attr = doc.createAttributeNS(namespaceURI, qName);
172
- this.locator &&position(attrs.getLocator(i),attr);
173
- attr.value = attr.nodeValue = value;
174
- el.setAttributeNode(attr)
175
- }
176
- },
177
- endElement:function(namespaceURI, localName, qName) {
178
- var current = this.currentElement
179
- var tagName = current.tagName;
180
- this.currentElement = current.parentNode;
181
- },
182
- startPrefixMapping:function(prefix, uri) {
183
- },
184
- endPrefixMapping:function(prefix) {
185
- },
186
- processingInstruction:function(target, data) {
187
- var ins = this.doc.createProcessingInstruction(target, data);
188
- this.locator && position(this.locator,ins)
189
- appendElement(this, ins);
190
- },
191
- ignorableWhitespace:function(ch, start, length) {
192
- },
193
- characters:function(chars, start, length) {
194
- chars = _toString.apply(this,arguments)
195
- //console.log(chars)
196
- if(chars){
197
- if (this.cdata) {
198
- var charNode = this.doc.createCDATASection(chars);
199
- } else {
200
- var charNode = this.doc.createTextNode(chars);
201
- }
202
- if(this.currentElement){
203
- this.currentElement.appendChild(charNode);
204
- }else if(/^\s*$/.test(chars)){
205
- this.doc.appendChild(charNode);
206
- //process xml
207
- }
208
- this.locator && position(this.locator,charNode)
209
- }
210
- },
211
- skippedEntity:function(name) {
212
- },
213
- endDocument:function() {
214
- this.doc.normalize();
215
- },
216
- setDocumentLocator:function (locator) {
217
- if(this.locator = locator){// && !('lineNumber' in locator)){
218
- locator.lineNumber = 0;
219
- }
220
- },
221
- //LexicalHandler
222
- comment:function(chars, start, length) {
223
- chars = _toString.apply(this,arguments)
224
- var comm = this.doc.createComment(chars);
225
- this.locator && position(this.locator,comm)
226
- appendElement(this, comm);
227
- },
228
-
229
- startCDATA:function() {
230
- //used in characters() methods
231
- this.cdata = true;
232
- },
233
- endCDATA:function() {
234
- this.cdata = false;
235
- },
236
-
237
- startDTD:function(name, publicId, systemId) {
238
- var impl = this.doc.implementation;
239
- if (impl && impl.createDocumentType) {
240
- var dt = impl.createDocumentType(name, publicId, systemId);
241
- this.locator && position(this.locator,dt)
242
- appendElement(this, dt);
243
- this.doc.doctype = dt;
244
- }
245
- },
246
- /**
247
- * @see org.xml.sax.ErrorHandler
248
- * @link http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html
249
- */
250
- warning:function(error) {
251
- console.warn('[xmldom warning]\t'+error,_locator(this.locator));
252
- },
253
- error:function(error) {
254
- console.error('[xmldom error]\t'+error,_locator(this.locator));
255
- },
256
- fatalError:function(error) {
257
- throw new ParseError(error, this.locator);
258
- }
259
- }
260
- function _locator(l){
261
- if(l){
262
- return '\n@'+(l.systemId ||'')+'#[line:'+l.lineNumber+',col:'+l.columnNumber+']'
263
- }
264
- }
265
- function _toString(chars,start,length){
266
- if(typeof chars == 'string'){
267
- return chars.substr(start,length)
268
- }else{//java sax connect width xmldom on rhino(what about: "? && !(chars instanceof String)")
269
- if(chars.length >= start+length || start){
270
- return new java.lang.String(chars,start,length)+'';
271
- }
272
- return chars;
273
- }
274
- }
275
-
276
- /*
277
- * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/LexicalHandler.html
278
- * used method of org.xml.sax.ext.LexicalHandler:
279
- * #comment(chars, start, length)
280
- * #startCDATA()
281
- * #endCDATA()
282
- * #startDTD(name, publicId, systemId)
283
- *
284
- *
285
- * IGNORED method of org.xml.sax.ext.LexicalHandler:
286
- * #endDTD()
287
- * #startEntity(name)
288
- * #endEntity(name)
289
- *
290
- *
291
- * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/DeclHandler.html
292
- * IGNORED method of org.xml.sax.ext.DeclHandler
293
- * #attributeDecl(eName, aName, type, mode, value)
294
- * #elementDecl(name, model)
295
- * #externalEntityDecl(name, publicId, systemId)
296
- * #internalEntityDecl(name, value)
297
- * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/EntityResolver2.html
298
- * IGNORED method of org.xml.sax.EntityResolver2
299
- * #resolveEntity(String name,String publicId,String baseURI,String systemId)
300
- * #resolveEntity(publicId, systemId)
301
- * #getExternalSubset(name, baseURI)
302
- * @link http://www.saxproject.org/apidoc/org/xml/sax/DTDHandler.html
303
- * IGNORED method of org.xml.sax.DTDHandler
304
- * #notationDecl(name, publicId, systemId) {};
305
- * #unparsedEntityDecl(name, publicId, systemId, notationName) {};
306
- */
307
- "endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(key){
308
- DOMHandler.prototype[key] = function(){return null}
309
- })
310
-
311
- /* Private static helpers treated below as private instance methods, so don't need to add these to the public API; we might use a Relator to also get rid of non-standard public properties */
312
- function appendElement (hander,node) {
313
- if (!hander.currentElement) {
314
- hander.doc.appendChild(node);
315
- } else {
316
- hander.currentElement.appendChild(node);
317
- }
318
- }//appendChild and setAttributeNS are preformance key
319
-
320
- exports.__DOMHandler = DOMHandler;
321
- exports.normalizeLineEndings = normalizeLineEndings;
322
- exports.DOMParser = DOMParser;