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,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
- [![license(MIT)](https://img.shields.io/npm/l/@xmldom/xmldom?color=blue&style=flat-square)](https://github.com/xmldom/xmldom/blob/master/LICENSE)
7
- [![npm](https://img.shields.io/npm/v/@xmldom/xmldom?style=flat-square)](https://www.npmjs.com/package/@xmldom/xmldom)
8
- [![snyk.io package health](https://snyk.io/advisor/npm-package/@xmldom/xmldom/badge.svg)](https://snyk.io/advisor/npm-package/@xmldom/xmldom)
9
- [![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)
10
- [![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)
11
- [![Mutation report](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fxmldom%2Fxmldom%2Fmaster)](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" >![Overview of related specifications and their relations](docs/specs.svg)</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,3 +0,0 @@
1
- # core-util-is
2
-
3
- The `util.is*` functions introduced in Node v0.12.
@@ -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.