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,617 @@
|
|
|
1
|
+
import { asciiAlpha, asciiAlphanumeric, markdownLineEnding, markdownLineEndingOrSpace, markdownSpace } from "../../../../micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs";
|
|
2
|
+
import { factorySpace } from "../../../../micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.mjs";
|
|
3
|
+
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.js
|
|
4
|
+
/**
|
|
5
|
+
* @import {
|
|
6
|
+
* Code,
|
|
7
|
+
* Construct,
|
|
8
|
+
* State,
|
|
9
|
+
* TokenizeContext,
|
|
10
|
+
* Tokenizer
|
|
11
|
+
* } from 'micromark-util-types'
|
|
12
|
+
*/
|
|
13
|
+
/** @type {Construct} */
|
|
14
|
+
const htmlText = {
|
|
15
|
+
name: "htmlText",
|
|
16
|
+
tokenize: tokenizeHtmlText
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @this {TokenizeContext}
|
|
20
|
+
* Context.
|
|
21
|
+
* @type {Tokenizer}
|
|
22
|
+
*/
|
|
23
|
+
function tokenizeHtmlText(effects, ok, nok) {
|
|
24
|
+
const self = this;
|
|
25
|
+
/** @type {NonNullable<Code> | undefined} */
|
|
26
|
+
let marker;
|
|
27
|
+
/** @type {number} */
|
|
28
|
+
let index;
|
|
29
|
+
/** @type {State} */
|
|
30
|
+
let returnState;
|
|
31
|
+
return start;
|
|
32
|
+
/**
|
|
33
|
+
* Start of HTML (text).
|
|
34
|
+
*
|
|
35
|
+
* ```markdown
|
|
36
|
+
* > | a <b> c
|
|
37
|
+
* ^
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @type {State}
|
|
41
|
+
*/
|
|
42
|
+
function start(code) {
|
|
43
|
+
effects.enter("htmlText");
|
|
44
|
+
effects.enter("htmlTextData");
|
|
45
|
+
effects.consume(code);
|
|
46
|
+
return open;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* After `<`, at tag name or other stuff.
|
|
50
|
+
*
|
|
51
|
+
* ```markdown
|
|
52
|
+
* > | a <b> c
|
|
53
|
+
* ^
|
|
54
|
+
* > | a <!doctype> c
|
|
55
|
+
* ^
|
|
56
|
+
* > | a <!--b--> c
|
|
57
|
+
* ^
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @type {State}
|
|
61
|
+
*/
|
|
62
|
+
function open(code) {
|
|
63
|
+
if (code === 33) {
|
|
64
|
+
effects.consume(code);
|
|
65
|
+
return declarationOpen;
|
|
66
|
+
}
|
|
67
|
+
if (code === 47) {
|
|
68
|
+
effects.consume(code);
|
|
69
|
+
return tagCloseStart;
|
|
70
|
+
}
|
|
71
|
+
if (code === 63) {
|
|
72
|
+
effects.consume(code);
|
|
73
|
+
return instruction;
|
|
74
|
+
}
|
|
75
|
+
if (asciiAlpha(code)) {
|
|
76
|
+
effects.consume(code);
|
|
77
|
+
return tagOpen;
|
|
78
|
+
}
|
|
79
|
+
return nok(code);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* After `<!`, at declaration, comment, or CDATA.
|
|
83
|
+
*
|
|
84
|
+
* ```markdown
|
|
85
|
+
* > | a <!doctype> c
|
|
86
|
+
* ^
|
|
87
|
+
* > | a <!--b--> c
|
|
88
|
+
* ^
|
|
89
|
+
* > | a <![CDATA[>&<]]> c
|
|
90
|
+
* ^
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* @type {State}
|
|
94
|
+
*/
|
|
95
|
+
function declarationOpen(code) {
|
|
96
|
+
if (code === 45) {
|
|
97
|
+
effects.consume(code);
|
|
98
|
+
return commentOpenInside;
|
|
99
|
+
}
|
|
100
|
+
if (code === 91) {
|
|
101
|
+
effects.consume(code);
|
|
102
|
+
index = 0;
|
|
103
|
+
return cdataOpenInside;
|
|
104
|
+
}
|
|
105
|
+
if (asciiAlpha(code)) {
|
|
106
|
+
effects.consume(code);
|
|
107
|
+
return declaration;
|
|
108
|
+
}
|
|
109
|
+
return nok(code);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* In a comment, after `<!-`, at another `-`.
|
|
113
|
+
*
|
|
114
|
+
* ```markdown
|
|
115
|
+
* > | a <!--b--> c
|
|
116
|
+
* ^
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* @type {State}
|
|
120
|
+
*/
|
|
121
|
+
function commentOpenInside(code) {
|
|
122
|
+
if (code === 45) {
|
|
123
|
+
effects.consume(code);
|
|
124
|
+
return commentEnd;
|
|
125
|
+
}
|
|
126
|
+
return nok(code);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* In comment.
|
|
130
|
+
*
|
|
131
|
+
* ```markdown
|
|
132
|
+
* > | a <!--b--> c
|
|
133
|
+
* ^
|
|
134
|
+
* ```
|
|
135
|
+
*
|
|
136
|
+
* @type {State}
|
|
137
|
+
*/
|
|
138
|
+
function comment(code) {
|
|
139
|
+
if (code === null) return nok(code);
|
|
140
|
+
if (code === 45) {
|
|
141
|
+
effects.consume(code);
|
|
142
|
+
return commentClose;
|
|
143
|
+
}
|
|
144
|
+
if (markdownLineEnding(code)) {
|
|
145
|
+
returnState = comment;
|
|
146
|
+
return lineEndingBefore(code);
|
|
147
|
+
}
|
|
148
|
+
effects.consume(code);
|
|
149
|
+
return comment;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* In comment, after `-`.
|
|
153
|
+
*
|
|
154
|
+
* ```markdown
|
|
155
|
+
* > | a <!--b--> c
|
|
156
|
+
* ^
|
|
157
|
+
* ```
|
|
158
|
+
*
|
|
159
|
+
* @type {State}
|
|
160
|
+
*/
|
|
161
|
+
function commentClose(code) {
|
|
162
|
+
if (code === 45) {
|
|
163
|
+
effects.consume(code);
|
|
164
|
+
return commentEnd;
|
|
165
|
+
}
|
|
166
|
+
return comment(code);
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* In comment, after `--`.
|
|
170
|
+
*
|
|
171
|
+
* ```markdown
|
|
172
|
+
* > | a <!--b--> c
|
|
173
|
+
* ^
|
|
174
|
+
* ```
|
|
175
|
+
*
|
|
176
|
+
* @type {State}
|
|
177
|
+
*/
|
|
178
|
+
function commentEnd(code) {
|
|
179
|
+
return code === 62 ? end(code) : code === 45 ? commentClose(code) : comment(code);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* After `<![`, in CDATA, expecting `CDATA[`.
|
|
183
|
+
*
|
|
184
|
+
* ```markdown
|
|
185
|
+
* > | a <![CDATA[>&<]]> b
|
|
186
|
+
* ^^^^^^
|
|
187
|
+
* ```
|
|
188
|
+
*
|
|
189
|
+
* @type {State}
|
|
190
|
+
*/
|
|
191
|
+
function cdataOpenInside(code) {
|
|
192
|
+
if (code === "CDATA[".charCodeAt(index++)) {
|
|
193
|
+
effects.consume(code);
|
|
194
|
+
return index === 6 ? cdata : cdataOpenInside;
|
|
195
|
+
}
|
|
196
|
+
return nok(code);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* In CDATA.
|
|
200
|
+
*
|
|
201
|
+
* ```markdown
|
|
202
|
+
* > | a <![CDATA[>&<]]> b
|
|
203
|
+
* ^^^
|
|
204
|
+
* ```
|
|
205
|
+
*
|
|
206
|
+
* @type {State}
|
|
207
|
+
*/
|
|
208
|
+
function cdata(code) {
|
|
209
|
+
if (code === null) return nok(code);
|
|
210
|
+
if (code === 93) {
|
|
211
|
+
effects.consume(code);
|
|
212
|
+
return cdataClose;
|
|
213
|
+
}
|
|
214
|
+
if (markdownLineEnding(code)) {
|
|
215
|
+
returnState = cdata;
|
|
216
|
+
return lineEndingBefore(code);
|
|
217
|
+
}
|
|
218
|
+
effects.consume(code);
|
|
219
|
+
return cdata;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* In CDATA, after `]`, at another `]`.
|
|
223
|
+
*
|
|
224
|
+
* ```markdown
|
|
225
|
+
* > | a <![CDATA[>&<]]> b
|
|
226
|
+
* ^
|
|
227
|
+
* ```
|
|
228
|
+
*
|
|
229
|
+
* @type {State}
|
|
230
|
+
*/
|
|
231
|
+
function cdataClose(code) {
|
|
232
|
+
if (code === 93) {
|
|
233
|
+
effects.consume(code);
|
|
234
|
+
return cdataEnd;
|
|
235
|
+
}
|
|
236
|
+
return cdata(code);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* In CDATA, after `]]`, at `>`.
|
|
240
|
+
*
|
|
241
|
+
* ```markdown
|
|
242
|
+
* > | a <![CDATA[>&<]]> b
|
|
243
|
+
* ^
|
|
244
|
+
* ```
|
|
245
|
+
*
|
|
246
|
+
* @type {State}
|
|
247
|
+
*/
|
|
248
|
+
function cdataEnd(code) {
|
|
249
|
+
if (code === 62) return end(code);
|
|
250
|
+
if (code === 93) {
|
|
251
|
+
effects.consume(code);
|
|
252
|
+
return cdataEnd;
|
|
253
|
+
}
|
|
254
|
+
return cdata(code);
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* In declaration.
|
|
258
|
+
*
|
|
259
|
+
* ```markdown
|
|
260
|
+
* > | a <!b> c
|
|
261
|
+
* ^
|
|
262
|
+
* ```
|
|
263
|
+
*
|
|
264
|
+
* @type {State}
|
|
265
|
+
*/
|
|
266
|
+
function declaration(code) {
|
|
267
|
+
if (code === null || code === 62) return end(code);
|
|
268
|
+
if (markdownLineEnding(code)) {
|
|
269
|
+
returnState = declaration;
|
|
270
|
+
return lineEndingBefore(code);
|
|
271
|
+
}
|
|
272
|
+
effects.consume(code);
|
|
273
|
+
return declaration;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* In instruction.
|
|
277
|
+
*
|
|
278
|
+
* ```markdown
|
|
279
|
+
* > | a <?b?> c
|
|
280
|
+
* ^
|
|
281
|
+
* ```
|
|
282
|
+
*
|
|
283
|
+
* @type {State}
|
|
284
|
+
*/
|
|
285
|
+
function instruction(code) {
|
|
286
|
+
if (code === null) return nok(code);
|
|
287
|
+
if (code === 63) {
|
|
288
|
+
effects.consume(code);
|
|
289
|
+
return instructionClose;
|
|
290
|
+
}
|
|
291
|
+
if (markdownLineEnding(code)) {
|
|
292
|
+
returnState = instruction;
|
|
293
|
+
return lineEndingBefore(code);
|
|
294
|
+
}
|
|
295
|
+
effects.consume(code);
|
|
296
|
+
return instruction;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* In instruction, after `?`, at `>`.
|
|
300
|
+
*
|
|
301
|
+
* ```markdown
|
|
302
|
+
* > | a <?b?> c
|
|
303
|
+
* ^
|
|
304
|
+
* ```
|
|
305
|
+
*
|
|
306
|
+
* @type {State}
|
|
307
|
+
*/
|
|
308
|
+
function instructionClose(code) {
|
|
309
|
+
return code === 62 ? end(code) : instruction(code);
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* After `</`, in closing tag, at tag name.
|
|
313
|
+
*
|
|
314
|
+
* ```markdown
|
|
315
|
+
* > | a </b> c
|
|
316
|
+
* ^
|
|
317
|
+
* ```
|
|
318
|
+
*
|
|
319
|
+
* @type {State}
|
|
320
|
+
*/
|
|
321
|
+
function tagCloseStart(code) {
|
|
322
|
+
if (asciiAlpha(code)) {
|
|
323
|
+
effects.consume(code);
|
|
324
|
+
return tagClose;
|
|
325
|
+
}
|
|
326
|
+
return nok(code);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* After `</x`, in a tag name.
|
|
330
|
+
*
|
|
331
|
+
* ```markdown
|
|
332
|
+
* > | a </b> c
|
|
333
|
+
* ^
|
|
334
|
+
* ```
|
|
335
|
+
*
|
|
336
|
+
* @type {State}
|
|
337
|
+
*/
|
|
338
|
+
function tagClose(code) {
|
|
339
|
+
if (code === 45 || asciiAlphanumeric(code)) {
|
|
340
|
+
effects.consume(code);
|
|
341
|
+
return tagClose;
|
|
342
|
+
}
|
|
343
|
+
return tagCloseBetween(code);
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* In closing tag, after tag name.
|
|
347
|
+
*
|
|
348
|
+
* ```markdown
|
|
349
|
+
* > | a </b> c
|
|
350
|
+
* ^
|
|
351
|
+
* ```
|
|
352
|
+
*
|
|
353
|
+
* @type {State}
|
|
354
|
+
*/
|
|
355
|
+
function tagCloseBetween(code) {
|
|
356
|
+
if (markdownLineEnding(code)) {
|
|
357
|
+
returnState = tagCloseBetween;
|
|
358
|
+
return lineEndingBefore(code);
|
|
359
|
+
}
|
|
360
|
+
if (markdownSpace(code)) {
|
|
361
|
+
effects.consume(code);
|
|
362
|
+
return tagCloseBetween;
|
|
363
|
+
}
|
|
364
|
+
return end(code);
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* After `<x`, in opening tag name.
|
|
368
|
+
*
|
|
369
|
+
* ```markdown
|
|
370
|
+
* > | a <b> c
|
|
371
|
+
* ^
|
|
372
|
+
* ```
|
|
373
|
+
*
|
|
374
|
+
* @type {State}
|
|
375
|
+
*/
|
|
376
|
+
function tagOpen(code) {
|
|
377
|
+
if (code === 45 || asciiAlphanumeric(code)) {
|
|
378
|
+
effects.consume(code);
|
|
379
|
+
return tagOpen;
|
|
380
|
+
}
|
|
381
|
+
if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) return tagOpenBetween(code);
|
|
382
|
+
return nok(code);
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* In opening tag, after tag name.
|
|
386
|
+
*
|
|
387
|
+
* ```markdown
|
|
388
|
+
* > | a <b> c
|
|
389
|
+
* ^
|
|
390
|
+
* ```
|
|
391
|
+
*
|
|
392
|
+
* @type {State}
|
|
393
|
+
*/
|
|
394
|
+
function tagOpenBetween(code) {
|
|
395
|
+
if (code === 47) {
|
|
396
|
+
effects.consume(code);
|
|
397
|
+
return end;
|
|
398
|
+
}
|
|
399
|
+
if (code === 58 || code === 95 || asciiAlpha(code)) {
|
|
400
|
+
effects.consume(code);
|
|
401
|
+
return tagOpenAttributeName;
|
|
402
|
+
}
|
|
403
|
+
if (markdownLineEnding(code)) {
|
|
404
|
+
returnState = tagOpenBetween;
|
|
405
|
+
return lineEndingBefore(code);
|
|
406
|
+
}
|
|
407
|
+
if (markdownSpace(code)) {
|
|
408
|
+
effects.consume(code);
|
|
409
|
+
return tagOpenBetween;
|
|
410
|
+
}
|
|
411
|
+
return end(code);
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* In attribute name.
|
|
415
|
+
*
|
|
416
|
+
* ```markdown
|
|
417
|
+
* > | a <b c> d
|
|
418
|
+
* ^
|
|
419
|
+
* ```
|
|
420
|
+
*
|
|
421
|
+
* @type {State}
|
|
422
|
+
*/
|
|
423
|
+
function tagOpenAttributeName(code) {
|
|
424
|
+
if (code === 45 || code === 46 || code === 58 || code === 95 || asciiAlphanumeric(code)) {
|
|
425
|
+
effects.consume(code);
|
|
426
|
+
return tagOpenAttributeName;
|
|
427
|
+
}
|
|
428
|
+
return tagOpenAttributeNameAfter(code);
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* After attribute name, before initializer, the end of the tag, or
|
|
432
|
+
* whitespace.
|
|
433
|
+
*
|
|
434
|
+
* ```markdown
|
|
435
|
+
* > | a <b c> d
|
|
436
|
+
* ^
|
|
437
|
+
* ```
|
|
438
|
+
*
|
|
439
|
+
* @type {State}
|
|
440
|
+
*/
|
|
441
|
+
function tagOpenAttributeNameAfter(code) {
|
|
442
|
+
if (code === 61) {
|
|
443
|
+
effects.consume(code);
|
|
444
|
+
return tagOpenAttributeValueBefore;
|
|
445
|
+
}
|
|
446
|
+
if (markdownLineEnding(code)) {
|
|
447
|
+
returnState = tagOpenAttributeNameAfter;
|
|
448
|
+
return lineEndingBefore(code);
|
|
449
|
+
}
|
|
450
|
+
if (markdownSpace(code)) {
|
|
451
|
+
effects.consume(code);
|
|
452
|
+
return tagOpenAttributeNameAfter;
|
|
453
|
+
}
|
|
454
|
+
return tagOpenBetween(code);
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Before unquoted, double quoted, or single quoted attribute value, allowing
|
|
458
|
+
* whitespace.
|
|
459
|
+
*
|
|
460
|
+
* ```markdown
|
|
461
|
+
* > | a <b c=d> e
|
|
462
|
+
* ^
|
|
463
|
+
* ```
|
|
464
|
+
*
|
|
465
|
+
* @type {State}
|
|
466
|
+
*/
|
|
467
|
+
function tagOpenAttributeValueBefore(code) {
|
|
468
|
+
if (code === null || code === 60 || code === 61 || code === 62 || code === 96) return nok(code);
|
|
469
|
+
if (code === 34 || code === 39) {
|
|
470
|
+
effects.consume(code);
|
|
471
|
+
marker = code;
|
|
472
|
+
return tagOpenAttributeValueQuoted;
|
|
473
|
+
}
|
|
474
|
+
if (markdownLineEnding(code)) {
|
|
475
|
+
returnState = tagOpenAttributeValueBefore;
|
|
476
|
+
return lineEndingBefore(code);
|
|
477
|
+
}
|
|
478
|
+
if (markdownSpace(code)) {
|
|
479
|
+
effects.consume(code);
|
|
480
|
+
return tagOpenAttributeValueBefore;
|
|
481
|
+
}
|
|
482
|
+
effects.consume(code);
|
|
483
|
+
return tagOpenAttributeValueUnquoted;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* In double or single quoted attribute value.
|
|
487
|
+
*
|
|
488
|
+
* ```markdown
|
|
489
|
+
* > | a <b c="d"> e
|
|
490
|
+
* ^
|
|
491
|
+
* ```
|
|
492
|
+
*
|
|
493
|
+
* @type {State}
|
|
494
|
+
*/
|
|
495
|
+
function tagOpenAttributeValueQuoted(code) {
|
|
496
|
+
if (code === marker) {
|
|
497
|
+
effects.consume(code);
|
|
498
|
+
marker = void 0;
|
|
499
|
+
return tagOpenAttributeValueQuotedAfter;
|
|
500
|
+
}
|
|
501
|
+
if (code === null) return nok(code);
|
|
502
|
+
if (markdownLineEnding(code)) {
|
|
503
|
+
returnState = tagOpenAttributeValueQuoted;
|
|
504
|
+
return lineEndingBefore(code);
|
|
505
|
+
}
|
|
506
|
+
effects.consume(code);
|
|
507
|
+
return tagOpenAttributeValueQuoted;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* In unquoted attribute value.
|
|
511
|
+
*
|
|
512
|
+
* ```markdown
|
|
513
|
+
* > | a <b c=d> e
|
|
514
|
+
* ^
|
|
515
|
+
* ```
|
|
516
|
+
*
|
|
517
|
+
* @type {State}
|
|
518
|
+
*/
|
|
519
|
+
function tagOpenAttributeValueUnquoted(code) {
|
|
520
|
+
if (code === null || code === 34 || code === 39 || code === 60 || code === 61 || code === 96) return nok(code);
|
|
521
|
+
if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) return tagOpenBetween(code);
|
|
522
|
+
effects.consume(code);
|
|
523
|
+
return tagOpenAttributeValueUnquoted;
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* After double or single quoted attribute value, before whitespace or the end
|
|
527
|
+
* of the tag.
|
|
528
|
+
*
|
|
529
|
+
* ```markdown
|
|
530
|
+
* > | a <b c="d"> e
|
|
531
|
+
* ^
|
|
532
|
+
* ```
|
|
533
|
+
*
|
|
534
|
+
* @type {State}
|
|
535
|
+
*/
|
|
536
|
+
function tagOpenAttributeValueQuotedAfter(code) {
|
|
537
|
+
if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) return tagOpenBetween(code);
|
|
538
|
+
return nok(code);
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* In certain circumstances of a tag where only an `>` is allowed.
|
|
542
|
+
*
|
|
543
|
+
* ```markdown
|
|
544
|
+
* > | a <b c="d"> e
|
|
545
|
+
* ^
|
|
546
|
+
* ```
|
|
547
|
+
*
|
|
548
|
+
* @type {State}
|
|
549
|
+
*/
|
|
550
|
+
function end(code) {
|
|
551
|
+
if (code === 62) {
|
|
552
|
+
effects.consume(code);
|
|
553
|
+
effects.exit("htmlTextData");
|
|
554
|
+
effects.exit("htmlText");
|
|
555
|
+
return ok;
|
|
556
|
+
}
|
|
557
|
+
return nok(code);
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* At eol.
|
|
561
|
+
*
|
|
562
|
+
* > 👉 **Note**: we can’t have blank lines in text, so no need to worry about
|
|
563
|
+
* > empty tokens.
|
|
564
|
+
*
|
|
565
|
+
* ```markdown
|
|
566
|
+
* > | a <!--a
|
|
567
|
+
* ^
|
|
568
|
+
* | b-->
|
|
569
|
+
* ```
|
|
570
|
+
*
|
|
571
|
+
* @type {State}
|
|
572
|
+
*/
|
|
573
|
+
function lineEndingBefore(code) {
|
|
574
|
+
effects.exit("htmlTextData");
|
|
575
|
+
effects.enter("lineEnding");
|
|
576
|
+
effects.consume(code);
|
|
577
|
+
effects.exit("lineEnding");
|
|
578
|
+
return lineEndingAfter;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* After eol, at optional whitespace.
|
|
582
|
+
*
|
|
583
|
+
* > 👉 **Note**: we can’t have blank lines in text, so no need to worry about
|
|
584
|
+
* > empty tokens.
|
|
585
|
+
*
|
|
586
|
+
* ```markdown
|
|
587
|
+
* | a <!--a
|
|
588
|
+
* > | b-->
|
|
589
|
+
* ^
|
|
590
|
+
* ```
|
|
591
|
+
*
|
|
592
|
+
* @type {State}
|
|
593
|
+
*/
|
|
594
|
+
function lineEndingAfter(code) {
|
|
595
|
+
return markdownSpace(code) ? factorySpace(effects, lineEndingAfterPrefix, "linePrefix", self.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(code) : lineEndingAfterPrefix(code);
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* After eol, after optional whitespace.
|
|
599
|
+
*
|
|
600
|
+
* > 👉 **Note**: we can’t have blank lines in text, so no need to worry about
|
|
601
|
+
* > empty tokens.
|
|
602
|
+
*
|
|
603
|
+
* ```markdown
|
|
604
|
+
* | a <!--a
|
|
605
|
+
* > | b-->
|
|
606
|
+
* ^
|
|
607
|
+
* ```
|
|
608
|
+
*
|
|
609
|
+
* @type {State}
|
|
610
|
+
*/
|
|
611
|
+
function lineEndingAfterPrefix(code) {
|
|
612
|
+
effects.enter("htmlTextData");
|
|
613
|
+
return returnState(code);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
//#endregion
|
|
617
|
+
export { htmlText };
|