cngpac 0.0.1

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 (278) hide show
  1. package/LICENSE +201 -0
  2. package/dist/bin.mjs +24025 -0
  3. package/dist/src/_virtual/_rolldown/runtime.mjs +35 -0
  4. package/dist/src/changelog.d.mts +71 -0
  5. package/dist/src/changelog.mjs +92 -0
  6. package/dist/src/changenote.d.mts +41 -0
  7. package/dist/src/changenote.mjs +184 -0
  8. package/dist/src/cli/commands/change.d.mts +4 -0
  9. package/dist/src/cli/commands/change.mjs +75 -0
  10. package/dist/src/formatter.d.mts +31 -0
  11. package/dist/src/formatter.mjs +50 -0
  12. package/dist/src/git.d.mts +20 -0
  13. package/dist/src/git.mjs +121 -0
  14. package/dist/src/index.d.mts +19 -0
  15. package/dist/src/index.mjs +20 -0
  16. package/dist/src/node_modules/.pnpm/@clack_core@1.2.0/node_modules/@clack/core/dist/index.mjs +530 -0
  17. package/dist/src/node_modules/.pnpm/@clack_prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs +110 -0
  18. package/dist/src/node_modules/.pnpm/@kwsites_file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/index.mjs +13 -0
  19. package/dist/src/node_modules/.pnpm/@kwsites_file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/src/index.mjs +59 -0
  20. package/dist/src/node_modules/.pnpm/@kwsites_promise-deferred@1.1.1/node_modules/@kwsites/promise-deferred/dist/index.mjs +55 -0
  21. package/dist/src/node_modules/.pnpm/@octokit_auth-token@6.0.0/node_modules/@octokit/auth-token/dist-bundle/index.mjs +32 -0
  22. package/dist/src/node_modules/.pnpm/@octokit_core@7.0.6/node_modules/@octokit/core/dist-src/index.mjs +94 -0
  23. package/dist/src/node_modules/.pnpm/@octokit_core@7.0.6/node_modules/@octokit/core/dist-src/version.mjs +4 -0
  24. package/dist/src/node_modules/.pnpm/@octokit_endpoint@11.0.3/node_modules/@octokit/endpoint/dist-bundle/index.mjs +223 -0
  25. package/dist/src/node_modules/.pnpm/@octokit_graphql@9.0.3/node_modules/@octokit/graphql/dist-bundle/index.mjs +90 -0
  26. package/dist/src/node_modules/.pnpm/@octokit_plugin-paginate-rest@14.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-paginate-rest/dist-bundle/index.mjs +86 -0
  27. package/dist/src/node_modules/.pnpm/@octokit_plugin-request-log@6.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-request-log/dist-src/index.mjs +22 -0
  28. package/dist/src/node_modules/.pnpm/@octokit_plugin-request-log@6.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-request-log/dist-src/version.mjs +4 -0
  29. package/dist/src/node_modules/.pnpm/@octokit_plugin-rest-endpoint-methods@17.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.mjs +94 -0
  30. package/dist/src/node_modules/.pnpm/@octokit_plugin-rest-endpoint-methods@17.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.mjs +1295 -0
  31. package/dist/src/node_modules/.pnpm/@octokit_plugin-rest-endpoint-methods@17.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.mjs +17 -0
  32. package/dist/src/node_modules/.pnpm/@octokit_plugin-rest-endpoint-methods@17.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.mjs +4 -0
  33. package/dist/src/node_modules/.pnpm/@octokit_request-error@7.1.0/node_modules/@octokit/request-error/dist-src/index.mjs +30 -0
  34. package/dist/src/node_modules/.pnpm/@octokit_request@10.0.8/node_modules/@octokit/request/dist-bundle/index.mjs +146 -0
  35. package/dist/src/node_modules/.pnpm/@octokit_rest@22.0.1/node_modules/@octokit/rest/dist-src/index.mjs +9 -0
  36. package/dist/src/node_modules/.pnpm/@octokit_rest@22.0.1/node_modules/@octokit/rest/dist-src/version.mjs +4 -0
  37. package/dist/src/node_modules/.pnpm/@simple-git_args-pathspec@1.0.2/node_modules/@simple-git/args-pathspec/dist/index.mjs +14 -0
  38. package/dist/src/node_modules/.pnpm/@simple-git_argv-parser@1.0.3/node_modules/@simple-git/argv-parser/dist/index.mjs +369 -0
  39. package/dist/src/node_modules/.pnpm/bail@2.0.2/node_modules/bail/index.mjs +13 -0
  40. package/dist/src/node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/index.mjs +43 -0
  41. package/dist/src/node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/add.mjs +28 -0
  42. package/dist/src/node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/register.mjs +16 -0
  43. package/dist/src/node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/remove.mjs +11 -0
  44. package/dist/src/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.mjs +2135 -0
  45. package/dist/src/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.mjs +200 -0
  46. package/dist/src/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.mjs +206 -0
  47. package/dist/src/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.mjs +15 -0
  48. package/dist/src/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.mjs +212 -0
  49. package/dist/src/node_modules/.pnpm/decode-named-character-reference@1.3.0/node_modules/decode-named-character-reference/index.mjs +19 -0
  50. package/dist/src/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.mjs +4 -0
  51. package/dist/src/node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.mjs +7 -0
  52. package/dist/src/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.mjs +76 -0
  53. package/dist/src/node_modules/.pnpm/fast-content-type-parse@3.0.0/node_modules/fast-content-type-parse/index.mjs +115 -0
  54. package/dist/src/node_modules/.pnpm/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.mjs +138 -0
  55. package/dist/src/node_modules/.pnpm/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.mjs +12 -0
  56. package/dist/src/node_modules/.pnpm/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.mjs +12 -0
  57. package/dist/src/node_modules/.pnpm/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.mjs +165 -0
  58. package/dist/src/node_modules/.pnpm/fault@2.0.1/node_modules/fault/index.mjs +38 -0
  59. package/dist/src/node_modules/.pnpm/format@0.2.2/node_modules/format/format.mjs +87 -0
  60. package/dist/src/node_modules/.pnpm/glob@13.0.6/node_modules/glob/dist/esm/index.min.mjs +3125 -0
  61. package/dist/src/node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.mjs +13 -0
  62. package/dist/src/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs +8 -0
  63. package/dist/src/node_modules/.pnpm/json-with-bigint@3.5.8/node_modules/json-with-bigint/json-with-bigint.mjs +137 -0
  64. package/dist/src/node_modules/.pnpm/localstorage-polyfill@1.0.1/node_modules/localstorage-polyfill/localStorage.mjs +39 -0
  65. package/dist/src/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.mjs +29 -0
  66. package/dist/src/node_modules/.pnpm/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown/lib/index.mjs +976 -0
  67. package/dist/src/node_modules/.pnpm/mdast-util-frontmatter@2.0.1/node_modules/mdast-util-frontmatter/lib/index.mjs +162 -0
  68. package/dist/src/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.mjs +36 -0
  69. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/configure.mjs +48 -0
  70. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.mjs +27 -0
  71. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.mjs +20 -0
  72. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.mjs +62 -0
  73. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.mjs +61 -0
  74. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.mjs +51 -0
  75. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.mjs +47 -0
  76. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.mjs +20 -0
  77. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.mjs +50 -0
  78. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.mjs +69 -0
  79. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.mjs +47 -0
  80. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.mjs +40 -0
  81. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.mjs +50 -0
  82. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.mjs +93 -0
  83. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.mjs +35 -0
  84. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.mjs +48 -0
  85. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.mjs +22 -0
  86. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.mjs +20 -0
  87. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.mjs +51 -0
  88. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.mjs +17 -0
  89. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.mjs +19 -0
  90. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/index.mjs +161 -0
  91. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/join.mjs +18 -0
  92. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/unsafe.mjs +223 -0
  93. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/association.mjs +31 -0
  94. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.mjs +15 -0
  95. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.mjs +19 -0
  96. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.mjs +15 -0
  97. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.mjs +15 -0
  98. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.mjs +15 -0
  99. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.mjs +15 -0
  100. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.mjs +15 -0
  101. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.mjs +15 -0
  102. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.mjs +15 -0
  103. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.mjs +15 -0
  104. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.mjs +16 -0
  105. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/container-flow.mjs +56 -0
  106. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.mjs +75 -0
  107. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.mjs +14 -0
  108. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.mjs +74 -0
  109. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.mjs +15 -0
  110. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.mjs +24 -0
  111. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.mjs +17 -0
  112. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/indent-lines.mjs +32 -0
  113. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.mjs +27 -0
  114. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/safe.mjs +116 -0
  115. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/track.mjs +59 -0
  116. package/dist/src/node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.mjs +83 -0
  117. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.mjs +224 -0
  118. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.mjs +213 -0
  119. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.mjs +60 -0
  120. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.mjs +130 -0
  121. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.mjs +62 -0
  122. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.mjs +141 -0
  123. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +418 -0
  124. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.mjs +147 -0
  125. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.mjs +187 -0
  126. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.mjs +137 -0
  127. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.mjs +223 -0
  128. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +59 -0
  129. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +189 -0
  130. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.mjs +777 -0
  131. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.mjs +617 -0
  132. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.mjs +479 -0
  133. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +95 -0
  134. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +50 -0
  135. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.mjs +32 -0
  136. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.mjs +177 -0
  137. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +155 -0
  138. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +98 -0
  139. package/dist/src/node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/syntax.mjs +352 -0
  140. package/dist/src/node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/to-matters.mjs +109 -0
  141. package/dist/src/node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.mjs +186 -0
  142. package/dist/src/node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.mjs +134 -0
  143. package/dist/src/node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.mjs +61 -0
  144. package/dist/src/node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.mjs +148 -0
  145. package/dist/src/node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.mjs +43 -0
  146. package/dist/src/node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs +229 -0
  147. package/dist/src/node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.mjs +71 -0
  148. package/dist/src/node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.mjs +25 -0
  149. package/dist/src/node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.mjs +73 -0
  150. package/dist/src/node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.mjs +22 -0
  151. package/dist/src/node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.mjs +40 -0
  152. package/dist/src/node_modules/.pnpm/micromark-util-html-tag-name@2.0.1/node_modules/micromark-util-html-tag-name/index.mjs +100 -0
  153. package/dist/src/node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.mjs +25 -0
  154. package/dist/src/node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.mjs +31 -0
  155. package/dist/src/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.mjs +158 -0
  156. package/dist/src/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +231 -0
  157. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.mjs +101 -0
  158. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.mjs +473 -0
  159. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.mjs +70 -0
  160. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.mjs +220 -0
  161. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.mjs +51 -0
  162. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/text.mjs +178 -0
  163. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.mjs +52 -0
  164. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.mjs +17 -0
  165. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/preprocess.mjs +102 -0
  166. package/dist/src/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.mjs +121 -0
  167. package/dist/src/node_modules/.pnpm/remark-frontmatter@5.0.0/node_modules/remark-frontmatter/lib/index.mjs +35 -0
  168. package/dist/src/node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.mjs +37 -0
  169. package/dist/src/node_modules/.pnpm/remark-stringify@11.0.0/node_modules/remark-stringify/lib/index.mjs +36 -0
  170. package/dist/src/node_modules/.pnpm/simple-git@3.35.2/node_modules/simple-git/dist/esm/index.mjs +3563 -0
  171. package/dist/src/node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.mjs +57 -0
  172. package/dist/src/node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.mjs +72 -0
  173. package/dist/src/node_modules/.pnpm/trough@2.2.0/node_modules/trough/lib/index.mjs +157 -0
  174. package/dist/src/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.mjs +13 -0
  175. package/dist/src/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.mjs +1088 -0
  176. package/dist/src/node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.mjs +110 -0
  177. package/dist/src/node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.mjs +65 -0
  178. package/dist/src/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.node.mjs +10 -0
  179. package/dist/src/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.mjs +328 -0
  180. package/dist/src/node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.mjs +287 -0
  181. package/dist/src/node_modules/.pnpm/universal-user-agent@7.0.3/node_modules/universal-user-agent/index.mjs +8 -0
  182. package/dist/src/node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/lib/index.mjs +247 -0
  183. package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/index.mjs +525 -0
  184. package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minpath.mjs +2 -0
  185. package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minproc.mjs +2 -0
  186. package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.mjs +3 -0
  187. package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.shared.mjs +24 -0
  188. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.mjs +62 -0
  189. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.mjs +49 -0
  190. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.mjs +98 -0
  191. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.mjs +66 -0
  192. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/composer.mjs +207 -0
  193. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.mjs +93 -0
  194. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.mjs +179 -0
  195. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.mjs +48 -0
  196. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.mjs +41 -0
  197. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.mjs +166 -0
  198. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.mjs +211 -0
  199. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.mjs +110 -0
  200. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.mjs +32 -0
  201. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.mjs +30 -0
  202. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.mjs +16 -0
  203. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.mjs +16 -0
  204. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/Document.mjs +295 -0
  205. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.mjs +67 -0
  206. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.mjs +43 -0
  207. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.mjs +69 -0
  208. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/directives.mjs +170 -0
  209. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/errors.mjs +56 -0
  210. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/index.mjs +67 -0
  211. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/log.mjs +17 -0
  212. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.mjs +101 -0
  213. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.mjs +127 -0
  214. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.mjs +40 -0
  215. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.mjs +40 -0
  216. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.mjs +33 -0
  217. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.mjs +118 -0
  218. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.mjs +115 -0
  219. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.mjs +59 -0
  220. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.mjs +53 -0
  221. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.mjs +41 -0
  222. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.mjs +274 -0
  223. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.mjs +54 -0
  224. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.mjs +94 -0
  225. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst.mjs +85 -0
  226. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.mjs +523 -0
  227. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.mjs +50 -0
  228. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/parser.mjs +861 -0
  229. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/public-api.mjs +97 -0
  230. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.mjs +36 -0
  231. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.mjs +22 -0
  232. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.mjs +19 -0
  233. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.mjs +22 -0
  234. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.mjs +19 -0
  235. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.mjs +23 -0
  236. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.mjs +46 -0
  237. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.mjs +45 -0
  238. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.mjs +34 -0
  239. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.mjs +68 -0
  240. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/tags.mjs +103 -0
  241. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.mjs +53 -0
  242. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.mjs +31 -0
  243. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.mjs +49 -0
  244. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.mjs +79 -0
  245. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.mjs +45 -0
  246. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.mjs +71 -0
  247. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.mjs +67 -0
  248. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.mjs +56 -0
  249. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.mjs +74 -0
  250. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.mjs +87 -0
  251. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.mjs +119 -0
  252. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.mjs +115 -0
  253. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.mjs +124 -0
  254. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.mjs +23 -0
  255. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.mjs +67 -0
  256. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.mjs +24 -0
  257. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.mjs +104 -0
  258. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.mjs +229 -0
  259. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/visit.mjs +194 -0
  260. package/dist/src/node_modules/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.mjs +106 -0
  261. package/dist/src/pkg.d.mts +24 -0
  262. package/dist/src/pkg.mjs +39 -0
  263. package/dist/src/prepare.d.mts +14 -0
  264. package/dist/src/prepare.mjs +41 -0
  265. package/dist/src/publishers/npm.d.mts +21 -0
  266. package/dist/src/publishers/npm.mjs +42 -0
  267. package/dist/src/releasers/github.d.mts +10 -0
  268. package/dist/src/releasers/github.mjs +20 -0
  269. package/dist/src/saver.d.mts +42 -0
  270. package/dist/src/saver.mjs +39 -0
  271. package/dist/src/types.d.mts +150 -0
  272. package/dist/src/utils.d.mts +7 -0
  273. package/dist/src/utils.mjs +47 -0
  274. package/dist/src/version.d.mts +9 -0
  275. package/dist/src/version.mjs +18 -0
  276. package/package.json +156 -0
  277. package/templates/cngpac.config.ts +33 -0
  278. package/templates/version.yml +30 -0
