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,115 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_identity } from "../nodes/identity.mjs";
|
|
3
|
+
import { require_anchors } from "../doc/anchors.mjs";
|
|
4
|
+
import { require_stringifyComment } from "./stringifyComment.mjs";
|
|
5
|
+
import { require_stringifyString } from "./stringifyString.mjs";
|
|
6
|
+
//#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
|
|
7
|
+
var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8
|
+
var anchors = require_anchors();
|
|
9
|
+
var identity = require_identity();
|
|
10
|
+
var stringifyComment = require_stringifyComment();
|
|
11
|
+
var stringifyString = require_stringifyString();
|
|
12
|
+
function createStringifyContext(doc, options) {
|
|
13
|
+
const opt = Object.assign({
|
|
14
|
+
blockQuote: true,
|
|
15
|
+
commentString: stringifyComment.stringifyComment,
|
|
16
|
+
defaultKeyType: null,
|
|
17
|
+
defaultStringType: "PLAIN",
|
|
18
|
+
directives: null,
|
|
19
|
+
doubleQuotedAsJSON: false,
|
|
20
|
+
doubleQuotedMinMultiLineLength: 40,
|
|
21
|
+
falseStr: "false",
|
|
22
|
+
flowCollectionPadding: true,
|
|
23
|
+
indentSeq: true,
|
|
24
|
+
lineWidth: 80,
|
|
25
|
+
minContentWidth: 20,
|
|
26
|
+
nullStr: "null",
|
|
27
|
+
simpleKeys: false,
|
|
28
|
+
singleQuote: null,
|
|
29
|
+
trailingComma: false,
|
|
30
|
+
trueStr: "true",
|
|
31
|
+
verifyAliasOrder: true
|
|
32
|
+
}, doc.schema.toStringOptions, options);
|
|
33
|
+
let inFlow;
|
|
34
|
+
switch (opt.collectionStyle) {
|
|
35
|
+
case "block":
|
|
36
|
+
inFlow = false;
|
|
37
|
+
break;
|
|
38
|
+
case "flow":
|
|
39
|
+
inFlow = true;
|
|
40
|
+
break;
|
|
41
|
+
default: inFlow = null;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
anchors: /* @__PURE__ */ new Set(),
|
|
45
|
+
doc,
|
|
46
|
+
flowCollectionPadding: opt.flowCollectionPadding ? " " : "",
|
|
47
|
+
indent: "",
|
|
48
|
+
indentStep: typeof opt.indent === "number" ? " ".repeat(opt.indent) : " ",
|
|
49
|
+
inFlow,
|
|
50
|
+
options: opt
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function getTagObject(tags, item) {
|
|
54
|
+
if (item.tag) {
|
|
55
|
+
const match = tags.filter((t) => t.tag === item.tag);
|
|
56
|
+
if (match.length > 0) return match.find((t) => t.format === item.format) ?? match[0];
|
|
57
|
+
}
|
|
58
|
+
let tagObj = void 0;
|
|
59
|
+
let obj;
|
|
60
|
+
if (identity.isScalar(item)) {
|
|
61
|
+
obj = item.value;
|
|
62
|
+
let match = tags.filter((t) => t.identify?.(obj));
|
|
63
|
+
if (match.length > 1) {
|
|
64
|
+
const testMatch = match.filter((t) => t.test);
|
|
65
|
+
if (testMatch.length > 0) match = testMatch;
|
|
66
|
+
}
|
|
67
|
+
tagObj = match.find((t) => t.format === item.format) ?? match.find((t) => !t.format);
|
|
68
|
+
} else {
|
|
69
|
+
obj = item;
|
|
70
|
+
tagObj = tags.find((t) => t.nodeClass && obj instanceof t.nodeClass);
|
|
71
|
+
}
|
|
72
|
+
if (!tagObj) {
|
|
73
|
+
const name = obj?.constructor?.name ?? (obj === null ? "null" : typeof obj);
|
|
74
|
+
throw new Error(`Tag not resolved for ${name} value`);
|
|
75
|
+
}
|
|
76
|
+
return tagObj;
|
|
77
|
+
}
|
|
78
|
+
function stringifyProps(node, tagObj, { anchors: anchors$1, doc }) {
|
|
79
|
+
if (!doc.directives) return "";
|
|
80
|
+
const props = [];
|
|
81
|
+
const anchor = (identity.isScalar(node) || identity.isCollection(node)) && node.anchor;
|
|
82
|
+
if (anchor && anchors.anchorIsValid(anchor)) {
|
|
83
|
+
anchors$1.add(anchor);
|
|
84
|
+
props.push(`&${anchor}`);
|
|
85
|
+
}
|
|
86
|
+
const tag = node.tag ?? (tagObj.default ? null : tagObj.tag);
|
|
87
|
+
if (tag) props.push(doc.directives.tagString(tag));
|
|
88
|
+
return props.join(" ");
|
|
89
|
+
}
|
|
90
|
+
function stringify(item, ctx, onComment, onChompKeep) {
|
|
91
|
+
if (identity.isPair(item)) return item.toString(ctx, onComment, onChompKeep);
|
|
92
|
+
if (identity.isAlias(item)) {
|
|
93
|
+
if (ctx.doc.directives) return item.toString(ctx);
|
|
94
|
+
if (ctx.resolvedAliases?.has(item)) throw new TypeError(`Cannot stringify circular structure without alias nodes`);
|
|
95
|
+
else {
|
|
96
|
+
if (ctx.resolvedAliases) ctx.resolvedAliases.add(item);
|
|
97
|
+
else ctx.resolvedAliases = new Set([item]);
|
|
98
|
+
item = item.resolve(ctx.doc);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
let tagObj = void 0;
|
|
102
|
+
const node = identity.isNode(item) ? item : ctx.doc.createNode(item, { onTagObj: (o) => tagObj = o });
|
|
103
|
+
tagObj ?? (tagObj = getTagObject(ctx.doc.schema.tags, node));
|
|
104
|
+
const props = stringifyProps(node, tagObj, ctx);
|
|
105
|
+
if (props.length > 0) ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
|
|
106
|
+
const str = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : identity.isScalar(node) ? stringifyString.stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep);
|
|
107
|
+
if (!props) return str;
|
|
108
|
+
return identity.isScalar(node) || str[0] === "{" || str[0] === "[" ? `${props} ${str}` : `${props}\n${ctx.indent}${str}`;
|
|
109
|
+
}
|
|
110
|
+
exports.createStringifyContext = createStringifyContext;
|
|
111
|
+
exports.stringify = stringify;
|
|
112
|
+
}));
|
|
113
|
+
//#endregion
|
|
114
|
+
export default require_stringify();
|
|
115
|
+
export { require_stringify };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_identity } from "../nodes/identity.mjs";
|
|
3
|
+
import { require_stringifyComment } from "./stringifyComment.mjs";
|
|
4
|
+
import { require_stringify } from "./stringify.mjs";
|
|
5
|
+
//#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
6
|
+
var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
var identity = require_identity();
|
|
8
|
+
var stringify = require_stringify();
|
|
9
|
+
var stringifyComment = require_stringifyComment();
|
|
10
|
+
function stringifyCollection(collection, ctx, options) {
|
|
11
|
+
return (ctx.inFlow ?? collection.flow ? stringifyFlowCollection : stringifyBlockCollection)(collection, ctx, options);
|
|
12
|
+
}
|
|
13
|
+
function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, flowChars, itemIndent, onChompKeep, onComment }) {
|
|
14
|
+
const { indent, options: { commentString } } = ctx;
|
|
15
|
+
const itemCtx = Object.assign({}, ctx, {
|
|
16
|
+
indent: itemIndent,
|
|
17
|
+
type: null
|
|
18
|
+
});
|
|
19
|
+
let chompKeep = false;
|
|
20
|
+
const lines = [];
|
|
21
|
+
for (let i = 0; i < items.length; ++i) {
|
|
22
|
+
const item = items[i];
|
|
23
|
+
let comment = null;
|
|
24
|
+
if (identity.isNode(item)) {
|
|
25
|
+
if (!chompKeep && item.spaceBefore) lines.push("");
|
|
26
|
+
addCommentBefore(ctx, lines, item.commentBefore, chompKeep);
|
|
27
|
+
if (item.comment) comment = item.comment;
|
|
28
|
+
} else if (identity.isPair(item)) {
|
|
29
|
+
const ik = identity.isNode(item.key) ? item.key : null;
|
|
30
|
+
if (ik) {
|
|
31
|
+
if (!chompKeep && ik.spaceBefore) lines.push("");
|
|
32
|
+
addCommentBefore(ctx, lines, ik.commentBefore, chompKeep);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
chompKeep = false;
|
|
36
|
+
let str = stringify.stringify(item, itemCtx, () => comment = null, () => chompKeep = true);
|
|
37
|
+
if (comment) str += stringifyComment.lineComment(str, itemIndent, commentString(comment));
|
|
38
|
+
if (chompKeep && comment) chompKeep = false;
|
|
39
|
+
lines.push(blockItemPrefix + str);
|
|
40
|
+
}
|
|
41
|
+
let str;
|
|
42
|
+
if (lines.length === 0) str = flowChars.start + flowChars.end;
|
|
43
|
+
else {
|
|
44
|
+
str = lines[0];
|
|
45
|
+
for (let i = 1; i < lines.length; ++i) {
|
|
46
|
+
const line = lines[i];
|
|
47
|
+
str += line ? `\n${indent}${line}` : "\n";
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (comment) {
|
|
51
|
+
str += "\n" + stringifyComment.indentComment(commentString(comment), indent);
|
|
52
|
+
if (onComment) onComment();
|
|
53
|
+
} else if (chompKeep && onChompKeep) onChompKeep();
|
|
54
|
+
return str;
|
|
55
|
+
}
|
|
56
|
+
function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
|
|
57
|
+
const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx;
|
|
58
|
+
itemIndent += indentStep;
|
|
59
|
+
const itemCtx = Object.assign({}, ctx, {
|
|
60
|
+
indent: itemIndent,
|
|
61
|
+
inFlow: true,
|
|
62
|
+
type: null
|
|
63
|
+
});
|
|
64
|
+
let reqNewline = false;
|
|
65
|
+
let linesAtValue = 0;
|
|
66
|
+
const lines = [];
|
|
67
|
+
for (let i = 0; i < items.length; ++i) {
|
|
68
|
+
const item = items[i];
|
|
69
|
+
let comment = null;
|
|
70
|
+
if (identity.isNode(item)) {
|
|
71
|
+
if (item.spaceBefore) lines.push("");
|
|
72
|
+
addCommentBefore(ctx, lines, item.commentBefore, false);
|
|
73
|
+
if (item.comment) comment = item.comment;
|
|
74
|
+
} else if (identity.isPair(item)) {
|
|
75
|
+
const ik = identity.isNode(item.key) ? item.key : null;
|
|
76
|
+
if (ik) {
|
|
77
|
+
if (ik.spaceBefore) lines.push("");
|
|
78
|
+
addCommentBefore(ctx, lines, ik.commentBefore, false);
|
|
79
|
+
if (ik.comment) reqNewline = true;
|
|
80
|
+
}
|
|
81
|
+
const iv = identity.isNode(item.value) ? item.value : null;
|
|
82
|
+
if (iv) {
|
|
83
|
+
if (iv.comment) comment = iv.comment;
|
|
84
|
+
if (iv.commentBefore) reqNewline = true;
|
|
85
|
+
} else if (item.value == null && ik?.comment) comment = ik.comment;
|
|
86
|
+
}
|
|
87
|
+
if (comment) reqNewline = true;
|
|
88
|
+
let str = stringify.stringify(item, itemCtx, () => comment = null);
|
|
89
|
+
reqNewline || (reqNewline = lines.length > linesAtValue || str.includes("\n"));
|
|
90
|
+
if (i < items.length - 1) str += ",";
|
|
91
|
+
else if (ctx.options.trailingComma) {
|
|
92
|
+
if (ctx.options.lineWidth > 0) reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str.length + 2) > ctx.options.lineWidth);
|
|
93
|
+
if (reqNewline) str += ",";
|
|
94
|
+
}
|
|
95
|
+
if (comment) str += stringifyComment.lineComment(str, itemIndent, commentString(comment));
|
|
96
|
+
lines.push(str);
|
|
97
|
+
linesAtValue = lines.length;
|
|
98
|
+
}
|
|
99
|
+
const { start, end } = flowChars;
|
|
100
|
+
if (lines.length === 0) return start + end;
|
|
101
|
+
else {
|
|
102
|
+
if (!reqNewline) {
|
|
103
|
+
const len = lines.reduce((sum, line) => sum + line.length + 2, 2);
|
|
104
|
+
reqNewline = ctx.options.lineWidth > 0 && len > ctx.options.lineWidth;
|
|
105
|
+
}
|
|
106
|
+
if (reqNewline) {
|
|
107
|
+
let str = start;
|
|
108
|
+
for (const line of lines) str += line ? `\n${indentStep}${indent}${line}` : "\n";
|
|
109
|
+
return `${str}\n${indent}${end}`;
|
|
110
|
+
} else return `${start}${fcPadding}${lines.join(" ")}${fcPadding}${end}`;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
function addCommentBefore({ indent, options: { commentString } }, lines, comment, chompKeep) {
|
|
114
|
+
if (comment && chompKeep) comment = comment.replace(/^\n+/, "");
|
|
115
|
+
if (comment) {
|
|
116
|
+
const ic = stringifyComment.indentComment(commentString(comment), indent);
|
|
117
|
+
lines.push(ic.trimStart());
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.stringifyCollection = stringifyCollection;
|
|
121
|
+
}));
|
|
122
|
+
//#endregion
|
|
123
|
+
export default require_stringifyCollection();
|
|
124
|
+
export { require_stringifyCollection };
|
package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.mjs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
//#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
3
|
+
var require_stringifyComment = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
+
/**
|
|
5
|
+
* Stringifies a comment.
|
|
6
|
+
*
|
|
7
|
+
* Empty comment lines are left empty,
|
|
8
|
+
* lines consisting of a single space are replaced by `#`,
|
|
9
|
+
* and all other lines are prefixed with a `#`.
|
|
10
|
+
*/
|
|
11
|
+
const stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
12
|
+
function indentComment(comment, indent) {
|
|
13
|
+
if (/^\n+$/.test(comment)) return comment.substring(1);
|
|
14
|
+
return indent ? comment.replace(/^(?! *$)/gm, indent) : comment;
|
|
15
|
+
}
|
|
16
|
+
const lineComment = (str, indent, comment) => str.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment;
|
|
17
|
+
exports.indentComment = indentComment;
|
|
18
|
+
exports.lineComment = lineComment;
|
|
19
|
+
exports.stringifyComment = stringifyComment;
|
|
20
|
+
}));
|
|
21
|
+
//#endregion
|
|
22
|
+
export default require_stringifyComment();
|
|
23
|
+
export { require_stringifyComment };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_identity } from "../nodes/identity.mjs";
|
|
3
|
+
import { require_stringifyComment } from "./stringifyComment.mjs";
|
|
4
|
+
import { require_stringify } from "./stringify.mjs";
|
|
5
|
+
//#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
6
|
+
var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
var identity = require_identity();
|
|
8
|
+
var stringify = require_stringify();
|
|
9
|
+
var stringifyComment = require_stringifyComment();
|
|
10
|
+
function stringifyDocument(doc, options) {
|
|
11
|
+
const lines = [];
|
|
12
|
+
let hasDirectives = options.directives === true;
|
|
13
|
+
if (options.directives !== false && doc.directives) {
|
|
14
|
+
const dir = doc.directives.toString(doc);
|
|
15
|
+
if (dir) {
|
|
16
|
+
lines.push(dir);
|
|
17
|
+
hasDirectives = true;
|
|
18
|
+
} else if (doc.directives.docStart) hasDirectives = true;
|
|
19
|
+
}
|
|
20
|
+
if (hasDirectives) lines.push("---");
|
|
21
|
+
const ctx = stringify.createStringifyContext(doc, options);
|
|
22
|
+
const { commentString } = ctx.options;
|
|
23
|
+
if (doc.commentBefore) {
|
|
24
|
+
if (lines.length !== 1) lines.unshift("");
|
|
25
|
+
const cs = commentString(doc.commentBefore);
|
|
26
|
+
lines.unshift(stringifyComment.indentComment(cs, ""));
|
|
27
|
+
}
|
|
28
|
+
let chompKeep = false;
|
|
29
|
+
let contentComment = null;
|
|
30
|
+
if (doc.contents) {
|
|
31
|
+
if (identity.isNode(doc.contents)) {
|
|
32
|
+
if (doc.contents.spaceBefore && hasDirectives) lines.push("");
|
|
33
|
+
if (doc.contents.commentBefore) {
|
|
34
|
+
const cs = commentString(doc.contents.commentBefore);
|
|
35
|
+
lines.push(stringifyComment.indentComment(cs, ""));
|
|
36
|
+
}
|
|
37
|
+
ctx.forceBlockIndent = !!doc.comment;
|
|
38
|
+
contentComment = doc.contents.comment;
|
|
39
|
+
}
|
|
40
|
+
const onChompKeep = contentComment ? void 0 : () => chompKeep = true;
|
|
41
|
+
let body = stringify.stringify(doc.contents, ctx, () => contentComment = null, onChompKeep);
|
|
42
|
+
if (contentComment) body += stringifyComment.lineComment(body, "", commentString(contentComment));
|
|
43
|
+
if ((body[0] === "|" || body[0] === ">") && lines[lines.length - 1] === "---") lines[lines.length - 1] = `--- ${body}`;
|
|
44
|
+
else lines.push(body);
|
|
45
|
+
} else lines.push(stringify.stringify(doc.contents, ctx));
|
|
46
|
+
if (doc.directives?.docEnd) if (doc.comment) {
|
|
47
|
+
const cs = commentString(doc.comment);
|
|
48
|
+
if (cs.includes("\n")) {
|
|
49
|
+
lines.push("...");
|
|
50
|
+
lines.push(stringifyComment.indentComment(cs, ""));
|
|
51
|
+
} else lines.push(`... ${cs}`);
|
|
52
|
+
} else lines.push("...");
|
|
53
|
+
else {
|
|
54
|
+
let dc = doc.comment;
|
|
55
|
+
if (dc && chompKeep) dc = dc.replace(/^\n+/, "");
|
|
56
|
+
if (dc) {
|
|
57
|
+
if ((!chompKeep || contentComment) && lines[lines.length - 1] !== "") lines.push("");
|
|
58
|
+
lines.push(stringifyComment.indentComment(commentString(dc), ""));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return lines.join("\n") + "\n";
|
|
62
|
+
}
|
|
63
|
+
exports.stringifyDocument = stringifyDocument;
|
|
64
|
+
}));
|
|
65
|
+
//#endregion
|
|
66
|
+
export default require_stringifyDocument();
|
|
67
|
+
export { require_stringifyDocument };
|
package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
//#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
3
|
+
var require_stringifyNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
+
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
5
|
+
if (typeof value === "bigint") return String(value);
|
|
6
|
+
const num = typeof value === "number" ? value : Number(value);
|
|
7
|
+
if (!isFinite(num)) return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
|
|
8
|
+
let n = Object.is(value, -0) ? "-0" : JSON.stringify(value);
|
|
9
|
+
if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n)) {
|
|
10
|
+
let i = n.indexOf(".");
|
|
11
|
+
if (i < 0) {
|
|
12
|
+
i = n.length;
|
|
13
|
+
n += ".";
|
|
14
|
+
}
|
|
15
|
+
let d = minFractionDigits - (n.length - i - 1);
|
|
16
|
+
while (d-- > 0) n += "0";
|
|
17
|
+
}
|
|
18
|
+
return n;
|
|
19
|
+
}
|
|
20
|
+
exports.stringifyNumber = stringifyNumber;
|
|
21
|
+
}));
|
|
22
|
+
//#endregion
|
|
23
|
+
export default require_stringifyNumber();
|
|
24
|
+
export { require_stringifyNumber };
|
package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.mjs
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_identity } from "../nodes/identity.mjs";
|
|
3
|
+
import { require_Scalar } from "../nodes/Scalar.mjs";
|
|
4
|
+
import { require_stringifyComment } from "./stringifyComment.mjs";
|
|
5
|
+
import { require_stringify } from "./stringify.mjs";
|
|
6
|
+
//#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
7
|
+
var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8
|
+
var identity = require_identity();
|
|
9
|
+
var Scalar = require_Scalar();
|
|
10
|
+
var stringify = require_stringify();
|
|
11
|
+
var stringifyComment = require_stringifyComment();
|
|
12
|
+
function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
|
13
|
+
const { allNullValues, doc, indent, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
|
14
|
+
let keyComment = identity.isNode(key) && key.comment || null;
|
|
15
|
+
if (simpleKeys) {
|
|
16
|
+
if (keyComment) throw new Error("With simple keys, key nodes cannot have comments");
|
|
17
|
+
if (identity.isCollection(key) || !identity.isNode(key) && typeof key === "object") throw new Error("With simple keys, collection cannot be used as a key value");
|
|
18
|
+
}
|
|
19
|
+
let explicitKey = !simpleKeys && (!key || keyComment && value == null && !ctx.inFlow || identity.isCollection(key) || (identity.isScalar(key) ? key.type === Scalar.Scalar.BLOCK_FOLDED || key.type === Scalar.Scalar.BLOCK_LITERAL : typeof key === "object"));
|
|
20
|
+
ctx = Object.assign({}, ctx, {
|
|
21
|
+
allNullValues: false,
|
|
22
|
+
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
|
23
|
+
indent: indent + indentStep
|
|
24
|
+
});
|
|
25
|
+
let keyCommentDone = false;
|
|
26
|
+
let chompKeep = false;
|
|
27
|
+
let str = stringify.stringify(key, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
|
28
|
+
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
|
29
|
+
if (simpleKeys) throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
30
|
+
explicitKey = true;
|
|
31
|
+
}
|
|
32
|
+
if (ctx.inFlow) {
|
|
33
|
+
if (allNullValues || value == null) {
|
|
34
|
+
if (keyCommentDone && onComment) onComment();
|
|
35
|
+
return str === "" ? "?" : explicitKey ? `? ${str}` : str;
|
|
36
|
+
}
|
|
37
|
+
} else if (allNullValues && !simpleKeys || value == null && explicitKey) {
|
|
38
|
+
str = `? ${str}`;
|
|
39
|
+
if (keyComment && !keyCommentDone) str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
|
|
40
|
+
else if (chompKeep && onChompKeep) onChompKeep();
|
|
41
|
+
return str;
|
|
42
|
+
}
|
|
43
|
+
if (keyCommentDone) keyComment = null;
|
|
44
|
+
if (explicitKey) {
|
|
45
|
+
if (keyComment) str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
|
|
46
|
+
str = `? ${str}\n${indent}:`;
|
|
47
|
+
} else {
|
|
48
|
+
str = `${str}:`;
|
|
49
|
+
if (keyComment) str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
|
|
50
|
+
}
|
|
51
|
+
let vsb, vcb, valueComment;
|
|
52
|
+
if (identity.isNode(value)) {
|
|
53
|
+
vsb = !!value.spaceBefore;
|
|
54
|
+
vcb = value.commentBefore;
|
|
55
|
+
valueComment = value.comment;
|
|
56
|
+
} else {
|
|
57
|
+
vsb = false;
|
|
58
|
+
vcb = null;
|
|
59
|
+
valueComment = null;
|
|
60
|
+
if (value && typeof value === "object") value = doc.createNode(value);
|
|
61
|
+
}
|
|
62
|
+
ctx.implicitKey = false;
|
|
63
|
+
if (!explicitKey && !keyComment && identity.isScalar(value)) ctx.indentAtStart = str.length + 1;
|
|
64
|
+
chompKeep = false;
|
|
65
|
+
if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && identity.isSeq(value) && !value.flow && !value.tag && !value.anchor) ctx.indent = ctx.indent.substring(2);
|
|
66
|
+
let valueCommentDone = false;
|
|
67
|
+
const valueStr = stringify.stringify(value, ctx, () => valueCommentDone = true, () => chompKeep = true);
|
|
68
|
+
let ws = " ";
|
|
69
|
+
if (keyComment || vsb || vcb) {
|
|
70
|
+
ws = vsb ? "\n" : "";
|
|
71
|
+
if (vcb) {
|
|
72
|
+
const cs = commentString(vcb);
|
|
73
|
+
ws += `\n${stringifyComment.indentComment(cs, ctx.indent)}`;
|
|
74
|
+
}
|
|
75
|
+
if (valueStr === "" && !ctx.inFlow) {
|
|
76
|
+
if (ws === "\n" && valueComment) ws = "\n\n";
|
|
77
|
+
} else ws += `\n${ctx.indent}`;
|
|
78
|
+
} else if (!explicitKey && identity.isCollection(value)) {
|
|
79
|
+
const vs0 = valueStr[0];
|
|
80
|
+
const nl0 = valueStr.indexOf("\n");
|
|
81
|
+
const hasNewline = nl0 !== -1;
|
|
82
|
+
const flow = ctx.inFlow ?? value.flow ?? value.items.length === 0;
|
|
83
|
+
if (hasNewline || !flow) {
|
|
84
|
+
let hasPropsLine = false;
|
|
85
|
+
if (hasNewline && (vs0 === "&" || vs0 === "!")) {
|
|
86
|
+
let sp0 = valueStr.indexOf(" ");
|
|
87
|
+
if (vs0 === "&" && sp0 !== -1 && sp0 < nl0 && valueStr[sp0 + 1] === "!") sp0 = valueStr.indexOf(" ", sp0 + 1);
|
|
88
|
+
if (sp0 === -1 || nl0 < sp0) hasPropsLine = true;
|
|
89
|
+
}
|
|
90
|
+
if (!hasPropsLine) ws = `\n${ctx.indent}`;
|
|
91
|
+
}
|
|
92
|
+
} else if (valueStr === "" || valueStr[0] === "\n") ws = "";
|
|
93
|
+
str += ws + valueStr;
|
|
94
|
+
if (ctx.inFlow) {
|
|
95
|
+
if (valueCommentDone && onComment) onComment();
|
|
96
|
+
} else if (valueComment && !valueCommentDone) str += stringifyComment.lineComment(str, ctx.indent, commentString(valueComment));
|
|
97
|
+
else if (chompKeep && onChompKeep) onChompKeep();
|
|
98
|
+
return str;
|
|
99
|
+
}
|
|
100
|
+
exports.stringifyPair = stringifyPair;
|
|
101
|
+
}));
|
|
102
|
+
//#endregion
|
|
103
|
+
export default require_stringifyPair();
|
|
104
|
+
export { require_stringifyPair };
|