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.
- package/LICENSE +201 -0
- package/dist/bin.mjs +24025 -0
- package/dist/src/_virtual/_rolldown/runtime.mjs +35 -0
- package/dist/src/changelog.d.mts +71 -0
- package/dist/src/changelog.mjs +92 -0
- package/dist/src/changenote.d.mts +41 -0
- package/dist/src/changenote.mjs +184 -0
- package/dist/src/cli/commands/change.d.mts +4 -0
- package/dist/src/cli/commands/change.mjs +75 -0
- package/dist/src/formatter.d.mts +31 -0
- package/dist/src/formatter.mjs +50 -0
- package/dist/src/git.d.mts +20 -0
- package/dist/src/git.mjs +121 -0
- package/dist/src/index.d.mts +19 -0
- package/dist/src/index.mjs +20 -0
- package/dist/src/node_modules/.pnpm/@clack_core@1.2.0/node_modules/@clack/core/dist/index.mjs +530 -0
- package/dist/src/node_modules/.pnpm/@clack_prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs +110 -0
- package/dist/src/node_modules/.pnpm/@kwsites_file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/index.mjs +13 -0
- package/dist/src/node_modules/.pnpm/@kwsites_file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/src/index.mjs +59 -0
- package/dist/src/node_modules/.pnpm/@kwsites_promise-deferred@1.1.1/node_modules/@kwsites/promise-deferred/dist/index.mjs +55 -0
- package/dist/src/node_modules/.pnpm/@octokit_auth-token@6.0.0/node_modules/@octokit/auth-token/dist-bundle/index.mjs +32 -0
- package/dist/src/node_modules/.pnpm/@octokit_core@7.0.6/node_modules/@octokit/core/dist-src/index.mjs +94 -0
- package/dist/src/node_modules/.pnpm/@octokit_core@7.0.6/node_modules/@octokit/core/dist-src/version.mjs +4 -0
- package/dist/src/node_modules/.pnpm/@octokit_endpoint@11.0.3/node_modules/@octokit/endpoint/dist-bundle/index.mjs +223 -0
- package/dist/src/node_modules/.pnpm/@octokit_graphql@9.0.3/node_modules/@octokit/graphql/dist-bundle/index.mjs +90 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/src/node_modules/.pnpm/@octokit_request-error@7.1.0/node_modules/@octokit/request-error/dist-src/index.mjs +30 -0
- package/dist/src/node_modules/.pnpm/@octokit_request@10.0.8/node_modules/@octokit/request/dist-bundle/index.mjs +146 -0
- package/dist/src/node_modules/.pnpm/@octokit_rest@22.0.1/node_modules/@octokit/rest/dist-src/index.mjs +9 -0
- package/dist/src/node_modules/.pnpm/@octokit_rest@22.0.1/node_modules/@octokit/rest/dist-src/version.mjs +4 -0
- package/dist/src/node_modules/.pnpm/@simple-git_args-pathspec@1.0.2/node_modules/@simple-git/args-pathspec/dist/index.mjs +14 -0
- package/dist/src/node_modules/.pnpm/@simple-git_argv-parser@1.0.3/node_modules/@simple-git/argv-parser/dist/index.mjs +369 -0
- package/dist/src/node_modules/.pnpm/bail@2.0.2/node_modules/bail/index.mjs +13 -0
- package/dist/src/node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/index.mjs +43 -0
- package/dist/src/node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/add.mjs +28 -0
- package/dist/src/node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/register.mjs +16 -0
- package/dist/src/node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/remove.mjs +11 -0
- package/dist/src/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.mjs +2135 -0
- package/dist/src/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.mjs +200 -0
- package/dist/src/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.mjs +206 -0
- package/dist/src/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.mjs +15 -0
- package/dist/src/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.mjs +212 -0
- package/dist/src/node_modules/.pnpm/decode-named-character-reference@1.3.0/node_modules/decode-named-character-reference/index.mjs +19 -0
- package/dist/src/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.mjs +4 -0
- package/dist/src/node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.mjs +7 -0
- package/dist/src/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.mjs +76 -0
- package/dist/src/node_modules/.pnpm/fast-content-type-parse@3.0.0/node_modules/fast-content-type-parse/index.mjs +115 -0
- package/dist/src/node_modules/.pnpm/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.mjs +138 -0
- package/dist/src/node_modules/.pnpm/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.mjs +12 -0
- package/dist/src/node_modules/.pnpm/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.mjs +12 -0
- package/dist/src/node_modules/.pnpm/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.mjs +165 -0
- package/dist/src/node_modules/.pnpm/fault@2.0.1/node_modules/fault/index.mjs +38 -0
- package/dist/src/node_modules/.pnpm/format@0.2.2/node_modules/format/format.mjs +87 -0
- package/dist/src/node_modules/.pnpm/glob@13.0.6/node_modules/glob/dist/esm/index.min.mjs +3125 -0
- package/dist/src/node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.mjs +13 -0
- package/dist/src/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs +8 -0
- package/dist/src/node_modules/.pnpm/json-with-bigint@3.5.8/node_modules/json-with-bigint/json-with-bigint.mjs +137 -0
- package/dist/src/node_modules/.pnpm/localstorage-polyfill@1.0.1/node_modules/localstorage-polyfill/localStorage.mjs +39 -0
- package/dist/src/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.mjs +29 -0
- package/dist/src/node_modules/.pnpm/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown/lib/index.mjs +976 -0
- package/dist/src/node_modules/.pnpm/mdast-util-frontmatter@2.0.1/node_modules/mdast-util-frontmatter/lib/index.mjs +162 -0
- package/dist/src/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.mjs +36 -0
- package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/configure.mjs +48 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/index.mjs +161 -0
- package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/join.mjs +18 -0
- package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/unsafe.mjs +223 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/src/node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.mjs +83 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.mjs +224 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.mjs +213 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.mjs +60 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.mjs +130 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.mjs +62 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.mjs +141 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +418 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.mjs +147 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.mjs +187 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.mjs +137 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.mjs +223 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +59 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +189 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.mjs +777 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.mjs +617 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.mjs +479 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +95 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +50 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.mjs +32 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.mjs +177 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +155 -0
- package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +98 -0
- package/dist/src/node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/syntax.mjs +352 -0
- package/dist/src/node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/to-matters.mjs +109 -0
- package/dist/src/node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.mjs +186 -0
- package/dist/src/node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.mjs +134 -0
- package/dist/src/node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.mjs +61 -0
- package/dist/src/node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.mjs +148 -0
- package/dist/src/node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.mjs +43 -0
- package/dist/src/node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs +229 -0
- package/dist/src/node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.mjs +71 -0
- package/dist/src/node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.mjs +25 -0
- package/dist/src/node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.mjs +73 -0
- 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
- package/dist/src/node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.mjs +40 -0
- 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
- package/dist/src/node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.mjs +25 -0
- package/dist/src/node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.mjs +31 -0
- package/dist/src/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.mjs +158 -0
- package/dist/src/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +231 -0
- package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.mjs +101 -0
- package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.mjs +473 -0
- package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.mjs +70 -0
- package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.mjs +220 -0
- package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.mjs +51 -0
- package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/text.mjs +178 -0
- package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.mjs +52 -0
- package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.mjs +17 -0
- package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/preprocess.mjs +102 -0
- package/dist/src/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.mjs +121 -0
- package/dist/src/node_modules/.pnpm/remark-frontmatter@5.0.0/node_modules/remark-frontmatter/lib/index.mjs +35 -0
- package/dist/src/node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.mjs +37 -0
- package/dist/src/node_modules/.pnpm/remark-stringify@11.0.0/node_modules/remark-stringify/lib/index.mjs +36 -0
- package/dist/src/node_modules/.pnpm/simple-git@3.35.2/node_modules/simple-git/dist/esm/index.mjs +3563 -0
- package/dist/src/node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.mjs +57 -0
- package/dist/src/node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.mjs +72 -0
- package/dist/src/node_modules/.pnpm/trough@2.2.0/node_modules/trough/lib/index.mjs +157 -0
- package/dist/src/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.mjs +13 -0
- package/dist/src/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.mjs +1088 -0
- package/dist/src/node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.mjs +110 -0
- package/dist/src/node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.mjs +65 -0
- 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
- package/dist/src/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.mjs +328 -0
- package/dist/src/node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.mjs +287 -0
- package/dist/src/node_modules/.pnpm/universal-user-agent@7.0.3/node_modules/universal-user-agent/index.mjs +8 -0
- package/dist/src/node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/lib/index.mjs +247 -0
- package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/index.mjs +525 -0
- package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minpath.mjs +2 -0
- package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minproc.mjs +2 -0
- package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.mjs +3 -0
- package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.shared.mjs +24 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.mjs +62 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.mjs +49 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.mjs +98 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.mjs +66 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/composer.mjs +207 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.mjs +93 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.mjs +179 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.mjs +48 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.mjs +41 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.mjs +166 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.mjs +211 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.mjs +110 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.mjs +32 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.mjs +30 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.mjs +16 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.mjs +16 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/Document.mjs +295 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.mjs +67 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.mjs +43 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.mjs +69 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/directives.mjs +170 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/errors.mjs +56 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/index.mjs +67 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/log.mjs +17 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.mjs +101 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.mjs +127 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.mjs +40 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.mjs +40 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.mjs +33 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.mjs +118 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.mjs +115 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.mjs +59 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.mjs +53 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.mjs +41 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.mjs +274 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.mjs +54 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.mjs +94 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst.mjs +85 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.mjs +523 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.mjs +50 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/parser.mjs +861 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/public-api.mjs +97 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.mjs +36 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.mjs +22 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.mjs +19 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.mjs +22 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.mjs +19 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.mjs +23 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.mjs +46 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.mjs +45 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.mjs +34 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.mjs +68 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/tags.mjs +103 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.mjs +53 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.mjs +31 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.mjs +49 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.mjs +79 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.mjs +45 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.mjs +71 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.mjs +67 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.mjs +56 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.mjs +74 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.mjs +87 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.mjs +119 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.mjs +115 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.mjs +124 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.mjs +23 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.mjs +67 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.mjs +24 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.mjs +104 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.mjs +229 -0
- package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/visit.mjs +194 -0
- package/dist/src/node_modules/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.mjs +106 -0
- package/dist/src/pkg.d.mts +24 -0
- package/dist/src/pkg.mjs +39 -0
- package/dist/src/prepare.d.mts +14 -0
- package/dist/src/prepare.mjs +41 -0
- package/dist/src/publishers/npm.d.mts +21 -0
- package/dist/src/publishers/npm.mjs +42 -0
- package/dist/src/releasers/github.d.mts +10 -0
- package/dist/src/releasers/github.mjs +20 -0
- package/dist/src/saver.d.mts +42 -0
- package/dist/src/saver.mjs +39 -0
- package/dist/src/types.d.mts +150 -0
- package/dist/src/utils.d.mts +7 -0
- package/dist/src/utils.mjs +47 -0
- package/dist/src/version.d.mts +9 -0
- package/dist/src/version.mjs +18 -0
- package/package.json +156 -0
- package/templates/cngpac.config.ts +33 -0
- package/templates/version.yml +30 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { toString } from "../../../../../mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.mjs";
|
|
2
|
+
import { visit } from "../../../../../unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.mjs";
|
|
3
|
+
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
|
|
4
|
+
/**
|
|
5
|
+
* @import {State} from 'mdast-util-to-markdown'
|
|
6
|
+
* @import {Heading} from 'mdast'
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @param {Heading} node
|
|
10
|
+
* @param {State} state
|
|
11
|
+
* @returns {boolean}
|
|
12
|
+
*/
|
|
13
|
+
function formatHeadingAsSetext(node, state) {
|
|
14
|
+
let literalWithBreak = false;
|
|
15
|
+
visit(node, function(node) {
|
|
16
|
+
if ("value" in node && /\r?\n|\r/.test(node.value) || node.type === "break") {
|
|
17
|
+
literalWithBreak = true;
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
return Boolean((!node.depth || node.depth < 3) && toString(node) && (state.options.setext || literalWithBreak));
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { formatHeadingAsSetext };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { toString } from "../../../../../mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.mjs";
|
|
2
|
+
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
|
|
3
|
+
/**
|
|
4
|
+
* @import {State} from 'mdast-util-to-markdown'
|
|
5
|
+
* @import {Link} from 'mdast'
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @param {Link} node
|
|
9
|
+
* @param {State} state
|
|
10
|
+
* @returns {boolean}
|
|
11
|
+
*/
|
|
12
|
+
function formatLinkAsAutolink(node, state) {
|
|
13
|
+
const raw = toString(node);
|
|
14
|
+
return Boolean(!state.options.resourceLink && node.url && !node.title && node.children && node.children.length === 1 && node.children[0].type === "text" && (raw === node.url || "mailto:" + raw === node.url) && /^[a-z][a-z+.-]+:/i.test(node.url) && !/[\0- <>\u007F]/.test(node.url));
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { formatLinkAsAutolink };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {IndentLines} from '../types.js'
|
|
4
|
+
*/
|
|
5
|
+
const eol = /\r?\n|\r/g;
|
|
6
|
+
/**
|
|
7
|
+
* @type {IndentLines}
|
|
8
|
+
*/
|
|
9
|
+
function indentLines(value, map) {
|
|
10
|
+
/** @type {Array<string>} */
|
|
11
|
+
const result = [];
|
|
12
|
+
let start = 0;
|
|
13
|
+
let line = 0;
|
|
14
|
+
/** @type {RegExpExecArray | null} */
|
|
15
|
+
let match;
|
|
16
|
+
while (match = eol.exec(value)) {
|
|
17
|
+
one(value.slice(start, match.index));
|
|
18
|
+
result.push(match[0]);
|
|
19
|
+
start = match.index + match[0].length;
|
|
20
|
+
line++;
|
|
21
|
+
}
|
|
22
|
+
one(value.slice(start));
|
|
23
|
+
return result.join("");
|
|
24
|
+
/**
|
|
25
|
+
* @param {string} value
|
|
26
|
+
*/
|
|
27
|
+
function one(value) {
|
|
28
|
+
result.push(map(value, line, !value));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { indentLines };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {ConstructName, Unsafe} from 'mdast-util-to-markdown'
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @param {Array<ConstructName>} stack
|
|
7
|
+
* @param {Unsafe} pattern
|
|
8
|
+
* @returns {boolean}
|
|
9
|
+
*/
|
|
10
|
+
function patternInScope(stack, pattern) {
|
|
11
|
+
return listInScope(stack, pattern.inConstruct, true) && !listInScope(stack, pattern.notInConstruct, false);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @param {Array<ConstructName>} stack
|
|
15
|
+
* @param {Unsafe['inConstruct']} list
|
|
16
|
+
* @param {boolean} none
|
|
17
|
+
* @returns {boolean}
|
|
18
|
+
*/
|
|
19
|
+
function listInScope(stack, list, none) {
|
|
20
|
+
if (typeof list === "string") list = [list];
|
|
21
|
+
if (!list || list.length === 0) return none;
|
|
22
|
+
let index = -1;
|
|
23
|
+
while (++index < list.length) if (stack.includes(list[index])) return true;
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { patternInScope };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { patternInScope } from "./pattern-in-scope.mjs";
|
|
2
|
+
import { encodeCharacterReference } from "./encode-character-reference.mjs";
|
|
3
|
+
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/safe.js
|
|
4
|
+
/**
|
|
5
|
+
* @import {SafeConfig, State} from 'mdast-util-to-markdown'
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Make a string safe for embedding in markdown constructs.
|
|
9
|
+
*
|
|
10
|
+
* In markdown, almost all punctuation characters can, in certain cases,
|
|
11
|
+
* result in something.
|
|
12
|
+
* Whether they do is highly subjective to where they happen and in what
|
|
13
|
+
* they happen.
|
|
14
|
+
*
|
|
15
|
+
* To solve this, `mdast-util-to-markdown` tracks:
|
|
16
|
+
*
|
|
17
|
+
* * Characters before and after something;
|
|
18
|
+
* * What “constructs” we are in.
|
|
19
|
+
*
|
|
20
|
+
* This information is then used by this function to escape or encode
|
|
21
|
+
* special characters.
|
|
22
|
+
*
|
|
23
|
+
* @param {State} state
|
|
24
|
+
* Info passed around about the current state.
|
|
25
|
+
* @param {string | null | undefined} input
|
|
26
|
+
* Raw value to make safe.
|
|
27
|
+
* @param {SafeConfig} config
|
|
28
|
+
* Configuration.
|
|
29
|
+
* @returns {string}
|
|
30
|
+
* Serialized markdown safe for embedding.
|
|
31
|
+
*/
|
|
32
|
+
function safe(state, input, config) {
|
|
33
|
+
const value = (config.before || "") + (input || "") + (config.after || "");
|
|
34
|
+
/** @type {Array<number>} */
|
|
35
|
+
const positions = [];
|
|
36
|
+
/** @type {Array<string>} */
|
|
37
|
+
const result = [];
|
|
38
|
+
/** @type {Record<number, {before: boolean, after: boolean}>} */
|
|
39
|
+
const infos = {};
|
|
40
|
+
let index = -1;
|
|
41
|
+
while (++index < state.unsafe.length) {
|
|
42
|
+
const pattern = state.unsafe[index];
|
|
43
|
+
if (!patternInScope(state.stack, pattern)) continue;
|
|
44
|
+
const expression = state.compilePattern(pattern);
|
|
45
|
+
/** @type {RegExpExecArray | null} */
|
|
46
|
+
let match;
|
|
47
|
+
while (match = expression.exec(value)) {
|
|
48
|
+
const before = "before" in pattern || Boolean(pattern.atBreak);
|
|
49
|
+
const after = "after" in pattern;
|
|
50
|
+
const position = match.index + (before ? match[1].length : 0);
|
|
51
|
+
if (positions.includes(position)) {
|
|
52
|
+
if (infos[position].before && !before) infos[position].before = false;
|
|
53
|
+
if (infos[position].after && !after) infos[position].after = false;
|
|
54
|
+
} else {
|
|
55
|
+
positions.push(position);
|
|
56
|
+
infos[position] = {
|
|
57
|
+
before,
|
|
58
|
+
after
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
positions.sort(numerical);
|
|
64
|
+
let start = config.before ? config.before.length : 0;
|
|
65
|
+
const end = value.length - (config.after ? config.after.length : 0);
|
|
66
|
+
index = -1;
|
|
67
|
+
while (++index < positions.length) {
|
|
68
|
+
const position = positions[index];
|
|
69
|
+
if (position < start || position >= end) continue;
|
|
70
|
+
if (position + 1 < end && positions[index + 1] === position + 1 && infos[position].after && !infos[position + 1].before && !infos[position + 1].after || positions[index - 1] === position - 1 && infos[position].before && !infos[position - 1].before && !infos[position - 1].after) continue;
|
|
71
|
+
if (start !== position) result.push(escapeBackslashes(value.slice(start, position), "\\"));
|
|
72
|
+
start = position;
|
|
73
|
+
if (/[!-/:-@[-`{-~]/.test(value.charAt(position)) && (!config.encode || !config.encode.includes(value.charAt(position)))) result.push("\\");
|
|
74
|
+
else {
|
|
75
|
+
result.push(encodeCharacterReference(value.charCodeAt(position)));
|
|
76
|
+
start++;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
result.push(escapeBackslashes(value.slice(start, end), config.after));
|
|
80
|
+
return result.join("");
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @param {number} a
|
|
84
|
+
* @param {number} b
|
|
85
|
+
* @returns {number}
|
|
86
|
+
*/
|
|
87
|
+
function numerical(a, b) {
|
|
88
|
+
return a - b;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @param {string} value
|
|
92
|
+
* @param {string} after
|
|
93
|
+
* @returns {string}
|
|
94
|
+
*/
|
|
95
|
+
function escapeBackslashes(value, after) {
|
|
96
|
+
const expression = /\\(?=[!-/:-@[-`{-~])/g;
|
|
97
|
+
/** @type {Array<number>} */
|
|
98
|
+
const positions = [];
|
|
99
|
+
/** @type {Array<string>} */
|
|
100
|
+
const results = [];
|
|
101
|
+
const whole = value + after;
|
|
102
|
+
let index = -1;
|
|
103
|
+
let start = 0;
|
|
104
|
+
/** @type {RegExpExecArray | null} */
|
|
105
|
+
let match;
|
|
106
|
+
while (match = expression.exec(whole)) positions.push(match.index);
|
|
107
|
+
while (++index < positions.length) {
|
|
108
|
+
if (start !== positions[index]) results.push(value.slice(start, positions[index]));
|
|
109
|
+
results.push("\\");
|
|
110
|
+
start = positions[index];
|
|
111
|
+
}
|
|
112
|
+
results.push(value.slice(start));
|
|
113
|
+
return results.join("");
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
export { safe };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/track.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {CreateTracker, TrackCurrent, TrackMove, TrackShift} from '../types.js'
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Track positional info in the output.
|
|
7
|
+
*
|
|
8
|
+
* @type {CreateTracker}
|
|
9
|
+
*/
|
|
10
|
+
function track(config) {
|
|
11
|
+
/* c8 ignore next 5 */
|
|
12
|
+
const options = config || {};
|
|
13
|
+
const now = options.now || {};
|
|
14
|
+
let lineShift = options.lineShift || 0;
|
|
15
|
+
let line = now.line || 1;
|
|
16
|
+
let column = now.column || 1;
|
|
17
|
+
return {
|
|
18
|
+
move,
|
|
19
|
+
current,
|
|
20
|
+
shift
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Get the current tracked info.
|
|
24
|
+
*
|
|
25
|
+
* @type {TrackCurrent}
|
|
26
|
+
*/
|
|
27
|
+
function current() {
|
|
28
|
+
return {
|
|
29
|
+
now: {
|
|
30
|
+
line,
|
|
31
|
+
column
|
|
32
|
+
},
|
|
33
|
+
lineShift
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Define an increased line shift (the typical indent for lines).
|
|
38
|
+
*
|
|
39
|
+
* @type {TrackShift}
|
|
40
|
+
*/
|
|
41
|
+
function shift(value) {
|
|
42
|
+
lineShift += value;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Move past some generated markdown.
|
|
46
|
+
*
|
|
47
|
+
* @type {TrackMove}
|
|
48
|
+
*/
|
|
49
|
+
function move(input) {
|
|
50
|
+
const value = input || "";
|
|
51
|
+
const chunks = value.split(/\r?\n|\r/g);
|
|
52
|
+
const tail = chunks[chunks.length - 1];
|
|
53
|
+
line += chunks.length - 1;
|
|
54
|
+
column = chunks.length === 1 ? column + tail.length : 1 + tail.length + lineShift;
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { track };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.js
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {import('mdast').Nodes} Nodes
|
|
4
|
+
*
|
|
5
|
+
* @typedef Options
|
|
6
|
+
* Configuration (optional).
|
|
7
|
+
* @property {boolean | null | undefined} [includeImageAlt=true]
|
|
8
|
+
* Whether to use `alt` for `image`s (default: `true`).
|
|
9
|
+
* @property {boolean | null | undefined} [includeHtml=true]
|
|
10
|
+
* Whether to use `value` of HTML (default: `true`).
|
|
11
|
+
*/
|
|
12
|
+
/** @type {Options} */
|
|
13
|
+
const emptyOptions = {};
|
|
14
|
+
/**
|
|
15
|
+
* Get the text content of a node or list of nodes.
|
|
16
|
+
*
|
|
17
|
+
* Prefers the node’s plain-text fields, otherwise serializes its children,
|
|
18
|
+
* and if the given value is an array, serialize the nodes in it.
|
|
19
|
+
*
|
|
20
|
+
* @param {unknown} [value]
|
|
21
|
+
* Thing to serialize, typically `Node`.
|
|
22
|
+
* @param {Options | null | undefined} [options]
|
|
23
|
+
* Configuration (optional).
|
|
24
|
+
* @returns {string}
|
|
25
|
+
* Serialized `value`.
|
|
26
|
+
*/
|
|
27
|
+
function toString(value, options) {
|
|
28
|
+
const settings = options || emptyOptions;
|
|
29
|
+
return one(value, typeof settings.includeImageAlt === "boolean" ? settings.includeImageAlt : true, typeof settings.includeHtml === "boolean" ? settings.includeHtml : true);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* One node or several nodes.
|
|
33
|
+
*
|
|
34
|
+
* @param {unknown} value
|
|
35
|
+
* Thing to serialize.
|
|
36
|
+
* @param {boolean} includeImageAlt
|
|
37
|
+
* Include image `alt`s.
|
|
38
|
+
* @param {boolean} includeHtml
|
|
39
|
+
* Include HTML.
|
|
40
|
+
* @returns {string}
|
|
41
|
+
* Serialized node.
|
|
42
|
+
*/
|
|
43
|
+
function one(value, includeImageAlt, includeHtml) {
|
|
44
|
+
if (node(value)) {
|
|
45
|
+
if ("value" in value) return value.type === "html" && !includeHtml ? "" : value.value;
|
|
46
|
+
if (includeImageAlt && "alt" in value && value.alt) return value.alt;
|
|
47
|
+
if ("children" in value) return all(value.children, includeImageAlt, includeHtml);
|
|
48
|
+
}
|
|
49
|
+
if (Array.isArray(value)) return all(value, includeImageAlt, includeHtml);
|
|
50
|
+
return "";
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Serialize a list of nodes.
|
|
54
|
+
*
|
|
55
|
+
* @param {Array<unknown>} values
|
|
56
|
+
* Thing to serialize.
|
|
57
|
+
* @param {boolean} includeImageAlt
|
|
58
|
+
* Include image `alt`s.
|
|
59
|
+
* @param {boolean} includeHtml
|
|
60
|
+
* Include HTML.
|
|
61
|
+
* @returns {string}
|
|
62
|
+
* Serialized nodes.
|
|
63
|
+
*/
|
|
64
|
+
function all(values, includeImageAlt, includeHtml) {
|
|
65
|
+
/** @type {Array<string>} */
|
|
66
|
+
const result = [];
|
|
67
|
+
let index = -1;
|
|
68
|
+
while (++index < values.length) result[index] = one(values[index], includeImageAlt, includeHtml);
|
|
69
|
+
return result.join("");
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Check if `value` looks like a node.
|
|
73
|
+
*
|
|
74
|
+
* @param {unknown} value
|
|
75
|
+
* Thing.
|
|
76
|
+
* @returns {value is Nodes}
|
|
77
|
+
* Whether `value` is a node.
|
|
78
|
+
*/
|
|
79
|
+
function node(value) {
|
|
80
|
+
return Boolean(value && typeof value === "object");
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
export { toString };
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { push, splice } from "../../../../micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.mjs";
|
|
2
|
+
import { classifyCharacter } from "../../../../micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.mjs";
|
|
3
|
+
import { resolveAll } from "../../../../micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.mjs";
|
|
4
|
+
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.js
|
|
5
|
+
/**
|
|
6
|
+
* @import {
|
|
7
|
+
* Code,
|
|
8
|
+
* Construct,
|
|
9
|
+
* Event,
|
|
10
|
+
* Point,
|
|
11
|
+
* Resolver,
|
|
12
|
+
* State,
|
|
13
|
+
* TokenizeContext,
|
|
14
|
+
* Tokenizer,
|
|
15
|
+
* Token
|
|
16
|
+
* } from 'micromark-util-types'
|
|
17
|
+
*/
|
|
18
|
+
/** @type {Construct} */
|
|
19
|
+
const attention = {
|
|
20
|
+
name: "attention",
|
|
21
|
+
resolveAll: resolveAllAttention,
|
|
22
|
+
tokenize: tokenizeAttention
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Take all events and resolve attention to emphasis or strong.
|
|
26
|
+
*
|
|
27
|
+
* @type {Resolver}
|
|
28
|
+
*/
|
|
29
|
+
function resolveAllAttention(events, context) {
|
|
30
|
+
let index = -1;
|
|
31
|
+
/** @type {number} */
|
|
32
|
+
let open;
|
|
33
|
+
/** @type {Token} */
|
|
34
|
+
let group;
|
|
35
|
+
/** @type {Token} */
|
|
36
|
+
let text;
|
|
37
|
+
/** @type {Token} */
|
|
38
|
+
let openingSequence;
|
|
39
|
+
/** @type {Token} */
|
|
40
|
+
let closingSequence;
|
|
41
|
+
/** @type {number} */
|
|
42
|
+
let use;
|
|
43
|
+
/** @type {Array<Event>} */
|
|
44
|
+
let nextEvents;
|
|
45
|
+
/** @type {number} */
|
|
46
|
+
let offset;
|
|
47
|
+
while (++index < events.length) if (events[index][0] === "enter" && events[index][1].type === "attentionSequence" && events[index][1]._close) {
|
|
48
|
+
open = index;
|
|
49
|
+
while (open--) if (events[open][0] === "exit" && events[open][1].type === "attentionSequence" && events[open][1]._open && context.sliceSerialize(events[open][1]).charCodeAt(0) === context.sliceSerialize(events[index][1]).charCodeAt(0)) {
|
|
50
|
+
if ((events[open][1]._close || events[index][1]._open) && (events[index][1].end.offset - events[index][1].start.offset) % 3 && !((events[open][1].end.offset - events[open][1].start.offset + events[index][1].end.offset - events[index][1].start.offset) % 3)) continue;
|
|
51
|
+
use = events[open][1].end.offset - events[open][1].start.offset > 1 && events[index][1].end.offset - events[index][1].start.offset > 1 ? 2 : 1;
|
|
52
|
+
const start = { ...events[open][1].end };
|
|
53
|
+
const end = { ...events[index][1].start };
|
|
54
|
+
movePoint(start, -use);
|
|
55
|
+
movePoint(end, use);
|
|
56
|
+
openingSequence = {
|
|
57
|
+
type: use > 1 ? "strongSequence" : "emphasisSequence",
|
|
58
|
+
start,
|
|
59
|
+
end: { ...events[open][1].end }
|
|
60
|
+
};
|
|
61
|
+
closingSequence = {
|
|
62
|
+
type: use > 1 ? "strongSequence" : "emphasisSequence",
|
|
63
|
+
start: { ...events[index][1].start },
|
|
64
|
+
end
|
|
65
|
+
};
|
|
66
|
+
text = {
|
|
67
|
+
type: use > 1 ? "strongText" : "emphasisText",
|
|
68
|
+
start: { ...events[open][1].end },
|
|
69
|
+
end: { ...events[index][1].start }
|
|
70
|
+
};
|
|
71
|
+
group = {
|
|
72
|
+
type: use > 1 ? "strong" : "emphasis",
|
|
73
|
+
start: { ...openingSequence.start },
|
|
74
|
+
end: { ...closingSequence.end }
|
|
75
|
+
};
|
|
76
|
+
events[open][1].end = { ...openingSequence.start };
|
|
77
|
+
events[index][1].start = { ...closingSequence.end };
|
|
78
|
+
nextEvents = [];
|
|
79
|
+
if (events[open][1].end.offset - events[open][1].start.offset) nextEvents = push(nextEvents, [[
|
|
80
|
+
"enter",
|
|
81
|
+
events[open][1],
|
|
82
|
+
context
|
|
83
|
+
], [
|
|
84
|
+
"exit",
|
|
85
|
+
events[open][1],
|
|
86
|
+
context
|
|
87
|
+
]]);
|
|
88
|
+
nextEvents = push(nextEvents, [
|
|
89
|
+
[
|
|
90
|
+
"enter",
|
|
91
|
+
group,
|
|
92
|
+
context
|
|
93
|
+
],
|
|
94
|
+
[
|
|
95
|
+
"enter",
|
|
96
|
+
openingSequence,
|
|
97
|
+
context
|
|
98
|
+
],
|
|
99
|
+
[
|
|
100
|
+
"exit",
|
|
101
|
+
openingSequence,
|
|
102
|
+
context
|
|
103
|
+
],
|
|
104
|
+
[
|
|
105
|
+
"enter",
|
|
106
|
+
text,
|
|
107
|
+
context
|
|
108
|
+
]
|
|
109
|
+
]);
|
|
110
|
+
nextEvents = push(nextEvents, resolveAll(context.parser.constructs.insideSpan.null, events.slice(open + 1, index), context));
|
|
111
|
+
nextEvents = push(nextEvents, [
|
|
112
|
+
[
|
|
113
|
+
"exit",
|
|
114
|
+
text,
|
|
115
|
+
context
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
"enter",
|
|
119
|
+
closingSequence,
|
|
120
|
+
context
|
|
121
|
+
],
|
|
122
|
+
[
|
|
123
|
+
"exit",
|
|
124
|
+
closingSequence,
|
|
125
|
+
context
|
|
126
|
+
],
|
|
127
|
+
[
|
|
128
|
+
"exit",
|
|
129
|
+
group,
|
|
130
|
+
context
|
|
131
|
+
]
|
|
132
|
+
]);
|
|
133
|
+
if (events[index][1].end.offset - events[index][1].start.offset) {
|
|
134
|
+
offset = 2;
|
|
135
|
+
nextEvents = push(nextEvents, [[
|
|
136
|
+
"enter",
|
|
137
|
+
events[index][1],
|
|
138
|
+
context
|
|
139
|
+
], [
|
|
140
|
+
"exit",
|
|
141
|
+
events[index][1],
|
|
142
|
+
context
|
|
143
|
+
]]);
|
|
144
|
+
} else offset = 0;
|
|
145
|
+
splice(events, open - 1, index - open + 3, nextEvents);
|
|
146
|
+
index = open + nextEvents.length - offset - 2;
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
index = -1;
|
|
151
|
+
while (++index < events.length) if (events[index][1].type === "attentionSequence") events[index][1].type = "data";
|
|
152
|
+
return events;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @this {TokenizeContext}
|
|
156
|
+
* Context.
|
|
157
|
+
* @type {Tokenizer}
|
|
158
|
+
*/
|
|
159
|
+
function tokenizeAttention(effects, ok) {
|
|
160
|
+
const attentionMarkers = this.parser.constructs.attentionMarkers.null;
|
|
161
|
+
const previous = this.previous;
|
|
162
|
+
const before = classifyCharacter(previous);
|
|
163
|
+
/** @type {NonNullable<Code>} */
|
|
164
|
+
let marker;
|
|
165
|
+
return start;
|
|
166
|
+
/**
|
|
167
|
+
* Before a sequence.
|
|
168
|
+
*
|
|
169
|
+
* ```markdown
|
|
170
|
+
* > | **
|
|
171
|
+
* ^
|
|
172
|
+
* ```
|
|
173
|
+
*
|
|
174
|
+
* @type {State}
|
|
175
|
+
*/
|
|
176
|
+
function start(code) {
|
|
177
|
+
marker = code;
|
|
178
|
+
effects.enter("attentionSequence");
|
|
179
|
+
return inside(code);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* In a sequence.
|
|
183
|
+
*
|
|
184
|
+
* ```markdown
|
|
185
|
+
* > | **
|
|
186
|
+
* ^^
|
|
187
|
+
* ```
|
|
188
|
+
*
|
|
189
|
+
* @type {State}
|
|
190
|
+
*/
|
|
191
|
+
function inside(code) {
|
|
192
|
+
if (code === marker) {
|
|
193
|
+
effects.consume(code);
|
|
194
|
+
return inside;
|
|
195
|
+
}
|
|
196
|
+
const token = effects.exit("attentionSequence");
|
|
197
|
+
const after = classifyCharacter(code);
|
|
198
|
+
const open = !after || after === 2 && before || attentionMarkers.includes(code);
|
|
199
|
+
const close = !before || before === 2 && after || attentionMarkers.includes(previous);
|
|
200
|
+
token._open = Boolean(marker === 42 ? open : open && (before || !close));
|
|
201
|
+
token._close = Boolean(marker === 42 ? close : close && (after || !open));
|
|
202
|
+
return ok(code);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Move a point a bit.
|
|
207
|
+
*
|
|
208
|
+
* Note: `move` only works inside lines! It’s not possible to move past other
|
|
209
|
+
* chunks (replacement characters, tabs, or line endings).
|
|
210
|
+
*
|
|
211
|
+
* @param {Point} point
|
|
212
|
+
* Point.
|
|
213
|
+
* @param {number} offset
|
|
214
|
+
* Amount to move.
|
|
215
|
+
* @returns {undefined}
|
|
216
|
+
* Nothing.
|
|
217
|
+
*/
|
|
218
|
+
function movePoint(point, offset) {
|
|
219
|
+
point.column += offset;
|
|
220
|
+
point.offset += offset;
|
|
221
|
+
point._bufferIndex += offset;
|
|
222
|
+
}
|
|
223
|
+
//#endregion
|
|
224
|
+
export { attention };
|