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,187 @@
|
|
|
1
|
+
import { markdownLineEnding } from "../../../../micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs";
|
|
2
|
+
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.js
|
|
3
|
+
/**
|
|
4
|
+
* @import {
|
|
5
|
+
* Construct,
|
|
6
|
+
* Previous,
|
|
7
|
+
* Resolver,
|
|
8
|
+
* State,
|
|
9
|
+
* TokenizeContext,
|
|
10
|
+
* Tokenizer,
|
|
11
|
+
* Token
|
|
12
|
+
* } from 'micromark-util-types'
|
|
13
|
+
*/
|
|
14
|
+
/** @type {Construct} */
|
|
15
|
+
const codeText = {
|
|
16
|
+
name: "codeText",
|
|
17
|
+
previous,
|
|
18
|
+
resolve: resolveCodeText,
|
|
19
|
+
tokenize: tokenizeCodeText
|
|
20
|
+
};
|
|
21
|
+
/** @type {Resolver} */
|
|
22
|
+
function resolveCodeText(events) {
|
|
23
|
+
let tailExitIndex = events.length - 4;
|
|
24
|
+
let headEnterIndex = 3;
|
|
25
|
+
/** @type {number} */
|
|
26
|
+
let index;
|
|
27
|
+
/** @type {number | undefined} */
|
|
28
|
+
let enter;
|
|
29
|
+
if ((events[headEnterIndex][1].type === "lineEnding" || events[headEnterIndex][1].type === "space") && (events[tailExitIndex][1].type === "lineEnding" || events[tailExitIndex][1].type === "space")) {
|
|
30
|
+
index = headEnterIndex;
|
|
31
|
+
while (++index < tailExitIndex) if (events[index][1].type === "codeTextData") {
|
|
32
|
+
events[headEnterIndex][1].type = "codeTextPadding";
|
|
33
|
+
events[tailExitIndex][1].type = "codeTextPadding";
|
|
34
|
+
headEnterIndex += 2;
|
|
35
|
+
tailExitIndex -= 2;
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
index = headEnterIndex - 1;
|
|
40
|
+
tailExitIndex++;
|
|
41
|
+
while (++index <= tailExitIndex) if (enter === void 0) {
|
|
42
|
+
if (index !== tailExitIndex && events[index][1].type !== "lineEnding") enter = index;
|
|
43
|
+
} else if (index === tailExitIndex || events[index][1].type === "lineEnding") {
|
|
44
|
+
events[enter][1].type = "codeTextData";
|
|
45
|
+
if (index !== enter + 2) {
|
|
46
|
+
events[enter][1].end = events[index - 1][1].end;
|
|
47
|
+
events.splice(enter + 2, index - enter - 2);
|
|
48
|
+
tailExitIndex -= index - enter - 2;
|
|
49
|
+
index = enter + 2;
|
|
50
|
+
}
|
|
51
|
+
enter = void 0;
|
|
52
|
+
}
|
|
53
|
+
return events;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @this {TokenizeContext}
|
|
57
|
+
* Context.
|
|
58
|
+
* @type {Previous}
|
|
59
|
+
*/
|
|
60
|
+
function previous(code) {
|
|
61
|
+
return code !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @this {TokenizeContext}
|
|
65
|
+
* Context.
|
|
66
|
+
* @type {Tokenizer}
|
|
67
|
+
*/
|
|
68
|
+
function tokenizeCodeText(effects, ok, nok) {
|
|
69
|
+
let sizeOpen = 0;
|
|
70
|
+
/** @type {number} */
|
|
71
|
+
let size;
|
|
72
|
+
/** @type {Token} */
|
|
73
|
+
let token;
|
|
74
|
+
return start;
|
|
75
|
+
/**
|
|
76
|
+
* Start of code (text).
|
|
77
|
+
*
|
|
78
|
+
* ```markdown
|
|
79
|
+
* > | `a`
|
|
80
|
+
* ^
|
|
81
|
+
* > | \`a`
|
|
82
|
+
* ^
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @type {State}
|
|
86
|
+
*/
|
|
87
|
+
function start(code) {
|
|
88
|
+
effects.enter("codeText");
|
|
89
|
+
effects.enter("codeTextSequence");
|
|
90
|
+
return sequenceOpen(code);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* In opening sequence.
|
|
94
|
+
*
|
|
95
|
+
* ```markdown
|
|
96
|
+
* > | `a`
|
|
97
|
+
* ^
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* @type {State}
|
|
101
|
+
*/
|
|
102
|
+
function sequenceOpen(code) {
|
|
103
|
+
if (code === 96) {
|
|
104
|
+
effects.consume(code);
|
|
105
|
+
sizeOpen++;
|
|
106
|
+
return sequenceOpen;
|
|
107
|
+
}
|
|
108
|
+
effects.exit("codeTextSequence");
|
|
109
|
+
return between(code);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Between something and something else.
|
|
113
|
+
*
|
|
114
|
+
* ```markdown
|
|
115
|
+
* > | `a`
|
|
116
|
+
* ^^
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* @type {State}
|
|
120
|
+
*/
|
|
121
|
+
function between(code) {
|
|
122
|
+
if (code === null) return nok(code);
|
|
123
|
+
if (code === 32) {
|
|
124
|
+
effects.enter("space");
|
|
125
|
+
effects.consume(code);
|
|
126
|
+
effects.exit("space");
|
|
127
|
+
return between;
|
|
128
|
+
}
|
|
129
|
+
if (code === 96) {
|
|
130
|
+
token = effects.enter("codeTextSequence");
|
|
131
|
+
size = 0;
|
|
132
|
+
return sequenceClose(code);
|
|
133
|
+
}
|
|
134
|
+
if (markdownLineEnding(code)) {
|
|
135
|
+
effects.enter("lineEnding");
|
|
136
|
+
effects.consume(code);
|
|
137
|
+
effects.exit("lineEnding");
|
|
138
|
+
return between;
|
|
139
|
+
}
|
|
140
|
+
effects.enter("codeTextData");
|
|
141
|
+
return data(code);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* In data.
|
|
145
|
+
*
|
|
146
|
+
* ```markdown
|
|
147
|
+
* > | `a`
|
|
148
|
+
* ^
|
|
149
|
+
* ```
|
|
150
|
+
*
|
|
151
|
+
* @type {State}
|
|
152
|
+
*/
|
|
153
|
+
function data(code) {
|
|
154
|
+
if (code === null || code === 32 || code === 96 || markdownLineEnding(code)) {
|
|
155
|
+
effects.exit("codeTextData");
|
|
156
|
+
return between(code);
|
|
157
|
+
}
|
|
158
|
+
effects.consume(code);
|
|
159
|
+
return data;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* In closing sequence.
|
|
163
|
+
*
|
|
164
|
+
* ```markdown
|
|
165
|
+
* > | `a`
|
|
166
|
+
* ^
|
|
167
|
+
* ```
|
|
168
|
+
*
|
|
169
|
+
* @type {State}
|
|
170
|
+
*/
|
|
171
|
+
function sequenceClose(code) {
|
|
172
|
+
if (code === 96) {
|
|
173
|
+
effects.consume(code);
|
|
174
|
+
size++;
|
|
175
|
+
return sequenceClose;
|
|
176
|
+
}
|
|
177
|
+
if (size === sizeOpen) {
|
|
178
|
+
effects.exit("codeTextSequence");
|
|
179
|
+
effects.exit("codeText");
|
|
180
|
+
return ok(code);
|
|
181
|
+
}
|
|
182
|
+
token.type = "codeTextData";
|
|
183
|
+
return data(code);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
//#endregion
|
|
187
|
+
export { codeText };
|
|
@@ -0,0 +1,137 @@
|
|
|
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
|
+
import { subtokenize } from "../../../../micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.mjs";
|
|
4
|
+
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.js
|
|
5
|
+
/**
|
|
6
|
+
* @import {
|
|
7
|
+
* Construct,
|
|
8
|
+
* Resolver,
|
|
9
|
+
* State,
|
|
10
|
+
* TokenizeContext,
|
|
11
|
+
* Tokenizer,
|
|
12
|
+
* Token
|
|
13
|
+
* } from 'micromark-util-types'
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* No name because it must not be turned off.
|
|
17
|
+
* @type {Construct}
|
|
18
|
+
*/
|
|
19
|
+
const content = {
|
|
20
|
+
resolve: resolveContent,
|
|
21
|
+
tokenize: tokenizeContent
|
|
22
|
+
};
|
|
23
|
+
/** @type {Construct} */
|
|
24
|
+
const continuationConstruct = {
|
|
25
|
+
partial: true,
|
|
26
|
+
tokenize: tokenizeContinuation
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Content is transparent: it’s parsed right now. That way, definitions are also
|
|
30
|
+
* parsed right now: before text in paragraphs (specifically, media) are parsed.
|
|
31
|
+
*
|
|
32
|
+
* @type {Resolver}
|
|
33
|
+
*/
|
|
34
|
+
function resolveContent(events) {
|
|
35
|
+
subtokenize(events);
|
|
36
|
+
return events;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @this {TokenizeContext}
|
|
40
|
+
* Context.
|
|
41
|
+
* @type {Tokenizer}
|
|
42
|
+
*/
|
|
43
|
+
function tokenizeContent(effects, ok) {
|
|
44
|
+
/** @type {Token | undefined} */
|
|
45
|
+
let previous;
|
|
46
|
+
return chunkStart;
|
|
47
|
+
/**
|
|
48
|
+
* Before a content chunk.
|
|
49
|
+
*
|
|
50
|
+
* ```markdown
|
|
51
|
+
* > | abc
|
|
52
|
+
* ^
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @type {State}
|
|
56
|
+
*/
|
|
57
|
+
function chunkStart(code) {
|
|
58
|
+
effects.enter("content");
|
|
59
|
+
previous = effects.enter("chunkContent", { contentType: "content" });
|
|
60
|
+
return chunkInside(code);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* In a content chunk.
|
|
64
|
+
*
|
|
65
|
+
* ```markdown
|
|
66
|
+
* > | abc
|
|
67
|
+
* ^^^
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @type {State}
|
|
71
|
+
*/
|
|
72
|
+
function chunkInside(code) {
|
|
73
|
+
if (code === null) return contentEnd(code);
|
|
74
|
+
if (markdownLineEnding(code)) return effects.check(continuationConstruct, contentContinue, contentEnd)(code);
|
|
75
|
+
effects.consume(code);
|
|
76
|
+
return chunkInside;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*
|
|
81
|
+
* @type {State}
|
|
82
|
+
*/
|
|
83
|
+
function contentEnd(code) {
|
|
84
|
+
effects.exit("chunkContent");
|
|
85
|
+
effects.exit("content");
|
|
86
|
+
return ok(code);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
*
|
|
91
|
+
* @type {State}
|
|
92
|
+
*/
|
|
93
|
+
function contentContinue(code) {
|
|
94
|
+
effects.consume(code);
|
|
95
|
+
effects.exit("chunkContent");
|
|
96
|
+
previous.next = effects.enter("chunkContent", {
|
|
97
|
+
contentType: "content",
|
|
98
|
+
previous
|
|
99
|
+
});
|
|
100
|
+
previous = previous.next;
|
|
101
|
+
return chunkInside;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @this {TokenizeContext}
|
|
106
|
+
* Context.
|
|
107
|
+
* @type {Tokenizer}
|
|
108
|
+
*/
|
|
109
|
+
function tokenizeContinuation(effects, ok, nok) {
|
|
110
|
+
const self = this;
|
|
111
|
+
return startLookahead;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
* @type {State}
|
|
116
|
+
*/
|
|
117
|
+
function startLookahead(code) {
|
|
118
|
+
effects.exit("chunkContent");
|
|
119
|
+
effects.enter("lineEnding");
|
|
120
|
+
effects.consume(code);
|
|
121
|
+
effects.exit("lineEnding");
|
|
122
|
+
return factorySpace(effects, prefixed, "linePrefix");
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
*
|
|
127
|
+
* @type {State}
|
|
128
|
+
*/
|
|
129
|
+
function prefixed(code) {
|
|
130
|
+
if (code === null || markdownLineEnding(code)) return nok(code);
|
|
131
|
+
const tail = self.events[self.events.length - 1];
|
|
132
|
+
if (!self.parser.constructs.disable.null.includes("codeIndented") && tail && tail[1].type === "linePrefix" && tail[2].sliceSerialize(tail[1], true).length >= 4) return ok(code);
|
|
133
|
+
return effects.interrupt(self.parser.constructs.flow, nok, ok)(code);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
//#endregion
|
|
137
|
+
export { content };
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { markdownLineEnding, markdownLineEndingOrSpace, markdownSpace } from "../../../../micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs";
|
|
2
|
+
import { normalizeIdentifier } from "../../../../micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.mjs";
|
|
3
|
+
import { factorySpace } from "../../../../micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.mjs";
|
|
4
|
+
import { factoryDestination } from "../../../../micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.mjs";
|
|
5
|
+
import { factoryLabel } from "../../../../micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.mjs";
|
|
6
|
+
import { factoryTitle } from "../../../../micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.mjs";
|
|
7
|
+
import { factoryWhitespace } from "../../../../micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.mjs";
|
|
8
|
+
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.js
|
|
9
|
+
/**
|
|
10
|
+
* @import {
|
|
11
|
+
* Construct,
|
|
12
|
+
* State,
|
|
13
|
+
* TokenizeContext,
|
|
14
|
+
* Tokenizer
|
|
15
|
+
* } from 'micromark-util-types'
|
|
16
|
+
*/
|
|
17
|
+
/** @type {Construct} */
|
|
18
|
+
const definition = {
|
|
19
|
+
name: "definition",
|
|
20
|
+
tokenize: tokenizeDefinition
|
|
21
|
+
};
|
|
22
|
+
/** @type {Construct} */
|
|
23
|
+
const titleBefore = {
|
|
24
|
+
partial: true,
|
|
25
|
+
tokenize: tokenizeTitleBefore
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @this {TokenizeContext}
|
|
29
|
+
* Context.
|
|
30
|
+
* @type {Tokenizer}
|
|
31
|
+
*/
|
|
32
|
+
function tokenizeDefinition(effects, ok, nok) {
|
|
33
|
+
const self = this;
|
|
34
|
+
/** @type {string} */
|
|
35
|
+
let identifier;
|
|
36
|
+
return start;
|
|
37
|
+
/**
|
|
38
|
+
* At start of a definition.
|
|
39
|
+
*
|
|
40
|
+
* ```markdown
|
|
41
|
+
* > | [a]: b "c"
|
|
42
|
+
* ^
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @type {State}
|
|
46
|
+
*/
|
|
47
|
+
function start(code) {
|
|
48
|
+
effects.enter("definition");
|
|
49
|
+
return before(code);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* After optional whitespace, at `[`.
|
|
53
|
+
*
|
|
54
|
+
* ```markdown
|
|
55
|
+
* > | [a]: b "c"
|
|
56
|
+
* ^
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @type {State}
|
|
60
|
+
*/
|
|
61
|
+
function before(code) {
|
|
62
|
+
return factoryLabel.call(self, effects, labelAfter, nok, "definitionLabel", "definitionLabelMarker", "definitionLabelString")(code);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* After label.
|
|
66
|
+
*
|
|
67
|
+
* ```markdown
|
|
68
|
+
* > | [a]: b "c"
|
|
69
|
+
* ^
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @type {State}
|
|
73
|
+
*/
|
|
74
|
+
function labelAfter(code) {
|
|
75
|
+
identifier = normalizeIdentifier(self.sliceSerialize(self.events[self.events.length - 1][1]).slice(1, -1));
|
|
76
|
+
if (code === 58) {
|
|
77
|
+
effects.enter("definitionMarker");
|
|
78
|
+
effects.consume(code);
|
|
79
|
+
effects.exit("definitionMarker");
|
|
80
|
+
return markerAfter;
|
|
81
|
+
}
|
|
82
|
+
return nok(code);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* After marker.
|
|
86
|
+
*
|
|
87
|
+
* ```markdown
|
|
88
|
+
* > | [a]: b "c"
|
|
89
|
+
* ^
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* @type {State}
|
|
93
|
+
*/
|
|
94
|
+
function markerAfter(code) {
|
|
95
|
+
return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, destinationBefore)(code) : destinationBefore(code);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Before destination.
|
|
99
|
+
*
|
|
100
|
+
* ```markdown
|
|
101
|
+
* > | [a]: b "c"
|
|
102
|
+
* ^
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* @type {State}
|
|
106
|
+
*/
|
|
107
|
+
function destinationBefore(code) {
|
|
108
|
+
return factoryDestination(effects, destinationAfter, nok, "definitionDestination", "definitionDestinationLiteral", "definitionDestinationLiteralMarker", "definitionDestinationRaw", "definitionDestinationString")(code);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* After destination.
|
|
112
|
+
*
|
|
113
|
+
* ```markdown
|
|
114
|
+
* > | [a]: b "c"
|
|
115
|
+
* ^
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* @type {State}
|
|
119
|
+
*/
|
|
120
|
+
function destinationAfter(code) {
|
|
121
|
+
return effects.attempt(titleBefore, after, after)(code);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* After definition.
|
|
125
|
+
*
|
|
126
|
+
* ```markdown
|
|
127
|
+
* > | [a]: b
|
|
128
|
+
* ^
|
|
129
|
+
* > | [a]: b "c"
|
|
130
|
+
* ^
|
|
131
|
+
* ```
|
|
132
|
+
*
|
|
133
|
+
* @type {State}
|
|
134
|
+
*/
|
|
135
|
+
function after(code) {
|
|
136
|
+
return markdownSpace(code) ? factorySpace(effects, afterWhitespace, "whitespace")(code) : afterWhitespace(code);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* After definition, after optional whitespace.
|
|
140
|
+
*
|
|
141
|
+
* ```markdown
|
|
142
|
+
* > | [a]: b
|
|
143
|
+
* ^
|
|
144
|
+
* > | [a]: b "c"
|
|
145
|
+
* ^
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
148
|
+
* @type {State}
|
|
149
|
+
*/
|
|
150
|
+
function afterWhitespace(code) {
|
|
151
|
+
if (code === null || markdownLineEnding(code)) {
|
|
152
|
+
effects.exit("definition");
|
|
153
|
+
self.parser.defined.push(identifier);
|
|
154
|
+
return ok(code);
|
|
155
|
+
}
|
|
156
|
+
return nok(code);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @this {TokenizeContext}
|
|
161
|
+
* Context.
|
|
162
|
+
* @type {Tokenizer}
|
|
163
|
+
*/
|
|
164
|
+
function tokenizeTitleBefore(effects, ok, nok) {
|
|
165
|
+
return titleBefore;
|
|
166
|
+
/**
|
|
167
|
+
* After destination, at whitespace.
|
|
168
|
+
*
|
|
169
|
+
* ```markdown
|
|
170
|
+
* > | [a]: b
|
|
171
|
+
* ^
|
|
172
|
+
* > | [a]: b "c"
|
|
173
|
+
* ^
|
|
174
|
+
* ```
|
|
175
|
+
*
|
|
176
|
+
* @type {State}
|
|
177
|
+
*/
|
|
178
|
+
function titleBefore(code) {
|
|
179
|
+
return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, beforeMarker)(code) : nok(code);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* At title.
|
|
183
|
+
*
|
|
184
|
+
* ```markdown
|
|
185
|
+
* | [a]: b
|
|
186
|
+
* > | "c"
|
|
187
|
+
* ^
|
|
188
|
+
* ```
|
|
189
|
+
*
|
|
190
|
+
* @type {State}
|
|
191
|
+
*/
|
|
192
|
+
function beforeMarker(code) {
|
|
193
|
+
return factoryTitle(effects, titleAfter, nok, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(code);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* After title.
|
|
197
|
+
*
|
|
198
|
+
* ```markdown
|
|
199
|
+
* > | [a]: b "c"
|
|
200
|
+
* ^
|
|
201
|
+
* ```
|
|
202
|
+
*
|
|
203
|
+
* @type {State}
|
|
204
|
+
*/
|
|
205
|
+
function titleAfter(code) {
|
|
206
|
+
return markdownSpace(code) ? factorySpace(effects, titleAfterOptionalWhitespace, "whitespace")(code) : titleAfterOptionalWhitespace(code);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* After title, after optional whitespace.
|
|
210
|
+
*
|
|
211
|
+
* ```markdown
|
|
212
|
+
* > | [a]: b "c"
|
|
213
|
+
* ^
|
|
214
|
+
* ```
|
|
215
|
+
*
|
|
216
|
+
* @type {State}
|
|
217
|
+
*/
|
|
218
|
+
function titleAfterOptionalWhitespace(code) {
|
|
219
|
+
return code === null || markdownLineEnding(code) ? ok(code) : nok(code);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
//#endregion
|
|
223
|
+
export { definition };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { markdownLineEnding } from "../../../../micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs";
|
|
2
|
+
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.js
|
|
3
|
+
/**
|
|
4
|
+
* @import {
|
|
5
|
+
* Construct,
|
|
6
|
+
* State,
|
|
7
|
+
* TokenizeContext,
|
|
8
|
+
* Tokenizer
|
|
9
|
+
* } from 'micromark-util-types'
|
|
10
|
+
*/
|
|
11
|
+
/** @type {Construct} */
|
|
12
|
+
const hardBreakEscape = {
|
|
13
|
+
name: "hardBreakEscape",
|
|
14
|
+
tokenize: tokenizeHardBreakEscape
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @this {TokenizeContext}
|
|
18
|
+
* Context.
|
|
19
|
+
* @type {Tokenizer}
|
|
20
|
+
*/
|
|
21
|
+
function tokenizeHardBreakEscape(effects, ok, nok) {
|
|
22
|
+
return start;
|
|
23
|
+
/**
|
|
24
|
+
* Start of a hard break (escape).
|
|
25
|
+
*
|
|
26
|
+
* ```markdown
|
|
27
|
+
* > | a\
|
|
28
|
+
* ^
|
|
29
|
+
* | b
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @type {State}
|
|
33
|
+
*/
|
|
34
|
+
function start(code) {
|
|
35
|
+
effects.enter("hardBreakEscape");
|
|
36
|
+
effects.consume(code);
|
|
37
|
+
return after;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* After `\`, at eol.
|
|
41
|
+
*
|
|
42
|
+
* ```markdown
|
|
43
|
+
* > | a\
|
|
44
|
+
* ^
|
|
45
|
+
* | b
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @type {State}
|
|
49
|
+
*/
|
|
50
|
+
function after(code) {
|
|
51
|
+
if (markdownLineEnding(code)) {
|
|
52
|
+
effects.exit("hardBreakEscape");
|
|
53
|
+
return ok(code);
|
|
54
|
+
}
|
|
55
|
+
return nok(code);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { hardBreakEscape };
|