@prismicio/client 7.7.5-alpha.0 → 7.9.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (823) hide show
  1. package/dist/index.cjs +0 -8
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.ts +0 -5
  4. package/dist/index.js +1 -9
  5. package/dist/index.js.map +1 -1
  6. package/dist/package.json.cjs +1 -1
  7. package/dist/package.json.js +1 -1
  8. package/dist/types/model/contentRelationship.d.ts +2 -0
  9. package/dist/types/model/link.cjs.map +1 -1
  10. package/dist/types/model/link.d.ts +2 -0
  11. package/dist/types/model/link.js.map +1 -1
  12. package/dist/types/model/linkToMedia.d.ts +2 -0
  13. package/dist/types/value/contentRelationship.d.ts +1 -0
  14. package/dist/types/value/link.cjs.map +1 -1
  15. package/dist/types/value/link.d.ts +1 -0
  16. package/dist/types/value/link.js.map +1 -1
  17. package/dist/types/value/linkToMedia.d.ts +1 -0
  18. package/package.json +2 -16
  19. package/src/index.ts +0 -8
  20. package/src/types/model/contentRelationship.ts +2 -0
  21. package/src/types/model/link.ts +3 -0
  22. package/src/types/model/linkToMedia.ts +2 -0
  23. package/src/types/value/contentRelationship.ts +1 -0
  24. package/src/types/value/link.ts +1 -0
  25. package/src/types/value/linkToMedia.ts +1 -0
  26. package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs +0 -63
  27. package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs.map +0 -1
  28. package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js +0 -63
  29. package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js.map +0 -1
  30. package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs +0 -12
  31. package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs.map +0 -1
  32. package/dist/_node_modules/@ungap/structured-clone/esm/index.js +0 -12
  33. package/dist/_node_modules/@ungap/structured-clone/esm/index.js.map +0 -1
  34. package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs +0 -127
  35. package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs.map +0 -1
  36. package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js +0 -127
  37. package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js.map +0 -1
  38. package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs +0 -23
  39. package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs.map +0 -1
  40. package/dist/_node_modules/@ungap/structured-clone/esm/types.js +0 -23
  41. package/dist/_node_modules/@ungap/structured-clone/esm/types.js.map +0 -1
  42. package/dist/_node_modules/bail/index.cjs +0 -9
  43. package/dist/_node_modules/bail/index.cjs.map +0 -1
  44. package/dist/_node_modules/bail/index.js +0 -9
  45. package/dist/_node_modules/bail/index.js.map +0 -1
  46. package/dist/_node_modules/bcp-47-match/index.cjs +0 -74
  47. package/dist/_node_modules/bcp-47-match/index.cjs.map +0 -1
  48. package/dist/_node_modules/bcp-47-match/index.js +0 -74
  49. package/dist/_node_modules/bcp-47-match/index.js.map +0 -1
  50. package/dist/_node_modules/boolbase/index.cjs +0 -13
  51. package/dist/_node_modules/boolbase/index.cjs.map +0 -1
  52. package/dist/_node_modules/boolbase/index.js +0 -14
  53. package/dist/_node_modules/boolbase/index.js.map +0 -1
  54. package/dist/_node_modules/ccount/index.cjs +0 -17
  55. package/dist/_node_modules/ccount/index.cjs.map +0 -1
  56. package/dist/_node_modules/ccount/index.js +0 -17
  57. package/dist/_node_modules/ccount/index.js.map +0 -1
  58. package/dist/_node_modules/character-entities/index.cjs +0 -2131
  59. package/dist/_node_modules/character-entities/index.cjs.map +0 -1
  60. package/dist/_node_modules/character-entities/index.js +0 -2131
  61. package/dist/_node_modules/character-entities/index.js.map +0 -1
  62. package/dist/_node_modules/character-entities-html4/index.cjs +0 -258
  63. package/dist/_node_modules/character-entities-html4/index.cjs.map +0 -1
  64. package/dist/_node_modules/character-entities-html4/index.js +0 -258
  65. package/dist/_node_modules/character-entities-html4/index.js.map +0 -1
  66. package/dist/_node_modules/character-entities-legacy/index.cjs +0 -112
  67. package/dist/_node_modules/character-entities-legacy/index.cjs.map +0 -1
  68. package/dist/_node_modules/character-entities-legacy/index.js +0 -112
  69. package/dist/_node_modules/character-entities-legacy/index.js.map +0 -1
  70. package/dist/_node_modules/comma-separated-tokens/index.cjs +0 -32
  71. package/dist/_node_modules/comma-separated-tokens/index.cjs.map +0 -1
  72. package/dist/_node_modules/comma-separated-tokens/index.js +0 -32
  73. package/dist/_node_modules/comma-separated-tokens/index.js.map +0 -1
  74. package/dist/_node_modules/devlop/lib/default.cjs +0 -6
  75. package/dist/_node_modules/devlop/lib/default.cjs.map +0 -1
  76. package/dist/_node_modules/devlop/lib/default.js +0 -6
  77. package/dist/_node_modules/devlop/lib/default.js.map +0 -1
  78. package/dist/_node_modules/direction/index.cjs +0 -12
  79. package/dist/_node_modules/direction/index.cjs.map +0 -1
  80. package/dist/_node_modules/direction/index.js +0 -12
  81. package/dist/_node_modules/direction/index.js.map +0 -1
  82. package/dist/_node_modules/extend/index.cjs +0 -89
  83. package/dist/_node_modules/extend/index.cjs.map +0 -1
  84. package/dist/_node_modules/extend/index.js +0 -90
  85. package/dist/_node_modules/extend/index.js.map +0 -1
  86. package/dist/_node_modules/hast-util-embedded/lib/index.cjs +0 -14
  87. package/dist/_node_modules/hast-util-embedded/lib/index.cjs.map +0 -1
  88. package/dist/_node_modules/hast-util-embedded/lib/index.js +0 -14
  89. package/dist/_node_modules/hast-util-embedded/lib/index.js.map +0 -1
  90. package/dist/_node_modules/hast-util-from-html/lib/errors.cjs +0 -317
  91. package/dist/_node_modules/hast-util-from-html/lib/errors.cjs.map +0 -1
  92. package/dist/_node_modules/hast-util-from-html/lib/errors.js +0 -317
  93. package/dist/_node_modules/hast-util-from-html/lib/errors.js.map +0 -1
  94. package/dist/_node_modules/hast-util-from-html/lib/index.cjs +0 -96
  95. package/dist/_node_modules/hast-util-from-html/lib/index.cjs.map +0 -1
  96. package/dist/_node_modules/hast-util-from-html/lib/index.js +0 -96
  97. package/dist/_node_modules/hast-util-from-html/lib/index.js.map +0 -1
  98. package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs +0 -187
  99. package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs.map +0 -1
  100. package/dist/_node_modules/hast-util-from-parse5/lib/index.js +0 -187
  101. package/dist/_node_modules/hast-util-from-parse5/lib/index.js.map +0 -1
  102. package/dist/_node_modules/hast-util-has-property/lib/index.cjs +0 -9
  103. package/dist/_node_modules/hast-util-has-property/lib/index.cjs.map +0 -1
  104. package/dist/_node_modules/hast-util-has-property/lib/index.js +0 -9
  105. package/dist/_node_modules/hast-util-has-property/lib/index.js.map +0 -1
  106. package/dist/_node_modules/hast-util-is-element/lib/index.cjs +0 -102
  107. package/dist/_node_modules/hast-util-is-element/lib/index.cjs.map +0 -1
  108. package/dist/_node_modules/hast-util-is-element/lib/index.js +0 -102
  109. package/dist/_node_modules/hast-util-is-element/lib/index.js.map +0 -1
  110. package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs +0 -40
  111. package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs.map +0 -1
  112. package/dist/_node_modules/hast-util-parse-selector/lib/index.js +0 -40
  113. package/dist/_node_modules/hast-util-parse-selector/lib/index.js.map +0 -1
  114. package/dist/_node_modules/hast-util-select/lib/attribute.cjs +0 -67
  115. package/dist/_node_modules/hast-util-select/lib/attribute.cjs.map +0 -1
  116. package/dist/_node_modules/hast-util-select/lib/attribute.js +0 -67
  117. package/dist/_node_modules/hast-util-select/lib/attribute.js.map +0 -1
  118. package/dist/_node_modules/hast-util-select/lib/class-name.cjs +0 -12
  119. package/dist/_node_modules/hast-util-select/lib/class-name.cjs.map +0 -1
  120. package/dist/_node_modules/hast-util-select/lib/class-name.js +0 -12
  121. package/dist/_node_modules/hast-util-select/lib/class-name.js.map +0 -1
  122. package/dist/_node_modules/hast-util-select/lib/enter-state.cjs +0 -79
  123. package/dist/_node_modules/hast-util-select/lib/enter-state.cjs.map +0 -1
  124. package/dist/_node_modules/hast-util-select/lib/enter-state.js +0 -79
  125. package/dist/_node_modules/hast-util-select/lib/enter-state.js.map +0 -1
  126. package/dist/_node_modules/hast-util-select/lib/id.cjs +0 -7
  127. package/dist/_node_modules/hast-util-select/lib/id.cjs.map +0 -1
  128. package/dist/_node_modules/hast-util-select/lib/id.js +0 -7
  129. package/dist/_node_modules/hast-util-select/lib/id.js.map +0 -1
  130. package/dist/_node_modules/hast-util-select/lib/index.cjs +0 -38
  131. package/dist/_node_modules/hast-util-select/lib/index.cjs.map +0 -1
  132. package/dist/_node_modules/hast-util-select/lib/index.js +0 -38
  133. package/dist/_node_modules/hast-util-select/lib/index.js.map +0 -1
  134. package/dist/_node_modules/hast-util-select/lib/name.cjs +0 -7
  135. package/dist/_node_modules/hast-util-select/lib/name.cjs.map +0 -1
  136. package/dist/_node_modules/hast-util-select/lib/name.js +0 -7
  137. package/dist/_node_modules/hast-util-select/lib/name.js.map +0 -1
  138. package/dist/_node_modules/hast-util-select/lib/parse.cjs +0 -12
  139. package/dist/_node_modules/hast-util-select/lib/parse.cjs.map +0 -1
  140. package/dist/_node_modules/hast-util-select/lib/parse.js +0 -12
  141. package/dist/_node_modules/hast-util-select/lib/parse.js.map +0 -1
  142. package/dist/_node_modules/hast-util-select/lib/pseudo.cjs +0 -231
  143. package/dist/_node_modules/hast-util-select/lib/pseudo.cjs.map +0 -1
  144. package/dist/_node_modules/hast-util-select/lib/pseudo.js +0 -231
  145. package/dist/_node_modules/hast-util-select/lib/pseudo.js.map +0 -1
  146. package/dist/_node_modules/hast-util-select/lib/test.cjs +0 -27
  147. package/dist/_node_modules/hast-util-select/lib/test.cjs.map +0 -1
  148. package/dist/_node_modules/hast-util-select/lib/test.js +0 -27
  149. package/dist/_node_modules/hast-util-select/lib/test.js.map +0 -1
  150. package/dist/_node_modules/hast-util-select/lib/walk.cjs +0 -132
  151. package/dist/_node_modules/hast-util-select/lib/walk.cjs.map +0 -1
  152. package/dist/_node_modules/hast-util-select/lib/walk.js +0 -132
  153. package/dist/_node_modules/hast-util-select/lib/walk.js.map +0 -1
  154. package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs +0 -24
  155. package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs.map +0 -1
  156. package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js +0 -24
  157. package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js.map +0 -1
  158. package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs +0 -7
  159. package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs.map +0 -1
  160. package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js +0 -7
  161. package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js.map +0 -1
  162. package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs +0 -137
  163. package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs.map +0 -1
  164. package/dist/_node_modules/hast-util-to-html/lib/handle/element.js +0 -137
  165. package/dist/_node_modules/hast-util-to-html/lib/handle/element.js.map +0 -1
  166. package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs +0 -26
  167. package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs.map +0 -1
  168. package/dist/_node_modules/hast-util-to-html/lib/handle/index.js +0 -26
  169. package/dist/_node_modules/hast-util-to-html/lib/handle/index.js.map +0 -1
  170. package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs +0 -8
  171. package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs.map +0 -1
  172. package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js +0 -8
  173. package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js.map +0 -1
  174. package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs +0 -7
  175. package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs.map +0 -1
  176. package/dist/_node_modules/hast-util-to-html/lib/handle/root.js +0 -7
  177. package/dist/_node_modules/hast-util-to-html/lib/handle/root.js.map +0 -1
  178. package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs +0 -14
  179. package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs.map +0 -1
  180. package/dist/_node_modules/hast-util-to-html/lib/handle/text.js +0 -14
  181. package/dist/_node_modules/hast-util-to-html/lib/handle/text.js.map +0 -1
  182. package/dist/_node_modules/hast-util-to-html/lib/index.cjs +0 -62
  183. package/dist/_node_modules/hast-util-to-html/lib/index.cjs.map +0 -1
  184. package/dist/_node_modules/hast-util-to-html/lib/index.js +0 -62
  185. package/dist/_node_modules/hast-util-to-html/lib/index.js.map +0 -1
  186. package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs +0 -92
  187. package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs.map +0 -1
  188. package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js +0 -92
  189. package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js.map +0 -1
  190. package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs +0 -11
  191. package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs.map +0 -1
  192. package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js +0 -11
  193. package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js.map +0 -1
  194. package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs +0 -52
  195. package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs.map +0 -1
  196. package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js +0 -52
  197. package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js.map +0 -1
  198. package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs +0 -24
  199. package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs.map +0 -1
  200. package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js +0 -24
  201. package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js.map +0 -1
  202. package/dist/_node_modules/hast-util-to-string/lib/index.cjs +0 -24
  203. package/dist/_node_modules/hast-util-to-string/lib/index.cjs.map +0 -1
  204. package/dist/_node_modules/hast-util-to-string/lib/index.js +0 -24
  205. package/dist/_node_modules/hast-util-to-string/lib/index.js.map +0 -1
  206. package/dist/_node_modules/hast-util-whitespace/lib/index.cjs +0 -11
  207. package/dist/_node_modules/hast-util-whitespace/lib/index.cjs.map +0 -1
  208. package/dist/_node_modules/hast-util-whitespace/lib/index.js +0 -11
  209. package/dist/_node_modules/hast-util-whitespace/lib/index.js.map +0 -1
  210. package/dist/_node_modules/hastscript/lib/create-h.cjs +0 -159
  211. package/dist/_node_modules/hastscript/lib/create-h.cjs.map +0 -1
  212. package/dist/_node_modules/hastscript/lib/create-h.js +0 -159
  213. package/dist/_node_modules/hastscript/lib/create-h.js.map +0 -1
  214. package/dist/_node_modules/hastscript/lib/index.cjs +0 -10
  215. package/dist/_node_modules/hastscript/lib/index.cjs.map +0 -1
  216. package/dist/_node_modules/hastscript/lib/index.js +0 -10
  217. package/dist/_node_modules/hastscript/lib/index.js.map +0 -1
  218. package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +0 -45
  219. package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.map +0 -1
  220. package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -45
  221. package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js.map +0 -1
  222. package/dist/_node_modules/html-void-elements/index.cjs +0 -26
  223. package/dist/_node_modules/html-void-elements/index.cjs.map +0 -1
  224. package/dist/_node_modules/html-void-elements/index.js +0 -26
  225. package/dist/_node_modules/html-void-elements/index.js.map +0 -1
  226. package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs +0 -720
  227. package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs.map +0 -1
  228. package/dist/_node_modules/mdast-util-from-markdown/lib/index.js +0 -720
  229. package/dist/_node_modules/mdast-util-from-markdown/lib/index.js.map +0 -1
  230. package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs +0 -116
  231. package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs.map +0 -1
  232. package/dist/_node_modules/mdast-util-to-hast/lib/footer.js +0 -116
  233. package/dist/_node_modules/mdast-util-to-hast/lib/footer.js.map +0 -1
  234. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs +0 -14
  235. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs.map +0 -1
  236. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -14
  237. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +0 -1
  238. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs +0 -9
  239. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs.map +0 -1
  240. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -9
  241. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js.map +0 -1
  242. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs +0 -25
  243. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs.map +0 -1
  244. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -25
  245. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js.map +0 -1
  246. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs +0 -14
  247. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs.map +0 -1
  248. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -14
  249. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +0 -1
  250. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs +0 -14
  251. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs.map +0 -1
  252. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -14
  253. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +0 -1
  254. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs +0 -42
  255. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs.map +0 -1
  256. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -42
  257. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +0 -1
  258. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs +0 -14
  259. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs.map +0 -1
  260. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -14
  261. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +0 -1
  262. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs +0 -12
  263. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs.map +0 -1
  264. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -12
  265. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js.map +0 -1
  266. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs +0 -20
  267. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs.map +0 -1
  268. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -20
  269. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +0 -1
  270. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs +0 -17
  271. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs.map +0 -1
  272. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -17
  273. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js.map +0 -1
  274. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs +0 -60
  275. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs.map +0 -1
  276. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -60
  277. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js.map +0 -1
  278. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs +0 -16
  279. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs.map +0 -1
  280. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -16
  281. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +0 -1
  282. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs +0 -25
  283. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs.map +0 -1
  284. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -25
  285. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +0 -1
  286. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs +0 -19
  287. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs.map +0 -1
  288. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -19
  289. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js.map +0 -1
  290. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs +0 -65
  291. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs.map +0 -1
  292. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -65
  293. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +0 -1
  294. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs +0 -27
  295. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs.map +0 -1
  296. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -27
  297. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js.map +0 -1
  298. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs +0 -14
  299. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs.map +0 -1
  300. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -14
  301. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +0 -1
  302. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs +0 -9
  303. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs.map +0 -1
  304. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -9
  305. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js.map +0 -1
  306. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs +0 -14
  307. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs.map +0 -1
  308. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -14
  309. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +0 -1
  310. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs +0 -15
  311. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs.map +0 -1
  312. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -15
  313. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +0 -1
  314. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs +0 -36
  315. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs.map +0 -1
  316. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -36
  317. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +0 -1
  318. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs +0 -40
  319. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs.map +0 -1
  320. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -40
  321. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js.map +0 -1
  322. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs +0 -10
  323. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs.map +0 -1
  324. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -10
  325. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js.map +0 -1
  326. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs +0 -14
  327. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs.map +0 -1
  328. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -14
  329. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +0 -1
  330. package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs +0 -16
  331. package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs.map +0 -1
  332. package/dist/_node_modules/mdast-util-to-hast/lib/index.js +0 -16
  333. package/dist/_node_modules/mdast-util-to-hast/lib/index.js.map +0 -1
  334. package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs +0 -30
  335. package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs.map +0 -1
  336. package/dist/_node_modules/mdast-util-to-hast/lib/revert.js +0 -30
  337. package/dist/_node_modules/mdast-util-to-hast/lib/revert.js.map +0 -1
  338. package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs +0 -149
  339. package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs.map +0 -1
  340. package/dist/_node_modules/mdast-util-to-hast/lib/state.js +0 -149
  341. package/dist/_node_modules/mdast-util-to-hast/lib/state.js.map +0 -1
  342. package/dist/_node_modules/mdast-util-to-string/lib/index.cjs +0 -39
  343. package/dist/_node_modules/mdast-util-to-string/lib/index.cjs.map +0 -1
  344. package/dist/_node_modules/mdast-util-to-string/lib/index.js +0 -39
  345. package/dist/_node_modules/mdast-util-to-string/lib/index.js.map +0 -1
  346. package/dist/_node_modules/micromark/lib/constructs.cjs +0 -94
  347. package/dist/_node_modules/micromark/lib/constructs.cjs.map +0 -1
  348. package/dist/_node_modules/micromark/lib/constructs.js +0 -94
  349. package/dist/_node_modules/micromark/lib/constructs.js.map +0 -1
  350. package/dist/_node_modules/micromark/lib/create-tokenizer.cjs +0 -316
  351. package/dist/_node_modules/micromark/lib/create-tokenizer.cjs.map +0 -1
  352. package/dist/_node_modules/micromark/lib/create-tokenizer.js +0 -316
  353. package/dist/_node_modules/micromark/lib/create-tokenizer.js.map +0 -1
  354. package/dist/_node_modules/micromark/lib/initialize/content.cjs +0 -58
  355. package/dist/_node_modules/micromark/lib/initialize/content.cjs.map +0 -1
  356. package/dist/_node_modules/micromark/lib/initialize/content.js +0 -58
  357. package/dist/_node_modules/micromark/lib/initialize/content.js.map +0 -1
  358. package/dist/_node_modules/micromark/lib/initialize/document.cjs +0 -212
  359. package/dist/_node_modules/micromark/lib/initialize/document.cjs.map +0 -1
  360. package/dist/_node_modules/micromark/lib/initialize/document.js +0 -212
  361. package/dist/_node_modules/micromark/lib/initialize/document.js.map +0 -1
  362. package/dist/_node_modules/micromark/lib/initialize/flow.cjs +0 -55
  363. package/dist/_node_modules/micromark/lib/initialize/flow.cjs.map +0 -1
  364. package/dist/_node_modules/micromark/lib/initialize/flow.js +0 -55
  365. package/dist/_node_modules/micromark/lib/initialize/flow.js.map +0 -1
  366. package/dist/_node_modules/micromark/lib/initialize/text.cjs +0 -143
  367. package/dist/_node_modules/micromark/lib/initialize/text.cjs.map +0 -1
  368. package/dist/_node_modules/micromark/lib/initialize/text.js +0 -143
  369. package/dist/_node_modules/micromark/lib/initialize/text.js.map +0 -1
  370. package/dist/_node_modules/micromark/lib/parse.cjs +0 -35
  371. package/dist/_node_modules/micromark/lib/parse.cjs.map +0 -1
  372. package/dist/_node_modules/micromark/lib/parse.js +0 -35
  373. package/dist/_node_modules/micromark/lib/parse.js.map +0 -1
  374. package/dist/_node_modules/micromark/lib/postprocess.cjs +0 -10
  375. package/dist/_node_modules/micromark/lib/postprocess.cjs.map +0 -1
  376. package/dist/_node_modules/micromark/lib/postprocess.js +0 -10
  377. package/dist/_node_modules/micromark/lib/postprocess.js.map +0 -1
  378. package/dist/_node_modules/micromark/lib/preprocess.cjs +0 -81
  379. package/dist/_node_modules/micromark/lib/preprocess.cjs.map +0 -1
  380. package/dist/_node_modules/micromark/lib/preprocess.js +0 -81
  381. package/dist/_node_modules/micromark/lib/preprocess.js.map +0 -1
  382. package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs +0 -116
  383. package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs.map +0 -1
  384. package/dist/_node_modules/micromark-core-commonmark/lib/attention.js +0 -116
  385. package/dist/_node_modules/micromark-core-commonmark/lib/attention.js.map +0 -1
  386. package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs +0 -104
  387. package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs.map +0 -1
  388. package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js +0 -104
  389. package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js.map +0 -1
  390. package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs +0 -19
  391. package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs.map +0 -1
  392. package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js +0 -19
  393. package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js.map +0 -1
  394. package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs +0 -62
  395. package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs.map +0 -1
  396. package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js +0 -62
  397. package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js.map +0 -1
  398. package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs +0 -29
  399. package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs.map +0 -1
  400. package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js +0 -29
  401. package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js.map +0 -1
  402. package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs +0 -69
  403. package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs.map +0 -1
  404. package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js +0 -69
  405. package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js.map +0 -1
  406. package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs +0 -187
  407. package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs.map +0 -1
  408. package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -187
  409. package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js.map +0 -1
  410. package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs +0 -68
  411. package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs.map +0 -1
  412. package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js +0 -68
  413. package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js.map +0 -1
  414. package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs +0 -117
  415. package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs.map +0 -1
  416. package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js +0 -117
  417. package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js.map +0 -1
  418. package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs +0 -76
  419. package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs.map +0 -1
  420. package/dist/_node_modules/micromark-core-commonmark/lib/content.js +0 -76
  421. package/dist/_node_modules/micromark-core-commonmark/lib/content.js.map +0 -1
  422. package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs +0 -95
  423. package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs.map +0 -1
  424. package/dist/_node_modules/micromark-core-commonmark/lib/definition.js +0 -95
  425. package/dist/_node_modules/micromark-core-commonmark/lib/definition.js.map +0 -1
  426. package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs +0 -24
  427. package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs.map +0 -1
  428. package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -24
  429. package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +0 -1
  430. package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs +0 -96
  431. package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs.map +0 -1
  432. package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -96
  433. package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js.map +0 -1
  434. package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs +0 -384
  435. package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs.map +0 -1
  436. package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js +0 -384
  437. package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js.map +0 -1
  438. package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs +0 -310
  439. package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs.map +0 -1
  440. package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js +0 -310
  441. package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js.map +0 -1
  442. package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs +0 -219
  443. package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs.map +0 -1
  444. package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js +0 -219
  445. package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js.map +0 -1
  446. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs +0 -34
  447. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs.map +0 -1
  448. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -34
  449. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js.map +0 -1
  450. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs +0 -25
  451. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs.map +0 -1
  452. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -25
  453. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js.map +0 -1
  454. package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs +0 -18
  455. package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs.map +0 -1
  456. package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js +0 -18
  457. package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js.map +0 -1
  458. package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs +0 -136
  459. package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs.map +0 -1
  460. package/dist/_node_modules/micromark-core-commonmark/lib/list.js +0 -136
  461. package/dist/_node_modules/micromark-core-commonmark/lib/list.js.map +0 -1
  462. package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs +0 -90
  463. package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs.map +0 -1
  464. package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -90
  465. package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js.map +0 -1
  466. package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs +0 -43
  467. package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs.map +0 -1
  468. package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -43
  469. package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js.map +0 -1
  470. package/dist/_node_modules/micromark-factory-destination/index.cjs +0 -95
  471. package/dist/_node_modules/micromark-factory-destination/index.cjs.map +0 -1
  472. package/dist/_node_modules/micromark-factory-destination/index.js +0 -95
  473. package/dist/_node_modules/micromark-factory-destination/index.js.map +0 -1
  474. package/dist/_node_modules/micromark-factory-label/index.cjs +0 -64
  475. package/dist/_node_modules/micromark-factory-label/index.cjs.map +0 -1
  476. package/dist/_node_modules/micromark-factory-label/index.js +0 -64
  477. package/dist/_node_modules/micromark-factory-label/index.js.map +0 -1
  478. package/dist/_node_modules/micromark-factory-space/index.cjs +0 -25
  479. package/dist/_node_modules/micromark-factory-space/index.cjs.map +0 -1
  480. package/dist/_node_modules/micromark-factory-space/index.js +0 -25
  481. package/dist/_node_modules/micromark-factory-space/index.js.map +0 -1
  482. package/dist/_node_modules/micromark-factory-title/index.cjs +0 -66
  483. package/dist/_node_modules/micromark-factory-title/index.cjs.map +0 -1
  484. package/dist/_node_modules/micromark-factory-title/index.js +0 -66
  485. package/dist/_node_modules/micromark-factory-title/index.js.map +0 -1
  486. package/dist/_node_modules/micromark-factory-whitespace/index.cjs +0 -27
  487. package/dist/_node_modules/micromark-factory-whitespace/index.cjs.map +0 -1
  488. package/dist/_node_modules/micromark-factory-whitespace/index.js +0 -27
  489. package/dist/_node_modules/micromark-factory-whitespace/index.js.map +0 -1
  490. package/dist/_node_modules/micromark-util-character/index.cjs +0 -45
  491. package/dist/_node_modules/micromark-util-character/index.cjs.map +0 -1
  492. package/dist/_node_modules/micromark-util-character/index.js +0 -45
  493. package/dist/_node_modules/micromark-util-character/index.js.map +0 -1
  494. package/dist/_node_modules/micromark-util-chunked/index.cjs +0 -37
  495. package/dist/_node_modules/micromark-util-chunked/index.cjs.map +0 -1
  496. package/dist/_node_modules/micromark-util-chunked/index.js +0 -37
  497. package/dist/_node_modules/micromark-util-chunked/index.js.map +0 -1
  498. package/dist/_node_modules/micromark-util-classify-character/index.cjs +0 -13
  499. package/dist/_node_modules/micromark-util-classify-character/index.cjs.map +0 -1
  500. package/dist/_node_modules/micromark-util-classify-character/index.js +0 -13
  501. package/dist/_node_modules/micromark-util-classify-character/index.js.map +0 -1
  502. package/dist/_node_modules/micromark-util-combine-extensions/index.cjs +0 -42
  503. package/dist/_node_modules/micromark-util-combine-extensions/index.cjs.map +0 -1
  504. package/dist/_node_modules/micromark-util-combine-extensions/index.js +0 -42
  505. package/dist/_node_modules/micromark-util-combine-extensions/index.js.map +0 -1
  506. package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs +0 -20
  507. package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs.map +0 -1
  508. package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -20
  509. package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js.map +0 -1
  510. package/dist/_node_modules/micromark-util-decode-string/index.cjs +0 -22
  511. package/dist/_node_modules/micromark-util-decode-string/index.cjs.map +0 -1
  512. package/dist/_node_modules/micromark-util-decode-string/index.js +0 -22
  513. package/dist/_node_modules/micromark-util-decode-string/index.js.map +0 -1
  514. package/dist/_node_modules/micromark-util-html-tag-name/index.cjs +0 -70
  515. package/dist/_node_modules/micromark-util-html-tag-name/index.cjs.map +0 -1
  516. package/dist/_node_modules/micromark-util-html-tag-name/index.js +0 -70
  517. package/dist/_node_modules/micromark-util-html-tag-name/index.js.map +0 -1
  518. package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs +0 -7
  519. package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs.map +0 -1
  520. package/dist/_node_modules/micromark-util-normalize-identifier/index.js +0 -7
  521. package/dist/_node_modules/micromark-util-normalize-identifier/index.js.map +0 -1
  522. package/dist/_node_modules/micromark-util-resolve-all/index.cjs +0 -16
  523. package/dist/_node_modules/micromark-util-resolve-all/index.cjs.map +0 -1
  524. package/dist/_node_modules/micromark-util-resolve-all/index.js +0 -16
  525. package/dist/_node_modules/micromark-util-resolve-all/index.js.map +0 -1
  526. package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs +0 -42
  527. package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs.map +0 -1
  528. package/dist/_node_modules/micromark-util-sanitize-uri/index.js +0 -42
  529. package/dist/_node_modules/micromark-util-sanitize-uri/index.js.map +0 -1
  530. package/dist/_node_modules/micromark-util-subtokenize/index.cjs +0 -149
  531. package/dist/_node_modules/micromark-util-subtokenize/index.cjs.map +0 -1
  532. package/dist/_node_modules/micromark-util-subtokenize/index.js +0 -149
  533. package/dist/_node_modules/micromark-util-subtokenize/index.js.map +0 -1
  534. package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs +0 -195
  535. package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs.map +0 -1
  536. package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -195
  537. package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +0 -1
  538. package/dist/_node_modules/nth-check/lib/esm/compile.cjs +0 -20
  539. package/dist/_node_modules/nth-check/lib/esm/compile.cjs.map +0 -1
  540. package/dist/_node_modules/nth-check/lib/esm/compile.js +0 -20
  541. package/dist/_node_modules/nth-check/lib/esm/compile.js.map +0 -1
  542. package/dist/_node_modules/nth-check/lib/esm/index.cjs +0 -11
  543. package/dist/_node_modules/nth-check/lib/esm/index.cjs.map +0 -1
  544. package/dist/_node_modules/nth-check/lib/esm/index.js +0 -11
  545. package/dist/_node_modules/nth-check/lib/esm/index.js.map +0 -1
  546. package/dist/_node_modules/nth-check/lib/esm/parse.cjs +0 -59
  547. package/dist/_node_modules/nth-check/lib/esm/parse.cjs.map +0 -1
  548. package/dist/_node_modules/nth-check/lib/esm/parse.js +0 -59
  549. package/dist/_node_modules/nth-check/lib/esm/parse.js.map +0 -1
  550. package/dist/_node_modules/property-information/index.cjs +0 -14
  551. package/dist/_node_modules/property-information/index.cjs.map +0 -1
  552. package/dist/_node_modules/property-information/index.js +0 -14
  553. package/dist/_node_modules/property-information/index.js.map +0 -1
  554. package/dist/_node_modules/property-information/lib/aria.cjs +0 -62
  555. package/dist/_node_modules/property-information/lib/aria.cjs.map +0 -1
  556. package/dist/_node_modules/property-information/lib/aria.js +0 -62
  557. package/dist/_node_modules/property-information/lib/aria.js.map +0 -1
  558. package/dist/_node_modules/property-information/lib/find.cjs +0 -41
  559. package/dist/_node_modules/property-information/lib/find.cjs.map +0 -1
  560. package/dist/_node_modules/property-information/lib/find.js +0 -41
  561. package/dist/_node_modules/property-information/lib/find.js.map +0 -1
  562. package/dist/_node_modules/property-information/lib/html.cjs +0 -369
  563. package/dist/_node_modules/property-information/lib/html.cjs.map +0 -1
  564. package/dist/_node_modules/property-information/lib/html.js +0 -369
  565. package/dist/_node_modules/property-information/lib/html.js.map +0 -1
  566. package/dist/_node_modules/property-information/lib/normalize.cjs +0 -7
  567. package/dist/_node_modules/property-information/lib/normalize.cjs.map +0 -1
  568. package/dist/_node_modules/property-information/lib/normalize.js +0 -7
  569. package/dist/_node_modules/property-information/lib/normalize.js.map +0 -1
  570. package/dist/_node_modules/property-information/lib/svg.cjs +0 -567
  571. package/dist/_node_modules/property-information/lib/svg.cjs.map +0 -1
  572. package/dist/_node_modules/property-information/lib/svg.js +0 -567
  573. package/dist/_node_modules/property-information/lib/svg.js.map +0 -1
  574. package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs +0 -8
  575. package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +0 -1
  576. package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js +0 -8
  577. package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js.map +0 -1
  578. package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs +0 -7
  579. package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +0 -1
  580. package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js +0 -7
  581. package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js.map +0 -1
  582. package/dist/_node_modules/property-information/lib/util/create.cjs +0 -31
  583. package/dist/_node_modules/property-information/lib/util/create.cjs.map +0 -1
  584. package/dist/_node_modules/property-information/lib/util/create.js +0 -31
  585. package/dist/_node_modules/property-information/lib/util/create.js.map +0 -1
  586. package/dist/_node_modules/property-information/lib/util/defined-info.cjs +0 -33
  587. package/dist/_node_modules/property-information/lib/util/defined-info.cjs.map +0 -1
  588. package/dist/_node_modules/property-information/lib/util/defined-info.js +0 -33
  589. package/dist/_node_modules/property-information/lib/util/defined-info.js.map +0 -1
  590. package/dist/_node_modules/property-information/lib/util/info.cjs +0 -25
  591. package/dist/_node_modules/property-information/lib/util/info.cjs.map +0 -1
  592. package/dist/_node_modules/property-information/lib/util/info.js +0 -25
  593. package/dist/_node_modules/property-information/lib/util/info.js.map +0 -1
  594. package/dist/_node_modules/property-information/lib/util/merge.cjs +0 -15
  595. package/dist/_node_modules/property-information/lib/util/merge.cjs.map +0 -1
  596. package/dist/_node_modules/property-information/lib/util/merge.js +0 -15
  597. package/dist/_node_modules/property-information/lib/util/merge.js.map +0 -1
  598. package/dist/_node_modules/property-information/lib/util/schema.cjs +0 -22
  599. package/dist/_node_modules/property-information/lib/util/schema.cjs.map +0 -1
  600. package/dist/_node_modules/property-information/lib/util/schema.js +0 -22
  601. package/dist/_node_modules/property-information/lib/util/schema.js.map +0 -1
  602. package/dist/_node_modules/property-information/lib/util/types.cjs +0 -21
  603. package/dist/_node_modules/property-information/lib/util/types.cjs.map +0 -1
  604. package/dist/_node_modules/property-information/lib/util/types.js +0 -21
  605. package/dist/_node_modules/property-information/lib/util/types.js.map +0 -1
  606. package/dist/_node_modules/property-information/lib/xlink.cjs +0 -20
  607. package/dist/_node_modules/property-information/lib/xlink.cjs.map +0 -1
  608. package/dist/_node_modules/property-information/lib/xlink.js +0 -20
  609. package/dist/_node_modules/property-information/lib/xlink.js.map +0 -1
  610. package/dist/_node_modules/property-information/lib/xml.cjs +0 -12
  611. package/dist/_node_modules/property-information/lib/xml.cjs.map +0 -1
  612. package/dist/_node_modules/property-information/lib/xml.js +0 -12
  613. package/dist/_node_modules/property-information/lib/xml.js.map +0 -1
  614. package/dist/_node_modules/property-information/lib/xmlns.cjs +0 -12
  615. package/dist/_node_modules/property-information/lib/xmlns.cjs.map +0 -1
  616. package/dist/_node_modules/property-information/lib/xmlns.js +0 -12
  617. package/dist/_node_modules/property-information/lib/xmlns.js.map +0 -1
  618. package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs +0 -122
  619. package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs.map +0 -1
  620. package/dist/_node_modules/rehype-minify-whitespace/lib/block.js +0 -122
  621. package/dist/_node_modules/rehype-minify-whitespace/lib/block.js.map +0 -1
  622. package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs +0 -11
  623. package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs.map +0 -1
  624. package/dist/_node_modules/rehype-minify-whitespace/lib/content.js +0 -11
  625. package/dist/_node_modules/rehype-minify-whitespace/lib/content.js.map +0 -1
  626. package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs +0 -169
  627. package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs.map +0 -1
  628. package/dist/_node_modules/rehype-minify-whitespace/lib/index.js +0 -170
  629. package/dist/_node_modules/rehype-minify-whitespace/lib/index.js.map +0 -1
  630. package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs +0 -24
  631. package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs.map +0 -1
  632. package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js +0 -24
  633. package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js.map +0 -1
  634. package/dist/_node_modules/rehype-parse/lib/index.cjs +0 -21
  635. package/dist/_node_modules/rehype-parse/lib/index.cjs.map +0 -1
  636. package/dist/_node_modules/rehype-parse/lib/index.js +0 -22
  637. package/dist/_node_modules/rehype-parse/lib/index.js.map +0 -1
  638. package/dist/_node_modules/remark-parse/lib/index.cjs +0 -19
  639. package/dist/_node_modules/remark-parse/lib/index.cjs.map +0 -1
  640. package/dist/_node_modules/remark-parse/lib/index.js +0 -20
  641. package/dist/_node_modules/remark-parse/lib/index.js.map +0 -1
  642. package/dist/_node_modules/remark-rehype/lib/index.cjs +0 -21
  643. package/dist/_node_modules/remark-rehype/lib/index.cjs.map +0 -1
  644. package/dist/_node_modules/remark-rehype/lib/index.js +0 -22
  645. package/dist/_node_modules/remark-rehype/lib/index.js.map +0 -1
  646. package/dist/_node_modules/space-separated-tokens/index.cjs +0 -12
  647. package/dist/_node_modules/space-separated-tokens/index.cjs.map +0 -1
  648. package/dist/_node_modules/space-separated-tokens/index.js +0 -12
  649. package/dist/_node_modules/space-separated-tokens/index.js.map +0 -1
  650. package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs +0 -14
  651. package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs.map +0 -1
  652. package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js +0 -14
  653. package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js.map +0 -1
  654. package/dist/_node_modules/stringify-entities/lib/core.cjs +0 -52
  655. package/dist/_node_modules/stringify-entities/lib/core.cjs.map +0 -1
  656. package/dist/_node_modules/stringify-entities/lib/core.js +0 -52
  657. package/dist/_node_modules/stringify-entities/lib/core.js.map +0 -1
  658. package/dist/_node_modules/stringify-entities/lib/index.cjs +0 -9
  659. package/dist/_node_modules/stringify-entities/lib/index.cjs.map +0 -1
  660. package/dist/_node_modules/stringify-entities/lib/index.js +0 -9
  661. package/dist/_node_modules/stringify-entities/lib/index.js.map +0 -1
  662. package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs +0 -26
  663. package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs.map +0 -1
  664. package/dist/_node_modules/stringify-entities/lib/util/format-smart.js +0 -26
  665. package/dist/_node_modules/stringify-entities/lib/util/format-smart.js.map +0 -1
  666. package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs +0 -9
  667. package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs.map +0 -1
  668. package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js +0 -9
  669. package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js.map +0 -1
  670. package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs +0 -9
  671. package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs.map +0 -1
  672. package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js +0 -9
  673. package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js.map +0 -1
  674. package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs +0 -28
  675. package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs.map +0 -1
  676. package/dist/_node_modules/stringify-entities/lib/util/to-named.js +0 -28
  677. package/dist/_node_modules/stringify-entities/lib/util/to-named.js.map +0 -1
  678. package/dist/_node_modules/trim-lines/index.cjs +0 -42
  679. package/dist/_node_modules/trim-lines/index.cjs.map +0 -1
  680. package/dist/_node_modules/trim-lines/index.js +0 -42
  681. package/dist/_node_modules/trim-lines/index.js.map +0 -1
  682. package/dist/_node_modules/trough/lib/index.cjs +0 -87
  683. package/dist/_node_modules/trough/lib/index.cjs.map +0 -1
  684. package/dist/_node_modules/trough/lib/index.js +0 -87
  685. package/dist/_node_modules/trough/lib/index.js.map +0 -1
  686. package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs +0 -10
  687. package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs.map +0 -1
  688. package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js +0 -11
  689. package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js.map +0 -1
  690. package/dist/_node_modules/unified/lib/callable-instance.cjs +0 -31
  691. package/dist/_node_modules/unified/lib/callable-instance.cjs.map +0 -1
  692. package/dist/_node_modules/unified/lib/callable-instance.js +0 -31
  693. package/dist/_node_modules/unified/lib/callable-instance.js.map +0 -1
  694. package/dist/_node_modules/unified/lib/index.cjs +0 -637
  695. package/dist/_node_modules/unified/lib/index.cjs.map +0 -1
  696. package/dist/_node_modules/unified/lib/index.js +0 -637
  697. package/dist/_node_modules/unified/lib/index.js.map +0 -1
  698. package/dist/_node_modules/unist-util-is/lib/index.cjs +0 -94
  699. package/dist/_node_modules/unist-util-is/lib/index.cjs.map +0 -1
  700. package/dist/_node_modules/unist-util-is/lib/index.js +0 -94
  701. package/dist/_node_modules/unist-util-is/lib/index.js.map +0 -1
  702. package/dist/_node_modules/unist-util-position/lib/index.cjs +0 -28
  703. package/dist/_node_modules/unist-util-position/lib/index.cjs.map +0 -1
  704. package/dist/_node_modules/unist-util-position/lib/index.js +0 -28
  705. package/dist/_node_modules/unist-util-position/lib/index.js.map +0 -1
  706. package/dist/_node_modules/unist-util-remove/lib/index.cjs +0 -39
  707. package/dist/_node_modules/unist-util-remove/lib/index.cjs.map +0 -1
  708. package/dist/_node_modules/unist-util-remove/lib/index.js +0 -39
  709. package/dist/_node_modules/unist-util-remove/lib/index.js.map +0 -1
  710. package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs +0 -28
  711. package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs.map +0 -1
  712. package/dist/_node_modules/unist-util-stringify-position/lib/index.js +0 -28
  713. package/dist/_node_modules/unist-util-stringify-position/lib/index.js.map +0 -1
  714. package/dist/_node_modules/unist-util-visit/lib/index.cjs +0 -28
  715. package/dist/_node_modules/unist-util-visit/lib/index.cjs.map +0 -1
  716. package/dist/_node_modules/unist-util-visit/lib/index.js +0 -29
  717. package/dist/_node_modules/unist-util-visit/lib/index.js.map +0 -1
  718. package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs +0 -7
  719. package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs.map +0 -1
  720. package/dist/_node_modules/unist-util-visit-parents/lib/color.js +0 -7
  721. package/dist/_node_modules/unist-util-visit-parents/lib/color.js.map +0 -1
  722. package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs +0 -84
  723. package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs.map +0 -1
  724. package/dist/_node_modules/unist-util-visit-parents/lib/index.js +0 -84
  725. package/dist/_node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
  726. package/dist/_node_modules/vfile/lib/index.cjs +0 -463
  727. package/dist/_node_modules/vfile/lib/index.cjs.map +0 -1
  728. package/dist/_node_modules/vfile/lib/index.js +0 -463
  729. package/dist/_node_modules/vfile/lib/index.js.map +0 -1
  730. package/dist/_node_modules/vfile/lib/minpath.browser.cjs +0 -215
  731. package/dist/_node_modules/vfile/lib/minpath.browser.cjs.map +0 -1
  732. package/dist/_node_modules/vfile/lib/minpath.browser.js +0 -215
  733. package/dist/_node_modules/vfile/lib/minpath.browser.js.map +0 -1
  734. package/dist/_node_modules/vfile/lib/minproc.browser.cjs +0 -8
  735. package/dist/_node_modules/vfile/lib/minproc.browser.cjs.map +0 -1
  736. package/dist/_node_modules/vfile/lib/minproc.browser.js +0 -8
  737. package/dist/_node_modules/vfile/lib/minproc.browser.js.map +0 -1
  738. package/dist/_node_modules/vfile/lib/minurl.browser.cjs +0 -47
  739. package/dist/_node_modules/vfile/lib/minurl.browser.cjs.map +0 -1
  740. package/dist/_node_modules/vfile/lib/minurl.browser.js +0 -47
  741. package/dist/_node_modules/vfile/lib/minurl.browser.js.map +0 -1
  742. package/dist/_node_modules/vfile/lib/minurl.shared.cjs +0 -10
  743. package/dist/_node_modules/vfile/lib/minurl.shared.cjs.map +0 -1
  744. package/dist/_node_modules/vfile/lib/minurl.shared.js +0 -10
  745. package/dist/_node_modules/vfile/lib/minurl.shared.js.map +0 -1
  746. package/dist/_node_modules/vfile-location/lib/index.cjs +0 -50
  747. package/dist/_node_modules/vfile-location/lib/index.cjs.map +0 -1
  748. package/dist/_node_modules/vfile-location/lib/index.js +0 -50
  749. package/dist/_node_modules/vfile-location/lib/index.js.map +0 -1
  750. package/dist/_node_modules/vfile-message/lib/index.cjs +0 -139
  751. package/dist/_node_modules/vfile-message/lib/index.cjs.map +0 -1
  752. package/dist/_node_modules/vfile-message/lib/index.js +0 -139
  753. package/dist/_node_modules/vfile-message/lib/index.js.map +0 -1
  754. package/dist/_node_modules/web-namespaces/index.cjs +0 -12
  755. package/dist/_node_modules/web-namespaces/index.cjs.map +0 -1
  756. package/dist/_node_modules/web-namespaces/index.js +0 -12
  757. package/dist/_node_modules/web-namespaces/index.js.map +0 -1
  758. package/dist/_node_modules/zwitch/index.cjs +0 -23
  759. package/dist/_node_modules/zwitch/index.cjs.map +0 -1
  760. package/dist/_node_modules/zwitch/index.js +0 -23
  761. package/dist/_node_modules/zwitch/index.js.map +0 -1
  762. package/dist/_virtual/_commonjsHelpers.cjs +0 -7
  763. package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
  764. package/dist/_virtual/_commonjsHelpers.js +0 -7
  765. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  766. package/dist/_virtual/index.cjs +0 -9
  767. package/dist/_virtual/index.cjs.map +0 -1
  768. package/dist/_virtual/index.js +0 -9
  769. package/dist/_virtual/index.js.map +0 -1
  770. package/dist/errors/PrismicRichTextError.cjs +0 -6
  771. package/dist/errors/PrismicRichTextError.cjs.map +0 -1
  772. package/dist/errors/PrismicRichTextError.d.ts +0 -2
  773. package/dist/errors/PrismicRichTextError.js +0 -6
  774. package/dist/errors/PrismicRichTextError.js.map +0 -1
  775. package/dist/errors/PrismicRichTextSerializerError.cjs +0 -7
  776. package/dist/errors/PrismicRichTextSerializerError.cjs.map +0 -1
  777. package/dist/errors/PrismicRichTextSerializerError.d.ts +0 -3
  778. package/dist/errors/PrismicRichTextSerializerError.js +0 -7
  779. package/dist/errors/PrismicRichTextSerializerError.js.map +0 -1
  780. package/dist/helpers/unstable_htmlAsRichText.cjs +0 -11
  781. package/dist/helpers/unstable_htmlAsRichText.cjs.map +0 -1
  782. package/dist/helpers/unstable_htmlAsRichText.d.ts +0 -81
  783. package/dist/helpers/unstable_htmlAsRichText.js +0 -11
  784. package/dist/helpers/unstable_htmlAsRichText.js.map +0 -1
  785. package/dist/helpers/unstable_markdownAsRichText.cjs +0 -12
  786. package/dist/helpers/unstable_markdownAsRichText.cjs.map +0 -1
  787. package/dist/helpers/unstable_markdownAsRichText.d.ts +0 -30
  788. package/dist/helpers/unstable_markdownAsRichText.js +0 -12
  789. package/dist/helpers/unstable_markdownAsRichText.js.map +0 -1
  790. package/dist/lib/RichTextFieldBuilder.cjs +0 -115
  791. package/dist/lib/RichTextFieldBuilder.cjs.map +0 -1
  792. package/dist/lib/RichTextFieldBuilder.d.ts +0 -35
  793. package/dist/lib/RichTextFieldBuilder.js +0 -115
  794. package/dist/lib/RichTextFieldBuilder.js.map +0 -1
  795. package/dist/lib/filterRichTextField.cjs +0 -88
  796. package/dist/lib/filterRichTextField.cjs.map +0 -1
  797. package/dist/lib/filterRichTextField.d.ts +0 -12
  798. package/dist/lib/filterRichTextField.js +0 -88
  799. package/dist/lib/filterRichTextField.js.map +0 -1
  800. package/dist/lib/hastSerializerHelpers.cjs +0 -96
  801. package/dist/lib/hastSerializerHelpers.cjs.map +0 -1
  802. package/dist/lib/hastSerializerHelpers.d.ts +0 -28
  803. package/dist/lib/hastSerializerHelpers.js +0 -96
  804. package/dist/lib/hastSerializerHelpers.js.map +0 -1
  805. package/dist/lib/hastToRichText.cjs +0 -164
  806. package/dist/lib/hastToRichText.cjs.map +0 -1
  807. package/dist/lib/hastToRichText.d.ts +0 -30
  808. package/dist/lib/hastToRichText.js +0 -164
  809. package/dist/lib/hastToRichText.js.map +0 -1
  810. package/dist/lib/rehypeRichText.cjs +0 -60
  811. package/dist/lib/rehypeRichText.cjs.map +0 -1
  812. package/dist/lib/rehypeRichText.d.ts +0 -66
  813. package/dist/lib/rehypeRichText.js +0 -60
  814. package/dist/lib/rehypeRichText.js.map +0 -1
  815. package/src/errors/PrismicRichTextError.ts +0 -1
  816. package/src/errors/PrismicRichTextSerializerError.ts +0 -3
  817. package/src/helpers/unstable_htmlAsRichText.ts +0 -122
  818. package/src/helpers/unstable_markdownAsRichText.ts +0 -53
  819. package/src/lib/RichTextFieldBuilder.ts +0 -164
  820. package/src/lib/filterRichTextField.ts +0 -159
  821. package/src/lib/hastSerializerHelpers.ts +0 -157
  822. package/src/lib/hastToRichText.ts +0 -295
  823. package/src/lib/rehypeRichText.ts +0 -184