@@ -0,0 +1,352 @@
1
+ import { markdownLineEnding, markdownSpace } from "../../../../micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs";
2
+ import { toMatters } from "./to-matters.mjs";
3
+ //#region node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/syntax.js
4
+ /**
5
+ * @typedef {import('micromark-util-types').Construct} Construct
6
+ * @typedef {import('micromark-util-types').ConstructRecord} ConstructRecord
7
+ * @typedef {import('micromark-util-types').Extension} Extension
8
+ * @typedef {import('micromark-util-types').State} State
9
+ * @typedef {import('micromark-util-types').TokenType} TokenType
10
+ * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext
11
+ * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
12
+ *
13
+ * @typedef {import('./to-matters.js').Info} Info
14
+ * @typedef {import('./to-matters.js').Matter} Matter
15
+ * @typedef {import('./to-matters.js').Options} Options
16
+ */
17
+ /**
18
+ * Create an extension for `micromark` to enable frontmatter syntax.
19
+ *
20
+ * @param {Options | null | undefined} [options='yaml']
21
+ * Configuration (default: `'yaml'`).
22
+ * @returns {Extension}
23
+ * Extension for `micromark` that can be passed in `extensions`, to
24
+ * enable frontmatter syntax.
25
+ */
26
+ function frontmatter(options) {
27
+ const matters = toMatters(options);
28
+ /** @type {ConstructRecord} */
29
+ const flow = {};
30
+ let index = -1;
31
+ while (++index < matters.length) {
32
+ const matter = matters[index];
33
+ const code = fence(matter, "open").charCodeAt(0);
34
+ const construct = createConstruct(matter);
35
+ const existing = flow[code];
36
+ if (Array.isArray(existing)) existing.push(construct);
37
+ else flow[code] = [construct];
38
+ }
39
+ return { flow };
40
+ }
41
+ /**
42
+ * @param {Matter} matter
43
+ * @returns {Construct}
44
+ */
45
+ function createConstruct(matter) {
46
+ const anywhere = matter.anywhere;
47
+ const frontmatterType = matter.type;
48
+ const fenceType = frontmatterType + "Fence";
49
+ const sequenceType = fenceType + "Sequence";
50
+ const valueType = frontmatterType + "Value";
51
+ const closingFenceConstruct = {
52
+ tokenize: tokenizeClosingFence,
53
+ partial: true
54
+ };
55
+ /**
56
+ * Fence to look for.
57
+ *
58
+ * @type {string}
59
+ */
60
+ let buffer;
61
+ let bufferIndex = 0;
62
+ return {
63
+ tokenize: tokenizeFrontmatter,
64
+ concrete: true
65
+ };
66
+ /**
67
+ * @this {TokenizeContext}
68
+ * @type {Tokenizer}
69
+ */
70
+ function tokenizeFrontmatter(effects, ok, nok) {
71
+ const self = this;
72
+ return start;
73
+ /**
74
+ * Start of frontmatter.
75
+ *
76
+ * ```markdown
77
+ * > | ---
78
+ * ^
79
+ * | title: "Venus"
80
+ * | ---
81
+ * ```
82
+ *
83
+ * @type {State}
84
+ */
85
+ function start(code) {
86
+ const position = self.now();
87
+ if (position.column === 1 && (position.line === 1 || anywhere)) {
88
+ buffer = fence(matter, "open");
89
+ bufferIndex = 0;
90
+ if (code === buffer.charCodeAt(bufferIndex)) {
91
+ effects.enter(frontmatterType);
92
+ effects.enter(fenceType);
93
+ effects.enter(sequenceType);
94
+ return openSequence(code);
95
+ }
96
+ }
97
+ return nok(code);
98
+ }
99
+ /**
100
+ * In open sequence.
101
+ *
102
+ * ```markdown
103
+ * > | ---
104
+ * ^
105
+ * | title: "Venus"
106
+ * | ---
107
+ * ```
108
+ *
109
+ * @type {State}
110
+ */
111
+ function openSequence(code) {
112
+ if (bufferIndex === buffer.length) {
113
+ effects.exit(sequenceType);
114
+ if (markdownSpace(code)) {
115
+ effects.enter("whitespace");
116
+ return openSequenceWhitespace(code);
117
+ }
118
+ return openAfter(code);
119
+ }
120
+ if (code === buffer.charCodeAt(bufferIndex++)) {
121
+ effects.consume(code);
122
+ return openSequence;
123
+ }
124
+ return nok(code);
125
+ }
126
+ /**
127
+ * In whitespace after open sequence.
128
+ *
129
+ * ```markdown
130
+ * > | ---␠
131
+ * ^
132
+ * | title: "Venus"
133
+ * | ---
134
+ * ```
135
+ *
136
+ * @type {State}
137
+ */
138
+ function openSequenceWhitespace(code) {
139
+ if (markdownSpace(code)) {
140
+ effects.consume(code);
141
+ return openSequenceWhitespace;
142
+ }
143
+ effects.exit("whitespace");
144
+ return openAfter(code);
145
+ }
146
+ /**
147
+ * After open sequence.
148
+ *
149
+ * ```markdown
150
+ * > | ---
151
+ * ^
152
+ * | title: "Venus"
153
+ * | ---
154
+ * ```
155
+ *
156
+ * @type {State}
157
+ */
158
+ function openAfter(code) {
159
+ if (markdownLineEnding(code)) {
160
+ effects.exit(fenceType);
161
+ effects.enter("lineEnding");
162
+ effects.consume(code);
163
+ effects.exit("lineEnding");
164
+ buffer = fence(matter, "close");
165
+ bufferIndex = 0;
166
+ return effects.attempt(closingFenceConstruct, after, contentStart);
167
+ }
168
+ return nok(code);
169
+ }
170
+ /**
171
+ * Start of content chunk.
172
+ *
173
+ * ```markdown
174
+ * | ---
175
+ * > | title: "Venus"
176
+ * ^
177
+ * | ---
178
+ * ```
179
+ *
180
+ * @type {State}
181
+ */
182
+ function contentStart(code) {
183
+ if (code === null || markdownLineEnding(code)) return contentEnd(code);
184
+ effects.enter(valueType);
185
+ return contentInside(code);
186
+ }
187
+ /**
188
+ * In content chunk.
189
+ *
190
+ * ```markdown
191
+ * | ---
192
+ * > | title: "Venus"
193
+ * ^
194
+ * | ---
195
+ * ```
196
+ *
197
+ * @type {State}
198
+ */
199
+ function contentInside(code) {
200
+ if (code === null || markdownLineEnding(code)) {
201
+ effects.exit(valueType);
202
+ return contentEnd(code);
203
+ }
204
+ effects.consume(code);
205
+ return contentInside;
206
+ }
207
+ /**
208
+ * End of content chunk.
209
+ *
210
+ * ```markdown
211
+ * | ---
212
+ * > | title: "Venus"
213
+ * ^
214
+ * | ---
215
+ * ```
216
+ *
217
+ * @type {State}
218
+ */
219
+ function contentEnd(code) {
220
+ if (code === null) return nok(code);
221
+ effects.enter("lineEnding");
222
+ effects.consume(code);
223
+ effects.exit("lineEnding");
224
+ return effects.attempt(closingFenceConstruct, after, contentStart);
225
+ }
226
+ /**
227
+ * After frontmatter.
228
+ *
229
+ * ```markdown
230
+ * | ---
231
+ * | title: "Venus"
232
+ * > | ---
233
+ * ^
234
+ * ```
235
+ *
236
+ * @type {State}
237
+ */
238
+ function after(code) {
239
+ effects.exit(frontmatterType);
240
+ return ok(code);
241
+ }
242
+ }
243
+ /** @type {Tokenizer} */
244
+ function tokenizeClosingFence(effects, ok, nok) {
245
+ let bufferIndex = 0;
246
+ return closeStart;
247
+ /**
248
+ * Start of close sequence.
249
+ *
250
+ * ```markdown
251
+ * | ---
252
+ * | title: "Venus"
253
+ * > | ---
254
+ * ^
255
+ * ```
256
+ *
257
+ * @type {State}
258
+ */
259
+ function closeStart(code) {
260
+ if (code === buffer.charCodeAt(bufferIndex)) {
261
+ effects.enter(fenceType);
262
+ effects.enter(sequenceType);
263
+ return closeSequence(code);
264
+ }
265
+ return nok(code);
266
+ }
267
+ /**
268
+ * In close sequence.
269
+ *
270
+ * ```markdown
271
+ * | ---
272
+ * | title: "Venus"
273
+ * > | ---
274
+ * ^
275
+ * ```
276
+ *
277
+ * @type {State}
278
+ */
279
+ function closeSequence(code) {
280
+ if (bufferIndex === buffer.length) {
281
+ effects.exit(sequenceType);
282
+ if (markdownSpace(code)) {
283
+ effects.enter("whitespace");
284
+ return closeSequenceWhitespace(code);
285
+ }
286
+ return closeAfter(code);
287
+ }
288
+ if (code === buffer.charCodeAt(bufferIndex++)) {
289
+ effects.consume(code);
290
+ return closeSequence;
291
+ }
292
+ return nok(code);
293
+ }
294
+ /**
295
+ * In whitespace after close sequence.
296
+ *
297
+ * ```markdown
298
+ * > | ---
299
+ * | title: "Venus"
300
+ * | ---␠
301
+ * ^
302
+ * ```
303
+ *
304
+ * @type {State}
305
+ */
306
+ function closeSequenceWhitespace(code) {
307
+ if (markdownSpace(code)) {
308
+ effects.consume(code);
309
+ return closeSequenceWhitespace;
310
+ }
311
+ effects.exit("whitespace");
312
+ return closeAfter(code);
313
+ }
314
+ /**
315
+ * After close sequence.
316
+ *
317
+ * ```markdown
318
+ * | ---
319
+ * | title: "Venus"
320
+ * > | ---
321
+ * ^
322
+ * ```
323
+ *
324
+ * @type {State}
325
+ */
326
+ function closeAfter(code) {
327
+ if (code === null || markdownLineEnding(code)) {
328
+ effects.exit(fenceType);
329
+ return ok(code);
330
+ }
331
+ return nok(code);
332
+ }
333
+ }
334
+ }
335
+ /**
336
+ * @param {Matter} matter
337
+ * @param {'close' | 'open'} prop
338
+ * @returns {string}
339
+ */
340
+ function fence(matter, prop) {
341
+ return matter.marker ? pick(matter.marker, prop).repeat(3) : pick(matter.fence, prop);
342
+ }
343
+ /**
344
+ * @param {Info | string} schema
345
+ * @param {'close' | 'open'} prop
346
+ * @returns {string}
347
+ */
348
+ function pick(schema, prop) {
349
+ return typeof schema === "string" ? schema : schema[prop];
350
+ }
351
+ //#endregion
352
+ export { frontmatter };
@@ -0,0 +1,109 @@
1
+ import { fault } from "../../../../fault@2.0.1/node_modules/fault/index.mjs";
2
+ //#region node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/to-matters.js
3
+ /**
4
+ * @typedef {'toml' | 'yaml'} Preset
5
+ * Known name of a frontmatter style.
6
+ *
7
+ * @typedef Info
8
+ * Sequence.
9
+ *
10
+ * Depending on how this structure is used, it reflects a marker or a fence.
11
+ * @property {string} close
12
+ * Closing.
13
+ * @property {string} open
14
+ * Opening.
15
+ *
16
+ * @typedef MatterProps
17
+ * Fields describing a kind of matter.
18
+ * @property {string} type
19
+ * Node type to tokenize as.
20
+ * @property {boolean | null | undefined} [anywhere=false]
21
+ * Whether matter can be found anywhere in the document, normally, only matter
22
+ * at the start of the document is recognized.
23
+ *
24
+ * > 👉 **Note**: using this is a terrible idea.
25
+ * > It’s called frontmatter, not matter-in-the-middle or so.
26
+ * > This makes your markdown less portable.
27
+ *
28
+ * @typedef MarkerProps
29
+ * Marker configuration.
30
+ * @property {Info | string} marker
31
+ * Character repeated 3 times, used as complete fences.
32
+ *
33
+ * For example the character `'-'` will result in `'---'` being used as the
34
+ * fence
35
+ * Pass `open` and `close` to specify different characters for opening and
36
+ * closing fences.
37
+ * @property {never} [fence]
38
+ * If `marker` is set, `fence` must not be set.
39
+ *
40
+ * @typedef FenceProps
41
+ * Fence configuration.
42
+ * @property {Info | string} fence
43
+ * Complete fences.
44
+ *
45
+ * This can be used when fences contain different characters or lengths
46
+ * other than 3.
47
+ * Pass `open` and `close` to interface to specify different characters for opening and
48
+ * closing fences.
49
+ * @property {never} [marker]
50
+ * If `fence` is set, `marker` must not be set.
51
+ *
52
+ * @typedef {(MatterProps & FenceProps) | (MatterProps & MarkerProps)} Matter
53
+ * Fields describing a kind of matter.
54
+ *
55
+ * > 👉 **Note**: using `anywhere` is a terrible idea.
56
+ * > It’s called frontmatter, not matter-in-the-middle or so.
57
+ * > This makes your markdown less portable.
58
+ *
59
+ * > 👉 **Note**: `marker` and `fence` are mutually exclusive.
60
+ * > If `marker` is set, `fence` must not be set, and vice versa.
61
+ *
62
+ * @typedef {Matter | Preset | Array<Matter | Preset>} Options
63
+ * Configuration.
64
+ */
65
+ const own = {}.hasOwnProperty;
66
+ const markers = {
67
+ yaml: "-",
68
+ toml: "+"
69
+ };
70
+ /**
71
+ * Simplify options by normalizing them to an array of matters.
72
+ *
73
+ * @param {Options | null | undefined} [options='yaml']
74
+ * Configuration (default: `'yaml'`).
75
+ * @returns {Array<Matter>}
76
+ * List of matters.
77
+ */
78
+ function toMatters(options) {
79
+ /** @type {Array<Matter>} */
80
+ const result = [];
81
+ let index = -1;
82
+ /** @type {Array<Matter | Preset>} */
83
+ const presetsOrMatters = Array.isArray(options) ? options : options ? [options] : ["yaml"];
84
+ while (++index < presetsOrMatters.length) result[index] = matter(presetsOrMatters[index]);
85
+ return result;
86
+ }
87
+ /**
88
+ * Simplify an option.
89
+ *
90
+ * @param {Matter | Preset} option
91
+ * Configuration.
92
+ * @returns {Matter}
93
+ * Matter.
94
+ */
95
+ function matter(option) {
96
+ let result = option;
97
+ if (typeof result === "string") {
98
+ if (!own.call(markers, result)) throw fault("Missing matter definition for `%s`", result);
99
+ result = {
100
+ type: result,
101
+ marker: markers[result]
102
+ };
103
+ } else if (typeof result !== "object") throw fault("Expected matter to be an object, not `%j`", result);
104
+ if (!own.call(result, "type")) throw fault("Missing `type` in matter `%j`", result);
105
+ if (!own.call(result, "fence") && !own.call(result, "marker")) throw fault("Missing `marker` or `fence` in matter `%j`", result);
106
+ return result;
107
+ }
108
+ //#endregion
109
+ export { toMatters };
@@ -0,0 +1,186 @@
1
+ import { asciiControl, markdownLineEnding, markdownLineEndingOrSpace } from "../../../micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs";
2
+ //#region node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.js
3
+ /**
4
+ * @import {Effects, State, TokenType} from 'micromark-util-types'
5
+ */
6
+ /**
7
+ * Parse destinations.
8
+ *
9
+ * ###### Examples
10
+ *
11
+ * ```markdown
12
+ * <a>
13
+ * <a\>b>
14
+ * <a b>
15
+ * <a)>
16
+ * a
17
+ * a\)b
18
+ * a(b)c
19
+ * a(b)
20
+ * ```
21
+ *
22
+ * @param {Effects} effects
23
+ * Context.
24
+ * @param {State} ok
25
+ * State switched to when successful.
26
+ * @param {State} nok
27
+ * State switched to when unsuccessful.
28
+ * @param {TokenType} type
29
+ * Type for whole (`<a>` or `b`).
30
+ * @param {TokenType} literalType
31
+ * Type when enclosed (`<a>`).
32
+ * @param {TokenType} literalMarkerType
33
+ * Type for enclosing (`<` and `>`).
34
+ * @param {TokenType} rawType
35
+ * Type when not enclosed (`b`).
36
+ * @param {TokenType} stringType
37
+ * Type for the value (`a` or `b`).
38
+ * @param {number | undefined} [max=Infinity]
39
+ * Depth of nested parens (inclusive).
40
+ * @returns {State}
41
+ * Start state.
42
+ */
43
+ function factoryDestination(effects, ok, nok, type, literalType, literalMarkerType, rawType, stringType, max) {
44
+ const limit = max || Number.POSITIVE_INFINITY;
45
+ let balance = 0;
46
+ return start;
47
+ /**
48
+ * Start of destination.
49
+ *
50
+ * ```markdown
51
+ * > | <aa>
52
+ * ^
53
+ * > | aa
54
+ * ^
55
+ * ```
56
+ *
57
+ * @type {State}
58
+ */
59
+ function start(code) {
60
+ if (code === 60) {
61
+ effects.enter(type);
62
+ effects.enter(literalType);
63
+ effects.enter(literalMarkerType);
64
+ effects.consume(code);
65
+ effects.exit(literalMarkerType);
66
+ return enclosedBefore;
67
+ }
68
+ if (code === null || code === 32 || code === 41 || asciiControl(code)) return nok(code);
69
+ effects.enter(type);
70
+ effects.enter(rawType);
71
+ effects.enter(stringType);
72
+ effects.enter("chunkString", { contentType: "string" });
73
+ return raw(code);
74
+ }
75
+ /**
76
+ * After `<`, at an enclosed destination.
77
+ *
78
+ * ```markdown
79
+ * > | <aa>
80
+ * ^
81
+ * ```
82
+ *
83
+ * @type {State}
84
+ */
85
+ function enclosedBefore(code) {
86
+ if (code === 62) {
87
+ effects.enter(literalMarkerType);
88
+ effects.consume(code);
89
+ effects.exit(literalMarkerType);
90
+ effects.exit(literalType);
91
+ effects.exit(type);
92
+ return ok;
93
+ }
94
+ effects.enter(stringType);
95
+ effects.enter("chunkString", { contentType: "string" });
96
+ return enclosed(code);
97
+ }
98
+ /**
99
+ * In enclosed destination.
100
+ *
101
+ * ```markdown
102
+ * > | <aa>
103
+ * ^
104
+ * ```
105
+ *
106
+ * @type {State}
107
+ */
108
+ function enclosed(code) {
109
+ if (code === 62) {
110
+ effects.exit("chunkString");
111
+ effects.exit(stringType);
112
+ return enclosedBefore(code);
113
+ }
114
+ if (code === null || code === 60 || markdownLineEnding(code)) return nok(code);
115
+ effects.consume(code);
116
+ return code === 92 ? enclosedEscape : enclosed;
117
+ }
118
+ /**
119
+ * After `\`, at a special character.
120
+ *
121
+ * ```markdown
122
+ * > | <a\*a>
123
+ * ^
124
+ * ```
125
+ *
126
+ * @type {State}
127
+ */
128
+ function enclosedEscape(code) {
129
+ if (code === 60 || code === 62 || code === 92) {
130
+ effects.consume(code);
131
+ return enclosed;
132
+ }
133
+ return enclosed(code);
134
+ }
135
+ /**
136
+ * In raw destination.
137
+ *
138
+ * ```markdown
139
+ * > | aa
140
+ * ^
141
+ * ```
142
+ *
143
+ * @type {State}
144
+ */
145
+ function raw(code) {
146
+ if (!balance && (code === null || code === 41 || markdownLineEndingOrSpace(code))) {
147
+ effects.exit("chunkString");
148
+ effects.exit(stringType);
149
+ effects.exit(rawType);
150
+ effects.exit(type);
151
+ return ok(code);
152
+ }
153
+ if (balance < limit && code === 40) {
154
+ effects.consume(code);
155
+ balance++;
156
+ return raw;
157
+ }
158
+ if (code === 41) {
159
+ effects.consume(code);
160
+ balance--;
161
+ return raw;
162
+ }
163
+ if (code === null || code === 32 || code === 40 || asciiControl(code)) return nok(code);
164
+ effects.consume(code);
165
+ return code === 92 ? rawEscape : raw;
166
+ }
167
+ /**
168
+ * After `\`, at special character.
169
+ *
170
+ * ```markdown
171
+ * > | a\*a
172
+ * ^
173
+ * ```
174
+ *
175
+ * @type {State}
176
+ */
177
+ function rawEscape(code) {
178
+ if (code === 40 || code === 41 || code === 92) {
179
+ effects.consume(code);
180
+ return raw;
181
+ }
182
+ return raw(code);
183
+ }
184
+ }
185
+ //#endregion
186
+ export { factoryDestination };