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,134 @@
1
+ import { markdownLineEnding, markdownSpace } from "../../../micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs";
2
+ //#region node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.js
3
+ /**
4
+ * @import {
5
+ * Effects,
6
+ * State,
7
+ * TokenizeContext,
8
+ * TokenType
9
+ * } from 'micromark-util-types'
10
+ */
11
+ /**
12
+ * Parse labels.
13
+ *
14
+ * > 👉 **Note**: labels in markdown are capped at 999 characters in the string.
15
+ *
16
+ * ###### Examples
17
+ *
18
+ * ```markdown
19
+ * [a]
20
+ * [a
21
+ * b]
22
+ * [a\]b]
23
+ * ```
24
+ *
25
+ * @this {TokenizeContext}
26
+ * Tokenize context.
27
+ * @param {Effects} effects
28
+ * Context.
29
+ * @param {State} ok
30
+ * State switched to when successful.
31
+ * @param {State} nok
32
+ * State switched to when unsuccessful.
33
+ * @param {TokenType} type
34
+ * Type of the whole label (`[a]`).
35
+ * @param {TokenType} markerType
36
+ * Type for the markers (`[` and `]`).
37
+ * @param {TokenType} stringType
38
+ * Type for the identifier (`a`).
39
+ * @returns {State}
40
+ * Start state.
41
+ */
42
+ function factoryLabel(effects, ok, nok, type, markerType, stringType) {
43
+ const self = this;
44
+ let size = 0;
45
+ /** @type {boolean} */
46
+ let seen;
47
+ return start;
48
+ /**
49
+ * Start of label.
50
+ *
51
+ * ```markdown
52
+ * > | [a]
53
+ * ^
54
+ * ```
55
+ *
56
+ * @type {State}
57
+ */
58
+ function start(code) {
59
+ effects.enter(type);
60
+ effects.enter(markerType);
61
+ effects.consume(code);
62
+ effects.exit(markerType);
63
+ effects.enter(stringType);
64
+ return atBreak;
65
+ }
66
+ /**
67
+ * In label, at something, before something else.
68
+ *
69
+ * ```markdown
70
+ * > | [a]
71
+ * ^
72
+ * ```
73
+ *
74
+ * @type {State}
75
+ */
76
+ function atBreak(code) {
77
+ if (size > 999 || code === null || code === 91 || code === 93 && !seen || code === 94 && !size && "_hiddenFootnoteSupport" in self.parser.constructs) return nok(code);
78
+ if (code === 93) {
79
+ effects.exit(stringType);
80
+ effects.enter(markerType);
81
+ effects.consume(code);
82
+ effects.exit(markerType);
83
+ effects.exit(type);
84
+ return ok;
85
+ }
86
+ if (markdownLineEnding(code)) {
87
+ effects.enter("lineEnding");
88
+ effects.consume(code);
89
+ effects.exit("lineEnding");
90
+ return atBreak;
91
+ }
92
+ effects.enter("chunkString", { contentType: "string" });
93
+ return labelInside(code);
94
+ }
95
+ /**
96
+ * In label, in text.
97
+ *
98
+ * ```markdown
99
+ * > | [a]
100
+ * ^
101
+ * ```
102
+ *
103
+ * @type {State}
104
+ */
105
+ function labelInside(code) {
106
+ if (code === null || code === 91 || code === 93 || markdownLineEnding(code) || size++ > 999) {
107
+ effects.exit("chunkString");
108
+ return atBreak(code);
109
+ }
110
+ effects.consume(code);
111
+ if (!seen) seen = !markdownSpace(code);
112
+ return code === 92 ? labelEscape : labelInside;
113
+ }
114
+ /**
115
+ * After `\`, at a special character.
116
+ *
117
+ * ```markdown
118
+ * > | [a\*a]
119
+ * ^
120
+ * ```
121
+ *
122
+ * @type {State}
123
+ */
124
+ function labelEscape(code) {
125
+ if (code === 91 || code === 92 || code === 93) {
126
+ effects.consume(code);
127
+ size++;
128
+ return labelInside;
129
+ }
130
+ return labelInside(code);
131
+ }
132
+ }
133
+ //#endregion
134
+ export { factoryLabel };
@@ -0,0 +1,61 @@
1
+ import { markdownSpace } from "../../../micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs";
2
+ //#region node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js
3
+ /**
4
+ * @import {Effects, State, TokenType} from 'micromark-util-types'
5
+ */
6
+ /**
7
+ * Parse spaces and tabs.
8
+ *
9
+ * There is no `nok` parameter:
10
+ *
11
+ * * spaces in markdown are often optional, in which case this factory can be
12
+ * used and `ok` will be switched to whether spaces were found or not
13
+ * * one line ending or space can be detected with `markdownSpace(code)` right
14
+ * before using `factorySpace`
15
+ *
16
+ * ###### Examples
17
+ *
18
+ * Where `␉` represents a tab (plus how much it expands) and `␠` represents a
19
+ * single space.
20
+ *
21
+ * ```markdown
22
+ * ␉
23
+ * ␠␠␠␠
24
+ * ␉␠
25
+ * ```
26
+ *
27
+ * @param {Effects} effects
28
+ * Context.
29
+ * @param {State} ok
30
+ * State switched to when successful.
31
+ * @param {TokenType} type
32
+ * Type (`' \t'`).
33
+ * @param {number | undefined} [max=Infinity]
34
+ * Max (exclusive).
35
+ * @returns {State}
36
+ * Start state.
37
+ */
38
+ function factorySpace(effects, ok, type, max) {
39
+ const limit = max ? max - 1 : Number.POSITIVE_INFINITY;
40
+ let size = 0;
41
+ return start;
42
+ /** @type {State} */
43
+ function start(code) {
44
+ if (markdownSpace(code)) {
45
+ effects.enter(type);
46
+ return prefix(code);
47
+ }
48
+ return ok(code);
49
+ }
50
+ /** @type {State} */
51
+ function prefix(code) {
52
+ if (markdownSpace(code) && size++ < limit) {
53
+ effects.consume(code);
54
+ return prefix;
55
+ }
56
+ effects.exit(type);
57
+ return ok(code);
58
+ }
59
+ }
60
+ //#endregion
61
+ export { factorySpace };
@@ -0,0 +1,148 @@
1
+ import { markdownLineEnding } from "../../../micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs";
2
+ import { factorySpace } from "../../../micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.mjs";
3
+ //#region node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.js
4
+ /**
5
+ * @import {
6
+ * Code,
7
+ * Effects,
8
+ * State,
9
+ * TokenType
10
+ * } from 'micromark-util-types'
11
+ */
12
+ /**
13
+ * Parse titles.
14
+ *
15
+ * ###### Examples
16
+ *
17
+ * ```markdown
18
+ * "a"
19
+ * 'b'
20
+ * (c)
21
+ * "a
22
+ * b"
23
+ * 'a
24
+ * b'
25
+ * (a\)b)
26
+ * ```
27
+ *
28
+ * @param {Effects} effects
29
+ * Context.
30
+ * @param {State} ok
31
+ * State switched to when successful.
32
+ * @param {State} nok
33
+ * State switched to when unsuccessful.
34
+ * @param {TokenType} type
35
+ * Type of the whole title (`"a"`, `'b'`, `(c)`).
36
+ * @param {TokenType} markerType
37
+ * Type for the markers (`"`, `'`, `(`, and `)`).
38
+ * @param {TokenType} stringType
39
+ * Type for the value (`a`).
40
+ * @returns {State}
41
+ * Start state.
42
+ */
43
+ function factoryTitle(effects, ok, nok, type, markerType, stringType) {
44
+ /** @type {NonNullable<Code>} */
45
+ let marker;
46
+ return start;
47
+ /**
48
+ * Start of title.
49
+ *
50
+ * ```markdown
51
+ * > | "a"
52
+ * ^
53
+ * ```
54
+ *
55
+ * @type {State}
56
+ */
57
+ function start(code) {
58
+ if (code === 34 || code === 39 || code === 40) {
59
+ effects.enter(type);
60
+ effects.enter(markerType);
61
+ effects.consume(code);
62
+ effects.exit(markerType);
63
+ marker = code === 40 ? 41 : code;
64
+ return begin;
65
+ }
66
+ return nok(code);
67
+ }
68
+ /**
69
+ * After opening marker.
70
+ *
71
+ * This is also used at the closing marker.
72
+ *
73
+ * ```markdown
74
+ * > | "a"
75
+ * ^
76
+ * ```
77
+ *
78
+ * @type {State}
79
+ */
80
+ function begin(code) {
81
+ if (code === marker) {
82
+ effects.enter(markerType);
83
+ effects.consume(code);
84
+ effects.exit(markerType);
85
+ effects.exit(type);
86
+ return ok;
87
+ }
88
+ effects.enter(stringType);
89
+ return atBreak(code);
90
+ }
91
+ /**
92
+ * At something, before something else.
93
+ *
94
+ * ```markdown
95
+ * > | "a"
96
+ * ^
97
+ * ```
98
+ *
99
+ * @type {State}
100
+ */
101
+ function atBreak(code) {
102
+ if (code === marker) {
103
+ effects.exit(stringType);
104
+ return begin(marker);
105
+ }
106
+ if (code === null) return nok(code);
107
+ if (markdownLineEnding(code)) {
108
+ effects.enter("lineEnding");
109
+ effects.consume(code);
110
+ effects.exit("lineEnding");
111
+ return factorySpace(effects, atBreak, "linePrefix");
112
+ }
113
+ effects.enter("chunkString", { contentType: "string" });
114
+ return inside(code);
115
+ }
116
+ /**
117
+ *
118
+ *
119
+ * @type {State}
120
+ */
121
+ function inside(code) {
122
+ if (code === marker || code === null || markdownLineEnding(code)) {
123
+ effects.exit("chunkString");
124
+ return atBreak(code);
125
+ }
126
+ effects.consume(code);
127
+ return code === 92 ? escape : inside;
128
+ }
129
+ /**
130
+ * After `\`, at a special character.
131
+ *
132
+ * ```markdown
133
+ * > | "a\*b"
134
+ * ^
135
+ * ```
136
+ *
137
+ * @type {State}
138
+ */
139
+ function escape(code) {
140
+ if (code === marker || code === 92) {
141
+ effects.consume(code);
142
+ return inside;
143
+ }
144
+ return inside(code);
145
+ }
146
+ }
147
+ //#endregion
148
+ export { factoryTitle };
@@ -0,0 +1,43 @@
1
+ import { markdownLineEnding, markdownSpace } from "../../../micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs";
2
+ import { factorySpace } from "../../../micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.mjs";
3
+ //#region node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.js
4
+ /**
5
+ * @import {Effects, State} from 'micromark-util-types'
6
+ */
7
+ /**
8
+ * Parse spaces and tabs.
9
+ *
10
+ * There is no `nok` parameter:
11
+ *
12
+ * * line endings or spaces in markdown are often optional, in which case this
13
+ * factory can be used and `ok` will be switched to whether spaces were found
14
+ * or not
15
+ * * one line ending or space can be detected with
16
+ * `markdownLineEndingOrSpace(code)` right before using `factoryWhitespace`
17
+ *
18
+ * @param {Effects} effects
19
+ * Context.
20
+ * @param {State} ok
21
+ * State switched to when successful.
22
+ * @returns {State}
23
+ * Start state.
24
+ */
25
+ function factoryWhitespace(effects, ok) {
26
+ /** @type {boolean} */
27
+ let seen;
28
+ return start;
29
+ /** @type {State} */
30
+ function start(code) {
31
+ if (markdownLineEnding(code)) {
32
+ effects.enter("lineEnding");
33
+ effects.consume(code);
34
+ effects.exit("lineEnding");
35
+ seen = true;
36
+ return start;
37
+ }
38
+ if (markdownSpace(code)) return factorySpace(effects, start, seen ? "linePrefix" : "lineSuffix")(code);
39
+ return ok(code);
40
+ }
41
+ }
42
+ //#endregion
43
+ export { factoryWhitespace };
@@ -0,0 +1,229 @@
1
+ //#region node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.js
2
+ /**
3
+ * @import {Code} from 'micromark-util-types'
4
+ */
5
+ /**
6
+ * Check whether the character code represents an ASCII alpha (`a` through `z`,
7
+ * case insensitive).
8
+ *
9
+ * An **ASCII alpha** is an ASCII upper alpha or ASCII lower alpha.
10
+ *
11
+ * An **ASCII upper alpha** is a character in the inclusive range U+0041 (`A`)
12
+ * to U+005A (`Z`).
13
+ *
14
+ * An **ASCII lower alpha** is a character in the inclusive range U+0061 (`a`)
15
+ * to U+007A (`z`).
16
+ *
17
+ * @param code
18
+ * Code.
19
+ * @returns {boolean}
20
+ * Whether it matches.
21
+ */
22
+ const asciiAlpha = regexCheck(/[A-Za-z]/);
23
+ /**
24
+ * Check whether the character code represents an ASCII alphanumeric (`a`
25
+ * through `z`, case insensitive, or `0` through `9`).
26
+ *
27
+ * An **ASCII alphanumeric** is an ASCII digit (see `asciiDigit`) or ASCII alpha
28
+ * (see `asciiAlpha`).
29
+ *
30
+ * @param code
31
+ * Code.
32
+ * @returns {boolean}
33
+ * Whether it matches.
34
+ */
35
+ const asciiAlphanumeric = regexCheck(/[\dA-Za-z]/);
36
+ /**
37
+ * Check whether the character code represents an ASCII atext.
38
+ *
39
+ * atext is an ASCII alphanumeric (see `asciiAlphanumeric`), or a character in
40
+ * the inclusive ranges U+0023 NUMBER SIGN (`#`) to U+0027 APOSTROPHE (`'`),
41
+ * U+002A ASTERISK (`*`), U+002B PLUS SIGN (`+`), U+002D DASH (`-`), U+002F
42
+ * SLASH (`/`), U+003D EQUALS TO (`=`), U+003F QUESTION MARK (`?`), U+005E
43
+ * CARET (`^`) to U+0060 GRAVE ACCENT (`` ` ``), or U+007B LEFT CURLY BRACE
44
+ * (`{`) to U+007E TILDE (`~`).
45
+ *
46
+ * See:
47
+ * **\[RFC5322]**:
48
+ * [Internet Message Format](https://tools.ietf.org/html/rfc5322).
49
+ * P. Resnick.
50
+ * IETF.
51
+ *
52
+ * @param code
53
+ * Code.
54
+ * @returns {boolean}
55
+ * Whether it matches.
56
+ */
57
+ const asciiAtext = regexCheck(/[#-'*+\--9=?A-Z^-~]/);
58
+ /**
59
+ * Check whether a character code is an ASCII control character.
60
+ *
61
+ * An **ASCII control** is a character in the inclusive range U+0000 NULL (NUL)
62
+ * to U+001F (US), or U+007F (DEL).
63
+ *
64
+ * @param {Code} code
65
+ * Code.
66
+ * @returns {boolean}
67
+ * Whether it matches.
68
+ */
69
+ function asciiControl(code) {
70
+ return code !== null && (code < 32 || code === 127);
71
+ }
72
+ /**
73
+ * Check whether the character code represents an ASCII digit (`0` through `9`).
74
+ *
75
+ * An **ASCII digit** is a character in the inclusive range U+0030 (`0`) to
76
+ * U+0039 (`9`).
77
+ *
78
+ * @param code
79
+ * Code.
80
+ * @returns {boolean}
81
+ * Whether it matches.
82
+ */
83
+ const asciiDigit = regexCheck(/\d/);
84
+ /**
85
+ * Check whether the character code represents an ASCII hex digit (`a` through
86
+ * `f`, case insensitive, or `0` through `9`).
87
+ *
88
+ * An **ASCII hex digit** is an ASCII digit (see `asciiDigit`), ASCII upper hex
89
+ * digit, or an ASCII lower hex digit.
90
+ *
91
+ * An **ASCII upper hex digit** is a character in the inclusive range U+0041
92
+ * (`A`) to U+0046 (`F`).
93
+ *
94
+ * An **ASCII lower hex digit** is a character in the inclusive range U+0061
95
+ * (`a`) to U+0066 (`f`).
96
+ *
97
+ * @param code
98
+ * Code.
99
+ * @returns {boolean}
100
+ * Whether it matches.
101
+ */
102
+ const asciiHexDigit = regexCheck(/[\dA-Fa-f]/);
103
+ /**
104
+ * Check whether the character code represents ASCII punctuation.
105
+ *
106
+ * An **ASCII punctuation** is a character in the inclusive ranges U+0021
107
+ * EXCLAMATION MARK (`!`) to U+002F SLASH (`/`), U+003A COLON (`:`) to U+0040 AT
108
+ * SIGN (`@`), U+005B LEFT SQUARE BRACKET (`[`) to U+0060 GRAVE ACCENT
109
+ * (`` ` ``), or U+007B LEFT CURLY BRACE (`{`) to U+007E TILDE (`~`).
110
+ *
111
+ * @param code
112
+ * Code.
113
+ * @returns {boolean}
114
+ * Whether it matches.
115
+ */
116
+ const asciiPunctuation = regexCheck(/[!-/:-@[-`{-~]/);
117
+ /**
118
+ * Check whether a character code is a markdown line ending.
119
+ *
120
+ * A **markdown line ending** is the virtual characters M-0003 CARRIAGE RETURN
121
+ * LINE FEED (CRLF), M-0004 LINE FEED (LF) and M-0005 CARRIAGE RETURN (CR).
122
+ *
123
+ * In micromark, the actual character U+000A LINE FEED (LF) and U+000D CARRIAGE
124
+ * RETURN (CR) are replaced by these virtual characters depending on whether
125
+ * they occurred together.
126
+ *
127
+ * @param {Code} code
128
+ * Code.
129
+ * @returns {boolean}
130
+ * Whether it matches.
131
+ */
132
+ function markdownLineEnding(code) {
133
+ return code !== null && code < -2;
134
+ }
135
+ /**
136
+ * Check whether a character code is a markdown line ending (see
137
+ * `markdownLineEnding`) or markdown space (see `markdownSpace`).
138
+ *
139
+ * @param {Code} code
140
+ * Code.
141
+ * @returns {boolean}
142
+ * Whether it matches.
143
+ */
144
+ function markdownLineEndingOrSpace(code) {
145
+ return code !== null && (code < 0 || code === 32);
146
+ }
147
+ /**
148
+ * Check whether a character code is a markdown space.
149
+ *
150
+ * A **markdown space** is the concrete character U+0020 SPACE (SP) and the
151
+ * virtual characters M-0001 VIRTUAL SPACE (VS) and M-0002 HORIZONTAL TAB (HT).
152
+ *
153
+ * In micromark, the actual character U+0009 CHARACTER TABULATION (HT) is
154
+ * replaced by one M-0002 HORIZONTAL TAB (HT) and between 0 and 3 M-0001 VIRTUAL
155
+ * SPACE (VS) characters, depending on the column at which the tab occurred.
156
+ *
157
+ * @param {Code} code
158
+ * Code.
159
+ * @returns {boolean}
160
+ * Whether it matches.
161
+ */
162
+ function markdownSpace(code) {
163
+ return code === -2 || code === -1 || code === 32;
164
+ }
165
+ /**
166
+ * Check whether the character code represents Unicode punctuation.
167
+ *
168
+ * A **Unicode punctuation** is a character in the Unicode `Pc` (Punctuation,
169
+ * Connector), `Pd` (Punctuation, Dash), `Pe` (Punctuation, Close), `Pf`
170
+ * (Punctuation, Final quote), `Pi` (Punctuation, Initial quote), `Po`
171
+ * (Punctuation, Other), or `Ps` (Punctuation, Open) categories, or an ASCII
172
+ * punctuation (see `asciiPunctuation`).
173
+ *
174
+ * See:
175
+ * **\[UNICODE]**:
176
+ * [The Unicode Standard](https://www.unicode.org/versions/).
177
+ * Unicode Consortium.
178
+ *
179
+ * @param code
180
+ * Code.
181
+ * @returns
182
+ * Whether it matches.
183
+ */
184
+ const unicodePunctuation = regexCheck(/\p{P}|\p{S}/u);
185
+ /**
186
+ * Check whether the character code represents Unicode whitespace.
187
+ *
188
+ * Note that this does handle micromark specific markdown whitespace characters.
189
+ * See `markdownLineEndingOrSpace` to check that.
190
+ *
191
+ * A **Unicode whitespace** is a character in the Unicode `Zs` (Separator,
192
+ * Space) category, or U+0009 CHARACTER TABULATION (HT), U+000A LINE FEED (LF),
193
+ * U+000C (FF), or U+000D CARRIAGE RETURN (CR) (**\[UNICODE]**).
194
+ *
195
+ * See:
196
+ * **\[UNICODE]**:
197
+ * [The Unicode Standard](https://www.unicode.org/versions/).
198
+ * Unicode Consortium.
199
+ *
200
+ * @param code
201
+ * Code.
202
+ * @returns
203
+ * Whether it matches.
204
+ */
205
+ const unicodeWhitespace = regexCheck(/\s/);
206
+ /**
207
+ * Create a code check from a regex.
208
+ *
209
+ * @param {RegExp} regex
210
+ * Expression.
211
+ * @returns {(code: Code) => boolean}
212
+ * Check.
213
+ */
214
+ function regexCheck(regex) {
215
+ return check;
216
+ /**
217
+ * Check whether a code matches the bound regex.
218
+ *
219
+ * @param {Code} code
220
+ * Character code.
221
+ * @returns {boolean}
222
+ * Whether the character code matches the bound regex.
223
+ */
224
+ function check(code) {
225
+ return code !== null && code > -1 && regex.test(String.fromCharCode(code));
226
+ }
227
+ }
228
+ //#endregion
229
+ export { asciiAlpha, asciiAlphanumeric, asciiAtext, asciiControl, asciiDigit, asciiHexDigit, asciiPunctuation, markdownLineEnding, markdownLineEndingOrSpace, markdownSpace, unicodePunctuation, unicodeWhitespace };
@@ -0,0 +1,71 @@
1
+ //#region node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.js
2
+ /**
3
+ * Like `Array#splice`, but smarter for giant arrays.
4
+ *
5
+ * `Array#splice` takes all items to be inserted as individual argument which
6
+ * causes a stack overflow in V8 when trying to insert 100k items for instance.
7
+ *
8
+ * Otherwise, this does not return the removed items, and takes `items` as an
9
+ * array instead of rest parameters.
10
+ *
11
+ * @template {unknown} T
12
+ * Item type.
13
+ * @param {Array<T>} list
14
+ * List to operate on.
15
+ * @param {number} start
16
+ * Index to remove/insert at (can be negative).
17
+ * @param {number} remove
18
+ * Number of items to remove.
19
+ * @param {Array<T>} items
20
+ * Items to inject into `list`.
21
+ * @returns {undefined}
22
+ * Nothing.
23
+ */
24
+ function splice(list, start, remove, items) {
25
+ const end = list.length;
26
+ let chunkStart = 0;
27
+ /** @type {Array<unknown>} */
28
+ let parameters;
29
+ if (start < 0) start = -start > end ? 0 : end + start;
30
+ else start = start > end ? end : start;
31
+ remove = remove > 0 ? remove : 0;
32
+ if (items.length < 1e4) {
33
+ parameters = Array.from(items);
34
+ parameters.unshift(start, remove);
35
+ list.splice(...parameters);
36
+ } else {
37
+ if (remove) list.splice(start, remove);
38
+ while (chunkStart < items.length) {
39
+ parameters = items.slice(chunkStart, chunkStart + 1e4);
40
+ parameters.unshift(start, 0);
41
+ list.splice(...parameters);
42
+ chunkStart += 1e4;
43
+ start += 1e4;
44
+ }
45
+ }
46
+ }
47
+ /**
48
+ * Append `items` (an array) at the end of `list` (another array).
49
+ * When `list` was empty, returns `items` instead.
50
+ *
51
+ * This prevents a potentially expensive operation when `list` is empty,
52
+ * and adds items in batches to prevent V8 from hanging.
53
+ *
54
+ * @template {unknown} T
55
+ * Item type.
56
+ * @param {Array<T>} list
57
+ * List to operate on.
58
+ * @param {Array<T>} items
59
+ * Items to add to `list`.
60
+ * @returns {Array<T>}
61
+ * Either `list` or `items`.
62
+ */
63
+ function push(list, items) {
64
+ if (list.length > 0) {
65
+ splice(list, list.length, 0, items);
66
+ return list;
67
+ }
68
+ return items;
69
+ }
70
+ //#endregion
71
+ export { push, splice };
@@ -0,0 +1,25 @@
1
+ import { markdownLineEndingOrSpace, unicodePunctuation, unicodeWhitespace } from "../../../micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs";
2
+ //#region node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js
3
+ /**
4
+ * @import {Code} from 'micromark-util-types'
5
+ */
6
+ /**
7
+ * Classify whether a code represents whitespace, punctuation, or something
8
+ * else.
9
+ *
10
+ * Used for attention (emphasis, strong), whose sequences can open or close
11
+ * based on the class of surrounding characters.
12
+ *
13
+ * > 👉 **Note**: eof (`null`) is seen as whitespace.
14
+ *
15
+ * @param {Code} code
16
+ * Code.
17
+ * @returns {typeof constants.characterGroupWhitespace | typeof constants.characterGroupPunctuation | undefined}
18
+ * Group.
19
+ */
20
+ function classifyCharacter(code) {
21
+ if (code === null || markdownLineEndingOrSpace(code) || unicodeWhitespace(code)) return 1;
22
+ if (unicodePunctuation(code)) return 2;
23
+ }
24
+ //#endregion
25
+ export { classifyCharacter };