@@ -1,463 +0,0 @@
1
- import { minpath } from "./minpath.browser.js";
2
- import { minproc } from "./minproc.browser.js";
3
- import { urlToPath } from "./minurl.browser.js";
4
- import { isUrl } from "./minurl.shared.js";
5
- import { VFileMessage } from "../../vfile-message/lib/index.js";
6
- const order = (
7
- /** @type {const} */
8
- [
9
- "history",
10
- "path",
11
- "basename",
12
- "stem",
13
- "extname",
14
- "dirname"
15
- ]
16
- );
17
- class VFile {
18
- /**
19
- * Create a new virtual file.
20
- *
21
- * `options` is treated as:
22
- *
23
- * * `string` or `Uint8Array` — `{value: options}`
24
- * * `URL` — `{path: options}`
25
- * * `VFile` — shallow copies its data over to the new file
26
- * * `object` — all fields are shallow copied over to the new file
27
- *
28
- * Path related fields are set in the following order (least specific to
29
- * most specific): `history`, `path`, `basename`, `stem`, `extname`,
30
- * `dirname`.
31
- *
32
- * You cannot set `dirname` or `extname` without setting either `history`,
33
- * `path`, `basename`, or `stem` too.
34
- *
35
- * @param {Compatible | null | undefined} [value]
36
- * File value.
37
- * @returns
38
- * New instance.
39
- */
40
- constructor(value) {
41
- let options;
42
- if (!value) {
43
- options = {};
44
- } else if (isUrl(value)) {
45
- options = { path: value };
46
- } else if (typeof value === "string" || isUint8Array(value)) {
47
- options = { value };
48
- } else {
49
- options = value;
50
- }
51
- this.cwd = "cwd" in options ? "" : minproc.cwd();
52
- this.data = {};
53
- this.history = [];
54
- this.messages = [];
55
- this.value;
56
- this.map;
57
- this.result;
58
- this.stored;
59
- let index = -1;
60
- while (++index < order.length) {
61
- const field2 = order[index];
62
- if (field2 in options && options[field2] !== void 0 && options[field2] !== null) {
63
- this[field2] = field2 === "history" ? [...options[field2]] : options[field2];
64
- }
65
- }
66
- let field;
67
- for (field in options) {
68
- if (!order.includes(field)) {
69
- this[field] = options[field];
70
- }
71
- }
72
- }
73
- /**
74
- * Get the basename (including extname) (example: `'index.min.js'`).
75
- *
76
- * @returns {string | undefined}
77
- * Basename.
78
- */
79
- get basename() {
80
- return typeof this.path === "string" ? minpath.basename(this.path) : void 0;
81
- }
82
- /**
83
- * Set basename (including extname) (`'index.min.js'`).
84
- *
85
- * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
86
- * on windows).
87
- * Cannot be nullified (use `file.path = file.dirname` instead).
88
- *
89
- * @param {string} basename
90
- * Basename.
91
- * @returns {undefined}
92
- * Nothing.
93
- */
94
- set basename(basename) {
95
- assertNonEmpty(basename, "basename");
96
- assertPart(basename, "basename");
97
- this.path = minpath.join(this.dirname || "", basename);
98
- }
99
- /**
100
- * Get the parent path (example: `'~'`).
101
- *
102
- * @returns {string | undefined}
103
- * Dirname.
104
- */
105
- get dirname() {
106
- return typeof this.path === "string" ? minpath.dirname(this.path) : void 0;
107
- }
108
- /**
109
- * Set the parent path (example: `'~'`).
110
- *
111
- * Cannot be set if there’s no `path` yet.
112
- *
113
- * @param {string | undefined} dirname
114
- * Dirname.
115
- * @returns {undefined}
116
- * Nothing.
117
- */
118
- set dirname(dirname) {
119
- assertPath(this.basename, "dirname");
120
- this.path = minpath.join(dirname || "", this.basename);
121
- }
122
- /**
123
- * Get the extname (including dot) (example: `'.js'`).
124
- *
125
- * @returns {string | undefined}
126
- * Extname.
127
- */
128
- get extname() {
129
- return typeof this.path === "string" ? minpath.extname(this.path) : void 0;
130
- }
131
- /**
132
- * Set the extname (including dot) (example: `'.js'`).
133
- *
134
- * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
135
- * on windows).
136
- * Cannot be set if there’s no `path` yet.
137
- *
138
- * @param {string | undefined} extname
139
- * Extname.
140
- * @returns {undefined}
141
- * Nothing.
142
- */
143
- set extname(extname) {
144
- assertPart(extname, "extname");
145
- assertPath(this.dirname, "extname");
146
- if (extname) {
147
- if (extname.codePointAt(0) !== 46) {
148
- throw new Error("`extname` must start with `.`");
149
- }
150
- if (extname.includes(".", 1)) {
151
- throw new Error("`extname` cannot contain multiple dots");
152
- }
153
- }
154
- this.path = minpath.join(this.dirname, this.stem + (extname || ""));
155
- }
156
- /**
157
- * Get the full path (example: `'~/index.min.js'`).
158
- *
159
- * @returns {string}
160
- * Path.
161
- */
162
- get path() {
163
- return this.history[this.history.length - 1];
164
- }
165
- /**
166
- * Set the full path (example: `'~/index.min.js'`).
167
- *
168
- * Cannot be nullified.
169
- * You can set a file URL (a `URL` object with a `file:` protocol) which will
170
- * be turned into a path with `url.fileURLToPath`.
171
- *
172
- * @param {URL | string} path
173
- * Path.
174
- * @returns {undefined}
175
- * Nothing.
176
- */
177
- set path(path) {
178
- if (isUrl(path)) {
179
- path = urlToPath(path);
180
- }
181
- assertNonEmpty(path, "path");
182
- if (this.path !== path) {
183
- this.history.push(path);
184
- }
185
- }
186
- /**
187
- * Get the stem (basename w/o extname) (example: `'index.min'`).
188
- *
189
- * @returns {string | undefined}
190
- * Stem.
191
- */
192
- get stem() {
193
- return typeof this.path === "string" ? minpath.basename(this.path, this.extname) : void 0;
194
- }
195
- /**
196
- * Set the stem (basename w/o extname) (example: `'index.min'`).
197
- *
198
- * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
199
- * on windows).
200
- * Cannot be nullified (use `file.path = file.dirname` instead).
201
- *
202
- * @param {string} stem
203
- * Stem.
204
- * @returns {undefined}
205
- * Nothing.
206
- */
207
- set stem(stem) {
208
- assertNonEmpty(stem, "stem");
209
- assertPart(stem, "stem");
210
- this.path = minpath.join(this.dirname || "", stem + (this.extname || ""));
211
- }
212
- // Normal prototypal methods.
213
- /**
214
- * Create a fatal message for `reason` associated with the file.
215
- *
216
- * The `fatal` field of the message is set to `true` (error; file not usable)
217
- * and the `file` field is set to the current file path.
218
- * The message is added to the `messages` field on `file`.
219
- *
220
- * > 🪦 **Note**: also has obsolete signatures.
221
- *
222
- * @overload
223
- * @param {string} reason
224
- * @param {MessageOptions | null | undefined} [options]
225
- * @returns {never}
226
- *
227
- * @overload
228
- * @param {string} reason
229
- * @param {Node | NodeLike | null | undefined} parent
230
- * @param {string | null | undefined} [origin]
231
- * @returns {never}
232
- *
233
- * @overload
234
- * @param {string} reason
235
- * @param {Point | Position | null | undefined} place
236
- * @param {string | null | undefined} [origin]
237
- * @returns {never}
238
- *
239
- * @overload
240
- * @param {string} reason
241
- * @param {string | null | undefined} [origin]
242
- * @returns {never}
243
- *
244
- * @overload
245
- * @param {Error | VFileMessage} cause
246
- * @param {Node | NodeLike | null | undefined} parent
247
- * @param {string | null | undefined} [origin]
248
- * @returns {never}
249
- *
250
- * @overload
251
- * @param {Error | VFileMessage} cause
252
- * @param {Point | Position | null | undefined} place
253
- * @param {string | null | undefined} [origin]
254
- * @returns {never}
255
- *
256
- * @overload
257
- * @param {Error | VFileMessage} cause
258
- * @param {string | null | undefined} [origin]
259
- * @returns {never}
260
- *
261
- * @param {Error | VFileMessage | string} causeOrReason
262
- * Reason for message, should use markdown.
263
- * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
264
- * Configuration (optional).
265
- * @param {string | null | undefined} [origin]
266
- * Place in code where the message originates (example:
267
- * `'my-package:my-rule'` or `'my-rule'`).
268
- * @returns {never}
269
- * Never.
270
- * @throws {VFileMessage}
271
- * Message.
272
- */
273
- fail(causeOrReason, optionsOrParentOrPlace, origin) {
274
- const message = this.message(causeOrReason, optionsOrParentOrPlace, origin);
275
- message.fatal = true;
276
- throw message;
277
- }
278
- /**
279
- * Create an info message for `reason` associated with the file.
280
- *
281
- * The `fatal` field of the message is set to `undefined` (info; change
282
- * likely not needed) and the `file` field is set to the current file path.
283
- * The message is added to the `messages` field on `file`.
284
- *
285
- * > 🪦 **Note**: also has obsolete signatures.
286
- *
287
- * @overload
288
- * @param {string} reason
289
- * @param {MessageOptions | null | undefined} [options]
290
- * @returns {VFileMessage}
291
- *
292
- * @overload
293
- * @param {string} reason
294
- * @param {Node | NodeLike | null | undefined} parent
295
- * @param {string | null | undefined} [origin]
296
- * @returns {VFileMessage}
297
- *
298
- * @overload
299
- * @param {string} reason
300
- * @param {Point | Position | null | undefined} place
301
- * @param {string | null | undefined} [origin]
302
- * @returns {VFileMessage}
303
- *
304
- * @overload
305
- * @param {string} reason
306
- * @param {string | null | undefined} [origin]
307
- * @returns {VFileMessage}
308
- *
309
- * @overload
310
- * @param {Error | VFileMessage} cause
311
- * @param {Node | NodeLike | null | undefined} parent
312
- * @param {string | null | undefined} [origin]
313
- * @returns {VFileMessage}
314
- *
315
- * @overload
316
- * @param {Error | VFileMessage} cause
317
- * @param {Point | Position | null | undefined} place
318
- * @param {string | null | undefined} [origin]
319
- * @returns {VFileMessage}
320
- *
321
- * @overload
322
- * @param {Error | VFileMessage} cause
323
- * @param {string | null | undefined} [origin]
324
- * @returns {VFileMessage}
325
- *
326
- * @param {Error | VFileMessage | string} causeOrReason
327
- * Reason for message, should use markdown.
328
- * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
329
- * Configuration (optional).
330
- * @param {string | null | undefined} [origin]
331
- * Place in code where the message originates (example:
332
- * `'my-package:my-rule'` or `'my-rule'`).
333
- * @returns {VFileMessage}
334
- * Message.
335
- */
336
- info(causeOrReason, optionsOrParentOrPlace, origin) {
337
- const message = this.message(causeOrReason, optionsOrParentOrPlace, origin);
338
- message.fatal = void 0;
339
- return message;
340
- }
341
- /**
342
- * Create a message for `reason` associated with the file.
343
- *
344
- * The `fatal` field of the message is set to `false` (warning; change may be
345
- * needed) and the `file` field is set to the current file path.
346
- * The message is added to the `messages` field on `file`.
347
- *
348
- * > 🪦 **Note**: also has obsolete signatures.
349
- *
350
- * @overload
351
- * @param {string} reason
352
- * @param {MessageOptions | null | undefined} [options]
353
- * @returns {VFileMessage}
354
- *
355
- * @overload
356
- * @param {string} reason
357
- * @param {Node | NodeLike | null | undefined} parent
358
- * @param {string | null | undefined} [origin]
359
- * @returns {VFileMessage}
360
- *
361
- * @overload
362
- * @param {string} reason
363
- * @param {Point | Position | null | undefined} place
364
- * @param {string | null | undefined} [origin]
365
- * @returns {VFileMessage}
366
- *
367
- * @overload
368
- * @param {string} reason
369
- * @param {string | null | undefined} [origin]
370
- * @returns {VFileMessage}
371
- *
372
- * @overload
373
- * @param {Error | VFileMessage} cause
374
- * @param {Node | NodeLike | null | undefined} parent
375
- * @param {string | null | undefined} [origin]
376
- * @returns {VFileMessage}
377
- *
378
- * @overload
379
- * @param {Error | VFileMessage} cause
380
- * @param {Point | Position | null | undefined} place
381
- * @param {string | null | undefined} [origin]
382
- * @returns {VFileMessage}
383
- *
384
- * @overload
385
- * @param {Error | VFileMessage} cause
386
- * @param {string | null | undefined} [origin]
387
- * @returns {VFileMessage}
388
- *
389
- * @param {Error | VFileMessage | string} causeOrReason
390
- * Reason for message, should use markdown.
391
- * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
392
- * Configuration (optional).
393
- * @param {string | null | undefined} [origin]
394
- * Place in code where the message originates (example:
395
- * `'my-package:my-rule'` or `'my-rule'`).
396
- * @returns {VFileMessage}
397
- * Message.
398
- */
399
- message(causeOrReason, optionsOrParentOrPlace, origin) {
400
- const message = new VFileMessage(
401
- // @ts-expect-error: the overloads are fine.
402
- causeOrReason,
403
- optionsOrParentOrPlace,
404
- origin
405
- );
406
- if (this.path) {
407
- message.name = this.path + ":" + message.name;
408
- message.file = this.path;
409
- }
410
- message.fatal = false;
411
- this.messages.push(message);
412
- return message;
413
- }
414
- /**
415
- * Serialize the file.
416
- *
417
- * > **Note**: which encodings are supported depends on the engine.
418
- * > For info on Node.js, see:
419
- * > <https://nodejs.org/api/util.html#whatwg-supported-encodings>.
420
- *
421
- * @param {string | null | undefined} [encoding='utf8']
422
- * Character encoding to understand `value` as when it’s a `Uint8Array`
423
- * (default: `'utf-8'`).
424
- * @returns {string}
425
- * Serialized file.
426
- */
427
- toString(encoding) {
428
- if (this.value === void 0) {
429
- return "";
430
- }
431
- if (typeof this.value === "string") {
432
- return this.value;
433
- }
434
- const decoder = new TextDecoder(encoding || void 0);
435
- return decoder.decode(this.value);
436
- }
437
- }
438
- function assertPart(part, name) {
439
- if (part && part.includes(minpath.sep)) {
440
- throw new Error(
441
- "`" + name + "` cannot be a path: did not expect `" + minpath.sep + "`"
442
- );
443
- }
444
- }
445
- function assertNonEmpty(part, name) {
446
- if (!part) {
447
- throw new Error("`" + name + "` cannot be empty");
448
- }
449
- }
450
- function assertPath(path, name) {
451
- if (!path) {
452
- throw new Error("Setting `" + name + "` requires `path` to be set too");
453
- }
454
- }
455
- function isUint8Array(value) {
456
- return Boolean(
457
- value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
458
- );
459
- }
460
- export {
461
- VFile
462
- };
463
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/vfile/lib/index.js"],"sourcesContent":["/**\n * @import {Node, Point, Position} from 'unist'\n * @import {Options as MessageOptions} from 'vfile-message'\n * @import {Compatible, Data, Map, Options, Value} from 'vfile'\n */\n\n/**\n * @typedef {object & {type: string, position?: Position | undefined}} NodeLike\n */\n\nimport {VFileMessage} from 'vfile-message'\nimport {minpath} from '#minpath'\nimport {minproc} from '#minproc'\nimport {urlToPath, isUrl} from '#minurl'\n\n/**\n * Order of setting (least specific to most), we need this because otherwise\n * `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a\n * stem can be set.\n */\nconst order = /** @type {const} */ ([\n 'history',\n 'path',\n 'basename',\n 'stem',\n 'extname',\n 'dirname'\n])\n\nexport class VFile {\n /**\n * Create a new virtual file.\n *\n * `options` is treated as:\n *\n * * `string` or `Uint8Array` — `{value: options}`\n * * `URL` — `{path: options}`\n * * `VFile` — shallow copies its data over to the new file\n * * `object` — all fields are shallow copied over to the new file\n *\n * Path related fields are set in the following order (least specific to\n * most specific): `history`, `path`, `basename`, `stem`, `extname`,\n * `dirname`.\n *\n * You cannot set `dirname` or `extname` without setting either `history`,\n * `path`, `basename`, or `stem` too.\n *\n * @param {Compatible | null | undefined} [value]\n * File value.\n * @returns\n * New instance.\n */\n constructor(value) {\n /** @type {Options | VFile} */\n let options\n\n if (!value) {\n options = {}\n } else if (isUrl(value)) {\n options = {path: value}\n } else if (typeof value === 'string' || isUint8Array(value)) {\n options = {value}\n } else {\n options = value\n }\n\n /* eslint-disable no-unused-expressions */\n\n /**\n * Base of `path` (default: `process.cwd()` or `'/'` in browsers).\n *\n * @type {string}\n */\n // Prevent calling `cwd` (which could be expensive) if it’s not needed;\n // the empty string will be overridden in the next block.\n this.cwd = 'cwd' in options ? '' : minproc.cwd()\n\n /**\n * Place to store custom info (default: `{}`).\n *\n * It’s OK to store custom data directly on the file but moving it to\n * `data` is recommended.\n *\n * @type {Data}\n */\n this.data = {}\n\n /**\n * List of file paths the file moved between.\n *\n * The first is the original path and the last is the current path.\n *\n * @type {Array<string>}\n */\n this.history = []\n\n /**\n * List of messages associated with the file.\n *\n * @type {Array<VFileMessage>}\n */\n this.messages = []\n\n /**\n * Raw value.\n *\n * @type {Value}\n */\n this.value\n\n // The below are non-standard, they are “well-known”.\n // As in, used in several tools.\n /**\n * Source map.\n *\n * This type is equivalent to the `RawSourceMap` type from the `source-map`\n * module.\n *\n * @type {Map | null | undefined}\n */\n this.map\n\n /**\n * Custom, non-string, compiled, representation.\n *\n * This is used by unified to store non-string results.\n * One example is when turning markdown into React nodes.\n *\n * @type {unknown}\n */\n this.result\n\n /**\n * Whether a file was saved to disk.\n *\n * This is used by vfile reporters.\n *\n * @type {boolean}\n */\n this.stored\n /* eslint-enable no-unused-expressions */\n\n // Set path related properties in the correct order.\n let index = -1\n\n while (++index < order.length) {\n const field = order[index]\n\n // Note: we specifically use `in` instead of `hasOwnProperty` to accept\n // `vfile`s too.\n if (\n field in options &&\n options[field] !== undefined &&\n options[field] !== null\n ) {\n // @ts-expect-error: TS doesn’t understand basic reality.\n this[field] = field === 'history' ? [...options[field]] : options[field]\n }\n }\n\n /** @type {string} */\n let field\n\n // Set non-path related properties.\n for (field in options) {\n // @ts-expect-error: fine to set other things.\n if (!order.includes(field)) {\n // @ts-expect-error: fine to set other things.\n this[field] = options[field]\n }\n }\n }\n\n /**\n * Get the basename (including extname) (example: `'index.min.js'`).\n *\n * @returns {string | undefined}\n * Basename.\n */\n get basename() {\n return typeof this.path === 'string'\n ? minpath.basename(this.path)\n : undefined\n }\n\n /**\n * Set basename (including extname) (`'index.min.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n *\n * @param {string} basename\n * Basename.\n * @returns {undefined}\n * Nothing.\n */\n set basename(basename) {\n assertNonEmpty(basename, 'basename')\n assertPart(basename, 'basename')\n this.path = minpath.join(this.dirname || '', basename)\n }\n\n /**\n * Get the parent path (example: `'~'`).\n *\n * @returns {string | undefined}\n * Dirname.\n */\n get dirname() {\n return typeof this.path === 'string'\n ? minpath.dirname(this.path)\n : undefined\n }\n\n /**\n * Set the parent path (example: `'~'`).\n *\n * Cannot be set if there’s no `path` yet.\n *\n * @param {string | undefined} dirname\n * Dirname.\n * @returns {undefined}\n * Nothing.\n */\n set dirname(dirname) {\n assertPath(this.basename, 'dirname')\n this.path = minpath.join(dirname || '', this.basename)\n }\n\n /**\n * Get the extname (including dot) (example: `'.js'`).\n *\n * @returns {string | undefined}\n * Extname.\n */\n get extname() {\n return typeof this.path === 'string'\n ? minpath.extname(this.path)\n : undefined\n }\n\n /**\n * Set the extname (including dot) (example: `'.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be set if there’s no `path` yet.\n *\n * @param {string | undefined} extname\n * Extname.\n * @returns {undefined}\n * Nothing.\n */\n set extname(extname) {\n assertPart(extname, 'extname')\n assertPath(this.dirname, 'extname')\n\n if (extname) {\n if (extname.codePointAt(0) !== 46 /* `.` */) {\n throw new Error('`extname` must start with `.`')\n }\n\n if (extname.includes('.', 1)) {\n throw new Error('`extname` cannot contain multiple dots')\n }\n }\n\n this.path = minpath.join(this.dirname, this.stem + (extname || ''))\n }\n\n /**\n * Get the full path (example: `'~/index.min.js'`).\n *\n * @returns {string}\n * Path.\n */\n get path() {\n return this.history[this.history.length - 1]\n }\n\n /**\n * Set the full path (example: `'~/index.min.js'`).\n *\n * Cannot be nullified.\n * You can set a file URL (a `URL` object with a `file:` protocol) which will\n * be turned into a path with `url.fileURLToPath`.\n *\n * @param {URL | string} path\n * Path.\n * @returns {undefined}\n * Nothing.\n */\n set path(path) {\n if (isUrl(path)) {\n path = urlToPath(path)\n }\n\n assertNonEmpty(path, 'path')\n\n if (this.path !== path) {\n this.history.push(path)\n }\n }\n\n /**\n * Get the stem (basename w/o extname) (example: `'index.min'`).\n *\n * @returns {string | undefined}\n * Stem.\n */\n get stem() {\n return typeof this.path === 'string'\n ? minpath.basename(this.path, this.extname)\n : undefined\n }\n\n /**\n * Set the stem (basename w/o extname) (example: `'index.min'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n *\n * @param {string} stem\n * Stem.\n * @returns {undefined}\n * Nothing.\n */\n set stem(stem) {\n assertNonEmpty(stem, 'stem')\n assertPart(stem, 'stem')\n this.path = minpath.join(this.dirname || '', stem + (this.extname || ''))\n }\n\n // Normal prototypal methods.\n /**\n * Create a fatal message for `reason` associated with the file.\n *\n * The `fatal` field of the message is set to `true` (error; file not usable)\n * and the `file` field is set to the current file path.\n * The message is added to the `messages` field on `file`.\n *\n * > 🪦 **Note**: also has obsolete signatures.\n *\n * @overload\n * @param {string} reason\n * @param {MessageOptions | null | undefined} [options]\n * @returns {never}\n *\n * @overload\n * @param {string} reason\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {string} reason\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {string} reason\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @param {Error | VFileMessage | string} causeOrReason\n * Reason for message, should use markdown.\n * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]\n * Configuration (optional).\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {never}\n * Never.\n * @throws {VFileMessage}\n * Message.\n */\n fail(causeOrReason, optionsOrParentOrPlace, origin) {\n // @ts-expect-error: the overloads are fine.\n const message = this.message(causeOrReason, optionsOrParentOrPlace, origin)\n\n message.fatal = true\n\n throw message\n }\n\n /**\n * Create an info message for `reason` associated with the file.\n *\n * The `fatal` field of the message is set to `undefined` (info; change\n * likely not needed) and the `file` field is set to the current file path.\n * The message is added to the `messages` field on `file`.\n *\n * > 🪦 **Note**: also has obsolete signatures.\n *\n * @overload\n * @param {string} reason\n * @param {MessageOptions | null | undefined} [options]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @param {Error | VFileMessage | string} causeOrReason\n * Reason for message, should use markdown.\n * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]\n * Configuration (optional).\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n info(causeOrReason, optionsOrParentOrPlace, origin) {\n // @ts-expect-error: the overloads are fine.\n const message = this.message(causeOrReason, optionsOrParentOrPlace, origin)\n\n message.fatal = undefined\n\n return message\n }\n\n /**\n * Create a message for `reason` associated with the file.\n *\n * The `fatal` field of the message is set to `false` (warning; change may be\n * needed) and the `file` field is set to the current file path.\n * The message is added to the `messages` field on `file`.\n *\n * > 🪦 **Note**: also has obsolete signatures.\n *\n * @overload\n * @param {string} reason\n * @param {MessageOptions | null | undefined} [options]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @param {Error | VFileMessage | string} causeOrReason\n * Reason for message, should use markdown.\n * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]\n * Configuration (optional).\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n message(causeOrReason, optionsOrParentOrPlace, origin) {\n const message = new VFileMessage(\n // @ts-expect-error: the overloads are fine.\n causeOrReason,\n optionsOrParentOrPlace,\n origin\n )\n\n if (this.path) {\n message.name = this.path + ':' + message.name\n message.file = this.path\n }\n\n message.fatal = false\n\n this.messages.push(message)\n\n return message\n }\n\n /**\n * Serialize the file.\n *\n * > **Note**: which encodings are supported depends on the engine.\n * > For info on Node.js, see:\n * > <https://nodejs.org/api/util.html#whatwg-supported-encodings>.\n *\n * @param {string | null | undefined} [encoding='utf8']\n * Character encoding to understand `value` as when it’s a `Uint8Array`\n * (default: `'utf-8'`).\n * @returns {string}\n * Serialized file.\n */\n toString(encoding) {\n if (this.value === undefined) {\n return ''\n }\n\n if (typeof this.value === 'string') {\n return this.value\n }\n\n const decoder = new TextDecoder(encoding || undefined)\n return decoder.decode(this.value)\n }\n}\n\n/**\n * Assert that `part` is not a path (as in, does not contain `path.sep`).\n *\n * @param {string | null | undefined} part\n * File path part.\n * @param {string} name\n * Part name.\n * @returns {undefined}\n * Nothing.\n */\nfunction assertPart(part, name) {\n if (part && part.includes(minpath.sep)) {\n throw new Error(\n '`' + name + '` cannot be a path: did not expect `' + minpath.sep + '`'\n )\n }\n}\n\n/**\n * Assert that `part` is not empty.\n *\n * @param {string | undefined} part\n * Thing.\n * @param {string} name\n * Part name.\n * @returns {asserts part is string}\n * Nothing.\n */\nfunction assertNonEmpty(part, name) {\n if (!part) {\n throw new Error('`' + name + '` cannot be empty')\n }\n}\n\n/**\n * Assert `path` exists.\n *\n * @param {string | undefined} path\n * Path.\n * @param {string} name\n * Dependency name.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path, name) {\n if (!path) {\n throw new Error('Setting `' + name + '` requires `path` to be set too')\n }\n}\n\n/**\n * Assert `value` is an `Uint8Array`.\n *\n * @param {unknown} value\n * thing.\n * @returns {value is Uint8Array}\n * Whether `value` is an `Uint8Array`.\n */\nfunction isUint8Array(value) {\n return Boolean(\n value &&\n typeof value === 'object' &&\n 'byteLength' in value &&\n 'byteOffset' in value\n )\n}\n"],"names":["field"],"mappings":"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","x_google_ignoreList":[0]}