@node-core/utils 7.2.0 → 7.2.2
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/lib/ci/build-types/normal_build.js +1 -1
- package/lib/ci/build-types/pr_build.js +11 -1
- package/lib/ci/build-types/test_build.js +3 -3
- package/lib/ci/build-types/test_run.js +1 -1
- package/lib/ci/failure_aggregator.js +2 -2
- package/lib/ci/run_ci.js +3 -2
- package/lib/cli.js +9 -12
- package/lib/figures.js +6 -6
- package/lib/links.js +27 -15
- package/lib/pr_checker.js +45 -34
- package/lib/queries/PR.gql +1 -0
- package/lib/update-v8/backport.js +3 -4
- package/lib/verbosity.js +2 -4
- package/node_modules/@listr2/prompt-adapter-inquirer/README.md +15 -0
- package/node_modules/@listr2/prompt-adapter-inquirer/dist/index.d.mts +21 -0
- package/node_modules/@listr2/prompt-adapter-inquirer/dist/index.mjs +46 -0
- package/node_modules/@listr2/prompt-adapter-inquirer/node_modules/@inquirer/type/LICENSE +22 -0
- package/node_modules/@listr2/prompt-adapter-inquirer/node_modules/@inquirer/type/dist/index.d.ts +2 -0
- package/node_modules/@listr2/prompt-adapter-inquirer/node_modules/@inquirer/type/dist/index.js +2 -0
- package/node_modules/@listr2/prompt-adapter-inquirer/node_modules/@inquirer/type/dist/inquirer.d.ts +35 -0
- package/node_modules/@listr2/prompt-adapter-inquirer/node_modules/@inquirer/type/dist/utils.d.ts +34 -0
- package/node_modules/@listr2/prompt-adapter-inquirer/node_modules/@inquirer/type/dist/utils.js +2 -0
- package/node_modules/@listr2/prompt-adapter-inquirer/node_modules/@inquirer/type/package.json +88 -0
- package/node_modules/@listr2/prompt-adapter-inquirer/package.json +85 -0
- package/node_modules/ansi-escapes/base.d.ts +307 -0
- package/node_modules/ansi-escapes/base.js +202 -0
- package/node_modules/ansi-escapes/package.json +70 -0
- package/node_modules/ansi-escapes/readme.md +296 -0
- package/node_modules/ansi-regex/index.js +9 -4
- package/node_modules/ansi-regex/package.json +1 -1
- package/node_modules/ansi-regex/readme.md +6 -0
- package/node_modules/ansi-styles/index.d.ts +12 -12
- package/node_modules/ansi-styles/index.js +3 -3
- package/node_modules/ansi-styles/package.json +4 -4
- package/node_modules/cli-truncate/index.d.ts +3 -3
- package/node_modules/cli-truncate/index.js +40 -14
- package/node_modules/cli-truncate/node_modules/string-width/index.js +133 -15
- package/node_modules/cli-truncate/node_modules/string-width/package.json +4 -4
- package/node_modules/cli-truncate/node_modules/string-width/readme.md +1 -1
- package/node_modules/cli-truncate/package.json +7 -7
- package/node_modules/cli-truncate/readme.md +2 -3
- package/node_modules/ghauth/.github/dependabot.yml +11 -3
- package/node_modules/ghauth/.github/workflows/depsound.yml +33 -0
- package/node_modules/ghauth/.github/workflows/test-and-release.yml +4 -4
- package/node_modules/ghauth/CHANGELOG.md +60 -0
- package/node_modules/ghauth/package.json +30 -6
- package/node_modules/htmlparser2/README.md +112 -26
- package/node_modules/htmlparser2/dist/Parser.d.ts +257 -0
- package/node_modules/htmlparser2/dist/Parser.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/Parser.js +644 -0
- package/node_modules/htmlparser2/dist/Parser.js.map +1 -0
- package/node_modules/htmlparser2/dist/Tokenizer.d.ts +194 -0
- package/node_modules/htmlparser2/dist/Tokenizer.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/Tokenizer.js +1056 -0
- package/node_modules/htmlparser2/dist/Tokenizer.js.map +1 -0
- package/node_modules/htmlparser2/dist/WebWritableStream.d.ts +24 -0
- package/node_modules/htmlparser2/dist/WebWritableStream.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/WebWritableStream.js +44 -0
- package/node_modules/htmlparser2/dist/WebWritableStream.js.map +1 -0
- package/node_modules/htmlparser2/dist/WritableStream.d.ts +14 -0
- package/node_modules/htmlparser2/dist/WritableStream.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/WritableStream.js +32 -0
- package/node_modules/htmlparser2/dist/WritableStream.js.map +1 -0
- package/node_modules/htmlparser2/dist/index.d.ts +34 -0
- package/node_modules/htmlparser2/dist/index.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/index.js +46 -0
- package/node_modules/htmlparser2/dist/index.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/dom-serializer/LICENSE +7 -0
- package/node_modules/htmlparser2/node_modules/dom-serializer/README.md +115 -0
- package/node_modules/htmlparser2/node_modules/dom-serializer/dist/foreign-names.d.ts +11 -0
- package/node_modules/htmlparser2/node_modules/dom-serializer/dist/foreign-names.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/dom-serializer/dist/foreign-names.js +15 -0
- package/node_modules/htmlparser2/node_modules/dom-serializer/dist/foreign-names.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/dom-serializer/dist/index.d.ts +72 -0
- package/node_modules/htmlparser2/node_modules/dom-serializer/dist/index.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/dom-serializer/dist/index.js +173 -0
- package/node_modules/htmlparser2/node_modules/dom-serializer/dist/index.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/dom-serializer/package.json +69 -0
- package/node_modules/htmlparser2/node_modules/dom-serializer/src/foreign-names.ts +19 -0
- package/node_modules/htmlparser2/node_modules/dom-serializer/src/index.ts +315 -0
- package/node_modules/htmlparser2/node_modules/domelementtype/dist/index.d.ts +48 -0
- package/node_modules/htmlparser2/node_modules/domelementtype/dist/index.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/domelementtype/dist/index.js +60 -0
- package/node_modules/htmlparser2/node_modules/domelementtype/package.json +59 -0
- package/node_modules/htmlparser2/node_modules/domhandler/dist/index.d.ts +79 -0
- package/node_modules/htmlparser2/node_modules/domhandler/dist/index.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/domhandler/dist/index.js +155 -0
- package/node_modules/htmlparser2/node_modules/domhandler/dist/node.d.ts +264 -0
- package/node_modules/htmlparser2/node_modules/domhandler/dist/node.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/domhandler/dist/node.js +359 -0
- package/node_modules/htmlparser2/node_modules/domhandler/package.json +65 -0
- package/node_modules/htmlparser2/node_modules/domhandler/readme.md +86 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/feeds.d.ts +71 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/feeds.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/feeds.js +180 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/feeds.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/helpers.d.ts +59 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/helpers.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/helpers.js +136 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/helpers.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/index.d.ts +8 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/index.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/index.js +8 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/index.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/legacy.d.ts +79 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/legacy.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/legacy.js +152 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/legacy.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/manipulation.d.ts +49 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/manipulation.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/manipulation.js +138 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/manipulation.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/querying.d.ts +54 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/querying.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/querying.js +129 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/querying.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/stringify.d.ts +46 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/stringify.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/stringify.js +81 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/stringify.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/traversal.d.ts +74 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/traversal.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/traversal.js +105 -0
- package/node_modules/htmlparser2/node_modules/domutils/dist/traversal.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/domutils/package.json +69 -0
- package/node_modules/htmlparser2/node_modules/domutils/readme.md +25 -0
- package/node_modules/htmlparser2/node_modules/domutils/src/__snapshots__/feeds.spec.ts.snap +103 -0
- package/node_modules/htmlparser2/node_modules/domutils/src/feeds.ts +301 -0
- package/node_modules/htmlparser2/node_modules/domutils/src/helpers.ts +154 -0
- package/node_modules/htmlparser2/node_modules/domutils/src/index.ts +7 -0
- package/node_modules/htmlparser2/node_modules/domutils/src/legacy.ts +224 -0
- package/node_modules/htmlparser2/node_modules/domutils/src/manipulation.ts +156 -0
- package/node_modules/htmlparser2/node_modules/domutils/src/querying.ts +172 -0
- package/node_modules/htmlparser2/node_modules/domutils/src/stringify.ts +90 -0
- package/node_modules/htmlparser2/node_modules/domutils/src/traversal.ts +132 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/decode-codepoint.d.ts +8 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/decode-codepoint.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/decode-codepoint.js +46 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/decode-codepoint.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/decode.d.ts +194 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/decode.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/decode.js +544 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/decode.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/encode.d.ts +24 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/encode.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/encode.js +90 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/encode.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/escape.d.ts +48 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/escape.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/escape.js +132 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/escape.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-html.d.ts +3 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-html.js +5 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-html.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-xml.d.ts +3 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-xml.js +5 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-xml.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/generated/encode-html.d.ts +5 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/generated/encode-html.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/generated/encode-html.js +12 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/generated/encode-html.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/index.d.ts +89 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/index.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/index.js +91 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/index.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/internal/bin-trie-flags.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/internal/decode-shared.d.ts +7 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/internal/decode-shared.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/internal/decode-shared.js +17 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/internal/decode-shared.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/internal/encode-shared.d.ts +33 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/internal/encode-shared.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/internal/encode-shared.js +93 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/internal/encode-shared.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/package.json +25 -62
- package/node_modules/htmlparser2/node_modules/entities/readme.md +4 -16
- package/node_modules/htmlparser2/node_modules/entities/src/decode-codepoint.ts +1 -32
- package/node_modules/htmlparser2/node_modules/entities/src/decode.ts +12 -26
- package/node_modules/htmlparser2/node_modules/entities/src/encode.ts +2 -0
- package/node_modules/htmlparser2/node_modules/entities/src/escape.ts +11 -12
- package/node_modules/htmlparser2/node_modules/entities/src/generated/decode-data-html.ts +1 -0
- package/node_modules/htmlparser2/node_modules/entities/src/generated/decode-data-xml.ts +1 -0
- package/node_modules/htmlparser2/node_modules/entities/src/generated/encode-html.ts +2 -1
- package/node_modules/htmlparser2/node_modules/entities/src/index.ts +8 -33
- package/node_modules/htmlparser2/node_modules/entities/src/internal/decode-shared.ts +3 -15
- package/node_modules/htmlparser2/node_modules/entities/src/internal/encode-shared.ts +4 -2
- package/node_modules/htmlparser2/package.json +34 -61
- package/node_modules/htmlparser2/src/Parser.ts +260 -100
- package/node_modules/htmlparser2/src/Tokenizer.ts +438 -165
- package/node_modules/htmlparser2/src/WebWritableStream.ts +47 -0
- package/node_modules/htmlparser2/src/WritableStream.ts +1 -2
- package/node_modules/htmlparser2/src/index.ts +14 -43
- package/node_modules/js-yaml/README.md +20 -187
- package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs +1008 -946
- package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs.map +1 -1
- package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js +29 -23
- package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.cjs.js +1043 -583
- package/node_modules/js-yaml/dist/js-yaml.cjs.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.d.ts +877 -133
- package/node_modules/js-yaml/dist/js-yaml.mjs +995 -556
- package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
- package/node_modules/js-yaml/package.json +8 -7
- package/node_modules/listr2/dist/index.d.mts +1558 -0
- package/node_modules/listr2/dist/index.mjs +2230 -0
- package/node_modules/listr2/node_modules/string-width/index.js +207 -0
- package/node_modules/listr2/node_modules/string-width/package.json +65 -0
- package/node_modules/listr2/node_modules/string-width/readme.md +66 -0
- package/node_modules/listr2/node_modules/wrap-ansi/index.d.ts +1 -1
- package/node_modules/listr2/node_modules/wrap-ansi/index.js +544 -116
- package/node_modules/listr2/node_modules/wrap-ansi/package.json +10 -13
- package/node_modules/listr2/node_modules/wrap-ansi/readme.md +2 -0
- package/node_modules/listr2/package.json +16 -19
- package/node_modules/log-update/index.d.ts +64 -1
- package/node_modules/log-update/index.js +268 -18
- package/node_modules/log-update/node_modules/string-width/index.d.ts +39 -0
- package/node_modules/log-update/node_modules/string-width/index.js +207 -0
- package/node_modules/log-update/node_modules/string-width/package.json +65 -0
- package/node_modules/log-update/node_modules/string-width/readme.md +66 -0
- package/node_modules/log-update/node_modules/wrap-ansi/index.d.ts +1 -1
- package/node_modules/log-update/node_modules/wrap-ansi/index.js +544 -116
- package/node_modules/log-update/node_modules/wrap-ansi/package.json +10 -13
- package/node_modules/log-update/node_modules/wrap-ansi/readme.md +2 -0
- package/node_modules/log-update/package.json +14 -12
- package/node_modules/log-update/readme.md +61 -0
- package/node_modules/slice-ansi/index.d.ts +2 -2
- package/node_modules/slice-ansi/index.js +260 -112
- package/node_modules/slice-ansi/package.json +10 -9
- package/node_modules/slice-ansi/readme.md +3 -2
- package/node_modules/slice-ansi/tokenize-ansi.js +752 -0
- package/node_modules/smol-toml/README.md +205 -191
- package/node_modules/smol-toml/dist/date.d.ts +0 -1
- package/node_modules/smol-toml/dist/date.js +0 -1
- package/node_modules/smol-toml/dist/error.d.ts +0 -1
- package/node_modules/smol-toml/dist/error.js +0 -1
- package/node_modules/smol-toml/dist/extract.js +32 -65
- package/node_modules/smol-toml/dist/index.cjs +302 -288
- package/node_modules/smol-toml/dist/index.d.ts +0 -1
- package/node_modules/smol-toml/dist/index.js +0 -1
- package/node_modules/smol-toml/dist/parse.d.ts +1 -3
- package/node_modules/smol-toml/dist/parse.js +22 -21
- package/node_modules/smol-toml/dist/primitive.js +75 -76
- package/node_modules/smol-toml/dist/stringify.d.ts +0 -1
- package/node_modules/smol-toml/dist/stringify.js +43 -30
- package/node_modules/smol-toml/dist/struct.js +90 -93
- package/node_modules/smol-toml/dist/util.d.ts +1 -1
- package/node_modules/smol-toml/dist/util.js +36 -39
- package/node_modules/smol-toml/package.json +6 -6
- package/node_modules/strip-ansi/index.js +5 -0
- package/node_modules/strip-ansi/package.json +5 -5
- package/node_modules/yocto-spinner/index.d.ts +162 -0
- package/node_modules/yocto-spinner/index.js +432 -0
- package/node_modules/yocto-spinner/package.json +64 -0
- package/node_modules/yocto-spinner/readme.md +237 -0
- package/package.json +6 -8
- package/node_modules/@listr2/prompt-adapter-enquirer/README.md +0 -15
- package/node_modules/@listr2/prompt-adapter-enquirer/dist/index.cjs +0 -127
- package/node_modules/@listr2/prompt-adapter-enquirer/dist/index.d.cts +0 -152
- package/node_modules/@listr2/prompt-adapter-enquirer/dist/index.d.ts +0 -152
- package/node_modules/@listr2/prompt-adapter-enquirer/dist/index.js +0 -92
- package/node_modules/@listr2/prompt-adapter-enquirer/package.json +0 -80
- package/node_modules/boolbase/README.md +0 -10
- package/node_modules/boolbase/index.js +0 -8
- package/node_modules/boolbase/package.json +0 -23
- package/node_modules/chalk/package.json +0 -92
- package/node_modules/chalk/readme.md +0 -331
- package/node_modules/chalk/source/index.d.ts +0 -437
- package/node_modules/chalk/source/index.js +0 -261
- package/node_modules/chalk/source/utilities.js +0 -33
- package/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -299
- package/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -261
- package/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- package/node_modules/chalk/source/vendor/supports-color/browser.js +0 -32
- package/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- package/node_modules/chalk/source/vendor/supports-color/index.js +0 -206
- package/node_modules/cheerio/LICENSE +0 -21
- package/node_modules/cheerio/Readme.md +0 -229
- package/node_modules/cheerio/dist/browser/api/attributes.d.ts +0 -385
- package/node_modules/cheerio/dist/browser/api/attributes.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/api/attributes.js +0 -636
- package/node_modules/cheerio/dist/browser/api/attributes.js.map +0 -1
- package/node_modules/cheerio/dist/browser/api/css.d.ts +0 -42
- package/node_modules/cheerio/dist/browser/api/css.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/api/css.js +0 -116
- package/node_modules/cheerio/dist/browser/api/css.js.map +0 -1
- package/node_modules/cheerio/dist/browser/api/extract.d.ts +0 -27
- package/node_modules/cheerio/dist/browser/api/extract.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/api/extract.js +0 -42
- package/node_modules/cheerio/dist/browser/api/extract.js.map +0 -1
- package/node_modules/cheerio/dist/browser/api/forms.d.ts +0 -36
- package/node_modules/cheerio/dist/browser/api/forms.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/api/forms.js +0 -81
- package/node_modules/cheerio/dist/browser/api/forms.js.map +0 -1
- package/node_modules/cheerio/dist/browser/api/manipulation.d.ts +0 -528
- package/node_modules/cheerio/dist/browser/api/manipulation.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/api/manipulation.js +0 -831
- package/node_modules/cheerio/dist/browser/api/manipulation.js.map +0 -1
- package/node_modules/cheerio/dist/browser/api/traversing.d.ts +0 -657
- package/node_modules/cheerio/dist/browser/api/traversing.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/api/traversing.js +0 -857
- package/node_modules/cheerio/dist/browser/api/traversing.js.map +0 -1
- package/node_modules/cheerio/dist/browser/cheerio.d.ts +0 -85
- package/node_modules/cheerio/dist/browser/cheerio.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/cheerio.js +0 -58
- package/node_modules/cheerio/dist/browser/cheerio.js.map +0 -1
- package/node_modules/cheerio/dist/browser/index-browser.d.mts.map +0 -1
- package/node_modules/cheerio/dist/browser/index-browser.mjs.map +0 -1
- package/node_modules/cheerio/dist/browser/index.d.ts +0 -5
- package/node_modules/cheerio/dist/browser/index.js +0 -3
- package/node_modules/cheerio/dist/browser/load-parse.d.ts +0 -20
- package/node_modules/cheerio/dist/browser/load-parse.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/load-parse.js +0 -28
- package/node_modules/cheerio/dist/browser/load-parse.js.map +0 -1
- package/node_modules/cheerio/dist/browser/load.d.ts +0 -91
- package/node_modules/cheerio/dist/browser/load.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/load.js +0 -129
- package/node_modules/cheerio/dist/browser/load.js.map +0 -1
- package/node_modules/cheerio/dist/browser/options.d.ts +0 -98
- package/node_modules/cheerio/dist/browser/options.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/options.js +0 -34
- package/node_modules/cheerio/dist/browser/options.js.map +0 -1
- package/node_modules/cheerio/dist/browser/package.json +0 -3
- package/node_modules/cheerio/dist/browser/parse.d.ts +0 -18
- package/node_modules/cheerio/dist/browser/parse.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/parse.js +0 -73
- package/node_modules/cheerio/dist/browser/parse.js.map +0 -1
- package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.d.ts +0 -20
- package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.js +0 -50
- package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.js.map +0 -1
- package/node_modules/cheerio/dist/browser/slim.d.ts +0 -25
- package/node_modules/cheerio/dist/browser/slim.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/slim.js +0 -22
- package/node_modules/cheerio/dist/browser/slim.js.map +0 -1
- package/node_modules/cheerio/dist/browser/static.d.ts +0 -112
- package/node_modules/cheerio/dist/browser/static.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/static.js +0 -204
- package/node_modules/cheerio/dist/browser/static.js.map +0 -1
- package/node_modules/cheerio/dist/browser/types.d.ts +0 -21
- package/node_modules/cheerio/dist/browser/types.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/types.js +0 -3
- package/node_modules/cheerio/dist/browser/types.js.map +0 -1
- package/node_modules/cheerio/dist/browser/utils.d.ts +0 -55
- package/node_modules/cheerio/dist/browser/utils.d.ts.map +0 -1
- package/node_modules/cheerio/dist/browser/utils.js +0 -84
- package/node_modules/cheerio/dist/browser/utils.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/api/attributes.d.ts +0 -385
- package/node_modules/cheerio/dist/commonjs/api/attributes.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/api/attributes.js +0 -647
- package/node_modules/cheerio/dist/commonjs/api/attributes.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/api/css.d.ts +0 -42
- package/node_modules/cheerio/dist/commonjs/api/css.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/api/css.js +0 -119
- package/node_modules/cheerio/dist/commonjs/api/css.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/api/extract.d.ts +0 -27
- package/node_modules/cheerio/dist/commonjs/api/extract.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/api/extract.js +0 -45
- package/node_modules/cheerio/dist/commonjs/api/extract.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/api/forms.d.ts +0 -36
- package/node_modules/cheerio/dist/commonjs/api/forms.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/api/forms.js +0 -85
- package/node_modules/cheerio/dist/commonjs/api/forms.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/api/manipulation.d.ts +0 -528
- package/node_modules/cheerio/dist/commonjs/api/manipulation.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/api/manipulation.js +0 -850
- package/node_modules/cheerio/dist/commonjs/api/manipulation.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/api/traversing.d.ts +0 -657
- package/node_modules/cheerio/dist/commonjs/api/traversing.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/api/traversing.js +0 -914
- package/node_modules/cheerio/dist/commonjs/api/traversing.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/cheerio.d.ts +0 -85
- package/node_modules/cheerio/dist/commonjs/cheerio.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/cheerio.js +0 -95
- package/node_modules/cheerio/dist/commonjs/cheerio.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/index.d.ts +0 -104
- package/node_modules/cheerio/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/index.js +0 -250
- package/node_modules/cheerio/dist/commonjs/index.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/load-parse.d.ts +0 -20
- package/node_modules/cheerio/dist/commonjs/load-parse.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/load-parse.js +0 -34
- package/node_modules/cheerio/dist/commonjs/load-parse.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/load.d.ts +0 -91
- package/node_modules/cheerio/dist/commonjs/load.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/load.js +0 -165
- package/node_modules/cheerio/dist/commonjs/load.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/options.d.ts +0 -98
- package/node_modules/cheerio/dist/commonjs/options.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/options.js +0 -37
- package/node_modules/cheerio/dist/commonjs/options.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/package.json +0 -3
- package/node_modules/cheerio/dist/commonjs/parse.d.ts +0 -18
- package/node_modules/cheerio/dist/commonjs/parse.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/parse.js +0 -77
- package/node_modules/cheerio/dist/commonjs/parse.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.d.ts +0 -20
- package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.js +0 -54
- package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/slim.d.ts +0 -25
- package/node_modules/cheerio/dist/commonjs/slim.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/slim.js +0 -30
- package/node_modules/cheerio/dist/commonjs/slim.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/static.d.ts +0 -112
- package/node_modules/cheerio/dist/commonjs/static.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/static.js +0 -214
- package/node_modules/cheerio/dist/commonjs/static.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/types.d.ts +0 -21
- package/node_modules/cheerio/dist/commonjs/types.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/types.js +0 -4
- package/node_modules/cheerio/dist/commonjs/types.js.map +0 -1
- package/node_modules/cheerio/dist/commonjs/utils.d.ts +0 -55
- package/node_modules/cheerio/dist/commonjs/utils.d.ts.map +0 -1
- package/node_modules/cheerio/dist/commonjs/utils.js +0 -91
- package/node_modules/cheerio/dist/commonjs/utils.js.map +0 -1
- package/node_modules/cheerio/dist/esm/api/attributes.d.ts +0 -385
- package/node_modules/cheerio/dist/esm/api/attributes.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/api/attributes.js +0 -636
- package/node_modules/cheerio/dist/esm/api/attributes.js.map +0 -1
- package/node_modules/cheerio/dist/esm/api/css.d.ts +0 -42
- package/node_modules/cheerio/dist/esm/api/css.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/api/css.js +0 -116
- package/node_modules/cheerio/dist/esm/api/css.js.map +0 -1
- package/node_modules/cheerio/dist/esm/api/extract.d.ts +0 -27
- package/node_modules/cheerio/dist/esm/api/extract.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/api/extract.js +0 -42
- package/node_modules/cheerio/dist/esm/api/extract.js.map +0 -1
- package/node_modules/cheerio/dist/esm/api/forms.d.ts +0 -36
- package/node_modules/cheerio/dist/esm/api/forms.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/api/forms.js +0 -81
- package/node_modules/cheerio/dist/esm/api/forms.js.map +0 -1
- package/node_modules/cheerio/dist/esm/api/manipulation.d.ts +0 -528
- package/node_modules/cheerio/dist/esm/api/manipulation.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/api/manipulation.js +0 -831
- package/node_modules/cheerio/dist/esm/api/manipulation.js.map +0 -1
- package/node_modules/cheerio/dist/esm/api/traversing.d.ts +0 -657
- package/node_modules/cheerio/dist/esm/api/traversing.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/api/traversing.js +0 -857
- package/node_modules/cheerio/dist/esm/api/traversing.js.map +0 -1
- package/node_modules/cheerio/dist/esm/cheerio.d.ts +0 -85
- package/node_modules/cheerio/dist/esm/cheerio.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/cheerio.js +0 -58
- package/node_modules/cheerio/dist/esm/cheerio.js.map +0 -1
- package/node_modules/cheerio/dist/esm/index.d.ts +0 -104
- package/node_modules/cheerio/dist/esm/index.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/index.js +0 -202
- package/node_modules/cheerio/dist/esm/index.js.map +0 -1
- package/node_modules/cheerio/dist/esm/load-parse.d.ts +0 -20
- package/node_modules/cheerio/dist/esm/load-parse.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/load-parse.js +0 -28
- package/node_modules/cheerio/dist/esm/load-parse.js.map +0 -1
- package/node_modules/cheerio/dist/esm/load.d.ts +0 -91
- package/node_modules/cheerio/dist/esm/load.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/load.js +0 -129
- package/node_modules/cheerio/dist/esm/load.js.map +0 -1
- package/node_modules/cheerio/dist/esm/options.d.ts +0 -98
- package/node_modules/cheerio/dist/esm/options.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/options.js +0 -34
- package/node_modules/cheerio/dist/esm/options.js.map +0 -1
- package/node_modules/cheerio/dist/esm/package.json +0 -3
- package/node_modules/cheerio/dist/esm/parse.d.ts +0 -18
- package/node_modules/cheerio/dist/esm/parse.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/parse.js +0 -73
- package/node_modules/cheerio/dist/esm/parse.js.map +0 -1
- package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.d.ts +0 -20
- package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.js +0 -50
- package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.js.map +0 -1
- package/node_modules/cheerio/dist/esm/slim.d.ts +0 -25
- package/node_modules/cheerio/dist/esm/slim.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/slim.js +0 -22
- package/node_modules/cheerio/dist/esm/slim.js.map +0 -1
- package/node_modules/cheerio/dist/esm/static.d.ts +0 -112
- package/node_modules/cheerio/dist/esm/static.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/static.js +0 -204
- package/node_modules/cheerio/dist/esm/static.js.map +0 -1
- package/node_modules/cheerio/dist/esm/types.d.ts +0 -21
- package/node_modules/cheerio/dist/esm/types.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/types.js +0 -3
- package/node_modules/cheerio/dist/esm/types.js.map +0 -1
- package/node_modules/cheerio/dist/esm/utils.d.ts +0 -55
- package/node_modules/cheerio/dist/esm/utils.d.ts.map +0 -1
- package/node_modules/cheerio/dist/esm/utils.js +0 -84
- package/node_modules/cheerio/dist/esm/utils.js.map +0 -1
- package/node_modules/cheerio/node_modules/undici/LICENSE +0 -21
- package/node_modules/cheerio/node_modules/undici/README.md +0 -741
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/Agent.md +0 -84
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/BalancedPool.md +0 -99
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/CacheStorage.md +0 -30
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/CacheStore.md +0 -164
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/Client.md +0 -285
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/ClientStats.md +0 -27
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/Connector.md +0 -115
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/ContentType.md +0 -57
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/Cookies.md +0 -101
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/Debug.md +0 -62
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +0 -315
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/Dispatcher.md +0 -1392
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +0 -159
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/Errors.md +0 -49
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/EventSource.md +0 -45
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/Fetch.md +0 -60
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/GlobalInstallation.md +0 -139
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/H2CClient.md +0 -263
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockAgent.md +0 -603
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockCallHistory.md +0 -197
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +0 -43
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockClient.md +0 -81
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockErrors.md +0 -12
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockPool.md +0 -555
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/Pool.md +0 -84
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/PoolStats.md +0 -35
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/ProxyAgent.md +0 -229
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/RedirectHandler.md +0 -93
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/RetryAgent.md +0 -50
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/RetryHandler.md +0 -118
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/RoundRobinPool.md +0 -145
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/SnapshotAgent.md +0 -616
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +0 -274
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/Util.md +0 -25
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/WebSocket.md +0 -141
- package/node_modules/cheerio/node_modules/undici/docs/docs/api/api-lifecycle.md +0 -91
- package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -64
- package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/crawling.md +0 -58
- package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/mocking-request.md +0 -190
- package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/proxy.md +0 -127
- package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +0 -224
- package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -63
- package/node_modules/cheerio/node_modules/undici/index-fetch.js +0 -65
- package/node_modules/cheerio/node_modules/undici/index.d.ts +0 -3
- package/node_modules/cheerio/node_modules/undici/index.js +0 -234
- package/node_modules/cheerio/node_modules/undici/lib/api/abort-signal.js +0 -59
- package/node_modules/cheerio/node_modules/undici/lib/api/api-connect.js +0 -110
- package/node_modules/cheerio/node_modules/undici/lib/api/api-pipeline.js +0 -252
- package/node_modules/cheerio/node_modules/undici/lib/api/api-request.js +0 -214
- package/node_modules/cheerio/node_modules/undici/lib/api/api-stream.js +0 -209
- package/node_modules/cheerio/node_modules/undici/lib/api/api-upgrade.js +0 -111
- package/node_modules/cheerio/node_modules/undici/lib/api/index.js +0 -7
- package/node_modules/cheerio/node_modules/undici/lib/api/readable.js +0 -580
- package/node_modules/cheerio/node_modules/undici/lib/cache/memory-cache-store.js +0 -234
- package/node_modules/cheerio/node_modules/undici/lib/cache/sqlite-cache-store.js +0 -461
- package/node_modules/cheerio/node_modules/undici/lib/core/connect.js +0 -153
- package/node_modules/cheerio/node_modules/undici/lib/core/constants.js +0 -143
- package/node_modules/cheerio/node_modules/undici/lib/core/diagnostics.js +0 -227
- package/node_modules/cheerio/node_modules/undici/lib/core/errors.js +0 -477
- package/node_modules/cheerio/node_modules/undici/lib/core/request.js +0 -453
- package/node_modules/cheerio/node_modules/undici/lib/core/socks5-client.js +0 -412
- package/node_modules/cheerio/node_modules/undici/lib/core/socks5-utils.js +0 -198
- package/node_modules/cheerio/node_modules/undici/lib/core/symbols.js +0 -75
- package/node_modules/cheerio/node_modules/undici/lib/core/tree.js +0 -160
- package/node_modules/cheerio/node_modules/undici/lib/core/util.js +0 -992
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/agent.js +0 -158
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -219
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/client-h1.js +0 -1654
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/client-h2.js +0 -995
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/client.js +0 -663
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -165
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/dispatcher.js +0 -48
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -146
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -135
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/h2c-client.js +0 -51
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/pool-base.js +0 -214
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/pool.js +0 -118
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -318
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/round-robin-pool.js +0 -137
- package/node_modules/cheerio/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +0 -249
- package/node_modules/cheerio/node_modules/undici/lib/encoding/index.js +0 -33
- package/node_modules/cheerio/node_modules/undici/lib/global.js +0 -50
- package/node_modules/cheerio/node_modules/undici/lib/handler/cache-handler.js +0 -578
- package/node_modules/cheerio/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -124
- package/node_modules/cheerio/node_modules/undici/lib/handler/decorator-handler.js +0 -67
- package/node_modules/cheerio/node_modules/undici/lib/handler/deduplication-handler.js +0 -460
- package/node_modules/cheerio/node_modules/undici/lib/handler/redirect-handler.js +0 -238
- package/node_modules/cheerio/node_modules/undici/lib/handler/retry-handler.js +0 -394
- package/node_modules/cheerio/node_modules/undici/lib/handler/unwrap-handler.js +0 -100
- package/node_modules/cheerio/node_modules/undici/lib/handler/wrap-handler.js +0 -105
- package/node_modules/cheerio/node_modules/undici/lib/interceptor/cache.js +0 -495
- package/node_modules/cheerio/node_modules/undici/lib/interceptor/decompress.js +0 -259
- package/node_modules/cheerio/node_modules/undici/lib/interceptor/deduplicate.js +0 -117
- package/node_modules/cheerio/node_modules/undici/lib/interceptor/dns.js +0 -571
- package/node_modules/cheerio/node_modules/undici/lib/interceptor/dump.js +0 -112
- package/node_modules/cheerio/node_modules/undici/lib/interceptor/redirect.js +0 -21
- package/node_modules/cheerio/node_modules/undici/lib/interceptor/response-error.js +0 -95
- package/node_modules/cheerio/node_modules/undici/lib/interceptor/retry.js +0 -19
- package/node_modules/cheerio/node_modules/undici/lib/llhttp/.gitkeep +0 -0
- package/node_modules/cheerio/node_modules/undici/lib/llhttp/constants.d.ts +0 -195
- package/node_modules/cheerio/node_modules/undici/lib/llhttp/constants.js +0 -531
- package/node_modules/cheerio/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -15
- package/node_modules/cheerio/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -15
- package/node_modules/cheerio/node_modules/undici/lib/llhttp/utils.d.ts +0 -2
- package/node_modules/cheerio/node_modules/undici/lib/llhttp/utils.js +0 -12
- package/node_modules/cheerio/node_modules/undici/lib/mock/mock-agent.js +0 -232
- package/node_modules/cheerio/node_modules/undici/lib/mock/mock-call-history.js +0 -248
- package/node_modules/cheerio/node_modules/undici/lib/mock/mock-client.js +0 -68
- package/node_modules/cheerio/node_modules/undici/lib/mock/mock-errors.js +0 -29
- package/node_modules/cheerio/node_modules/undici/lib/mock/mock-interceptor.js +0 -209
- package/node_modules/cheerio/node_modules/undici/lib/mock/mock-pool.js +0 -68
- package/node_modules/cheerio/node_modules/undici/lib/mock/mock-symbols.js +0 -32
- package/node_modules/cheerio/node_modules/undici/lib/mock/mock-utils.js +0 -486
- package/node_modules/cheerio/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
- package/node_modules/cheerio/node_modules/undici/lib/mock/snapshot-agent.js +0 -353
- package/node_modules/cheerio/node_modules/undici/lib/mock/snapshot-recorder.js +0 -588
- package/node_modules/cheerio/node_modules/undici/lib/mock/snapshot-utils.js +0 -158
- package/node_modules/cheerio/node_modules/undici/lib/util/cache.js +0 -408
- package/node_modules/cheerio/node_modules/undici/lib/util/date.js +0 -653
- package/node_modules/cheerio/node_modules/undici/lib/util/promise.js +0 -28
- package/node_modules/cheerio/node_modules/undici/lib/util/runtime-features.js +0 -124
- package/node_modules/cheerio/node_modules/undici/lib/util/stats.js +0 -32
- package/node_modules/cheerio/node_modules/undici/lib/util/timers.js +0 -425
- package/node_modules/cheerio/node_modules/undici/lib/web/cache/cache.js +0 -864
- package/node_modules/cheerio/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
- package/node_modules/cheerio/node_modules/undici/lib/web/cache/util.js +0 -45
- package/node_modules/cheerio/node_modules/undici/lib/web/cookies/constants.js +0 -12
- package/node_modules/cheerio/node_modules/undici/lib/web/cookies/index.js +0 -199
- package/node_modules/cheerio/node_modules/undici/lib/web/cookies/parse.js +0 -322
- package/node_modules/cheerio/node_modules/undici/lib/web/cookies/util.js +0 -282
- package/node_modules/cheerio/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -399
- package/node_modules/cheerio/node_modules/undici/lib/web/eventsource/eventsource.js +0 -501
- package/node_modules/cheerio/node_modules/undici/lib/web/eventsource/util.js +0 -29
- package/node_modules/cheerio/node_modules/undici/lib/web/fetch/LICENSE +0 -21
- package/node_modules/cheerio/node_modules/undici/lib/web/fetch/body.js +0 -509
- package/node_modules/cheerio/node_modules/undici/lib/web/fetch/constants.js +0 -131
- package/node_modules/cheerio/node_modules/undici/lib/web/fetch/data-url.js +0 -596
- package/node_modules/cheerio/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -586
- package/node_modules/cheerio/node_modules/undici/lib/web/fetch/formdata.js +0 -259
- package/node_modules/cheerio/node_modules/undici/lib/web/fetch/global.js +0 -40
- package/node_modules/cheerio/node_modules/undici/lib/web/fetch/headers.js +0 -719
- package/node_modules/cheerio/node_modules/undici/lib/web/fetch/index.js +0 -2413
- package/node_modules/cheerio/node_modules/undici/lib/web/fetch/request.js +0 -1115
- package/node_modules/cheerio/node_modules/undici/lib/web/fetch/response.js +0 -641
- package/node_modules/cheerio/node_modules/undici/lib/web/fetch/util.js +0 -1522
- package/node_modules/cheerio/node_modules/undici/lib/web/infra/index.js +0 -229
- package/node_modules/cheerio/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
- package/node_modules/cheerio/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +0 -307
- package/node_modules/cheerio/node_modules/undici/lib/web/webidl/index.js +0 -1006
- package/node_modules/cheerio/node_modules/undici/lib/web/websocket/connection.js +0 -329
- package/node_modules/cheerio/node_modules/undici/lib/web/websocket/constants.js +0 -126
- package/node_modules/cheerio/node_modules/undici/lib/web/websocket/events.js +0 -331
- package/node_modules/cheerio/node_modules/undici/lib/web/websocket/frame.js +0 -133
- package/node_modules/cheerio/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -118
- package/node_modules/cheerio/node_modules/undici/lib/web/websocket/receiver.js +0 -450
- package/node_modules/cheerio/node_modules/undici/lib/web/websocket/sender.js +0 -109
- package/node_modules/cheerio/node_modules/undici/lib/web/websocket/stream/websocketerror.js +0 -104
- package/node_modules/cheerio/node_modules/undici/lib/web/websocket/stream/websocketstream.js +0 -491
- package/node_modules/cheerio/node_modules/undici/lib/web/websocket/util.js +0 -347
- package/node_modules/cheerio/node_modules/undici/lib/web/websocket/websocket.js +0 -751
- package/node_modules/cheerio/node_modules/undici/package.json +0 -152
- package/node_modules/cheerio/node_modules/undici/scripts/strip-comments.js +0 -10
- package/node_modules/cheerio/node_modules/undici/types/README.md +0 -6
- package/node_modules/cheerio/node_modules/undici/types/agent.d.ts +0 -32
- package/node_modules/cheerio/node_modules/undici/types/api.d.ts +0 -43
- package/node_modules/cheerio/node_modules/undici/types/balanced-pool.d.ts +0 -30
- package/node_modules/cheerio/node_modules/undici/types/cache-interceptor.d.ts +0 -179
- package/node_modules/cheerio/node_modules/undici/types/cache.d.ts +0 -36
- package/node_modules/cheerio/node_modules/undici/types/client-stats.d.ts +0 -15
- package/node_modules/cheerio/node_modules/undici/types/client.d.ts +0 -123
- package/node_modules/cheerio/node_modules/undici/types/connector.d.ts +0 -36
- package/node_modules/cheerio/node_modules/undici/types/content-type.d.ts +0 -21
- package/node_modules/cheerio/node_modules/undici/types/cookies.d.ts +0 -30
- package/node_modules/cheerio/node_modules/undici/types/diagnostics-channel.d.ts +0 -74
- package/node_modules/cheerio/node_modules/undici/types/dispatcher.d.ts +0 -273
- package/node_modules/cheerio/node_modules/undici/types/env-http-proxy-agent.d.ts +0 -22
- package/node_modules/cheerio/node_modules/undici/types/errors.d.ts +0 -177
- package/node_modules/cheerio/node_modules/undici/types/eventsource.d.ts +0 -66
- package/node_modules/cheerio/node_modules/undici/types/fetch.d.ts +0 -231
- package/node_modules/cheerio/node_modules/undici/types/formdata.d.ts +0 -114
- package/node_modules/cheerio/node_modules/undici/types/global-dispatcher.d.ts +0 -9
- package/node_modules/cheerio/node_modules/undici/types/global-origin.d.ts +0 -7
- package/node_modules/cheerio/node_modules/undici/types/h2c-client.d.ts +0 -73
- package/node_modules/cheerio/node_modules/undici/types/handlers.d.ts +0 -14
- package/node_modules/cheerio/node_modules/undici/types/header.d.ts +0 -160
- package/node_modules/cheerio/node_modules/undici/types/index.d.ts +0 -91
- package/node_modules/cheerio/node_modules/undici/types/interceptors.d.ts +0 -80
- package/node_modules/cheerio/node_modules/undici/types/mock-agent.d.ts +0 -68
- package/node_modules/cheerio/node_modules/undici/types/mock-call-history.d.ts +0 -111
- package/node_modules/cheerio/node_modules/undici/types/mock-client.d.ts +0 -27
- package/node_modules/cheerio/node_modules/undici/types/mock-errors.d.ts +0 -12
- package/node_modules/cheerio/node_modules/undici/types/mock-interceptor.d.ts +0 -94
- package/node_modules/cheerio/node_modules/undici/types/mock-pool.d.ts +0 -27
- package/node_modules/cheerio/node_modules/undici/types/patch.d.ts +0 -29
- package/node_modules/cheerio/node_modules/undici/types/pool-stats.d.ts +0 -19
- package/node_modules/cheerio/node_modules/undici/types/pool.d.ts +0 -41
- package/node_modules/cheerio/node_modules/undici/types/proxy-agent.d.ts +0 -29
- package/node_modules/cheerio/node_modules/undici/types/readable.d.ts +0 -68
- package/node_modules/cheerio/node_modules/undici/types/retry-agent.d.ts +0 -8
- package/node_modules/cheerio/node_modules/undici/types/retry-handler.d.ts +0 -125
- package/node_modules/cheerio/node_modules/undici/types/round-robin-pool.d.ts +0 -41
- package/node_modules/cheerio/node_modules/undici/types/snapshot-agent.d.ts +0 -109
- package/node_modules/cheerio/node_modules/undici/types/socks5-proxy-agent.d.ts +0 -25
- package/node_modules/cheerio/node_modules/undici/types/util.d.ts +0 -18
- package/node_modules/cheerio/node_modules/undici/types/utility.d.ts +0 -7
- package/node_modules/cheerio/node_modules/undici/types/webidl.d.ts +0 -347
- package/node_modules/cheerio/node_modules/undici/types/websocket.d.ts +0 -188
- package/node_modules/cheerio/package.json +0 -182
- package/node_modules/cheerio/src/api/attributes.ts +0 -1145
- package/node_modules/cheerio/src/api/css.ts +0 -224
- package/node_modules/cheerio/src/api/extract.ts +0 -92
- package/node_modules/cheerio/src/api/forms.ts +0 -103
- package/node_modules/cheerio/src/api/manipulation.ts +0 -1115
- package/node_modules/cheerio/src/api/traversing.ts +0 -1175
- package/node_modules/cheerio/src/cheerio.ts +0 -143
- package/node_modules/cheerio/src/index-browser.mts +0 -10
- package/node_modules/cheerio/src/index.ts +0 -294
- package/node_modules/cheerio/src/load-parse.ts +0 -39
- package/node_modules/cheerio/src/load.ts +0 -282
- package/node_modules/cheerio/src/options.ts +0 -136
- package/node_modules/cheerio/src/parse.ts +0 -105
- package/node_modules/cheerio/src/parsers/parse5-adapter.ts +0 -66
- package/node_modules/cheerio/src/slim.ts +0 -33
- package/node_modules/cheerio/src/static.ts +0 -312
- package/node_modules/cheerio/src/types.ts +0 -58
- package/node_modules/cheerio/src/utils.ts +0 -99
- package/node_modules/cheerio-select/README.md +0 -18
- package/node_modules/cheerio-select/lib/esm/helpers.d.ts +0 -5
- package/node_modules/cheerio-select/lib/esm/helpers.d.ts.map +0 -1
- package/node_modules/cheerio-select/lib/esm/helpers.js +0 -20
- package/node_modules/cheerio-select/lib/esm/helpers.js.map +0 -1
- package/node_modules/cheerio-select/lib/esm/index.d.ts +0 -12
- package/node_modules/cheerio-select/lib/esm/index.d.ts.map +0 -1
- package/node_modules/cheerio-select/lib/esm/index.js +0 -241
- package/node_modules/cheerio-select/lib/esm/index.js.map +0 -1
- package/node_modules/cheerio-select/lib/esm/package.json +0 -1
- package/node_modules/cheerio-select/lib/esm/positionals.d.ts +0 -10
- package/node_modules/cheerio-select/lib/esm/positionals.d.ts.map +0 -1
- package/node_modules/cheerio-select/lib/esm/positionals.js +0 -47
- package/node_modules/cheerio-select/lib/esm/positionals.js.map +0 -1
- package/node_modules/cheerio-select/lib/helpers.d.ts +0 -5
- package/node_modules/cheerio-select/lib/helpers.d.ts.map +0 -1
- package/node_modules/cheerio-select/lib/helpers.js +0 -26
- package/node_modules/cheerio-select/lib/helpers.js.map +0 -1
- package/node_modules/cheerio-select/lib/index.d.ts +0 -12
- package/node_modules/cheerio-select/lib/index.d.ts.map +0 -1
- package/node_modules/cheerio-select/lib/index.js +0 -302
- package/node_modules/cheerio-select/lib/index.js.map +0 -1
- package/node_modules/cheerio-select/lib/positionals.d.ts +0 -10
- package/node_modules/cheerio-select/lib/positionals.d.ts.map +0 -1
- package/node_modules/cheerio-select/lib/positionals.js +0 -52
- package/node_modules/cheerio-select/lib/positionals.js.map +0 -1
- package/node_modules/cheerio-select/package.json +0 -76
- package/node_modules/colorette/LICENSE.md +0 -7
- package/node_modules/colorette/README.md +0 -134
- package/node_modules/colorette/index.cjs +0 -218
- package/node_modules/colorette/index.d.ts +0 -93
- package/node_modules/colorette/index.js +0 -150
- package/node_modules/colorette/package.json +0 -40
- package/node_modules/css-select/README.md +0 -264
- package/node_modules/css-select/lib/attributes.d.ts +0 -7
- package/node_modules/css-select/lib/attributes.d.ts.map +0 -1
- package/node_modules/css-select/lib/attributes.js +0 -236
- package/node_modules/css-select/lib/attributes.js.map +0 -1
- package/node_modules/css-select/lib/compile.d.ts +0 -13
- package/node_modules/css-select/lib/compile.d.ts.map +0 -1
- package/node_modules/css-select/lib/compile.js +0 -151
- package/node_modules/css-select/lib/compile.js.map +0 -1
- package/node_modules/css-select/lib/esm/attributes.d.ts +0 -7
- package/node_modules/css-select/lib/esm/attributes.d.ts.map +0 -1
- package/node_modules/css-select/lib/esm/attributes.js +0 -222
- package/node_modules/css-select/lib/esm/attributes.js.map +0 -1
- package/node_modules/css-select/lib/esm/compile.d.ts +0 -13
- package/node_modules/css-select/lib/esm/compile.d.ts.map +0 -1
- package/node_modules/css-select/lib/esm/compile.js +0 -115
- package/node_modules/css-select/lib/esm/compile.js.map +0 -1
- package/node_modules/css-select/lib/esm/general.d.ts +0 -3
- package/node_modules/css-select/lib/esm/general.d.ts.map +0 -1
- package/node_modules/css-select/lib/esm/general.js +0 -144
- package/node_modules/css-select/lib/esm/general.js.map +0 -1
- package/node_modules/css-select/lib/esm/index.d.ts +0 -50
- package/node_modules/css-select/lib/esm/index.d.ts.map +0 -1
- package/node_modules/css-select/lib/esm/index.js +0 -115
- package/node_modules/css-select/lib/esm/index.js.map +0 -1
- package/node_modules/css-select/lib/esm/package.json +0 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.d.ts +0 -5
- package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.d.ts.map +0 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js +0 -35
- package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js.map +0 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/filters.d.ts +0 -4
- package/node_modules/css-select/lib/esm/pseudo-selectors/filters.d.ts.map +0 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/filters.js +0 -143
- package/node_modules/css-select/lib/esm/pseudo-selectors/filters.js.map +0 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/index.d.ts +0 -8
- package/node_modules/css-select/lib/esm/pseudo-selectors/index.d.ts.map +0 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/index.js +0 -40
- package/node_modules/css-select/lib/esm/pseudo-selectors/index.js.map +0 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.d.ts +0 -6
- package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.d.ts.map +0 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js +0 -79
- package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js.map +0 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.d.ts +0 -9
- package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.d.ts.map +0 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js +0 -94
- package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js.map +0 -1
- package/node_modules/css-select/lib/esm/sort.d.ts +0 -12
- package/node_modules/css-select/lib/esm/sort.d.ts.map +0 -1
- package/node_modules/css-select/lib/esm/sort.js +0 -79
- package/node_modules/css-select/lib/esm/sort.js.map +0 -1
- package/node_modules/css-select/lib/esm/types.d.ts +0 -167
- package/node_modules/css-select/lib/esm/types.d.ts.map +0 -1
- package/node_modules/css-select/lib/esm/types.js +0 -2
- package/node_modules/css-select/lib/esm/types.js.map +0 -1
- package/node_modules/css-select/lib/general.d.ts +0 -3
- package/node_modules/css-select/lib/general.d.ts.map +0 -1
- package/node_modules/css-select/lib/general.js +0 -148
- package/node_modules/css-select/lib/general.js.map +0 -1
- package/node_modules/css-select/lib/index.d.ts +0 -50
- package/node_modules/css-select/lib/index.d.ts.map +0 -1
- package/node_modules/css-select/lib/index.js +0 -154
- package/node_modules/css-select/lib/index.js.map +0 -1
- package/node_modules/css-select/lib/pseudo-selectors/aliases.d.ts +0 -5
- package/node_modules/css-select/lib/pseudo-selectors/aliases.d.ts.map +0 -1
- package/node_modules/css-select/lib/pseudo-selectors/aliases.js +0 -34
- package/node_modules/css-select/lib/pseudo-selectors/aliases.js.map +0 -1
- package/node_modules/css-select/lib/pseudo-selectors/filters.d.ts +0 -4
- package/node_modules/css-select/lib/pseudo-selectors/filters.d.ts.map +0 -1
- package/node_modules/css-select/lib/pseudo-selectors/filters.js +0 -157
- package/node_modules/css-select/lib/pseudo-selectors/filters.js.map +0 -1
- package/node_modules/css-select/lib/pseudo-selectors/index.d.ts +0 -8
- package/node_modules/css-select/lib/pseudo-selectors/index.d.ts.map +0 -1
- package/node_modules/css-select/lib/pseudo-selectors/index.js +0 -46
- package/node_modules/css-select/lib/pseudo-selectors/index.js.map +0 -1
- package/node_modules/css-select/lib/pseudo-selectors/pseudos.d.ts +0 -6
- package/node_modules/css-select/lib/pseudo-selectors/pseudos.d.ts.map +0 -1
- package/node_modules/css-select/lib/pseudo-selectors/pseudos.js +0 -93
- package/node_modules/css-select/lib/pseudo-selectors/pseudos.js.map +0 -1
- package/node_modules/css-select/lib/pseudo-selectors/subselects.d.ts +0 -9
- package/node_modules/css-select/lib/pseudo-selectors/subselects.d.ts.map +0 -1
- package/node_modules/css-select/lib/pseudo-selectors/subselects.js +0 -112
- package/node_modules/css-select/lib/pseudo-selectors/subselects.js.map +0 -1
- package/node_modules/css-select/lib/sort.d.ts +0 -12
- package/node_modules/css-select/lib/sort.d.ts.map +0 -1
- package/node_modules/css-select/lib/sort.js +0 -84
- package/node_modules/css-select/lib/sort.js.map +0 -1
- package/node_modules/css-select/lib/types.d.ts +0 -167
- package/node_modules/css-select/lib/types.d.ts.map +0 -1
- package/node_modules/css-select/lib/types.js +0 -3
- package/node_modules/css-select/lib/types.js.map +0 -1
- package/node_modules/css-select/package.json +0 -81
- package/node_modules/css-what/lib/commonjs/index.d.ts +0 -4
- package/node_modules/css-what/lib/commonjs/index.d.ts.map +0 -1
- package/node_modules/css-what/lib/commonjs/index.js +0 -23
- package/node_modules/css-what/lib/commonjs/parse.d.ts +0 -20
- package/node_modules/css-what/lib/commonjs/parse.d.ts.map +0 -1
- package/node_modules/css-what/lib/commonjs/parse.js +0 -425
- package/node_modules/css-what/lib/commonjs/stringify.d.ts +0 -8
- package/node_modules/css-what/lib/commonjs/stringify.d.ts.map +0 -1
- package/node_modules/css-what/lib/commonjs/stringify.js +0 -138
- package/node_modules/css-what/lib/commonjs/types.d.ts +0 -70
- package/node_modules/css-what/lib/commonjs/types.d.ts.map +0 -1
- package/node_modules/css-what/lib/commonjs/types.js +0 -42
- package/node_modules/css-what/lib/es/index.d.ts +0 -4
- package/node_modules/css-what/lib/es/index.d.ts.map +0 -1
- package/node_modules/css-what/lib/es/index.js +0 -3
- package/node_modules/css-what/lib/es/parse.d.ts +0 -20
- package/node_modules/css-what/lib/es/parse.d.ts.map +0 -1
- package/node_modules/css-what/lib/es/parse.js +0 -420
- package/node_modules/css-what/lib/es/stringify.d.ts +0 -8
- package/node_modules/css-what/lib/es/stringify.d.ts.map +0 -1
- package/node_modules/css-what/lib/es/stringify.js +0 -126
- package/node_modules/css-what/lib/es/types.d.ts +0 -70
- package/node_modules/css-what/lib/es/types.d.ts.map +0 -1
- package/node_modules/css-what/lib/es/types.js +0 -39
- package/node_modules/css-what/package.json +0 -59
- package/node_modules/css-what/readme.md +0 -69
- package/node_modules/dom-serializer/LICENSE +0 -11
- package/node_modules/dom-serializer/README.md +0 -109
- package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts +0 -3
- package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts.map +0 -1
- package/node_modules/dom-serializer/lib/esm/foreignNames.js +0 -100
- package/node_modules/dom-serializer/lib/esm/index.d.ts +0 -52
- package/node_modules/dom-serializer/lib/esm/index.d.ts.map +0 -1
- package/node_modules/dom-serializer/lib/esm/index.js +0 -190
- package/node_modules/dom-serializer/lib/esm/package.json +0 -1
- package/node_modules/dom-serializer/lib/foreignNames.d.ts +0 -3
- package/node_modules/dom-serializer/lib/foreignNames.d.ts.map +0 -1
- package/node_modules/dom-serializer/lib/foreignNames.js +0 -103
- package/node_modules/dom-serializer/lib/index.d.ts +0 -52
- package/node_modules/dom-serializer/lib/index.d.ts.map +0 -1
- package/node_modules/dom-serializer/lib/index.js +0 -229
- package/node_modules/dom-serializer/package.json +0 -69
- package/node_modules/domelementtype/LICENSE +0 -11
- package/node_modules/domelementtype/lib/esm/index.d.ts +0 -48
- package/node_modules/domelementtype/lib/esm/index.d.ts.map +0 -1
- package/node_modules/domelementtype/lib/esm/index.js +0 -51
- package/node_modules/domelementtype/lib/esm/package.json +0 -1
- package/node_modules/domelementtype/lib/index.d.ts +0 -48
- package/node_modules/domelementtype/lib/index.d.ts.map +0 -1
- package/node_modules/domelementtype/lib/index.js +0 -55
- package/node_modules/domelementtype/package.json +0 -54
- package/node_modules/domhandler/LICENSE +0 -11
- package/node_modules/domhandler/lib/esm/index.d.ts +0 -76
- package/node_modules/domhandler/lib/esm/index.d.ts.map +0 -1
- package/node_modules/domhandler/lib/esm/index.js +0 -146
- package/node_modules/domhandler/lib/esm/node.d.ts +0 -245
- package/node_modules/domhandler/lib/esm/node.d.ts.map +0 -1
- package/node_modules/domhandler/lib/esm/node.js +0 -338
- package/node_modules/domhandler/lib/esm/package.json +0 -1
- package/node_modules/domhandler/lib/index.d.ts +0 -76
- package/node_modules/domhandler/lib/index.d.ts.map +0 -1
- package/node_modules/domhandler/lib/index.js +0 -165
- package/node_modules/domhandler/lib/node.d.ts +0 -245
- package/node_modules/domhandler/lib/node.d.ts.map +0 -1
- package/node_modules/domhandler/lib/node.js +0 -474
- package/node_modules/domhandler/package.json +0 -73
- package/node_modules/domhandler/readme.md +0 -92
- package/node_modules/domutils/LICENSE +0 -11
- package/node_modules/domutils/lib/esm/feeds.d.ts +0 -71
- package/node_modules/domutils/lib/esm/feeds.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/feeds.js +0 -183
- package/node_modules/domutils/lib/esm/feeds.js.map +0 -1
- package/node_modules/domutils/lib/esm/helpers.d.ts +0 -59
- package/node_modules/domutils/lib/esm/helpers.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/helpers.js +0 -136
- package/node_modules/domutils/lib/esm/helpers.js.map +0 -1
- package/node_modules/domutils/lib/esm/index.d.ts +0 -10
- package/node_modules/domutils/lib/esm/index.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/index.js +0 -10
- package/node_modules/domutils/lib/esm/index.js.map +0 -1
- package/node_modules/domutils/lib/esm/legacy.d.ts +0 -79
- package/node_modules/domutils/lib/esm/legacy.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/legacy.js +0 -152
- package/node_modules/domutils/lib/esm/legacy.js.map +0 -1
- package/node_modules/domutils/lib/esm/manipulation.d.ts +0 -49
- package/node_modules/domutils/lib/esm/manipulation.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/manipulation.js +0 -134
- package/node_modules/domutils/lib/esm/manipulation.js.map +0 -1
- package/node_modules/domutils/lib/esm/package.json +0 -1
- package/node_modules/domutils/lib/esm/querying.d.ts +0 -64
- package/node_modules/domutils/lib/esm/querying.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/querying.js +0 -142
- package/node_modules/domutils/lib/esm/querying.js.map +0 -1
- package/node_modules/domutils/lib/esm/stringify.d.ts +0 -46
- package/node_modules/domutils/lib/esm/stringify.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/stringify.js +0 -81
- package/node_modules/domutils/lib/esm/stringify.js.map +0 -1
- package/node_modules/domutils/lib/esm/traversal.d.ts +0 -67
- package/node_modules/domutils/lib/esm/traversal.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/traversal.js +0 -112
- package/node_modules/domutils/lib/esm/traversal.js.map +0 -1
- package/node_modules/domutils/lib/feeds.d.ts +0 -71
- package/node_modules/domutils/lib/feeds.d.ts.map +0 -1
- package/node_modules/domutils/lib/feeds.js +0 -190
- package/node_modules/domutils/lib/feeds.js.map +0 -1
- package/node_modules/domutils/lib/helpers.d.ts +0 -59
- package/node_modules/domutils/lib/helpers.d.ts.map +0 -1
- package/node_modules/domutils/lib/helpers.js +0 -142
- package/node_modules/domutils/lib/helpers.js.map +0 -1
- package/node_modules/domutils/lib/index.d.ts +0 -10
- package/node_modules/domutils/lib/index.d.ts.map +0 -1
- package/node_modules/domutils/lib/index.js +0 -33
- package/node_modules/domutils/lib/index.js.map +0 -1
- package/node_modules/domutils/lib/legacy.d.ts +0 -79
- package/node_modules/domutils/lib/legacy.d.ts.map +0 -1
- package/node_modules/domutils/lib/legacy.js +0 -168
- package/node_modules/domutils/lib/legacy.js.map +0 -1
- package/node_modules/domutils/lib/manipulation.d.ts +0 -49
- package/node_modules/domutils/lib/manipulation.d.ts.map +0 -1
- package/node_modules/domutils/lib/manipulation.js +0 -142
- package/node_modules/domutils/lib/manipulation.js.map +0 -1
- package/node_modules/domutils/lib/querying.d.ts +0 -64
- package/node_modules/domutils/lib/querying.d.ts.map +0 -1
- package/node_modules/domutils/lib/querying.js +0 -155
- package/node_modules/domutils/lib/querying.js.map +0 -1
- package/node_modules/domutils/lib/stringify.d.ts +0 -46
- package/node_modules/domutils/lib/stringify.d.ts.map +0 -1
- package/node_modules/domutils/lib/stringify.js +0 -91
- package/node_modules/domutils/lib/stringify.js.map +0 -1
- package/node_modules/domutils/lib/traversal.d.ts +0 -67
- package/node_modules/domutils/lib/traversal.d.ts.map +0 -1
- package/node_modules/domutils/lib/traversal.js +0 -125
- package/node_modules/domutils/lib/traversal.js.map +0 -1
- package/node_modules/domutils/package.json +0 -79
- package/node_modules/domutils/readme.md +0 -31
- package/node_modules/encoding-sniffer/LICENSE +0 -18
- package/node_modules/encoding-sniffer/README.md +0 -68
- package/node_modules/encoding-sniffer/dist/commonjs/index.d.ts +0 -31
- package/node_modules/encoding-sniffer/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/encoding-sniffer/dist/commonjs/index.js +0 -72
- package/node_modules/encoding-sniffer/dist/commonjs/index.js.map +0 -1
- package/node_modules/encoding-sniffer/dist/commonjs/package.json +0 -3
- package/node_modules/encoding-sniffer/dist/commonjs/sniffer.d.ts +0 -148
- package/node_modules/encoding-sniffer/dist/commonjs/sniffer.d.ts.map +0 -1
- package/node_modules/encoding-sniffer/dist/commonjs/sniffer.js +0 -990
- package/node_modules/encoding-sniffer/dist/commonjs/sniffer.js.map +0 -1
- package/node_modules/encoding-sniffer/dist/esm/index.d.ts +0 -31
- package/node_modules/encoding-sniffer/dist/esm/index.d.ts.map +0 -1
- package/node_modules/encoding-sniffer/dist/esm/index.js +0 -63
- package/node_modules/encoding-sniffer/dist/esm/index.js.map +0 -1
- package/node_modules/encoding-sniffer/dist/esm/package.json +0 -3
- package/node_modules/encoding-sniffer/dist/esm/sniffer.d.ts +0 -148
- package/node_modules/encoding-sniffer/dist/esm/sniffer.d.ts.map +0 -1
- package/node_modules/encoding-sniffer/dist/esm/sniffer.js +0 -985
- package/node_modules/encoding-sniffer/dist/esm/sniffer.js.map +0 -1
- package/node_modules/encoding-sniffer/package.json +0 -94
- package/node_modules/encoding-sniffer/sniffer.d.ts +0 -2
- package/node_modules/encoding-sniffer/sniffer.js +0 -3
- package/node_modules/entities/LICENSE +0 -11
- package/node_modules/entities/lib/decode.d.ts +0 -211
- package/node_modules/entities/lib/decode.d.ts.map +0 -1
- package/node_modules/entities/lib/decode.js +0 -536
- package/node_modules/entities/lib/decode.js.map +0 -1
- package/node_modules/entities/lib/decode_codepoint.d.ts +0 -19
- package/node_modules/entities/lib/decode_codepoint.d.ts.map +0 -1
- package/node_modules/entities/lib/decode_codepoint.js +0 -76
- package/node_modules/entities/lib/decode_codepoint.js.map +0 -1
- package/node_modules/entities/lib/encode.d.ts +0 -22
- package/node_modules/entities/lib/encode.d.ts.map +0 -1
- package/node_modules/entities/lib/encode.js +0 -77
- package/node_modules/entities/lib/encode.js.map +0 -1
- package/node_modules/entities/lib/escape.d.ts +0 -43
- package/node_modules/entities/lib/escape.d.ts.map +0 -1
- package/node_modules/entities/lib/escape.js +0 -122
- package/node_modules/entities/lib/escape.js.map +0 -1
- package/node_modules/entities/lib/esm/decode.d.ts +0 -211
- package/node_modules/entities/lib/esm/decode.d.ts.map +0 -1
- package/node_modules/entities/lib/esm/decode.js +0 -496
- package/node_modules/entities/lib/esm/decode.js.map +0 -1
- package/node_modules/entities/lib/esm/decode_codepoint.d.ts +0 -19
- package/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +0 -1
- package/node_modules/entities/lib/esm/decode_codepoint.js +0 -71
- package/node_modules/entities/lib/esm/decode_codepoint.js.map +0 -1
- package/node_modules/entities/lib/esm/encode.d.ts +0 -22
- package/node_modules/entities/lib/esm/encode.d.ts.map +0 -1
- package/node_modules/entities/lib/esm/encode.js +0 -69
- package/node_modules/entities/lib/esm/encode.js.map +0 -1
- package/node_modules/entities/lib/esm/escape.d.ts +0 -43
- package/node_modules/entities/lib/esm/escape.d.ts.map +0 -1
- package/node_modules/entities/lib/esm/escape.js +0 -116
- package/node_modules/entities/lib/esm/escape.js.map +0 -1
- package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +0 -3
- package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +0 -1
- package/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
- package/node_modules/entities/lib/esm/generated/decode-data-html.js.map +0 -1
- package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +0 -3
- package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +0 -1
- package/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
- package/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +0 -1
- package/node_modules/entities/lib/esm/generated/encode-html.d.ts +0 -8
- package/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +0 -1
- package/node_modules/entities/lib/esm/generated/encode-html.js +0 -10
- package/node_modules/entities/lib/esm/generated/encode-html.js.map +0 -1
- package/node_modules/entities/lib/esm/index.d.ts +0 -96
- package/node_modules/entities/lib/esm/index.d.ts.map +0 -1
- package/node_modules/entities/lib/esm/index.js +0 -99
- package/node_modules/entities/lib/esm/index.js.map +0 -1
- package/node_modules/entities/lib/esm/package.json +0 -1
- package/node_modules/entities/lib/generated/decode-data-html.d.ts +0 -3
- package/node_modules/entities/lib/generated/decode-data-html.d.ts.map +0 -1
- package/node_modules/entities/lib/generated/decode-data-html.js +0 -9
- package/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
- package/node_modules/entities/lib/generated/decode-data-xml.d.ts +0 -3
- package/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +0 -1
- package/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
- package/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
- package/node_modules/entities/lib/generated/encode-html.d.ts +0 -8
- package/node_modules/entities/lib/generated/encode-html.d.ts.map +0 -1
- package/node_modules/entities/lib/generated/encode-html.js +0 -12
- package/node_modules/entities/lib/generated/encode-html.js.map +0 -1
- package/node_modules/entities/lib/index.d.ts +0 -96
- package/node_modules/entities/lib/index.d.ts.map +0 -1
- package/node_modules/entities/lib/index.js +0 -126
- package/node_modules/entities/lib/index.js.map +0 -1
- package/node_modules/entities/package.json +0 -90
- package/node_modules/entities/readme.md +0 -122
- package/node_modules/eventemitter3/LICENSE +0 -21
- package/node_modules/eventemitter3/README.md +0 -94
- package/node_modules/eventemitter3/dist/eventemitter3.esm.js +0 -347
- package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +0 -1
- package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +0 -1
- package/node_modules/eventemitter3/dist/eventemitter3.umd.js +0 -355
- package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +0 -1
- package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +0 -1
- package/node_modules/eventemitter3/index.d.ts +0 -135
- package/node_modules/eventemitter3/index.js +0 -336
- package/node_modules/eventemitter3/index.mjs +0 -4
- package/node_modules/eventemitter3/package.json +0 -67
- package/node_modules/figures/index.d.ts +0 -279
- package/node_modules/figures/index.js +0 -292
- package/node_modules/figures/package.json +0 -49
- package/node_modules/figures/readme.md +0 -337
- package/node_modules/htmlparser2/WritableStream.js +0 -3
- package/node_modules/htmlparser2/dist/commonjs/Parser.d.ts +0 -198
- package/node_modules/htmlparser2/dist/commonjs/Parser.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/Parser.js +0 -527
- package/node_modules/htmlparser2/dist/commonjs/Parser.js.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/Tokenizer.d.ts +0 -126
- package/node_modules/htmlparser2/dist/commonjs/Tokenizer.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +0 -805
- package/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/WritableStream.d.ts +0 -15
- package/node_modules/htmlparser2/dist/commonjs/WritableStream.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/WritableStream.js +0 -36
- package/node_modules/htmlparser2/dist/commonjs/WritableStream.js.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/index.d.ts +0 -54
- package/node_modules/htmlparser2/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/index.js +0 -123
- package/node_modules/htmlparser2/dist/commonjs/index.js.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/package.json +0 -3
- package/node_modules/htmlparser2/dist/esm/Parser.d.ts +0 -198
- package/node_modules/htmlparser2/dist/esm/Parser.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/esm/Parser.js +0 -490
- package/node_modules/htmlparser2/dist/esm/Parser.js.map +0 -1
- package/node_modules/htmlparser2/dist/esm/Tokenizer.d.ts +0 -126
- package/node_modules/htmlparser2/dist/esm/Tokenizer.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/esm/Tokenizer.js +0 -801
- package/node_modules/htmlparser2/dist/esm/Tokenizer.js.map +0 -1
- package/node_modules/htmlparser2/dist/esm/WritableStream.d.ts +0 -15
- package/node_modules/htmlparser2/dist/esm/WritableStream.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/esm/WritableStream.js +0 -32
- package/node_modules/htmlparser2/dist/esm/WritableStream.js.map +0 -1
- package/node_modules/htmlparser2/dist/esm/index.d.ts +0 -54
- package/node_modules/htmlparser2/dist/esm/index.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/esm/index.js +0 -74
- package/node_modules/htmlparser2/dist/esm/index.js.map +0 -1
- package/node_modules/htmlparser2/dist/esm/package.json +0 -3
- package/node_modules/htmlparser2/node_modules/entities/decode.d.ts +0 -3
- package/node_modules/htmlparser2/node_modules/entities/decode.js +0 -3
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +0 -19
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.d.ts +0 -205
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +0 -568
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.d.ts +0 -22
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.js +0 -92
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.d.ts +0 -46
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.js +0 -138
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +0 -2
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -7
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +0 -2
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -7
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +0 -3
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.js +0 -14
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.d.ts +0 -96
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.js +0 -131
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +0 -21
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +0 -2
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.js +0 -31
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +0 -32
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.js +0 -94
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/package.json +0 -3
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.d.ts +0 -19
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.js +0 -72
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.d.ts +0 -205
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.js +0 -554
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.d.ts +0 -22
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.js +0 -88
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.d.ts +0 -46
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.js +0 -134
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +0 -2
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -4
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +0 -2
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.js +0 -4
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.d.ts +0 -3
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.js +0 -11
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.d.ts +0 -96
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.js +0 -107
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +0 -17
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.d.ts +0 -2
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.js +0 -28
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.d.ts +0 -32
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.js +0 -91
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/package.json +0 -3
- package/node_modules/htmlparser2/node_modules/entities/escape.d.ts +0 -3
- package/node_modules/htmlparser2/node_modules/entities/escape.js +0 -3
- package/node_modules/htmlparser2/node_modules/entities/src/generated/.eslintrc.json +0 -10
- package/node_modules/iconv-lite/.github/dependabot.yml +0 -11
- package/node_modules/iconv-lite/.idea/codeStyles/Project.xml +0 -47
- package/node_modules/iconv-lite/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/node_modules/iconv-lite/.idea/iconv-lite.iml +0 -12
- package/node_modules/iconv-lite/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/node_modules/iconv-lite/.idea/modules.xml +0 -8
- package/node_modules/iconv-lite/.idea/vcs.xml +0 -6
- package/node_modules/iconv-lite/Changelog.md +0 -212
- package/node_modules/iconv-lite/LICENSE +0 -21
- package/node_modules/iconv-lite/README.md +0 -130
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -597
- package/node_modules/iconv-lite/encodings/dbcs-data.js +0 -188
- package/node_modules/iconv-lite/encodings/index.js +0 -23
- package/node_modules/iconv-lite/encodings/internal.js +0 -198
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
- package/node_modules/iconv-lite/encodings/sbcs-data.js +0 -179
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
- package/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
- package/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
- package/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
- package/node_modules/iconv-lite/encodings/utf16.js +0 -197
- package/node_modules/iconv-lite/encodings/utf32.js +0 -319
- package/node_modules/iconv-lite/encodings/utf7.js +0 -290
- package/node_modules/iconv-lite/lib/bom-handling.js +0 -52
- package/node_modules/iconv-lite/lib/index.d.ts +0 -41
- package/node_modules/iconv-lite/lib/index.js +0 -180
- package/node_modules/iconv-lite/lib/streams.js +0 -109
- package/node_modules/iconv-lite/package.json +0 -44
- package/node_modules/listr2/dist/index.cjs +0 -2189
- package/node_modules/listr2/dist/index.d.cts +0 -1528
- package/node_modules/listr2/dist/index.d.ts +0 -1528
- package/node_modules/listr2/dist/index.js +0 -2107
- package/node_modules/log-update/node_modules/ansi-escapes/base.d.ts +0 -262
- package/node_modules/log-update/node_modules/ansi-escapes/base.js +0 -163
- package/node_modules/log-update/node_modules/ansi-escapes/package.json +0 -70
- package/node_modules/log-update/node_modules/ansi-escapes/readme.md +0 -261
- package/node_modules/nth-check/LICENSE +0 -11
- package/node_modules/nth-check/README.md +0 -136
- package/node_modules/nth-check/lib/compile.d.ts +0 -55
- package/node_modules/nth-check/lib/compile.d.ts.map +0 -1
- package/node_modules/nth-check/lib/compile.js +0 -121
- package/node_modules/nth-check/lib/compile.js.map +0 -1
- package/node_modules/nth-check/lib/esm/compile.d.ts +0 -55
- package/node_modules/nth-check/lib/esm/compile.d.ts.map +0 -1
- package/node_modules/nth-check/lib/esm/compile.js +0 -113
- package/node_modules/nth-check/lib/esm/compile.js.map +0 -1
- package/node_modules/nth-check/lib/esm/index.d.ts +0 -59
- package/node_modules/nth-check/lib/esm/index.d.ts.map +0 -1
- package/node_modules/nth-check/lib/esm/index.js +0 -63
- package/node_modules/nth-check/lib/esm/index.js.map +0 -1
- package/node_modules/nth-check/lib/esm/package.json +0 -1
- package/node_modules/nth-check/lib/esm/parse.d.ts +0 -9
- package/node_modules/nth-check/lib/esm/parse.d.ts.map +0 -1
- package/node_modules/nth-check/lib/esm/parse.js +0 -73
- package/node_modules/nth-check/lib/esm/parse.js.map +0 -1
- package/node_modules/nth-check/lib/index.d.ts +0 -59
- package/node_modules/nth-check/lib/index.d.ts.map +0 -1
- package/node_modules/nth-check/lib/index.js +0 -70
- package/node_modules/nth-check/lib/index.js.map +0 -1
- package/node_modules/nth-check/lib/parse.d.ts +0 -9
- package/node_modules/nth-check/lib/parse.d.ts.map +0 -1
- package/node_modules/nth-check/lib/parse.js +0 -77
- package/node_modules/nth-check/lib/parse.js.map +0 -1
- package/node_modules/nth-check/package.json +0 -78
- package/node_modules/ora/index.d.ts +0 -332
- package/node_modules/ora/index.js +0 -443
- package/node_modules/ora/node_modules/chalk/license +0 -9
- package/node_modules/ora/node_modules/chalk/package.json +0 -83
- package/node_modules/ora/node_modules/chalk/readme.md +0 -297
- package/node_modules/ora/node_modules/chalk/source/index.d.ts +0 -325
- package/node_modules/ora/node_modules/chalk/source/index.js +0 -225
- package/node_modules/ora/node_modules/chalk/source/utilities.js +0 -33
- package/node_modules/ora/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- package/node_modules/ora/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- package/node_modules/ora/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- package/node_modules/ora/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
- package/node_modules/ora/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- package/node_modules/ora/node_modules/chalk/source/vendor/supports-color/index.js +0 -190
- package/node_modules/ora/node_modules/cli-spinners/index.d.ts +0 -139
- package/node_modules/ora/node_modules/cli-spinners/index.js +0 -11
- package/node_modules/ora/node_modules/cli-spinners/license +0 -9
- package/node_modules/ora/node_modules/cli-spinners/package.json +0 -56
- package/node_modules/ora/node_modules/cli-spinners/readme.md +0 -74
- package/node_modules/ora/node_modules/cli-spinners/spinners.json +0 -1665
- package/node_modules/ora/node_modules/string-width/index.js +0 -89
- package/node_modules/ora/node_modules/string-width/license +0 -9
- package/node_modules/ora/node_modules/string-width/package.json +0 -65
- package/node_modules/ora/node_modules/string-width/readme.md +0 -66
- package/node_modules/ora/package.json +0 -64
- package/node_modules/ora/readme.md +0 -375
- package/node_modules/parse5/LICENSE +0 -19
- package/node_modules/parse5/README.md +0 -38
- package/node_modules/parse5/dist/cjs/common/doctype.d.ts +0 -4
- package/node_modules/parse5/dist/cjs/common/doctype.js +0 -118
- package/node_modules/parse5/dist/cjs/common/error-codes.d.ts +0 -67
- package/node_modules/parse5/dist/cjs/common/error-codes.js +0 -66
- package/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +0 -9
- package/node_modules/parse5/dist/cjs/common/foreign-content.js +0 -237
- package/node_modules/parse5/dist/cjs/common/html.d.ts +0 -289
- package/node_modules/parse5/dist/cjs/common/html.js +0 -528
- package/node_modules/parse5/dist/cjs/common/token.d.ts +0 -84
- package/node_modules/parse5/dist/cjs/common/token.js +0 -24
- package/node_modules/parse5/dist/cjs/common/unicode.d.ts +0 -42
- package/node_modules/parse5/dist/cjs/common/unicode.js +0 -70
- package/node_modules/parse5/dist/cjs/index.d.ts +0 -71
- package/node_modules/parse5/dist/cjs/index.js +0 -54
- package/node_modules/parse5/dist/cjs/package.json +0 -1
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +0 -36
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +0 -114
- package/node_modules/parse5/dist/cjs/parser/index.d.ts +0 -221
- package/node_modules/parse5/dist/cjs/parser/index.js +0 -3240
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +0 -53
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +0 -328
- package/node_modules/parse5/dist/cjs/serializer/index.d.ts +0 -60
- package/node_modules/parse5/dist/cjs/serializer/index.js +0 -172
- package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +0 -247
- package/node_modules/parse5/dist/cjs/tokenizer/index.js +0 -2714
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +0 -36
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +0 -200
- package/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +0 -84
- package/node_modules/parse5/dist/cjs/tree-adapters/default.js +0 -176
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +0 -255
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.js +0 -2
- package/node_modules/parse5/dist/common/doctype.d.ts +0 -4
- package/node_modules/parse5/dist/common/doctype.js +0 -114
- package/node_modules/parse5/dist/common/error-codes.d.ts +0 -67
- package/node_modules/parse5/dist/common/error-codes.js +0 -63
- package/node_modules/parse5/dist/common/foreign-content.d.ts +0 -9
- package/node_modules/parse5/dist/common/foreign-content.js +0 -228
- package/node_modules/parse5/dist/common/html.d.ts +0 -289
- package/node_modules/parse5/dist/common/html.js +0 -523
- package/node_modules/parse5/dist/common/token.d.ts +0 -84
- package/node_modules/parse5/dist/common/token.js +0 -20
- package/node_modules/parse5/dist/common/unicode.d.ts +0 -42
- package/node_modules/parse5/dist/common/unicode.js +0 -62
- package/node_modules/parse5/dist/index.d.ts +0 -71
- package/node_modules/parse5/dist/index.js +0 -42
- package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +0 -36
- package/node_modules/parse5/dist/parser/formatting-element-list.js +0 -110
- package/node_modules/parse5/dist/parser/index.d.ts +0 -221
- package/node_modules/parse5/dist/parser/index.js +0 -3245
- package/node_modules/parse5/dist/parser/open-element-stack.d.ts +0 -53
- package/node_modules/parse5/dist/parser/open-element-stack.js +0 -324
- package/node_modules/parse5/dist/serializer/index.d.ts +0 -60
- package/node_modules/parse5/dist/serializer/index.js +0 -168
- package/node_modules/parse5/dist/tokenizer/index.d.ts +0 -247
- package/node_modules/parse5/dist/tokenizer/index.js +0 -2710
- package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +0 -36
- package/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -196
- package/node_modules/parse5/dist/tree-adapters/default.d.ts +0 -84
- package/node_modules/parse5/dist/tree-adapters/default.js +0 -173
- package/node_modules/parse5/dist/tree-adapters/interface.d.ts +0 -255
- package/node_modules/parse5/node_modules/entities/LICENSE +0 -11
- package/node_modules/parse5/node_modules/entities/decode.d.ts +0 -1
- package/node_modules/parse5/node_modules/entities/decode.js +0 -3
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +0 -19
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts +0 -209
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js +0 -511
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts +0 -22
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js +0 -73
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts +0 -43
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js +0 -121
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +0 -2
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -10
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +0 -2
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -10
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +0 -8
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js +0 -13
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts +0 -96
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js +0 -131
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/commonjs/package.json +0 -3
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts +0 -19
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +0 -72
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts +0 -209
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.js +0 -497
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts +0 -22
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.js +0 -69
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts +0 -43
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.js +0 -117
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +0 -2
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -7
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +0 -2
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js +0 -7
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts +0 -8
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js +0 -10
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts +0 -96
- package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/index.js +0 -107
- package/node_modules/parse5/node_modules/entities/dist/esm/index.js.map +0 -1
- package/node_modules/parse5/node_modules/entities/dist/esm/package.json +0 -3
- package/node_modules/parse5/node_modules/entities/escape.d.ts +0 -1
- package/node_modules/parse5/node_modules/entities/escape.js +0 -3
- package/node_modules/parse5/node_modules/entities/package.json +0 -118
- package/node_modules/parse5/node_modules/entities/readme.md +0 -122
- package/node_modules/parse5/node_modules/entities/src/decode-codepoint.ts +0 -81
- package/node_modules/parse5/node_modules/entities/src/decode.spec.ts +0 -320
- package/node_modules/parse5/node_modules/entities/src/decode.ts +0 -620
- package/node_modules/parse5/node_modules/entities/src/encode.spec.ts +0 -78
- package/node_modules/parse5/node_modules/entities/src/encode.ts +0 -77
- package/node_modules/parse5/node_modules/entities/src/escape.spec.ts +0 -14
- package/node_modules/parse5/node_modules/entities/src/escape.ts +0 -148
- package/node_modules/parse5/node_modules/entities/src/generated/.eslintrc.json +0 -10
- package/node_modules/parse5/node_modules/entities/src/generated/decode-data-html.ts +0 -8
- package/node_modules/parse5/node_modules/entities/src/generated/decode-data-xml.ts +0 -8
- package/node_modules/parse5/node_modules/entities/src/generated/encode-html.ts +0 -17
- package/node_modules/parse5/node_modules/entities/src/index.spec.ts +0 -125
- package/node_modules/parse5/node_modules/entities/src/index.ts +0 -188
- package/node_modules/parse5/package.json +0 -50
- package/node_modules/parse5-htmlparser2-tree-adapter/LICENSE +0 -19
- package/node_modules/parse5-htmlparser2-tree-adapter/README.md +0 -34
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.d.ts +0 -6
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.js +0 -214
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/package.json +0 -1
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.d.ts +0 -6
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +0 -213
- package/node_modules/parse5-htmlparser2-tree-adapter/package.json +0 -40
- package/node_modules/parse5-parser-stream/LICENSE +0 -19
- package/node_modules/parse5-parser-stream/README.md +0 -34
- package/node_modules/parse5-parser-stream/dist/cjs/index.d.ts +0 -85
- package/node_modules/parse5-parser-stream/dist/cjs/index.js +0 -90
- package/node_modules/parse5-parser-stream/dist/cjs/package.json +0 -1
- package/node_modules/parse5-parser-stream/dist/index.d.ts +0 -85
- package/node_modules/parse5-parser-stream/dist/index.js +0 -86
- package/node_modules/parse5-parser-stream/package.json +0 -39
- package/node_modules/rfdc/.github/workflows/ci.yml +0 -21
- package/node_modules/rfdc/LICENSE +0 -15
- package/node_modules/rfdc/default.js +0 -3
- package/node_modules/rfdc/index.d.ts +0 -13
- package/node_modules/rfdc/index.js +0 -198
- package/node_modules/rfdc/index.test-d.ts +0 -13
- package/node_modules/rfdc/package.json +0 -73
- package/node_modules/rfdc/readme.md +0 -181
- package/node_modules/rfdc/test/index.js +0 -306
- package/node_modules/smol-toml/dist/date.d.ts.map +0 -1
- package/node_modules/smol-toml/dist/date.js.map +0 -1
- package/node_modules/smol-toml/dist/error.d.ts.map +0 -1
- package/node_modules/smol-toml/dist/error.js.map +0 -1
- package/node_modules/smol-toml/dist/extract.js.map +0 -1
- package/node_modules/smol-toml/dist/index.cjs.map +0 -1
- package/node_modules/smol-toml/dist/index.d.ts.map +0 -1
- package/node_modules/smol-toml/dist/index.js.map +0 -1
- package/node_modules/smol-toml/dist/parse.d.ts.map +0 -1
- package/node_modules/smol-toml/dist/parse.js.map +0 -1
- package/node_modules/smol-toml/dist/primitive.d.ts +0 -29
- package/node_modules/smol-toml/dist/primitive.d.ts.map +0 -1
- package/node_modules/smol-toml/dist/primitive.js.map +0 -1
- package/node_modules/smol-toml/dist/stringify.d.ts.map +0 -1
- package/node_modules/smol-toml/dist/stringify.js.map +0 -1
- package/node_modules/smol-toml/dist/struct.js.map +0 -1
- package/node_modules/smol-toml/dist/util.d.ts.map +0 -1
- package/node_modules/smol-toml/dist/util.js.map +0 -1
- package/node_modules/smol-toml/src/date.ts +0 -152
- package/node_modules/smol-toml/src/error.ts +0 -77
- package/node_modules/smol-toml/src/extract.ts +0 -113
- package/node_modules/smol-toml/src/index.ts +0 -42
- package/node_modules/smol-toml/src/parse.ts +0 -184
- package/node_modules/smol-toml/src/primitive.ts +0 -249
- package/node_modules/smol-toml/src/stringify.ts +0 -191
- package/node_modules/smol-toml/src/struct.ts +0 -202
- package/node_modules/smol-toml/src/util.ts +0 -106
- package/node_modules/stdin-discarder/index.d.ts +0 -13
- package/node_modules/stdin-discarder/index.js +0 -59
- package/node_modules/stdin-discarder/license +0 -9
- package/node_modules/stdin-discarder/package.json +0 -42
- package/node_modules/stdin-discarder/readme.md +0 -37
- package/node_modules/whatwg-encoding/LICENSE.txt +0 -7
- package/node_modules/whatwg-encoding/README.md +0 -50
- package/node_modules/whatwg-encoding/lib/labels-to-names.json +0 -217
- package/node_modules/whatwg-encoding/lib/supported-names.json +0 -38
- package/node_modules/whatwg-encoding/lib/whatwg-encoding.js +0 -60
- package/node_modules/whatwg-encoding/package.json +0 -32
- package/node_modules/whatwg-mimetype/LICENSE.txt +0 -7
- package/node_modules/whatwg-mimetype/README.md +0 -101
- package/node_modules/whatwg-mimetype/lib/mime-type-parameters.js +0 -70
- package/node_modules/whatwg-mimetype/lib/mime-type.js +0 -127
- package/node_modules/whatwg-mimetype/lib/parser.js +0 -105
- package/node_modules/whatwg-mimetype/lib/serializer.js +0 -25
- package/node_modules/whatwg-mimetype/lib/utils.js +0 -60
- package/node_modules/whatwg-mimetype/package.json +0 -45
- /package/node_modules/@listr2/{prompt-adapter-enquirer → prompt-adapter-inquirer}/LICENSE +0 -0
- /package/node_modules/{parse5/dist/tree-adapters/interface.js → @listr2/prompt-adapter-inquirer/node_modules/@inquirer/type/dist/inquirer.js} +0 -0
- /package/node_modules/{log-update/node_modules/ansi-escapes → ansi-escapes}/index.d.ts +0 -0
- /package/node_modules/{log-update/node_modules/ansi-escapes → ansi-escapes}/index.js +0 -0
- /package/node_modules/{chalk → ansi-escapes}/license +0 -0
- /package/node_modules/{cheerio-select → htmlparser2/node_modules/domelementtype}/LICENSE +0 -0
- /package/node_modules/{domelementtype → htmlparser2/node_modules/domelementtype}/readme.md +0 -0
- /package/node_modules/{css-select → htmlparser2/node_modules/domhandler}/LICENSE +0 -0
- /package/node_modules/{css-what → htmlparser2/node_modules/domutils}/LICENSE +0 -0
- /package/node_modules/htmlparser2/node_modules/entities/dist/{commonjs/internal → internal}/bin-trie-flags.d.ts +0 -0
- /package/node_modules/htmlparser2/node_modules/entities/dist/{esm/internal → internal}/bin-trie-flags.js +0 -0
- /package/node_modules/{ora → listr2}/node_modules/string-width/index.d.ts +0 -0
- /package/node_modules/{figures → listr2/node_modules/string-width}/license +0 -0
- /package/node_modules/log-update/node_modules/{ansi-escapes → string-width}/license +0 -0
- /package/node_modules/{ora → yocto-spinner}/license +0 -0
|
@@ -1,2107 +0,0 @@
|
|
|
1
|
-
import EventEmitter from "eventemitter3";
|
|
2
|
-
import { createColors } from "colorette";
|
|
3
|
-
import { format } from "util";
|
|
4
|
-
import { EOL } from "os";
|
|
5
|
-
import { StringDecoder } from "string_decoder";
|
|
6
|
-
import { Writable } from "stream";
|
|
7
|
-
import rfdc from "rfdc";
|
|
8
|
-
import { randomUUID } from "crypto";
|
|
9
|
-
|
|
10
|
-
//#region src/constants/ansi-escape-codes.constants.ts
|
|
11
|
-
/**
|
|
12
|
-
* Indicates an UNICODE characters is coming up.
|
|
13
|
-
*/
|
|
14
|
-
const ANSI_ESCAPE = "\x1B[";
|
|
15
|
-
/**
|
|
16
|
-
* Generic ANSI escape characters for terminal based operations.
|
|
17
|
-
*/
|
|
18
|
-
const ANSI_ESCAPE_CODES = {
|
|
19
|
-
CURSOR_HIDE: ANSI_ESCAPE + "?25l",
|
|
20
|
-
CURSOR_SHOW: ANSI_ESCAPE + "?25h"
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region src/constants/environment-variables.constants.ts
|
|
25
|
-
/**
|
|
26
|
-
* Environment variables for Listr.
|
|
27
|
-
*/
|
|
28
|
-
let ListrEnvironmentVariables = /* @__PURE__ */ function(ListrEnvironmentVariables$1) {
|
|
29
|
-
ListrEnvironmentVariables$1["FORCE_UNICODE"] = "LISTR_FORCE_UNICODE";
|
|
30
|
-
ListrEnvironmentVariables$1["FORCE_TTY"] = "LISTR_FORCE_TTY";
|
|
31
|
-
ListrEnvironmentVariables$1["DISABLE_COLOR"] = "NO_COLOR";
|
|
32
|
-
ListrEnvironmentVariables$1["FORCE_COLOR"] = "FORCE_COLOR";
|
|
33
|
-
return ListrEnvironmentVariables$1;
|
|
34
|
-
}({});
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region src/constants/listr-error.constants.ts
|
|
38
|
-
/**
|
|
39
|
-
* The actual error type that is collected and to help identify where the error is triggered from.
|
|
40
|
-
*/
|
|
41
|
-
let ListrErrorTypes = /* @__PURE__ */ function(ListrErrorTypes$1) {
|
|
42
|
-
/** Task has failed and will try to retry. */
|
|
43
|
-
ListrErrorTypes$1["WILL_RETRY"] = "WILL_RETRY";
|
|
44
|
-
/** Task has failed and will try to rollback. */
|
|
45
|
-
ListrErrorTypes$1["WILL_ROLLBACK"] = "WILL_ROLLBACK";
|
|
46
|
-
/** Task has failed, ran the rollback action but the rollback action itself has failed. */
|
|
47
|
-
ListrErrorTypes$1["HAS_FAILED_TO_ROLLBACK"] = "HAS_FAILED_TO_ROLLBACK";
|
|
48
|
-
/** Task has failed. */
|
|
49
|
-
ListrErrorTypes$1["HAS_FAILED"] = "HAS_FAILED";
|
|
50
|
-
/** Task has failed, but exitOnError is set to false, so will ignore this error. */
|
|
51
|
-
ListrErrorTypes$1["HAS_FAILED_WITHOUT_ERROR"] = "HAS_FAILED_WITHOUT_ERROR";
|
|
52
|
-
return ListrErrorTypes$1;
|
|
53
|
-
}({});
|
|
54
|
-
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region src/constants/listr-events.constants.ts
|
|
57
|
-
/**
|
|
58
|
-
* Events that are triggered by Listr.
|
|
59
|
-
*
|
|
60
|
-
* These are stateful and singleton events by being attached to the main Listr class and propagating to the subtasks.
|
|
61
|
-
*
|
|
62
|
-
* @see {@link https://listr2.kilic.dev/listr/events.html}
|
|
63
|
-
*/
|
|
64
|
-
let ListrEventType = /* @__PURE__ */ function(ListrEventType$1) {
|
|
65
|
-
/** Indicates that underlying renderer should refresh the current render. */
|
|
66
|
-
ListrEventType$1["SHOULD_REFRESH_RENDER"] = "SHOUD_REFRESH_RENDER";
|
|
67
|
-
return ListrEventType$1;
|
|
68
|
-
}({});
|
|
69
|
-
|
|
70
|
-
//#endregion
|
|
71
|
-
//#region src/constants/listr-renderer.constants.ts
|
|
72
|
-
let ListrRendererSelection = /* @__PURE__ */ function(ListrRendererSelection$1) {
|
|
73
|
-
ListrRendererSelection$1["PRIMARY"] = "PRIMARY";
|
|
74
|
-
ListrRendererSelection$1["SECONDARY"] = "SECONDARY";
|
|
75
|
-
ListrRendererSelection$1["SILENT"] = "SILENT";
|
|
76
|
-
return ListrRendererSelection$1;
|
|
77
|
-
}({});
|
|
78
|
-
|
|
79
|
-
//#endregion
|
|
80
|
-
//#region src/constants/listr-task-events.constants.ts
|
|
81
|
-
/**
|
|
82
|
-
* Internal events that are fired from the Task.
|
|
83
|
-
*
|
|
84
|
-
* @see {@link https://listr2.kilic.dev/task/events.html}
|
|
85
|
-
*/
|
|
86
|
-
let ListrTaskEventType = /* @__PURE__ */ function(ListrTaskEventType$1) {
|
|
87
|
-
/** Title has changed for the current Task. */
|
|
88
|
-
ListrTaskEventType$1["TITLE"] = "TITLE";
|
|
89
|
-
/**
|
|
90
|
-
* State has changed for the current Task.
|
|
91
|
-
*
|
|
92
|
-
* @see {@link module:listr2.ListrTaskState}
|
|
93
|
-
*/
|
|
94
|
-
ListrTaskEventType$1["STATE"] = "STATE";
|
|
95
|
-
/** The current Task has been marked as enabled. */
|
|
96
|
-
ListrTaskEventType$1["ENABLED"] = "ENABLED";
|
|
97
|
-
/** The current Task is currently processing subtasks. */
|
|
98
|
-
ListrTaskEventType$1["SUBTASK"] = "SUBTASK";
|
|
99
|
-
/** The current Task is now processing a prompt. */
|
|
100
|
-
ListrTaskEventType$1["PROMPT"] = "PROMPT";
|
|
101
|
-
/** The current Task is now dumping output. */
|
|
102
|
-
ListrTaskEventType$1["OUTPUT"] = "OUTPUT";
|
|
103
|
-
/**
|
|
104
|
-
* The current Task is now dumping a message.
|
|
105
|
-
*
|
|
106
|
-
* @see {module:Listr2.ListrTaskMessage}
|
|
107
|
-
*/
|
|
108
|
-
ListrTaskEventType$1["MESSAGE"] = "MESSAGE";
|
|
109
|
-
/** The current Task is closed and no further action in expected. */
|
|
110
|
-
ListrTaskEventType$1["CLOSED"] = "CLOSED";
|
|
111
|
-
return ListrTaskEventType$1;
|
|
112
|
-
}({});
|
|
113
|
-
|
|
114
|
-
//#endregion
|
|
115
|
-
//#region src/constants/listr-task-state.constants.ts
|
|
116
|
-
/**
|
|
117
|
-
* Tasks can be in various states during the execution.
|
|
118
|
-
*
|
|
119
|
-
* Whenever a state change occurs, the task will emit a {@link module:listr2.ListrTaskEventType.STATE} with the appropriate state.
|
|
120
|
-
*/
|
|
121
|
-
let ListrTaskState = /* @__PURE__ */ function(ListrTaskState$1) {
|
|
122
|
-
/** Task has not started yet, waiting for pick-up. */
|
|
123
|
-
ListrTaskState$1["WAITING"] = "WAITING";
|
|
124
|
-
/** Task has started. */
|
|
125
|
-
ListrTaskState$1["STARTED"] = "STARTED";
|
|
126
|
-
/** Task has been completed. */
|
|
127
|
-
ListrTaskState$1["COMPLETED"] = "COMPLETED";
|
|
128
|
-
/** Task has failed. */
|
|
129
|
-
ListrTaskState$1["FAILED"] = "FAILED";
|
|
130
|
-
/** Task has been skipped. */
|
|
131
|
-
ListrTaskState$1["SKIPPED"] = "SKIPPED";
|
|
132
|
-
/** Task is currently trying to rollback. */
|
|
133
|
-
ListrTaskState$1["ROLLING_BACK"] = "ROLLING_BACK";
|
|
134
|
-
/** Task has rolledback successfully after failing. */
|
|
135
|
-
ListrTaskState$1["ROLLED_BACK"] = "ROLLED_BACK";
|
|
136
|
-
/** Task is currently retrying. */
|
|
137
|
-
ListrTaskState$1["RETRY"] = "RETRY";
|
|
138
|
-
/** Task is currently paused. */
|
|
139
|
-
ListrTaskState$1["PAUSED"] = "PAUSED";
|
|
140
|
-
/** Task is currently trying to process a prompt. */
|
|
141
|
-
ListrTaskState$1["PROMPT"] = "PROMPT";
|
|
142
|
-
/** Task has successfully processed the prompt. */
|
|
143
|
-
ListrTaskState$1["PROMPT_COMPLETED"] = "PROMPT_COMPLETED";
|
|
144
|
-
/** Task has failed to process the prompt. */
|
|
145
|
-
ListrTaskState$1["PROMPT_FAILED"] = "PROMPT_FAILED";
|
|
146
|
-
return ListrTaskState$1;
|
|
147
|
-
}({});
|
|
148
|
-
|
|
149
|
-
//#endregion
|
|
150
|
-
//#region src/lib/event-manager.ts
|
|
151
|
-
var EventManager = class {
|
|
152
|
-
emitter = new EventEmitter();
|
|
153
|
-
emit(dispatch, args) {
|
|
154
|
-
this.emitter.emit(dispatch, args);
|
|
155
|
-
}
|
|
156
|
-
on(dispatch, handler) {
|
|
157
|
-
this.emitter.addListener(dispatch, handler);
|
|
158
|
-
}
|
|
159
|
-
once(dispatch, handler) {
|
|
160
|
-
this.emitter.once(dispatch, handler);
|
|
161
|
-
}
|
|
162
|
-
off(dispatch, handler) {
|
|
163
|
-
this.emitter.off(dispatch, handler);
|
|
164
|
-
}
|
|
165
|
-
complete() {
|
|
166
|
-
this.emitter.removeAllListeners();
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region src/interfaces/event.interface.ts
|
|
172
|
-
/**
|
|
173
|
-
* Give event map a set of indexes to not make it go crazy when some events are missing from it.
|
|
174
|
-
* They are optional after all.
|
|
175
|
-
*/
|
|
176
|
-
var BaseEventMap = class {};
|
|
177
|
-
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region src/utils/environment/is-observable.ts
|
|
180
|
-
/**
|
|
181
|
-
* Tests to see if the object is an RxJS {@link Observable}
|
|
182
|
-
* @param obj the object to test
|
|
183
|
-
*/
|
|
184
|
-
function isObservable(obj) {
|
|
185
|
-
return !!obj && typeof obj === "object" && typeof obj.subscribe === "function";
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
//#endregion
|
|
189
|
-
//#region src/utils/environment/is-readable.ts
|
|
190
|
-
/**
|
|
191
|
-
* Tests to see if the object is an Readable or NodeJS.ReadableStream {@link Readable, NodeJS.ReadableStream}
|
|
192
|
-
* @param obj the object to test
|
|
193
|
-
*/
|
|
194
|
-
function isReadable(obj) {
|
|
195
|
-
return !!obj && typeof obj === "object" && obj.readable === true && typeof obj.read === "function" && typeof obj.on === "function";
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
//#endregion
|
|
199
|
-
//#region src/utils/environment/is-unicode-supported.ts
|
|
200
|
-
function isUnicodeSupported() {
|
|
201
|
-
/* istanbul ignore next */
|
|
202
|
-
return !!process.env[ListrEnvironmentVariables.FORCE_UNICODE] || process.platform !== "win32" || !!process.env.CI || !!process.env.WT_SESSION || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty";
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
//#endregion
|
|
206
|
-
//#region src/utils/format/cleanse-ansi.constants.ts
|
|
207
|
-
const CLEAR_LINE_REGEX = "(?:\\u001b|\\u009b)\\[[\\=><~/#&.:=?%@~_-]*[0-9]*[\\a-ln-tqyz=><~/#&.:=?%@~_-]+";
|
|
208
|
-
const BELL_REGEX = /\u0007/;
|
|
209
|
-
|
|
210
|
-
//#endregion
|
|
211
|
-
//#region src/utils/format/cleanse-ansi.ts
|
|
212
|
-
function cleanseAnsi(chunk) {
|
|
213
|
-
return String(chunk).replace(new RegExp(CLEAR_LINE_REGEX, "gmi"), "").replace(new RegExp(BELL_REGEX, "gmi"), "").trim();
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
//#endregion
|
|
217
|
-
//#region src/utils/format/color.ts
|
|
218
|
-
/**
|
|
219
|
-
* Creates color palette through underlying dependency of `colorette`.
|
|
220
|
-
*
|
|
221
|
-
* @see {@link https://www.npmjs.com/package/colorette}
|
|
222
|
-
*/
|
|
223
|
-
const color = createColors();
|
|
224
|
-
|
|
225
|
-
//#endregion
|
|
226
|
-
//#region src/utils/format/indent.ts
|
|
227
|
-
function indent(string, count) {
|
|
228
|
-
return string.replace(/^(?!\s*$)/gm, " ".repeat(count));
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
//#endregion
|
|
232
|
-
//#region src/utils/format/figures.ts
|
|
233
|
-
const FIGURES_MAIN = {
|
|
234
|
-
warning: "⚠",
|
|
235
|
-
cross: "✖",
|
|
236
|
-
arrowDown: "↓",
|
|
237
|
-
tick: "✔",
|
|
238
|
-
arrowRight: "→",
|
|
239
|
-
pointer: "❯",
|
|
240
|
-
checkboxOn: "☒",
|
|
241
|
-
arrowLeft: "←",
|
|
242
|
-
squareSmallFilled: "◼",
|
|
243
|
-
pointerSmall: "›"
|
|
244
|
-
};
|
|
245
|
-
const FIGURES_FALLBACK = {
|
|
246
|
-
...FIGURES_MAIN,
|
|
247
|
-
warning: "‼",
|
|
248
|
-
cross: "×",
|
|
249
|
-
tick: "√",
|
|
250
|
-
pointer: ">",
|
|
251
|
-
checkboxOn: "[×]",
|
|
252
|
-
squareSmallFilled: "■"
|
|
253
|
-
};
|
|
254
|
-
const figures = isUnicodeSupported() ? FIGURES_MAIN : FIGURES_FALLBACK;
|
|
255
|
-
|
|
256
|
-
//#endregion
|
|
257
|
-
//#region src/utils/format/splat.ts
|
|
258
|
-
function splat(message, ...splat$1) {
|
|
259
|
-
return format(String(message), ...splat$1);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region src/utils/logger/logger.constants.ts
|
|
264
|
-
/** Default ListrLogLevels for the logger */
|
|
265
|
-
let ListrLogLevels = /* @__PURE__ */ function(ListrLogLevels$1) {
|
|
266
|
-
ListrLogLevels$1["STARTED"] = "STARTED";
|
|
267
|
-
ListrLogLevels$1["COMPLETED"] = "COMPLETED";
|
|
268
|
-
ListrLogLevels$1["FAILED"] = "FAILED";
|
|
269
|
-
ListrLogLevels$1["SKIPPED"] = "SKIPPED";
|
|
270
|
-
ListrLogLevels$1["OUTPUT"] = "OUTPUT";
|
|
271
|
-
ListrLogLevels$1["TITLE"] = "TITLE";
|
|
272
|
-
ListrLogLevels$1["ROLLBACK"] = "ROLLBACK";
|
|
273
|
-
ListrLogLevels$1["RETRY"] = "RETRY";
|
|
274
|
-
ListrLogLevels$1["PROMPT"] = "PROMPT";
|
|
275
|
-
ListrLogLevels$1["PAUSED"] = "PAUSED";
|
|
276
|
-
return ListrLogLevels$1;
|
|
277
|
-
}({});
|
|
278
|
-
const LISTR_LOGGER_STYLE = {
|
|
279
|
-
icon: {
|
|
280
|
-
[ListrLogLevels.STARTED]: figures.pointer,
|
|
281
|
-
[ListrLogLevels.FAILED]: figures.cross,
|
|
282
|
-
[ListrLogLevels.SKIPPED]: figures.arrowDown,
|
|
283
|
-
[ListrLogLevels.COMPLETED]: figures.tick,
|
|
284
|
-
[ListrLogLevels.OUTPUT]: figures.pointerSmall,
|
|
285
|
-
[ListrLogLevels.TITLE]: figures.arrowRight,
|
|
286
|
-
[ListrLogLevels.RETRY]: figures.warning,
|
|
287
|
-
[ListrLogLevels.ROLLBACK]: figures.arrowLeft,
|
|
288
|
-
[ListrLogLevels.PAUSED]: figures.squareSmallFilled
|
|
289
|
-
},
|
|
290
|
-
color: {
|
|
291
|
-
[ListrLogLevels.STARTED]: color.yellow,
|
|
292
|
-
[ListrLogLevels.FAILED]: color.red,
|
|
293
|
-
[ListrLogLevels.SKIPPED]: color.yellow,
|
|
294
|
-
[ListrLogLevels.COMPLETED]: color.green,
|
|
295
|
-
[ListrLogLevels.RETRY]: color.yellowBright,
|
|
296
|
-
[ListrLogLevels.ROLLBACK]: color.redBright,
|
|
297
|
-
[ListrLogLevels.PAUSED]: color.yellowBright
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
const LISTR_LOGGER_STDERR_LEVELS = [
|
|
301
|
-
ListrLogLevels.RETRY,
|
|
302
|
-
ListrLogLevels.ROLLBACK,
|
|
303
|
-
ListrLogLevels.FAILED
|
|
304
|
-
];
|
|
305
|
-
|
|
306
|
-
//#endregion
|
|
307
|
-
//#region src/utils/logger/logger.ts
|
|
308
|
-
/**
|
|
309
|
-
* Creates a new Listr2 logger.
|
|
310
|
-
*
|
|
311
|
-
* This logger is used throughout the renderers for consistency.
|
|
312
|
-
*
|
|
313
|
-
* @see {@link https://listr2.kilic.dev/renderer/logger.html}
|
|
314
|
-
*/
|
|
315
|
-
var ListrLogger = class {
|
|
316
|
-
process;
|
|
317
|
-
constructor(options) {
|
|
318
|
-
this.options = options;
|
|
319
|
-
this.options = {
|
|
320
|
-
useIcons: true,
|
|
321
|
-
toStderr: [],
|
|
322
|
-
...options ?? {}
|
|
323
|
-
};
|
|
324
|
-
this.options.fields ??= {};
|
|
325
|
-
this.options.fields.prefix ??= [];
|
|
326
|
-
this.options.fields.suffix ??= [];
|
|
327
|
-
this.process = this.options.processOutput ?? new ProcessOutput();
|
|
328
|
-
}
|
|
329
|
-
log(level, message, options) {
|
|
330
|
-
const output = this.format(level, message, options);
|
|
331
|
-
if (this.options.toStderr.includes(level)) {
|
|
332
|
-
this.process.toStderr(output);
|
|
333
|
-
return;
|
|
334
|
-
}
|
|
335
|
-
this.process.toStdout(output);
|
|
336
|
-
}
|
|
337
|
-
toStdout(message, options, eol = true) {
|
|
338
|
-
this.process.toStdout(this.format(null, message, options), eol);
|
|
339
|
-
}
|
|
340
|
-
toStderr(message, options, eol = true) {
|
|
341
|
-
this.process.toStderr(this.format(null, message, options), eol);
|
|
342
|
-
}
|
|
343
|
-
wrap(message, options) {
|
|
344
|
-
if (!message) return message;
|
|
345
|
-
return this.applyFormat(`[${message}]`, options);
|
|
346
|
-
}
|
|
347
|
-
splat(...args) {
|
|
348
|
-
const message = args.shift() ?? "";
|
|
349
|
-
return args.length === 0 ? message : splat(message, args);
|
|
350
|
-
}
|
|
351
|
-
suffix(message, ...suffixes) {
|
|
352
|
-
suffixes.filter(Boolean).forEach((suffix) => {
|
|
353
|
-
message += this.spacing(message);
|
|
354
|
-
if (typeof suffix === "string") message += this.wrap(suffix);
|
|
355
|
-
else if (typeof suffix === "object") {
|
|
356
|
-
suffix.args ??= [];
|
|
357
|
-
if (typeof suffix.condition === "function" ? !suffix.condition(...suffix.args) : !(suffix.condition ?? true)) return message;
|
|
358
|
-
message += this.wrap(typeof suffix.field === "function" ? suffix.field(...suffix.args) : suffix.field, { format: suffix?.format(...suffix.args) });
|
|
359
|
-
}
|
|
360
|
-
});
|
|
361
|
-
return message;
|
|
362
|
-
}
|
|
363
|
-
prefix(message, ...prefixes) {
|
|
364
|
-
prefixes.filter(Boolean).forEach((prefix) => {
|
|
365
|
-
message = this.spacing(message) + message;
|
|
366
|
-
if (typeof prefix === "string") message = this.wrap(prefix) + message;
|
|
367
|
-
else if (typeof prefix === "object") {
|
|
368
|
-
prefix.args ??= [];
|
|
369
|
-
if (typeof prefix.condition === "function" ? !prefix.condition(...prefix.args) : !(prefix.condition ?? true)) return message;
|
|
370
|
-
message = this.wrap(typeof prefix.field === "function" ? prefix.field(...prefix.args) : prefix.field, { format: prefix?.format() }) + message;
|
|
371
|
-
}
|
|
372
|
-
});
|
|
373
|
-
return message;
|
|
374
|
-
}
|
|
375
|
-
fields(message, options) {
|
|
376
|
-
if (this.options?.fields?.prefix) message = this.prefix(message, ...this.options.fields.prefix);
|
|
377
|
-
if (options?.prefix) message = this.prefix(message, ...options.prefix);
|
|
378
|
-
if (options?.suffix) message = this.suffix(message, ...options.suffix);
|
|
379
|
-
if (this.options?.fields?.suffix) message = this.suffix(message, ...this.options.fields.suffix);
|
|
380
|
-
return message;
|
|
381
|
-
}
|
|
382
|
-
icon(level, icon) {
|
|
383
|
-
if (!level) return null;
|
|
384
|
-
if (!icon) {
|
|
385
|
-
const i = this.options.icon?.[level];
|
|
386
|
-
icon = typeof i === "function" ? i() : i;
|
|
387
|
-
}
|
|
388
|
-
const coloring = this.options.color?.[level];
|
|
389
|
-
if (icon && coloring) icon = coloring(icon);
|
|
390
|
-
return icon;
|
|
391
|
-
}
|
|
392
|
-
format(level, message, options) {
|
|
393
|
-
if (!Array.isArray(message)) message = [message];
|
|
394
|
-
message = this.splat(message.shift(), ...message).toString().split(EOL).filter((m) => !m || m.trim() !== "").map((m) => {
|
|
395
|
-
return this.style(level, this.fields(m, {
|
|
396
|
-
prefix: Array.isArray(options?.prefix) ? options.prefix : [options?.prefix],
|
|
397
|
-
suffix: Array.isArray(options?.suffix) ? options.suffix : [options?.suffix]
|
|
398
|
-
}));
|
|
399
|
-
}).join(EOL);
|
|
400
|
-
return message;
|
|
401
|
-
}
|
|
402
|
-
style(level, message) {
|
|
403
|
-
if (!level || !message) return message;
|
|
404
|
-
const icon = this.icon(level, !this.options.useIcons && this.wrap(level));
|
|
405
|
-
if (icon) message = icon + " " + message;
|
|
406
|
-
return message;
|
|
407
|
-
}
|
|
408
|
-
applyFormat(message, options) {
|
|
409
|
-
if (options?.format) return options.format(message);
|
|
410
|
-
return message;
|
|
411
|
-
}
|
|
412
|
-
spacing(message) {
|
|
413
|
-
return typeof message === "undefined" || message.trim() === "" ? "" : " ";
|
|
414
|
-
}
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
//#endregion
|
|
418
|
-
//#region src/utils/process-output/process-output-buffer.ts
|
|
419
|
-
var ProcessOutputBuffer = class {
|
|
420
|
-
buffer = [];
|
|
421
|
-
decoder = new StringDecoder();
|
|
422
|
-
constructor(options) {
|
|
423
|
-
this.options = options;
|
|
424
|
-
}
|
|
425
|
-
get all() {
|
|
426
|
-
return this.buffer;
|
|
427
|
-
}
|
|
428
|
-
get last() {
|
|
429
|
-
return this.buffer.at(-1);
|
|
430
|
-
}
|
|
431
|
-
get length() {
|
|
432
|
-
return this.buffer.length;
|
|
433
|
-
}
|
|
434
|
-
write(data, ...args) {
|
|
435
|
-
const callback = args[args.length - 1];
|
|
436
|
-
this.buffer.push({
|
|
437
|
-
time: Date.now(),
|
|
438
|
-
stream: this.options?.stream,
|
|
439
|
-
entry: this.decoder.write(typeof data === "string" ? Buffer.from(data, typeof args[0] === "string" ? args[0] : void 0) : Buffer.from(data))
|
|
440
|
-
});
|
|
441
|
-
if (this.options?.limit) this.buffer = this.buffer.slice(-this.options.limit);
|
|
442
|
-
if (typeof callback === "function") callback();
|
|
443
|
-
return true;
|
|
444
|
-
}
|
|
445
|
-
reset() {
|
|
446
|
-
this.buffer = [];
|
|
447
|
-
}
|
|
448
|
-
};
|
|
449
|
-
|
|
450
|
-
//#endregion
|
|
451
|
-
//#region src/utils/process-output/process-output-stream.ts
|
|
452
|
-
var ProcessOutputStream = class {
|
|
453
|
-
method;
|
|
454
|
-
buffer;
|
|
455
|
-
constructor(stream) {
|
|
456
|
-
this.stream = stream;
|
|
457
|
-
this.method = stream.write;
|
|
458
|
-
this.buffer = new ProcessOutputBuffer({ stream });
|
|
459
|
-
}
|
|
460
|
-
get out() {
|
|
461
|
-
return Object.assign({}, this.stream, { write: this.write.bind(this) });
|
|
462
|
-
}
|
|
463
|
-
hijack() {
|
|
464
|
-
this.stream.write = this.buffer.write.bind(this.buffer);
|
|
465
|
-
}
|
|
466
|
-
release() {
|
|
467
|
-
this.stream.write = this.method;
|
|
468
|
-
const buffer = [...this.buffer.all];
|
|
469
|
-
this.buffer.reset();
|
|
470
|
-
return buffer;
|
|
471
|
-
}
|
|
472
|
-
write(...args) {
|
|
473
|
-
return this.method.apply(this.stream, args);
|
|
474
|
-
}
|
|
475
|
-
};
|
|
476
|
-
|
|
477
|
-
//#endregion
|
|
478
|
-
//#region src/utils/process-output/process-output.ts
|
|
479
|
-
/**
|
|
480
|
-
* Creates a new Listr2 process-output controller.
|
|
481
|
-
*
|
|
482
|
-
* This is used to control the flow to `process.stdout` and `process.stderr` for all renderers.
|
|
483
|
-
*
|
|
484
|
-
* @see {@link https://listr2.kilic.dev/renderer/process-output.html}
|
|
485
|
-
*/
|
|
486
|
-
var ProcessOutput = class {
|
|
487
|
-
stream;
|
|
488
|
-
active;
|
|
489
|
-
constructor(stdout, stderr, options) {
|
|
490
|
-
this.options = options;
|
|
491
|
-
this.stream = {
|
|
492
|
-
stdout: new ProcessOutputStream(stdout ?? process.stdout),
|
|
493
|
-
stderr: new ProcessOutputStream(stderr ?? process.stderr)
|
|
494
|
-
};
|
|
495
|
-
this.options = {
|
|
496
|
-
dump: ["stdout", "stderr"],
|
|
497
|
-
leaveEmptyLine: true,
|
|
498
|
-
...options
|
|
499
|
-
};
|
|
500
|
-
}
|
|
501
|
-
get stdout() {
|
|
502
|
-
return this.stream.stdout.out;
|
|
503
|
-
}
|
|
504
|
-
get stderr() {
|
|
505
|
-
return this.stream.stderr.out;
|
|
506
|
-
}
|
|
507
|
-
hijack() {
|
|
508
|
-
if (this.active) throw new Error("ProcessOutput has been already hijacked!");
|
|
509
|
-
this.stream.stdout.write(ANSI_ESCAPE_CODES.CURSOR_HIDE);
|
|
510
|
-
Object.values(this.stream).forEach((stream) => stream.hijack());
|
|
511
|
-
this.active = true;
|
|
512
|
-
}
|
|
513
|
-
release() {
|
|
514
|
-
const output = Object.entries(this.stream).map(([name, stream]) => ({
|
|
515
|
-
name,
|
|
516
|
-
buffer: stream.release()
|
|
517
|
-
})).filter((output$1) => this.options.dump.includes(output$1.name)).flatMap((output$1) => output$1.buffer).sort((a, b) => a.time - b.time).map((message) => {
|
|
518
|
-
return {
|
|
519
|
-
...message,
|
|
520
|
-
entry: cleanseAnsi(message.entry)
|
|
521
|
-
};
|
|
522
|
-
}).filter((message) => message.entry);
|
|
523
|
-
if (output.length > 0) {
|
|
524
|
-
if (this.options.leaveEmptyLine) this.stdout.write(EOL);
|
|
525
|
-
output.forEach((message) => {
|
|
526
|
-
(message.stream ?? this.stdout).write(message.entry + EOL);
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
this.stream.stdout.write(ANSI_ESCAPE_CODES.CURSOR_SHOW);
|
|
530
|
-
this.active = false;
|
|
531
|
-
}
|
|
532
|
-
toStdout(buffer, eol = true) {
|
|
533
|
-
if (eol) buffer = buffer + EOL;
|
|
534
|
-
return this.stream.stdout.write(buffer);
|
|
535
|
-
}
|
|
536
|
-
toStderr(buffer, eol = true) {
|
|
537
|
-
if (eol) buffer = buffer + EOL;
|
|
538
|
-
return this.stream.stderr.write(buffer);
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
|
|
542
|
-
//#endregion
|
|
543
|
-
//#region src/utils/process-output/writable.ts
|
|
544
|
-
/* istanbul ignore next */
|
|
545
|
-
function createWritable(cb) {
|
|
546
|
-
const writable = new Writable();
|
|
547
|
-
writable.rows = Infinity;
|
|
548
|
-
writable.columns = Infinity;
|
|
549
|
-
writable.write = (chunk) => {
|
|
550
|
-
cb(chunk.toString());
|
|
551
|
-
return true;
|
|
552
|
-
};
|
|
553
|
-
return writable;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
//#endregion
|
|
557
|
-
//#region src/utils/prompts/adapter.ts
|
|
558
|
-
/* istanbul ignore next */
|
|
559
|
-
var ListrPromptAdapter = class {
|
|
560
|
-
state;
|
|
561
|
-
constructor(task, wrapper) {
|
|
562
|
-
this.task = task;
|
|
563
|
-
this.wrapper = wrapper;
|
|
564
|
-
}
|
|
565
|
-
reportStarted() {
|
|
566
|
-
this.state = this.task.state;
|
|
567
|
-
if (this.task.prompt) throw new PromptError("There is already an active prompt attached to this task which may not be cleaned up properly.");
|
|
568
|
-
this.task.prompt = this;
|
|
569
|
-
this.task.state$ = ListrTaskState.PROMPT;
|
|
570
|
-
}
|
|
571
|
-
reportFailed() {
|
|
572
|
-
this.task.state$ = ListrTaskState.PROMPT_FAILED;
|
|
573
|
-
this.restoreState();
|
|
574
|
-
}
|
|
575
|
-
reportCompleted() {
|
|
576
|
-
this.task.state$ = ListrTaskState.PROMPT_COMPLETED;
|
|
577
|
-
this.restoreState();
|
|
578
|
-
}
|
|
579
|
-
restoreState() {
|
|
580
|
-
this.task.prompt = void 0;
|
|
581
|
-
if (this.state) this.task.state = this.state;
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
|
|
585
|
-
//#endregion
|
|
586
|
-
//#region src/utils/ui/spinner.ts
|
|
587
|
-
/* istanbul ignore next */
|
|
588
|
-
var Spinner = class {
|
|
589
|
-
spinner = !isUnicodeSupported() ? [
|
|
590
|
-
"-",
|
|
591
|
-
"\\",
|
|
592
|
-
"|",
|
|
593
|
-
"/"
|
|
594
|
-
] : [
|
|
595
|
-
"⠋",
|
|
596
|
-
"⠙",
|
|
597
|
-
"⠹",
|
|
598
|
-
"⠸",
|
|
599
|
-
"⠼",
|
|
600
|
-
"⠴",
|
|
601
|
-
"⠦",
|
|
602
|
-
"⠧",
|
|
603
|
-
"⠇",
|
|
604
|
-
"⠏"
|
|
605
|
-
];
|
|
606
|
-
id;
|
|
607
|
-
spinnerPosition = 0;
|
|
608
|
-
spin() {
|
|
609
|
-
this.spinnerPosition = ++this.spinnerPosition % this.spinner.length;
|
|
610
|
-
}
|
|
611
|
-
fetch() {
|
|
612
|
-
return this.spinner[this.spinnerPosition];
|
|
613
|
-
}
|
|
614
|
-
isRunning() {
|
|
615
|
-
return !!this.id;
|
|
616
|
-
}
|
|
617
|
-
start(cb, interval = 100) {
|
|
618
|
-
this.id = setInterval(() => {
|
|
619
|
-
this.spin();
|
|
620
|
-
if (cb) cb();
|
|
621
|
-
}, interval);
|
|
622
|
-
}
|
|
623
|
-
stop() {
|
|
624
|
-
clearInterval(this.id);
|
|
625
|
-
}
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
//#endregion
|
|
629
|
-
//#region src/renderer/default/renderer.constants.ts
|
|
630
|
-
let ListrDefaultRendererLogLevels = /* @__PURE__ */ function(ListrDefaultRendererLogLevels$1) {
|
|
631
|
-
ListrDefaultRendererLogLevels$1["SKIPPED_WITH_COLLAPSE"] = "SKIPPED_WITH_COLLAPSE";
|
|
632
|
-
ListrDefaultRendererLogLevels$1["SKIPPED_WITHOUT_COLLAPSE"] = "SKIPPED_WITHOUT_COLLAPSE";
|
|
633
|
-
ListrDefaultRendererLogLevels$1["OUTPUT"] = "OUTPUT";
|
|
634
|
-
ListrDefaultRendererLogLevels$1["OUTPUT_WITH_BOTTOMBAR"] = "OUTPUT_WITH_BOTTOMBAR";
|
|
635
|
-
ListrDefaultRendererLogLevels$1["PENDING"] = "PENDING";
|
|
636
|
-
ListrDefaultRendererLogLevels$1["COMPLETED"] = "COMPLETED";
|
|
637
|
-
ListrDefaultRendererLogLevels$1["COMPLETED_WITH_FAILED_SUBTASKS"] = "COMPLETED_WITH_FAILED_SUBTASKS";
|
|
638
|
-
ListrDefaultRendererLogLevels$1["COMPLETED_WITH_FAILED_SISTER_TASKS"] = "COMPLETED_WITH_SISTER_TASKS_FAILED";
|
|
639
|
-
ListrDefaultRendererLogLevels$1["RETRY"] = "RETRY";
|
|
640
|
-
ListrDefaultRendererLogLevels$1["ROLLING_BACK"] = "ROLLING_BACK";
|
|
641
|
-
ListrDefaultRendererLogLevels$1["ROLLED_BACK"] = "ROLLED_BACK";
|
|
642
|
-
ListrDefaultRendererLogLevels$1["FAILED"] = "FAILED";
|
|
643
|
-
ListrDefaultRendererLogLevels$1["FAILED_WITH_FAILED_SUBTASKS"] = "FAILED_WITH_SUBTASKS";
|
|
644
|
-
ListrDefaultRendererLogLevels$1["WAITING"] = "WAITING";
|
|
645
|
-
ListrDefaultRendererLogLevels$1["PAUSED"] = "PAUSED";
|
|
646
|
-
return ListrDefaultRendererLogLevels$1;
|
|
647
|
-
}({});
|
|
648
|
-
const LISTR_DEFAULT_RENDERER_STYLE = {
|
|
649
|
-
icon: {
|
|
650
|
-
[ListrDefaultRendererLogLevels.SKIPPED_WITH_COLLAPSE]: figures.arrowDown,
|
|
651
|
-
[ListrDefaultRendererLogLevels.SKIPPED_WITHOUT_COLLAPSE]: figures.warning,
|
|
652
|
-
[ListrDefaultRendererLogLevels.OUTPUT]: figures.pointerSmall,
|
|
653
|
-
[ListrDefaultRendererLogLevels.OUTPUT_WITH_BOTTOMBAR]: figures.pointerSmall,
|
|
654
|
-
[ListrDefaultRendererLogLevels.PENDING]: figures.pointer,
|
|
655
|
-
[ListrDefaultRendererLogLevels.COMPLETED]: figures.tick,
|
|
656
|
-
[ListrDefaultRendererLogLevels.COMPLETED_WITH_FAILED_SUBTASKS]: figures.warning,
|
|
657
|
-
[ListrDefaultRendererLogLevels.COMPLETED_WITH_FAILED_SISTER_TASKS]: figures.squareSmallFilled,
|
|
658
|
-
[ListrDefaultRendererLogLevels.RETRY]: figures.warning,
|
|
659
|
-
[ListrDefaultRendererLogLevels.ROLLING_BACK]: figures.warning,
|
|
660
|
-
[ListrDefaultRendererLogLevels.ROLLED_BACK]: figures.arrowLeft,
|
|
661
|
-
[ListrDefaultRendererLogLevels.FAILED]: figures.cross,
|
|
662
|
-
[ListrDefaultRendererLogLevels.FAILED_WITH_FAILED_SUBTASKS]: figures.pointer,
|
|
663
|
-
[ListrDefaultRendererLogLevels.WAITING]: figures.squareSmallFilled,
|
|
664
|
-
[ListrDefaultRendererLogLevels.PAUSED]: figures.squareSmallFilled
|
|
665
|
-
},
|
|
666
|
-
color: {
|
|
667
|
-
[ListrDefaultRendererLogLevels.SKIPPED_WITH_COLLAPSE]: color.yellow,
|
|
668
|
-
[ListrDefaultRendererLogLevels.SKIPPED_WITHOUT_COLLAPSE]: color.yellow,
|
|
669
|
-
[ListrDefaultRendererLogLevels.PENDING]: color.yellow,
|
|
670
|
-
[ListrDefaultRendererLogLevels.COMPLETED]: color.green,
|
|
671
|
-
[ListrDefaultRendererLogLevels.COMPLETED_WITH_FAILED_SUBTASKS]: color.yellow,
|
|
672
|
-
[ListrDefaultRendererLogLevels.COMPLETED_WITH_FAILED_SISTER_TASKS]: color.red,
|
|
673
|
-
[ListrDefaultRendererLogLevels.RETRY]: color.yellowBright,
|
|
674
|
-
[ListrDefaultRendererLogLevels.ROLLING_BACK]: color.redBright,
|
|
675
|
-
[ListrDefaultRendererLogLevels.ROLLED_BACK]: color.redBright,
|
|
676
|
-
[ListrDefaultRendererLogLevels.FAILED]: color.red,
|
|
677
|
-
[ListrDefaultRendererLogLevels.FAILED_WITH_FAILED_SUBTASKS]: color.red,
|
|
678
|
-
[ListrDefaultRendererLogLevels.WAITING]: color.dim,
|
|
679
|
-
[ListrDefaultRendererLogLevels.PAUSED]: color.yellowBright
|
|
680
|
-
}
|
|
681
|
-
};
|
|
682
|
-
|
|
683
|
-
//#endregion
|
|
684
|
-
//#region src/presets/timer/parser.ts
|
|
685
|
-
/**
|
|
686
|
-
* A basic function to parse minutes and tasks passed given a duration.
|
|
687
|
-
* Useful for renderers to show the task time.
|
|
688
|
-
*/
|
|
689
|
-
/* istanbul ignore next */
|
|
690
|
-
function parseTimer(duration) {
|
|
691
|
-
const seconds = Math.floor(duration / 1e3);
|
|
692
|
-
const minutes = Math.floor(seconds / 60);
|
|
693
|
-
let parsedTime;
|
|
694
|
-
if (seconds === 0 && minutes === 0) parsedTime = `0.${Math.floor(duration / 100)}s`;
|
|
695
|
-
if (seconds > 0) parsedTime = `${seconds % 60}s`;
|
|
696
|
-
if (minutes > 0) parsedTime = `${minutes}m${parsedTime}`;
|
|
697
|
-
return parsedTime;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
//#endregion
|
|
701
|
-
//#region src/presets/timer/preset.ts
|
|
702
|
-
/* istanbul ignore next */
|
|
703
|
-
const PRESET_TIMER = {
|
|
704
|
-
condition: true,
|
|
705
|
-
field: parseTimer,
|
|
706
|
-
format: () => color.dim
|
|
707
|
-
};
|
|
708
|
-
|
|
709
|
-
//#endregion
|
|
710
|
-
//#region src/presets/timestamp/parser.ts
|
|
711
|
-
/* istanbul ignore next */
|
|
712
|
-
function parseTimestamp() {
|
|
713
|
-
const now = /* @__PURE__ */ new Date();
|
|
714
|
-
return String(now.getHours()).padStart(2, "0") + ":" + String(now.getMinutes()).padStart(2, "0") + ":" + String(now.getSeconds()).padStart(2, "0");
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
//#endregion
|
|
718
|
-
//#region src/presets/timestamp/preset.ts
|
|
719
|
-
/* istanbul ignore next */
|
|
720
|
-
const PRESET_TIMESTAMP = {
|
|
721
|
-
condition: true,
|
|
722
|
-
field: parseTimestamp,
|
|
723
|
-
format: () => color.dim
|
|
724
|
-
};
|
|
725
|
-
|
|
726
|
-
//#endregion
|
|
727
|
-
//#region src/renderer/default/renderer.ts
|
|
728
|
-
var DefaultRenderer = class DefaultRenderer {
|
|
729
|
-
static nonTTY = false;
|
|
730
|
-
static rendererOptions = {
|
|
731
|
-
indentation: 2,
|
|
732
|
-
clearOutput: false,
|
|
733
|
-
showSubtasks: true,
|
|
734
|
-
collapseSubtasks: true,
|
|
735
|
-
collapseSkips: true,
|
|
736
|
-
showSkipMessage: true,
|
|
737
|
-
suffixSkips: false,
|
|
738
|
-
collapseErrors: true,
|
|
739
|
-
showErrorMessage: true,
|
|
740
|
-
suffixRetries: true,
|
|
741
|
-
lazy: false,
|
|
742
|
-
removeEmptyLines: true,
|
|
743
|
-
formatOutput: "wrap",
|
|
744
|
-
pausedTimer: {
|
|
745
|
-
...PRESET_TIMER,
|
|
746
|
-
format: () => color.yellowBright
|
|
747
|
-
}
|
|
748
|
-
};
|
|
749
|
-
static rendererTaskOptions = { outputBar: true };
|
|
750
|
-
prompt;
|
|
751
|
-
activePrompt;
|
|
752
|
-
spinner;
|
|
753
|
-
logger;
|
|
754
|
-
updater;
|
|
755
|
-
truncate;
|
|
756
|
-
wrap;
|
|
757
|
-
buffer = {
|
|
758
|
-
output: /* @__PURE__ */ new Map(),
|
|
759
|
-
bottom: /* @__PURE__ */ new Map()
|
|
760
|
-
};
|
|
761
|
-
cache = {
|
|
762
|
-
render: /* @__PURE__ */ new Map(),
|
|
763
|
-
rendererOptions: /* @__PURE__ */ new Map(),
|
|
764
|
-
rendererTaskOptions: /* @__PURE__ */ new Map()
|
|
765
|
-
};
|
|
766
|
-
constructor(tasks, options, events) {
|
|
767
|
-
this.tasks = tasks;
|
|
768
|
-
this.options = options;
|
|
769
|
-
this.events = events;
|
|
770
|
-
this.options = {
|
|
771
|
-
...DefaultRenderer.rendererOptions,
|
|
772
|
-
...this.options,
|
|
773
|
-
icon: {
|
|
774
|
-
...LISTR_DEFAULT_RENDERER_STYLE.icon,
|
|
775
|
-
...options?.icon ?? {}
|
|
776
|
-
},
|
|
777
|
-
color: {
|
|
778
|
-
...LISTR_DEFAULT_RENDERER_STYLE.color,
|
|
779
|
-
...options?.color ?? {}
|
|
780
|
-
}
|
|
781
|
-
};
|
|
782
|
-
this.spinner = this.options.spinner ?? new Spinner();
|
|
783
|
-
this.logger = this.options.logger ?? new ListrLogger({
|
|
784
|
-
useIcons: true,
|
|
785
|
-
toStderr: []
|
|
786
|
-
});
|
|
787
|
-
this.logger.options.icon = this.options.icon;
|
|
788
|
-
this.logger.options.color = this.options.color;
|
|
789
|
-
}
|
|
790
|
-
async render() {
|
|
791
|
-
const { createLogUpdate } = await import("log-update");
|
|
792
|
-
const { default: truncate } = await import("cli-truncate");
|
|
793
|
-
const { default: wrap } = await import("wrap-ansi");
|
|
794
|
-
this.updater = createLogUpdate(this.logger.process.stdout);
|
|
795
|
-
this.truncate = truncate;
|
|
796
|
-
this.wrap = wrap;
|
|
797
|
-
this.logger.process.hijack();
|
|
798
|
-
/* istanbul ignore if */
|
|
799
|
-
if (!this.options?.lazy) this.spinner.start(() => {
|
|
800
|
-
this.update();
|
|
801
|
-
});
|
|
802
|
-
this.events.on(ListrEventType.SHOULD_REFRESH_RENDER, () => {
|
|
803
|
-
this.update();
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
update() {
|
|
807
|
-
this.updater(this.create());
|
|
808
|
-
}
|
|
809
|
-
end() {
|
|
810
|
-
this.spinner.stop();
|
|
811
|
-
this.updater.clear();
|
|
812
|
-
this.updater.done();
|
|
813
|
-
if (!this.options.clearOutput) this.logger.process.toStdout(this.create({ prompt: false }));
|
|
814
|
-
this.logger.process.release();
|
|
815
|
-
}
|
|
816
|
-
create(options) {
|
|
817
|
-
options = {
|
|
818
|
-
tasks: true,
|
|
819
|
-
bottomBar: true,
|
|
820
|
-
prompt: true,
|
|
821
|
-
...options
|
|
822
|
-
};
|
|
823
|
-
const render = [];
|
|
824
|
-
const renderTasks = this.renderer(this.tasks);
|
|
825
|
-
const renderBottomBar = this.renderBottomBar();
|
|
826
|
-
const renderPrompt = this.renderPrompt();
|
|
827
|
-
if (options.tasks && renderTasks.length > 0) render.push(...renderTasks);
|
|
828
|
-
if (options.bottomBar && renderBottomBar.length > 0) {
|
|
829
|
-
if (render.length > 0) render.push("");
|
|
830
|
-
render.push(...renderBottomBar);
|
|
831
|
-
}
|
|
832
|
-
if (options.prompt && renderPrompt.length > 0) {
|
|
833
|
-
if (render.length > 0) render.push("");
|
|
834
|
-
render.push(...renderPrompt);
|
|
835
|
-
}
|
|
836
|
-
return render.join(EOL);
|
|
837
|
-
}
|
|
838
|
-
style(task, output = false) {
|
|
839
|
-
const rendererOptions = this.cache.rendererOptions.get(task.id);
|
|
840
|
-
if (task.isSkipped()) {
|
|
841
|
-
if (output || rendererOptions.collapseSkips) return this.logger.icon(ListrDefaultRendererLogLevels.SKIPPED_WITH_COLLAPSE);
|
|
842
|
-
else if (rendererOptions.collapseSkips === false) return this.logger.icon(ListrDefaultRendererLogLevels.SKIPPED_WITHOUT_COLLAPSE);
|
|
843
|
-
}
|
|
844
|
-
if (output) {
|
|
845
|
-
if (this.shouldOutputToBottomBar(task)) return this.logger.icon(ListrDefaultRendererLogLevels.OUTPUT_WITH_BOTTOMBAR);
|
|
846
|
-
return this.logger.icon(ListrDefaultRendererLogLevels.OUTPUT);
|
|
847
|
-
}
|
|
848
|
-
if (task.hasSubtasks()) {
|
|
849
|
-
if (task.isStarted() || task.isPrompt() && rendererOptions.showSubtasks !== false && !task.subtasks.every((subtask) => !subtask.hasTitle())) return this.logger.icon(ListrDefaultRendererLogLevels.PENDING);
|
|
850
|
-
else if (task.isCompleted() && task.subtasks.some((subtask) => subtask.hasFailed())) return this.logger.icon(ListrDefaultRendererLogLevels.COMPLETED_WITH_FAILED_SUBTASKS);
|
|
851
|
-
else if (task.hasFailed()) return this.logger.icon(ListrDefaultRendererLogLevels.FAILED_WITH_FAILED_SUBTASKS);
|
|
852
|
-
}
|
|
853
|
-
if (task.isStarted() || task.isPrompt()) return this.logger.icon(ListrDefaultRendererLogLevels.PENDING, !this.options?.lazy && this.spinner.fetch());
|
|
854
|
-
else if (task.isCompleted()) return this.logger.icon(ListrDefaultRendererLogLevels.COMPLETED);
|
|
855
|
-
else if (task.isRetrying()) return this.logger.icon(ListrDefaultRendererLogLevels.RETRY, !this.options?.lazy && this.spinner.fetch());
|
|
856
|
-
else if (task.isRollingBack()) return this.logger.icon(ListrDefaultRendererLogLevels.ROLLING_BACK, !this.options?.lazy && this.spinner.fetch());
|
|
857
|
-
else if (task.hasRolledBack()) return this.logger.icon(ListrDefaultRendererLogLevels.ROLLED_BACK);
|
|
858
|
-
else if (task.hasFailed()) return this.logger.icon(ListrDefaultRendererLogLevels.FAILED);
|
|
859
|
-
else if (task.isPaused()) return this.logger.icon(ListrDefaultRendererLogLevels.PAUSED);
|
|
860
|
-
return this.logger.icon(ListrDefaultRendererLogLevels.WAITING);
|
|
861
|
-
}
|
|
862
|
-
format(message, icon, level) {
|
|
863
|
-
if (message.trim() === "") return [];
|
|
864
|
-
if (icon) message = icon + " " + message;
|
|
865
|
-
let parsed;
|
|
866
|
-
const columns = (process.stdout.columns ?? 80) - level * this.options.indentation - 2;
|
|
867
|
-
switch (this.options.formatOutput) {
|
|
868
|
-
case "truncate":
|
|
869
|
-
parsed = message.split(EOL).map((s, i) => {
|
|
870
|
-
return this.truncate(this.indent(s, i), columns);
|
|
871
|
-
});
|
|
872
|
-
break;
|
|
873
|
-
case "wrap":
|
|
874
|
-
parsed = this.wrap(message, columns, {
|
|
875
|
-
hard: true,
|
|
876
|
-
trim: false
|
|
877
|
-
}).split(EOL).map((s, i) => this.indent(s, i));
|
|
878
|
-
break;
|
|
879
|
-
default: throw new ListrRendererError("Format option for the renderer is wrong.");
|
|
880
|
-
}
|
|
881
|
-
if (this.options.removeEmptyLines) parsed = parsed.filter(Boolean);
|
|
882
|
-
return parsed.map((str) => indent(str, level * this.options.indentation));
|
|
883
|
-
}
|
|
884
|
-
shouldOutputToOutputBar(task) {
|
|
885
|
-
const outputBar = this.cache.rendererTaskOptions.get(task.id).outputBar;
|
|
886
|
-
return typeof outputBar === "number" && outputBar !== 0 || typeof outputBar === "boolean" && outputBar !== false;
|
|
887
|
-
}
|
|
888
|
-
shouldOutputToBottomBar(task) {
|
|
889
|
-
const bottomBar = this.cache.rendererTaskOptions.get(task.id).bottomBar;
|
|
890
|
-
return typeof bottomBar === "number" && bottomBar !== 0 || typeof bottomBar === "boolean" && bottomBar !== false || !task.hasTitle();
|
|
891
|
-
}
|
|
892
|
-
renderer(tasks, level = 0) {
|
|
893
|
-
return tasks.flatMap((task) => {
|
|
894
|
-
if (!task.isEnabled()) return [];
|
|
895
|
-
if (this.cache.render.has(task.id)) return this.cache.render.get(task.id);
|
|
896
|
-
this.calculate(task);
|
|
897
|
-
this.setupBuffer(task);
|
|
898
|
-
const rendererOptions = this.cache.rendererOptions.get(task.id);
|
|
899
|
-
const rendererTaskOptions = this.cache.rendererTaskOptions.get(task.id);
|
|
900
|
-
const output = [];
|
|
901
|
-
if (task.isPrompt()) {
|
|
902
|
-
if (this.activePrompt && this.activePrompt !== task.id) throw new ListrRendererError("Only one prompt can be active at the given time, please re-evaluate your task design.");
|
|
903
|
-
else if (!this.activePrompt) {
|
|
904
|
-
task.on(ListrTaskEventType.PROMPT, (prompt) => {
|
|
905
|
-
const cleansed = cleanseAnsi(prompt);
|
|
906
|
-
if (cleansed) this.prompt = cleansed;
|
|
907
|
-
});
|
|
908
|
-
task.on(ListrTaskEventType.STATE, (state) => {
|
|
909
|
-
if (state === ListrTaskState.PROMPT_COMPLETED || task.hasFinalized() || task.hasReset()) {
|
|
910
|
-
this.prompt = null;
|
|
911
|
-
this.activePrompt = null;
|
|
912
|
-
task.off(ListrTaskEventType.PROMPT);
|
|
913
|
-
}
|
|
914
|
-
});
|
|
915
|
-
this.activePrompt = task.id;
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
if (task.hasTitle()) if (!(tasks.some((task$1) => task$1.hasFailed()) && !task.hasFailed() && task.options.exitOnError !== false && !(task.isCompleted() || task.isSkipped()))) if (task.hasFailed() && rendererOptions.collapseErrors) output.push(...this.format(!task.hasSubtasks() && task.message.error && rendererOptions.showErrorMessage ? task.message.error : task.title, this.style(task), level));
|
|
919
|
-
else if (task.isSkipped() && rendererOptions.collapseSkips) output.push(...this.format(this.logger.suffix(task.message.skip && rendererOptions.showSkipMessage ? task.message.skip : task.title, {
|
|
920
|
-
field: ListrLogLevels.SKIPPED,
|
|
921
|
-
condition: rendererOptions.suffixSkips,
|
|
922
|
-
format: () => color.dim
|
|
923
|
-
}), this.style(task), level));
|
|
924
|
-
else if (task.isRetrying()) output.push(...this.format(this.logger.suffix(task.title, {
|
|
925
|
-
field: `${ListrLogLevels.RETRY}:${task.message.retry.count}`,
|
|
926
|
-
format: () => color.yellow,
|
|
927
|
-
condition: rendererOptions.suffixRetries
|
|
928
|
-
}), this.style(task), level));
|
|
929
|
-
else if (task.isCompleted() && task.hasTitle() && assertFunctionOrSelf(rendererTaskOptions.timer?.condition, task.message.duration)) output.push(...this.format(this.logger.suffix(task?.title, {
|
|
930
|
-
...rendererTaskOptions.timer,
|
|
931
|
-
args: [task.message.duration]
|
|
932
|
-
}), this.style(task), level));
|
|
933
|
-
else if (task.isPaused()) output.push(...this.format(this.logger.suffix(task.title, {
|
|
934
|
-
...rendererOptions.pausedTimer,
|
|
935
|
-
args: [task.message.paused - Date.now()]
|
|
936
|
-
}), this.style(task), level));
|
|
937
|
-
else output.push(...this.format(task.title, this.style(task), level));
|
|
938
|
-
else output.push(...this.format(task.title, this.logger.icon(ListrDefaultRendererLogLevels.COMPLETED_WITH_FAILED_SISTER_TASKS), level));
|
|
939
|
-
if (!task.hasSubtasks() || !rendererOptions.showSubtasks) {
|
|
940
|
-
if (task.hasFailed() && rendererOptions.collapseErrors === false && (rendererOptions.showErrorMessage || !rendererOptions.showSubtasks)) output.push(...this.dump(task, level, ListrLogLevels.FAILED));
|
|
941
|
-
else if (task.isSkipped() && rendererOptions.collapseSkips === false && (rendererOptions.showSkipMessage || !rendererOptions.showSubtasks)) output.push(...this.dump(task, level, ListrLogLevels.SKIPPED));
|
|
942
|
-
}
|
|
943
|
-
if (task.isPending() || rendererTaskOptions.persistentOutput) output.push(...this.renderOutputBar(task, level));
|
|
944
|
-
if (rendererOptions.showSubtasks !== false && task.hasSubtasks() && (task.isPending() || task.hasFinalized() && !task.hasTitle() || task.isCompleted() && rendererOptions.collapseSubtasks === false && !task.subtasks.some((subtask) => this.cache.rendererOptions.get(subtask.id)?.collapseSubtasks === true) || task.subtasks.some((subtask) => this.cache.rendererOptions.get(subtask.id)?.collapseSubtasks === false) || task.subtasks.some((subtask) => subtask.hasFailed()) || task.subtasks.some((subtask) => subtask.hasRolledBack()))) {
|
|
945
|
-
const subtaskLevel = !task.hasTitle() ? level : level + 1;
|
|
946
|
-
const subtaskRender = this.renderer(task.subtasks, subtaskLevel);
|
|
947
|
-
output.push(...subtaskRender);
|
|
948
|
-
}
|
|
949
|
-
if (task.hasFinalized()) {
|
|
950
|
-
if (!rendererTaskOptions.persistentOutput) {
|
|
951
|
-
this.buffer.bottom.delete(task.id);
|
|
952
|
-
this.buffer.output.delete(task.id);
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
if (task.isClosed()) {
|
|
956
|
-
this.cache.render.set(task.id, output);
|
|
957
|
-
this.reset(task);
|
|
958
|
-
}
|
|
959
|
-
return output;
|
|
960
|
-
});
|
|
961
|
-
}
|
|
962
|
-
renderOutputBar(task, level) {
|
|
963
|
-
const output = this.buffer.output.get(task.id);
|
|
964
|
-
if (!output) return [];
|
|
965
|
-
return output.all.flatMap((o) => this.dump(task, level, ListrLogLevels.OUTPUT, o.entry));
|
|
966
|
-
}
|
|
967
|
-
renderBottomBar() {
|
|
968
|
-
if (this.buffer.bottom.size === 0) return [];
|
|
969
|
-
return Array.from(this.buffer.bottom.values()).flatMap((output) => output.all).sort((a, b) => a.time - b.time).map((output) => output.entry);
|
|
970
|
-
}
|
|
971
|
-
renderPrompt() {
|
|
972
|
-
if (!this.prompt) return [];
|
|
973
|
-
return [this.prompt];
|
|
974
|
-
}
|
|
975
|
-
calculate(task) {
|
|
976
|
-
if (this.cache.rendererOptions.has(task.id) && this.cache.rendererTaskOptions.has(task.id)) return;
|
|
977
|
-
const rendererOptions = {
|
|
978
|
-
...this.options,
|
|
979
|
-
...task.rendererOptions
|
|
980
|
-
};
|
|
981
|
-
this.cache.rendererOptions.set(task.id, rendererOptions);
|
|
982
|
-
this.cache.rendererTaskOptions.set(task.id, {
|
|
983
|
-
...DefaultRenderer.rendererTaskOptions,
|
|
984
|
-
timer: rendererOptions.timer,
|
|
985
|
-
...task.rendererTaskOptions
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
setupBuffer(task) {
|
|
989
|
-
if (this.buffer.bottom.has(task.id) || this.buffer.output.has(task.id)) return;
|
|
990
|
-
const rendererTaskOptions = this.cache.rendererTaskOptions.get(task.id);
|
|
991
|
-
if (this.shouldOutputToBottomBar(task) && !this.buffer.bottom.has(task.id)) {
|
|
992
|
-
this.buffer.bottom.set(task.id, new ProcessOutputBuffer({ limit: typeof rendererTaskOptions.bottomBar === "number" ? rendererTaskOptions.bottomBar : 1 }));
|
|
993
|
-
task.on(ListrTaskEventType.OUTPUT, (output) => {
|
|
994
|
-
const data = this.dump(task, -1, ListrLogLevels.OUTPUT, output);
|
|
995
|
-
this.buffer.bottom.get(task.id).write(data.join(EOL));
|
|
996
|
-
});
|
|
997
|
-
task.on(ListrTaskEventType.STATE, (state) => {
|
|
998
|
-
switch (state) {
|
|
999
|
-
case ListrTaskState.RETRY || ListrTaskState.ROLLING_BACK:
|
|
1000
|
-
this.buffer.bottom.delete(task.id);
|
|
1001
|
-
break;
|
|
1002
|
-
}
|
|
1003
|
-
});
|
|
1004
|
-
} else if (this.shouldOutputToOutputBar(task) && !this.buffer.output.has(task.id)) {
|
|
1005
|
-
this.buffer.output.set(task.id, new ProcessOutputBuffer({ limit: typeof rendererTaskOptions.outputBar === "number" ? rendererTaskOptions.outputBar : 1 }));
|
|
1006
|
-
task.on(ListrTaskEventType.OUTPUT, (output) => {
|
|
1007
|
-
this.buffer.output.get(task.id).write(output);
|
|
1008
|
-
});
|
|
1009
|
-
task.on(ListrTaskEventType.STATE, (state) => {
|
|
1010
|
-
switch (state) {
|
|
1011
|
-
case ListrTaskState.RETRY || ListrTaskState.ROLLING_BACK:
|
|
1012
|
-
this.buffer.output.delete(task.id);
|
|
1013
|
-
break;
|
|
1014
|
-
}
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
reset(task) {
|
|
1019
|
-
this.cache.rendererOptions.delete(task.id);
|
|
1020
|
-
this.cache.rendererTaskOptions.delete(task.id);
|
|
1021
|
-
this.buffer.output.delete(task.id);
|
|
1022
|
-
}
|
|
1023
|
-
dump(task, level, source = ListrLogLevels.OUTPUT, data) {
|
|
1024
|
-
if (!data) switch (source) {
|
|
1025
|
-
case ListrLogLevels.OUTPUT:
|
|
1026
|
-
data = task.output;
|
|
1027
|
-
break;
|
|
1028
|
-
case ListrLogLevels.SKIPPED:
|
|
1029
|
-
data = task.message.skip;
|
|
1030
|
-
break;
|
|
1031
|
-
case ListrLogLevels.FAILED:
|
|
1032
|
-
data = task.message.error;
|
|
1033
|
-
break;
|
|
1034
|
-
}
|
|
1035
|
-
if (task.hasTitle() && source === ListrLogLevels.FAILED && data === task.title || typeof data !== "string") return [];
|
|
1036
|
-
if (source === ListrLogLevels.OUTPUT) data = cleanseAnsi(data);
|
|
1037
|
-
return this.format(data, this.style(task, true), level + 1);
|
|
1038
|
-
}
|
|
1039
|
-
indent(str, i) {
|
|
1040
|
-
return i > 0 ? indent(str.trimEnd(), this.options.indentation) : str.trimEnd();
|
|
1041
|
-
}
|
|
1042
|
-
};
|
|
1043
|
-
|
|
1044
|
-
//#endregion
|
|
1045
|
-
//#region src/renderer/silent/renderer.ts
|
|
1046
|
-
var SilentRenderer = class {
|
|
1047
|
-
static nonTTY = true;
|
|
1048
|
-
static rendererOptions;
|
|
1049
|
-
static rendererTaskOptions;
|
|
1050
|
-
constructor(tasks, options) {
|
|
1051
|
-
this.tasks = tasks;
|
|
1052
|
-
this.options = options;
|
|
1053
|
-
}
|
|
1054
|
-
render() {}
|
|
1055
|
-
end() {}
|
|
1056
|
-
};
|
|
1057
|
-
|
|
1058
|
-
//#endregion
|
|
1059
|
-
//#region src/renderer/simple/renderer.ts
|
|
1060
|
-
var SimpleRenderer = class SimpleRenderer {
|
|
1061
|
-
static nonTTY = true;
|
|
1062
|
-
static rendererOptions = { pausedTimer: {
|
|
1063
|
-
...PRESET_TIMER,
|
|
1064
|
-
field: (time) => `${ListrLogLevels.PAUSED}:${time}`,
|
|
1065
|
-
format: () => color.yellowBright
|
|
1066
|
-
} };
|
|
1067
|
-
static rendererTaskOptions = {};
|
|
1068
|
-
logger;
|
|
1069
|
-
cache = {
|
|
1070
|
-
rendererOptions: /* @__PURE__ */ new Map(),
|
|
1071
|
-
rendererTaskOptions: /* @__PURE__ */ new Map()
|
|
1072
|
-
};
|
|
1073
|
-
constructor(tasks, options) {
|
|
1074
|
-
this.tasks = tasks;
|
|
1075
|
-
this.options = options;
|
|
1076
|
-
this.options = {
|
|
1077
|
-
...SimpleRenderer.rendererOptions,
|
|
1078
|
-
...options,
|
|
1079
|
-
icon: {
|
|
1080
|
-
...LISTR_LOGGER_STYLE.icon,
|
|
1081
|
-
...options?.icon ?? {}
|
|
1082
|
-
},
|
|
1083
|
-
color: {
|
|
1084
|
-
...LISTR_LOGGER_STYLE.color,
|
|
1085
|
-
...options?.color ?? {}
|
|
1086
|
-
}
|
|
1087
|
-
};
|
|
1088
|
-
this.logger = this.options.logger ?? new ListrLogger({
|
|
1089
|
-
useIcons: true,
|
|
1090
|
-
toStderr: LISTR_LOGGER_STDERR_LEVELS
|
|
1091
|
-
});
|
|
1092
|
-
this.logger.options.icon = this.options.icon;
|
|
1093
|
-
this.logger.options.color = this.options.color;
|
|
1094
|
-
if (this.options.timestamp) this.logger.options.fields.prefix.unshift(this.options.timestamp);
|
|
1095
|
-
}
|
|
1096
|
-
end() {}
|
|
1097
|
-
render() {
|
|
1098
|
-
this.renderer(this.tasks);
|
|
1099
|
-
}
|
|
1100
|
-
renderer(tasks) {
|
|
1101
|
-
tasks.forEach((task) => {
|
|
1102
|
-
this.calculate(task);
|
|
1103
|
-
task.once(ListrTaskEventType.CLOSED, () => {
|
|
1104
|
-
this.reset(task);
|
|
1105
|
-
});
|
|
1106
|
-
const rendererOptions = this.cache.rendererOptions.get(task.id);
|
|
1107
|
-
const rendererTaskOptions = this.cache.rendererTaskOptions.get(task.id);
|
|
1108
|
-
task.on(ListrTaskEventType.SUBTASK, (subtasks) => {
|
|
1109
|
-
this.renderer(subtasks);
|
|
1110
|
-
});
|
|
1111
|
-
task.on(ListrTaskEventType.STATE, (state) => {
|
|
1112
|
-
if (!task.hasTitle()) return;
|
|
1113
|
-
if (state === ListrTaskState.STARTED) this.logger.log(ListrLogLevels.STARTED, task.title);
|
|
1114
|
-
else if (state === ListrTaskState.COMPLETED) {
|
|
1115
|
-
const timer = rendererTaskOptions?.timer;
|
|
1116
|
-
this.logger.log(ListrLogLevels.COMPLETED, task.title, timer && { suffix: {
|
|
1117
|
-
...timer,
|
|
1118
|
-
condition: !!task.message?.duration && timer.condition,
|
|
1119
|
-
args: [task.message.duration]
|
|
1120
|
-
} });
|
|
1121
|
-
} else if (state === ListrTaskState.PROMPT) {
|
|
1122
|
-
this.logger.process.hijack();
|
|
1123
|
-
task.on(ListrTaskEventType.PROMPT, (prompt) => {
|
|
1124
|
-
this.logger.process.toStderr(prompt, false);
|
|
1125
|
-
});
|
|
1126
|
-
} else if (state === ListrTaskState.PROMPT_COMPLETED) {
|
|
1127
|
-
task.off(ListrTaskEventType.PROMPT);
|
|
1128
|
-
this.logger.process.release();
|
|
1129
|
-
}
|
|
1130
|
-
});
|
|
1131
|
-
task.on(ListrTaskEventType.OUTPUT, (output) => {
|
|
1132
|
-
this.logger.log(ListrLogLevels.OUTPUT, output);
|
|
1133
|
-
});
|
|
1134
|
-
task.on(ListrTaskEventType.MESSAGE, (message) => {
|
|
1135
|
-
if (message.error) this.logger.log(ListrLogLevels.FAILED, task.title, { suffix: {
|
|
1136
|
-
field: `${ListrLogLevels.FAILED}: ${message.error}`,
|
|
1137
|
-
format: () => color.red
|
|
1138
|
-
} });
|
|
1139
|
-
else if (message.skip) this.logger.log(ListrLogLevels.SKIPPED, task.title, { suffix: {
|
|
1140
|
-
field: `${ListrLogLevels.SKIPPED}: ${message.skip}`,
|
|
1141
|
-
format: () => color.yellow
|
|
1142
|
-
} });
|
|
1143
|
-
else if (message.rollback) this.logger.log(ListrLogLevels.ROLLBACK, task.title, { suffix: {
|
|
1144
|
-
field: `${ListrLogLevels.ROLLBACK}: ${message.rollback}`,
|
|
1145
|
-
format: () => color.red
|
|
1146
|
-
} });
|
|
1147
|
-
else if (message.retry) this.logger.log(ListrLogLevels.RETRY, task.title, { suffix: {
|
|
1148
|
-
field: `${ListrLogLevels.RETRY}:${message.retry.count}`,
|
|
1149
|
-
format: () => color.red
|
|
1150
|
-
} });
|
|
1151
|
-
else if (message.paused) {
|
|
1152
|
-
const timer = rendererOptions?.pausedTimer;
|
|
1153
|
-
this.logger.log(ListrLogLevels.PAUSED, task.title, timer && { suffix: {
|
|
1154
|
-
...timer,
|
|
1155
|
-
condition: !!message?.paused && timer.condition,
|
|
1156
|
-
args: [message.paused - Date.now()]
|
|
1157
|
-
} });
|
|
1158
|
-
}
|
|
1159
|
-
});
|
|
1160
|
-
});
|
|
1161
|
-
}
|
|
1162
|
-
calculate(task) {
|
|
1163
|
-
if (this.cache.rendererOptions.has(task.id) && this.cache.rendererTaskOptions.has(task.id)) return;
|
|
1164
|
-
const rendererOptions = {
|
|
1165
|
-
...this.options,
|
|
1166
|
-
...task.rendererOptions
|
|
1167
|
-
};
|
|
1168
|
-
this.cache.rendererOptions.set(task.id, rendererOptions);
|
|
1169
|
-
this.cache.rendererTaskOptions.set(task.id, {
|
|
1170
|
-
...SimpleRenderer.rendererTaskOptions,
|
|
1171
|
-
timer: rendererOptions.timer,
|
|
1172
|
-
...task.rendererTaskOptions
|
|
1173
|
-
});
|
|
1174
|
-
}
|
|
1175
|
-
reset(task) {
|
|
1176
|
-
this.cache.rendererOptions.delete(task.id);
|
|
1177
|
-
this.cache.rendererTaskOptions.delete(task.id);
|
|
1178
|
-
}
|
|
1179
|
-
};
|
|
1180
|
-
|
|
1181
|
-
//#endregion
|
|
1182
|
-
//#region src/renderer/test/serializer.ts
|
|
1183
|
-
var TestRendererSerializer = class {
|
|
1184
|
-
constructor(options) {
|
|
1185
|
-
this.options = options;
|
|
1186
|
-
}
|
|
1187
|
-
serialize(event, data, task) {
|
|
1188
|
-
return JSON.stringify(this.generate(event, data, task));
|
|
1189
|
-
}
|
|
1190
|
-
generate(event, data, task) {
|
|
1191
|
-
const output = {
|
|
1192
|
-
event,
|
|
1193
|
-
data
|
|
1194
|
-
};
|
|
1195
|
-
if (typeof this.options?.task !== "boolean") {
|
|
1196
|
-
const t = Object.fromEntries(this.options.task.map((entity) => {
|
|
1197
|
-
const property = task[entity];
|
|
1198
|
-
if (typeof property === "function") return [entity, property.call(task)];
|
|
1199
|
-
return [entity, property];
|
|
1200
|
-
}));
|
|
1201
|
-
if (Object.keys(task).length > 0) output.task = t;
|
|
1202
|
-
}
|
|
1203
|
-
return output;
|
|
1204
|
-
}
|
|
1205
|
-
};
|
|
1206
|
-
|
|
1207
|
-
//#endregion
|
|
1208
|
-
//#region src/renderer/test/renderer.ts
|
|
1209
|
-
var TestRenderer = class TestRenderer {
|
|
1210
|
-
static nonTTY = true;
|
|
1211
|
-
static rendererOptions = {
|
|
1212
|
-
subtasks: true,
|
|
1213
|
-
state: Object.values(ListrTaskState),
|
|
1214
|
-
output: true,
|
|
1215
|
-
prompt: true,
|
|
1216
|
-
title: true,
|
|
1217
|
-
messages: [
|
|
1218
|
-
"skip",
|
|
1219
|
-
"error",
|
|
1220
|
-
"retry",
|
|
1221
|
-
"rollback",
|
|
1222
|
-
"paused"
|
|
1223
|
-
],
|
|
1224
|
-
messagesToStderr: [
|
|
1225
|
-
"error",
|
|
1226
|
-
"rollback",
|
|
1227
|
-
"retry"
|
|
1228
|
-
],
|
|
1229
|
-
task: [
|
|
1230
|
-
"hasRolledBack",
|
|
1231
|
-
"isRollingBack",
|
|
1232
|
-
"isCompleted",
|
|
1233
|
-
"isSkipped",
|
|
1234
|
-
"hasFinalized",
|
|
1235
|
-
"hasSubtasks",
|
|
1236
|
-
"title",
|
|
1237
|
-
"hasReset",
|
|
1238
|
-
"hasTitle",
|
|
1239
|
-
"isPrompt",
|
|
1240
|
-
"isPaused",
|
|
1241
|
-
"isPending",
|
|
1242
|
-
"isSkipped",
|
|
1243
|
-
"isStarted",
|
|
1244
|
-
"hasFailed",
|
|
1245
|
-
"isEnabled",
|
|
1246
|
-
"isRetrying",
|
|
1247
|
-
"path"
|
|
1248
|
-
]
|
|
1249
|
-
};
|
|
1250
|
-
static rendererTaskOptions;
|
|
1251
|
-
logger;
|
|
1252
|
-
serializer;
|
|
1253
|
-
constructor(tasks, options) {
|
|
1254
|
-
this.tasks = tasks;
|
|
1255
|
-
this.options = options;
|
|
1256
|
-
this.options = {
|
|
1257
|
-
...TestRenderer.rendererOptions,
|
|
1258
|
-
...this.options
|
|
1259
|
-
};
|
|
1260
|
-
this.logger = this.options.logger ?? new ListrLogger({ useIcons: false });
|
|
1261
|
-
this.serializer = new TestRendererSerializer(this.options);
|
|
1262
|
-
}
|
|
1263
|
-
render() {
|
|
1264
|
-
this.renderer(this.tasks);
|
|
1265
|
-
}
|
|
1266
|
-
end() {}
|
|
1267
|
-
renderer(tasks) {
|
|
1268
|
-
tasks.forEach((task) => {
|
|
1269
|
-
if (this.options.subtasks) task.on(ListrTaskEventType.SUBTASK, (subtasks) => {
|
|
1270
|
-
this.renderer(subtasks);
|
|
1271
|
-
});
|
|
1272
|
-
if (this.options.state) task.on(ListrTaskEventType.STATE, (state) => {
|
|
1273
|
-
this.logger.toStdout(this.serializer.serialize(ListrTaskEventType.STATE, state, task));
|
|
1274
|
-
});
|
|
1275
|
-
if (this.options.output) task.on(ListrTaskEventType.OUTPUT, (data) => {
|
|
1276
|
-
this.logger.toStdout(this.serializer.serialize(ListrTaskEventType.OUTPUT, data, task));
|
|
1277
|
-
});
|
|
1278
|
-
if (this.options.prompt) task.on(ListrTaskEventType.PROMPT, (prompt) => {
|
|
1279
|
-
this.logger.toStdout(this.serializer.serialize(ListrTaskEventType.PROMPT, prompt, task));
|
|
1280
|
-
});
|
|
1281
|
-
if (this.options.title) task.on(ListrTaskEventType.TITLE, (title) => {
|
|
1282
|
-
this.logger.toStdout(this.serializer.serialize(ListrTaskEventType.TITLE, title, task));
|
|
1283
|
-
});
|
|
1284
|
-
task.on(ListrTaskEventType.MESSAGE, (message) => {
|
|
1285
|
-
const parsed = Object.fromEntries(Object.entries(message).map(([key, value]) => {
|
|
1286
|
-
if (this.options.messages.includes(key)) return [key, value];
|
|
1287
|
-
}).filter(Boolean));
|
|
1288
|
-
if (Object.keys(parsed).length > 0) {
|
|
1289
|
-
const output = this.serializer.serialize(ListrTaskEventType.MESSAGE, parsed, task);
|
|
1290
|
-
if (this.options.messagesToStderr.some((state) => Object.keys(parsed).includes(state))) this.logger.toStderr(output);
|
|
1291
|
-
else this.logger.toStdout(output);
|
|
1292
|
-
}
|
|
1293
|
-
});
|
|
1294
|
-
});
|
|
1295
|
-
}
|
|
1296
|
-
};
|
|
1297
|
-
|
|
1298
|
-
//#endregion
|
|
1299
|
-
//#region src/renderer/verbose/renderer.ts
|
|
1300
|
-
var VerboseRenderer = class VerboseRenderer {
|
|
1301
|
-
static nonTTY = true;
|
|
1302
|
-
static rendererOptions = {
|
|
1303
|
-
logTitleChange: false,
|
|
1304
|
-
pausedTimer: {
|
|
1305
|
-
...PRESET_TIMER,
|
|
1306
|
-
format: () => color.yellowBright
|
|
1307
|
-
}
|
|
1308
|
-
};
|
|
1309
|
-
static rendererTaskOptions;
|
|
1310
|
-
logger;
|
|
1311
|
-
cache = {
|
|
1312
|
-
rendererOptions: /* @__PURE__ */ new Map(),
|
|
1313
|
-
rendererTaskOptions: /* @__PURE__ */ new Map()
|
|
1314
|
-
};
|
|
1315
|
-
constructor(tasks, options) {
|
|
1316
|
-
this.tasks = tasks;
|
|
1317
|
-
this.options = options;
|
|
1318
|
-
this.options = {
|
|
1319
|
-
...VerboseRenderer.rendererOptions,
|
|
1320
|
-
...this.options,
|
|
1321
|
-
icon: {
|
|
1322
|
-
...LISTR_LOGGER_STYLE.icon,
|
|
1323
|
-
...options?.icon ?? {}
|
|
1324
|
-
},
|
|
1325
|
-
color: {
|
|
1326
|
-
...LISTR_LOGGER_STYLE.color,
|
|
1327
|
-
...options?.color ?? {}
|
|
1328
|
-
}
|
|
1329
|
-
};
|
|
1330
|
-
this.logger = this.options.logger ?? new ListrLogger({
|
|
1331
|
-
useIcons: false,
|
|
1332
|
-
toStderr: LISTR_LOGGER_STDERR_LEVELS
|
|
1333
|
-
});
|
|
1334
|
-
this.logger.options.icon = this.options.icon;
|
|
1335
|
-
this.logger.options.color = this.options.color;
|
|
1336
|
-
if (this.options.timestamp) this.logger.options.fields.prefix.unshift(this.options.timestamp);
|
|
1337
|
-
}
|
|
1338
|
-
render() {
|
|
1339
|
-
this.renderer(this.tasks);
|
|
1340
|
-
}
|
|
1341
|
-
end() {}
|
|
1342
|
-
renderer(tasks) {
|
|
1343
|
-
tasks.forEach((task) => {
|
|
1344
|
-
this.calculate(task);
|
|
1345
|
-
task.once(ListrTaskEventType.CLOSED, () => {
|
|
1346
|
-
this.reset(task);
|
|
1347
|
-
});
|
|
1348
|
-
const rendererOptions = this.cache.rendererOptions.get(task.id);
|
|
1349
|
-
const rendererTaskOptions = this.cache.rendererTaskOptions.get(task.id);
|
|
1350
|
-
task.on(ListrTaskEventType.SUBTASK, (subtasks) => {
|
|
1351
|
-
this.renderer(subtasks);
|
|
1352
|
-
});
|
|
1353
|
-
task.on(ListrTaskEventType.STATE, (state) => {
|
|
1354
|
-
if (!task.hasTitle()) return;
|
|
1355
|
-
if (state === ListrTaskState.STARTED) this.logger.log(ListrLogLevels.STARTED, task.title);
|
|
1356
|
-
else if (state === ListrTaskState.COMPLETED) {
|
|
1357
|
-
const timer = rendererTaskOptions.timer;
|
|
1358
|
-
this.logger.log(ListrLogLevels.COMPLETED, task.title, timer && { suffix: {
|
|
1359
|
-
...timer,
|
|
1360
|
-
condition: !!task.message?.duration && timer.condition,
|
|
1361
|
-
args: [task.message.duration]
|
|
1362
|
-
} });
|
|
1363
|
-
}
|
|
1364
|
-
});
|
|
1365
|
-
task.on(ListrTaskEventType.OUTPUT, (data) => {
|
|
1366
|
-
this.logger.log(ListrLogLevels.OUTPUT, data);
|
|
1367
|
-
});
|
|
1368
|
-
task.on(ListrTaskEventType.PROMPT, (prompt) => {
|
|
1369
|
-
const cleansed = cleanseAnsi(prompt);
|
|
1370
|
-
if (cleansed) this.logger.log(ListrLogLevels.PROMPT, cleansed);
|
|
1371
|
-
});
|
|
1372
|
-
if (this.options?.logTitleChange !== false) task.on(ListrTaskEventType.TITLE, (title) => {
|
|
1373
|
-
this.logger.log(ListrLogLevels.TITLE, title);
|
|
1374
|
-
});
|
|
1375
|
-
task.on(ListrTaskEventType.MESSAGE, (message) => {
|
|
1376
|
-
if (message?.error) this.logger.log(ListrLogLevels.FAILED, message.error);
|
|
1377
|
-
else if (message?.skip) this.logger.log(ListrLogLevels.SKIPPED, message.skip);
|
|
1378
|
-
else if (message?.rollback) this.logger.log(ListrLogLevels.ROLLBACK, message.rollback);
|
|
1379
|
-
else if (message?.retry) this.logger.log(ListrLogLevels.RETRY, task.title, { suffix: message.retry.count.toString() });
|
|
1380
|
-
else if (message?.paused) {
|
|
1381
|
-
const timer = rendererOptions?.pausedTimer;
|
|
1382
|
-
this.logger.log(ListrLogLevels.PAUSED, task.title, timer && { suffix: {
|
|
1383
|
-
...timer,
|
|
1384
|
-
condition: !!message?.paused && timer.condition,
|
|
1385
|
-
args: [message.paused - Date.now()]
|
|
1386
|
-
} });
|
|
1387
|
-
}
|
|
1388
|
-
});
|
|
1389
|
-
});
|
|
1390
|
-
}
|
|
1391
|
-
calculate(task) {
|
|
1392
|
-
if (this.cache.rendererOptions.has(task.id) && this.cache.rendererTaskOptions.has(task.id)) return;
|
|
1393
|
-
const rendererOptions = {
|
|
1394
|
-
...this.options,
|
|
1395
|
-
...task.rendererOptions
|
|
1396
|
-
};
|
|
1397
|
-
this.cache.rendererOptions.set(task.id, rendererOptions);
|
|
1398
|
-
this.cache.rendererTaskOptions.set(task.id, {
|
|
1399
|
-
...VerboseRenderer.rendererTaskOptions,
|
|
1400
|
-
timer: rendererOptions.timer,
|
|
1401
|
-
...task.rendererTaskOptions
|
|
1402
|
-
});
|
|
1403
|
-
}
|
|
1404
|
-
reset(task) {
|
|
1405
|
-
this.cache.rendererOptions.delete(task.id);
|
|
1406
|
-
this.cache.rendererTaskOptions.delete(task.id);
|
|
1407
|
-
}
|
|
1408
|
-
};
|
|
1409
|
-
|
|
1410
|
-
//#endregion
|
|
1411
|
-
//#region src/utils/ui/renderer.ts
|
|
1412
|
-
const RENDERERS = {
|
|
1413
|
-
default: DefaultRenderer,
|
|
1414
|
-
simple: SimpleRenderer,
|
|
1415
|
-
verbose: VerboseRenderer,
|
|
1416
|
-
test: TestRenderer,
|
|
1417
|
-
silent: SilentRenderer
|
|
1418
|
-
};
|
|
1419
|
-
function isRendererSupported(renderer) {
|
|
1420
|
-
return process.stdout.isTTY === true || renderer.nonTTY === true;
|
|
1421
|
-
}
|
|
1422
|
-
function getRendererClass(renderer) {
|
|
1423
|
-
if (typeof renderer === "string") return RENDERERS[renderer] ?? RENDERERS.default;
|
|
1424
|
-
return typeof renderer === "function" ? renderer : RENDERERS.default;
|
|
1425
|
-
}
|
|
1426
|
-
function getRenderer(options) {
|
|
1427
|
-
if (assertFunctionOrSelf(options?.silentRendererCondition)) return {
|
|
1428
|
-
renderer: getRendererClass("silent"),
|
|
1429
|
-
selection: ListrRendererSelection.SILENT
|
|
1430
|
-
};
|
|
1431
|
-
const r = {
|
|
1432
|
-
renderer: getRendererClass(options.renderer),
|
|
1433
|
-
options: options.rendererOptions,
|
|
1434
|
-
selection: ListrRendererSelection.PRIMARY
|
|
1435
|
-
};
|
|
1436
|
-
if (!isRendererSupported(r.renderer) || assertFunctionOrSelf(options?.fallbackRendererCondition)) return {
|
|
1437
|
-
renderer: getRendererClass(options.fallbackRenderer),
|
|
1438
|
-
options: options.fallbackRendererOptions,
|
|
1439
|
-
selection: ListrRendererSelection.SECONDARY
|
|
1440
|
-
};
|
|
1441
|
-
return r;
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
//#endregion
|
|
1445
|
-
//#region src/utils/assert.ts
|
|
1446
|
-
/**
|
|
1447
|
-
* This function asserts the given value as a function or itself.
|
|
1448
|
-
* If the value itself is a function it will evaluate it with the passed in arguments,
|
|
1449
|
-
* elsewise it will directly return itself.
|
|
1450
|
-
*/
|
|
1451
|
-
function assertFunctionOrSelf(functionOrSelf, ...args) {
|
|
1452
|
-
if (typeof functionOrSelf === "function") return functionOrSelf(...args);
|
|
1453
|
-
else return functionOrSelf;
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
//#endregion
|
|
1457
|
-
//#region src/utils/clone.ts
|
|
1458
|
-
const clone = rfdc({ circles: true });
|
|
1459
|
-
/**
|
|
1460
|
-
* Deep clones a object in the easiest manner.
|
|
1461
|
-
*/
|
|
1462
|
-
function cloneObject(obj) {
|
|
1463
|
-
return clone(obj);
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
//#endregion
|
|
1467
|
-
//#region src/utils/concurrency.ts
|
|
1468
|
-
var Concurrency = class {
|
|
1469
|
-
concurrency;
|
|
1470
|
-
count;
|
|
1471
|
-
queue;
|
|
1472
|
-
constructor(options) {
|
|
1473
|
-
this.concurrency = options.concurrency;
|
|
1474
|
-
this.count = 0;
|
|
1475
|
-
this.queue = /* @__PURE__ */ new Set();
|
|
1476
|
-
}
|
|
1477
|
-
add(fn) {
|
|
1478
|
-
if (this.count < this.concurrency) return this.run(fn);
|
|
1479
|
-
return new Promise((resolve) => {
|
|
1480
|
-
const callback = () => resolve(this.run(fn));
|
|
1481
|
-
this.queue.add(callback);
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
flush() {
|
|
1485
|
-
for (const callback of this.queue) {
|
|
1486
|
-
if (this.count >= this.concurrency) break;
|
|
1487
|
-
this.queue.delete(callback);
|
|
1488
|
-
callback();
|
|
1489
|
-
}
|
|
1490
|
-
}
|
|
1491
|
-
run(fn) {
|
|
1492
|
-
this.count++;
|
|
1493
|
-
const promise = fn();
|
|
1494
|
-
const cleanup = () => {
|
|
1495
|
-
this.count--;
|
|
1496
|
-
this.flush();
|
|
1497
|
-
};
|
|
1498
|
-
promise.then(cleanup, () => {
|
|
1499
|
-
this.queue.clear();
|
|
1500
|
-
});
|
|
1501
|
-
return promise;
|
|
1502
|
-
}
|
|
1503
|
-
};
|
|
1504
|
-
|
|
1505
|
-
//#endregion
|
|
1506
|
-
//#region src/utils/delay.ts
|
|
1507
|
-
function delay(time) {
|
|
1508
|
-
return new Promise((resolve) => {
|
|
1509
|
-
setTimeout(resolve, time);
|
|
1510
|
-
});
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
//#endregion
|
|
1514
|
-
//#region src/interfaces/listr-error.interface.ts
|
|
1515
|
-
/**
|
|
1516
|
-
* Internal error handling mechanism for Listr collects the errors and details for a failed task.
|
|
1517
|
-
*
|
|
1518
|
-
* @see {@link https://listr2.kilic.dev/task/error-handling.html}
|
|
1519
|
-
*/
|
|
1520
|
-
var ListrError = class extends Error {
|
|
1521
|
-
path;
|
|
1522
|
-
ctx;
|
|
1523
|
-
constructor(error, type, task) {
|
|
1524
|
-
super(error.message);
|
|
1525
|
-
this.error = error;
|
|
1526
|
-
this.type = type;
|
|
1527
|
-
this.task = task;
|
|
1528
|
-
this.name = "ListrError";
|
|
1529
|
-
this.path = task.path;
|
|
1530
|
-
if (task?.options.collectErrors === "full") {
|
|
1531
|
-
this.task = cloneObject(task);
|
|
1532
|
-
this.ctx = cloneObject(task.listr.ctx);
|
|
1533
|
-
}
|
|
1534
|
-
this.stack = error?.stack;
|
|
1535
|
-
}
|
|
1536
|
-
};
|
|
1537
|
-
|
|
1538
|
-
//#endregion
|
|
1539
|
-
//#region src/interfaces/listr-renderer-error.interface.ts
|
|
1540
|
-
/**
|
|
1541
|
-
* Internal error coming from renderer.
|
|
1542
|
-
*/
|
|
1543
|
-
var ListrRendererError = class extends Error {};
|
|
1544
|
-
|
|
1545
|
-
//#endregion
|
|
1546
|
-
//#region src/interfaces/prompt-error.interface.ts
|
|
1547
|
-
/**
|
|
1548
|
-
* Internal error handling mechanism for Listr prompts to identify the failing cause is coming from a prompt.
|
|
1549
|
-
*
|
|
1550
|
-
* @see {@link https://listr2.kilic.dev/task/prompts.html}
|
|
1551
|
-
*/
|
|
1552
|
-
var PromptError = class extends Error {};
|
|
1553
|
-
|
|
1554
|
-
//#endregion
|
|
1555
|
-
//#region src/lib/task-wrapper.ts
|
|
1556
|
-
/**
|
|
1557
|
-
* The original Task that is defined by the user is wrapped with the TaskWrapper to provide additional functionality.
|
|
1558
|
-
*
|
|
1559
|
-
* @see {@link https://listr2.kilic.dev/task/task.html}
|
|
1560
|
-
*/
|
|
1561
|
-
var TaskWrapper = class {
|
|
1562
|
-
constructor(task) {
|
|
1563
|
-
this.task = task;
|
|
1564
|
-
}
|
|
1565
|
-
/* istanbul ignore next */
|
|
1566
|
-
get title() {
|
|
1567
|
-
return this.task.title;
|
|
1568
|
-
}
|
|
1569
|
-
/**
|
|
1570
|
-
* Title of the current task.
|
|
1571
|
-
*
|
|
1572
|
-
* @see {@link https://listr2.kilic.dev/task/title.html}
|
|
1573
|
-
*/
|
|
1574
|
-
set title(title) {
|
|
1575
|
-
title = Array.isArray(title) ? title : [title];
|
|
1576
|
-
this.task.title$ = splat(title.shift(), ...title);
|
|
1577
|
-
}
|
|
1578
|
-
/* istanbul ignore next */
|
|
1579
|
-
get output() {
|
|
1580
|
-
return this.task.output;
|
|
1581
|
-
}
|
|
1582
|
-
/* istanbul ignore next */
|
|
1583
|
-
/**
|
|
1584
|
-
* Send output from the current task to the renderer.
|
|
1585
|
-
*
|
|
1586
|
-
* @see {@link https://listr2.kilic.dev/task/output.html}
|
|
1587
|
-
*/
|
|
1588
|
-
set output(output) {
|
|
1589
|
-
output = Array.isArray(output) ? output : [output];
|
|
1590
|
-
this.task.output$ = splat(output.shift(), ...output);
|
|
1591
|
-
}
|
|
1592
|
-
/* istanbul ignore next */
|
|
1593
|
-
/** Send an output to the output channel as prompt. */
|
|
1594
|
-
set promptOutput(output) {
|
|
1595
|
-
this.task.promptOutput$ = output;
|
|
1596
|
-
}
|
|
1597
|
-
/**
|
|
1598
|
-
* Creates a new set of Listr subtasks.
|
|
1599
|
-
*
|
|
1600
|
-
* @see {@link https://listr2.kilic.dev/task/subtasks.html}
|
|
1601
|
-
*/
|
|
1602
|
-
newListr(task, options) {
|
|
1603
|
-
let tasks;
|
|
1604
|
-
if (typeof task === "function") tasks = task(this);
|
|
1605
|
-
else tasks = task;
|
|
1606
|
-
return new Listr(tasks, options, this.task);
|
|
1607
|
-
}
|
|
1608
|
-
/**
|
|
1609
|
-
* Report an error that has to be collected and handled.
|
|
1610
|
-
*
|
|
1611
|
-
* @see {@link https://listr2.kilic.dev/task/error-handling.html}
|
|
1612
|
-
*/
|
|
1613
|
-
report(error, type) {
|
|
1614
|
-
if (this.task.options.collectErrors !== false) this.task.listr.errors.push(new ListrError(error, type, this.task));
|
|
1615
|
-
this.task.message$ = { error: error.message ?? this.task?.title };
|
|
1616
|
-
}
|
|
1617
|
-
/**
|
|
1618
|
-
* Skip the current task.
|
|
1619
|
-
*
|
|
1620
|
-
* @see {@link https://listr2.kilic.dev/task/skip.html}
|
|
1621
|
-
*/
|
|
1622
|
-
skip(message, ...metadata) {
|
|
1623
|
-
this.task.state$ = ListrTaskState.SKIPPED;
|
|
1624
|
-
if (message) this.task.message$ = { skip: message ? splat(message, ...metadata) : this.task?.title };
|
|
1625
|
-
}
|
|
1626
|
-
/**
|
|
1627
|
-
* Check whether this task is currently in a retry state.
|
|
1628
|
-
*
|
|
1629
|
-
* @see {@link https://listr2.kilic.dev/task/retry.html}
|
|
1630
|
-
*/
|
|
1631
|
-
isRetrying() {
|
|
1632
|
-
return this.task.isRetrying() ? this.task.retry : { count: 0 };
|
|
1633
|
-
}
|
|
1634
|
-
/* istanbul ignore next */
|
|
1635
|
-
/**
|
|
1636
|
-
* Create a new prompt for getting user input through the prompt adapter.
|
|
1637
|
-
* This will create a new prompt through the adapter if the task is not currently rendering a prompt or will return the active instance.
|
|
1638
|
-
*
|
|
1639
|
-
* This part of the application requires optional peer dependencies, please refer to documentation.
|
|
1640
|
-
*
|
|
1641
|
-
* @see {@link https://listr2.kilic.dev/task/prompt.html}
|
|
1642
|
-
*/
|
|
1643
|
-
prompt(adapter) {
|
|
1644
|
-
if (this.task.prompt) return this.task.prompt;
|
|
1645
|
-
return new adapter(this.task, this);
|
|
1646
|
-
}
|
|
1647
|
-
/* istanbul ignore next */
|
|
1648
|
-
/**
|
|
1649
|
-
* Generates a fake stdout for your use case, where it will be tunnelled through Listr to handle the rendering process.
|
|
1650
|
-
*
|
|
1651
|
-
* @see {@link https://listr2.kilic.dev/renderer/process-output.html}
|
|
1652
|
-
*/
|
|
1653
|
-
stdout(type) {
|
|
1654
|
-
return createWritable((chunk) => {
|
|
1655
|
-
switch (type) {
|
|
1656
|
-
case ListrTaskEventType.PROMPT:
|
|
1657
|
-
this.promptOutput = chunk;
|
|
1658
|
-
break;
|
|
1659
|
-
default: this.output = chunk;
|
|
1660
|
-
}
|
|
1661
|
-
});
|
|
1662
|
-
}
|
|
1663
|
-
/** Run this task. */
|
|
1664
|
-
run(ctx) {
|
|
1665
|
-
return this.task.run(ctx, this);
|
|
1666
|
-
}
|
|
1667
|
-
};
|
|
1668
|
-
|
|
1669
|
-
//#endregion
|
|
1670
|
-
//#region src/lib/listr-task-event-manager.ts
|
|
1671
|
-
var ListrTaskEventManager = class extends EventManager {};
|
|
1672
|
-
|
|
1673
|
-
//#endregion
|
|
1674
|
-
//#region src/lib/task.ts
|
|
1675
|
-
/**
|
|
1676
|
-
* Creates and handles a runnable instance of the Task.
|
|
1677
|
-
*/
|
|
1678
|
-
var Task = class extends ListrTaskEventManager {
|
|
1679
|
-
/** Unique id per task, can be used for identifying a Task. */
|
|
1680
|
-
id = randomUUID();
|
|
1681
|
-
/** The current state of the task. */
|
|
1682
|
-
state = ListrTaskState.WAITING;
|
|
1683
|
-
/** Subtasks of the current task. */
|
|
1684
|
-
subtasks;
|
|
1685
|
-
/** Title of the task. */
|
|
1686
|
-
title;
|
|
1687
|
-
/** Initial/Untouched version of the title for using whenever task has a reset. */
|
|
1688
|
-
initialTitle;
|
|
1689
|
-
/** Output channel for the task. */
|
|
1690
|
-
output;
|
|
1691
|
-
/** Current state of the retry process whenever the task is retrying. */
|
|
1692
|
-
retry;
|
|
1693
|
-
/**
|
|
1694
|
-
* A channel for messages.
|
|
1695
|
-
*
|
|
1696
|
-
* This requires a separate channel for messages like error, skip or runtime messages to further utilize in the renderers.
|
|
1697
|
-
*/
|
|
1698
|
-
message = {};
|
|
1699
|
-
/** Current prompt instance or prompt error whenever the task is prompting. */
|
|
1700
|
-
prompt;
|
|
1701
|
-
/** Parent task of the current task. */
|
|
1702
|
-
parent;
|
|
1703
|
-
/** Enable flag of this task. */
|
|
1704
|
-
enabled;
|
|
1705
|
-
/** User provided Task callback function to run. */
|
|
1706
|
-
taskFn;
|
|
1707
|
-
/** Marks the task as closed. This is different from finalized since this is not really related to task itself. */
|
|
1708
|
-
closed;
|
|
1709
|
-
constructor(listr, task, options, rendererOptions, rendererTaskOptions) {
|
|
1710
|
-
super();
|
|
1711
|
-
this.listr = listr;
|
|
1712
|
-
this.task = task;
|
|
1713
|
-
this.options = options;
|
|
1714
|
-
this.rendererOptions = rendererOptions;
|
|
1715
|
-
this.rendererTaskOptions = rendererTaskOptions;
|
|
1716
|
-
if (task.title) {
|
|
1717
|
-
const title = Array.isArray(task?.title) ? task.title : [task.title];
|
|
1718
|
-
this.title = splat(title.shift(), ...title);
|
|
1719
|
-
this.initialTitle = this.title;
|
|
1720
|
-
}
|
|
1721
|
-
this.taskFn = task.task;
|
|
1722
|
-
this.parent = listr.parentTask;
|
|
1723
|
-
}
|
|
1724
|
-
/**
|
|
1725
|
-
* Update the current state of the Task and emit the neccassary events.
|
|
1726
|
-
*/
|
|
1727
|
-
set state$(state) {
|
|
1728
|
-
this.state = state;
|
|
1729
|
-
this.emit(ListrTaskEventType.STATE, state);
|
|
1730
|
-
if (this.hasSubtasks() && this.hasFailed()) {
|
|
1731
|
-
for (const subtask of this.subtasks) if (subtask.state === ListrTaskState.STARTED) subtask.state$ = ListrTaskState.FAILED;
|
|
1732
|
-
}
|
|
1733
|
-
this.listr.events.emit(ListrEventType.SHOULD_REFRESH_RENDER);
|
|
1734
|
-
}
|
|
1735
|
-
/**
|
|
1736
|
-
* Update the current output of the Task and emit the neccassary events.
|
|
1737
|
-
*/
|
|
1738
|
-
set output$(data) {
|
|
1739
|
-
this.output = data;
|
|
1740
|
-
this.emit(ListrTaskEventType.OUTPUT, data);
|
|
1741
|
-
this.listr.events.emit(ListrEventType.SHOULD_REFRESH_RENDER);
|
|
1742
|
-
}
|
|
1743
|
-
/**
|
|
1744
|
-
* Update the current prompt output of the Task and emit the neccassary events.
|
|
1745
|
-
*/
|
|
1746
|
-
set promptOutput$(data) {
|
|
1747
|
-
this.emit(ListrTaskEventType.PROMPT, data);
|
|
1748
|
-
if (cleanseAnsi(data)) this.listr.events.emit(ListrEventType.SHOULD_REFRESH_RENDER);
|
|
1749
|
-
}
|
|
1750
|
-
/**
|
|
1751
|
-
* Update or extend the current message of the Task and emit the neccassary events.
|
|
1752
|
-
*/
|
|
1753
|
-
set message$(data) {
|
|
1754
|
-
this.message = {
|
|
1755
|
-
...this.message,
|
|
1756
|
-
...data
|
|
1757
|
-
};
|
|
1758
|
-
this.emit(ListrTaskEventType.MESSAGE, data);
|
|
1759
|
-
this.listr.events.emit(ListrEventType.SHOULD_REFRESH_RENDER);
|
|
1760
|
-
}
|
|
1761
|
-
/**
|
|
1762
|
-
* Update the current title of the Task and emit the neccassary events.
|
|
1763
|
-
*/
|
|
1764
|
-
set title$(title) {
|
|
1765
|
-
this.title = title;
|
|
1766
|
-
this.emit(ListrTaskEventType.TITLE, title);
|
|
1767
|
-
this.listr.events.emit(ListrEventType.SHOULD_REFRESH_RENDER);
|
|
1768
|
-
}
|
|
1769
|
-
/**
|
|
1770
|
-
* Current task path in the hierarchy.
|
|
1771
|
-
*/
|
|
1772
|
-
get path() {
|
|
1773
|
-
return [...this.listr.path, this.initialTitle];
|
|
1774
|
-
}
|
|
1775
|
-
/**
|
|
1776
|
-
* Checks whether the current task with the given context should be set as enabled.
|
|
1777
|
-
*/
|
|
1778
|
-
async check(ctx) {
|
|
1779
|
-
if (this.state === ListrTaskState.WAITING) {
|
|
1780
|
-
this.enabled = await assertFunctionOrSelf(this.task?.enabled ?? true, ctx);
|
|
1781
|
-
this.emit(ListrTaskEventType.ENABLED, this.enabled);
|
|
1782
|
-
this.listr.events.emit(ListrEventType.SHOULD_REFRESH_RENDER);
|
|
1783
|
-
}
|
|
1784
|
-
return this.enabled;
|
|
1785
|
-
}
|
|
1786
|
-
/** Returns whether this task has subtasks. */
|
|
1787
|
-
hasSubtasks() {
|
|
1788
|
-
return this.subtasks?.length > 0;
|
|
1789
|
-
}
|
|
1790
|
-
/** Returns whether this task is finalized in someform. */
|
|
1791
|
-
hasFinalized() {
|
|
1792
|
-
return this.isCompleted() || this.hasFailed() || this.isSkipped() || this.hasRolledBack();
|
|
1793
|
-
}
|
|
1794
|
-
/** Returns whether this task is in progress. */
|
|
1795
|
-
isPending() {
|
|
1796
|
-
return this.isStarted() || this.isPrompt() || this.hasReset();
|
|
1797
|
-
}
|
|
1798
|
-
/** Returns whether this task has started. */
|
|
1799
|
-
isStarted() {
|
|
1800
|
-
return this.state === ListrTaskState.STARTED;
|
|
1801
|
-
}
|
|
1802
|
-
/** Returns whether this task is skipped. */
|
|
1803
|
-
isSkipped() {
|
|
1804
|
-
return this.state === ListrTaskState.SKIPPED;
|
|
1805
|
-
}
|
|
1806
|
-
/** Returns whether this task has been completed. */
|
|
1807
|
-
isCompleted() {
|
|
1808
|
-
return this.state === ListrTaskState.COMPLETED;
|
|
1809
|
-
}
|
|
1810
|
-
/** Returns whether this task has been failed. */
|
|
1811
|
-
hasFailed() {
|
|
1812
|
-
return this.state === ListrTaskState.FAILED;
|
|
1813
|
-
}
|
|
1814
|
-
/** Returns whether this task has an active rollback task going on. */
|
|
1815
|
-
isRollingBack() {
|
|
1816
|
-
return this.state === ListrTaskState.ROLLING_BACK;
|
|
1817
|
-
}
|
|
1818
|
-
/** Returns whether the rollback action was successful. */
|
|
1819
|
-
hasRolledBack() {
|
|
1820
|
-
return this.state === ListrTaskState.ROLLED_BACK;
|
|
1821
|
-
}
|
|
1822
|
-
/** Returns whether this task has an actively retrying task going on. */
|
|
1823
|
-
isRetrying() {
|
|
1824
|
-
return this.state === ListrTaskState.RETRY;
|
|
1825
|
-
}
|
|
1826
|
-
/** Returns whether this task has some kind of reset like retry and rollback going on. */
|
|
1827
|
-
hasReset() {
|
|
1828
|
-
return this.state === ListrTaskState.RETRY || this.state === ListrTaskState.ROLLING_BACK;
|
|
1829
|
-
}
|
|
1830
|
-
/** Returns whether enabled function resolves to true. */
|
|
1831
|
-
isEnabled() {
|
|
1832
|
-
return this.enabled;
|
|
1833
|
-
}
|
|
1834
|
-
/** Returns whether this task actually has a title. */
|
|
1835
|
-
hasTitle() {
|
|
1836
|
-
return typeof this?.title === "string";
|
|
1837
|
-
}
|
|
1838
|
-
/** Returns whether this task has a prompt inside. */
|
|
1839
|
-
isPrompt() {
|
|
1840
|
-
return this.state === ListrTaskState.PROMPT;
|
|
1841
|
-
}
|
|
1842
|
-
/** Returns whether this task is currently paused. */
|
|
1843
|
-
isPaused() {
|
|
1844
|
-
return this.state === ListrTaskState.PAUSED;
|
|
1845
|
-
}
|
|
1846
|
-
/** Returns whether this task is closed. */
|
|
1847
|
-
isClosed() {
|
|
1848
|
-
return this.closed;
|
|
1849
|
-
}
|
|
1850
|
-
/** Pause the given task for certain time. */
|
|
1851
|
-
async pause(time) {
|
|
1852
|
-
const state = this.state;
|
|
1853
|
-
this.state$ = ListrTaskState.PAUSED;
|
|
1854
|
-
this.message$ = { paused: Date.now() + time };
|
|
1855
|
-
await delay(time);
|
|
1856
|
-
this.state$ = state;
|
|
1857
|
-
this.message$ = { paused: null };
|
|
1858
|
-
}
|
|
1859
|
-
/** Run the current task. */
|
|
1860
|
-
async run(context, wrapper) {
|
|
1861
|
-
const handleResult = (result) => {
|
|
1862
|
-
if (result instanceof Listr) {
|
|
1863
|
-
result.options = {
|
|
1864
|
-
...this.options,
|
|
1865
|
-
...result.options
|
|
1866
|
-
};
|
|
1867
|
-
result.rendererClass = getRendererClass("silent");
|
|
1868
|
-
this.subtasks = result.tasks;
|
|
1869
|
-
result.errors = this.listr.errors;
|
|
1870
|
-
this.emit(ListrTaskEventType.SUBTASK, this.subtasks);
|
|
1871
|
-
result = result.run(context);
|
|
1872
|
-
} else if (result instanceof Promise) result = result.then(handleResult);
|
|
1873
|
-
else if (isReadable(result)) result = new Promise((resolve, reject) => {
|
|
1874
|
-
result.on("data", (data) => {
|
|
1875
|
-
this.output$ = data.toString();
|
|
1876
|
-
});
|
|
1877
|
-
result.on("error", (error) => reject(error));
|
|
1878
|
-
result.on("end", () => resolve(null));
|
|
1879
|
-
});
|
|
1880
|
-
else if (isObservable(result)) result = new Promise((resolve, reject) => {
|
|
1881
|
-
result.subscribe({
|
|
1882
|
-
next: (data) => {
|
|
1883
|
-
this.output$ = data;
|
|
1884
|
-
},
|
|
1885
|
-
error: reject,
|
|
1886
|
-
complete: resolve
|
|
1887
|
-
});
|
|
1888
|
-
});
|
|
1889
|
-
return result;
|
|
1890
|
-
};
|
|
1891
|
-
const startTime = Date.now();
|
|
1892
|
-
this.state$ = ListrTaskState.STARTED;
|
|
1893
|
-
const skipped = await assertFunctionOrSelf(this.task?.skip ?? false, context);
|
|
1894
|
-
if (skipped) {
|
|
1895
|
-
if (typeof skipped === "string") this.message$ = { skip: skipped };
|
|
1896
|
-
else if (this.hasTitle()) this.message$ = { skip: this.title };
|
|
1897
|
-
else this.message$ = { skip: "Skipped task without a title." };
|
|
1898
|
-
this.state$ = ListrTaskState.SKIPPED;
|
|
1899
|
-
return;
|
|
1900
|
-
}
|
|
1901
|
-
try {
|
|
1902
|
-
const retryCount = typeof this.task?.retry === "number" && this.task.retry > 0 ? this.task.retry + 1 : typeof this.task?.retry === "object" && this.task.retry.tries > 0 ? this.task.retry.tries + 1 : 1;
|
|
1903
|
-
const retryDelay = typeof this.task.retry === "object" && this.task.retry.delay;
|
|
1904
|
-
for (let retries = 1; retries <= retryCount; retries++) try {
|
|
1905
|
-
await handleResult(this.taskFn(context, wrapper));
|
|
1906
|
-
break;
|
|
1907
|
-
} catch (err) {
|
|
1908
|
-
if (retries !== retryCount) {
|
|
1909
|
-
this.retry = {
|
|
1910
|
-
count: retries,
|
|
1911
|
-
error: err
|
|
1912
|
-
};
|
|
1913
|
-
this.message$ = { retry: this.retry };
|
|
1914
|
-
this.title$ = this.initialTitle;
|
|
1915
|
-
this.output = void 0;
|
|
1916
|
-
wrapper.report(err, ListrErrorTypes.WILL_RETRY);
|
|
1917
|
-
this.state$ = ListrTaskState.RETRY;
|
|
1918
|
-
if (retryDelay) await this.pause(retryDelay);
|
|
1919
|
-
} else throw err;
|
|
1920
|
-
}
|
|
1921
|
-
if (this.isStarted() || this.isRetrying()) {
|
|
1922
|
-
this.message$ = { duration: Date.now() - startTime };
|
|
1923
|
-
this.state$ = ListrTaskState.COMPLETED;
|
|
1924
|
-
}
|
|
1925
|
-
} catch (error) {
|
|
1926
|
-
if (this.prompt instanceof PromptError) error = this.prompt;
|
|
1927
|
-
if (this.task?.rollback) {
|
|
1928
|
-
wrapper.report(error, ListrErrorTypes.WILL_ROLLBACK);
|
|
1929
|
-
try {
|
|
1930
|
-
this.state$ = ListrTaskState.ROLLING_BACK;
|
|
1931
|
-
await this.task.rollback(context, wrapper);
|
|
1932
|
-
this.message$ = { rollback: this.title };
|
|
1933
|
-
this.state$ = ListrTaskState.ROLLED_BACK;
|
|
1934
|
-
} catch (err) {
|
|
1935
|
-
this.state$ = ListrTaskState.FAILED;
|
|
1936
|
-
wrapper.report(err, ListrErrorTypes.HAS_FAILED_TO_ROLLBACK);
|
|
1937
|
-
this.close();
|
|
1938
|
-
throw err;
|
|
1939
|
-
}
|
|
1940
|
-
if (this.listr.options?.exitAfterRollback !== false) {
|
|
1941
|
-
this.close();
|
|
1942
|
-
throw error;
|
|
1943
|
-
}
|
|
1944
|
-
} else {
|
|
1945
|
-
this.state$ = ListrTaskState.FAILED;
|
|
1946
|
-
if (this.listr.options.exitOnError !== false && await assertFunctionOrSelf(this.task?.exitOnError, context) !== false) {
|
|
1947
|
-
wrapper.report(error, ListrErrorTypes.HAS_FAILED);
|
|
1948
|
-
this.close();
|
|
1949
|
-
throw error;
|
|
1950
|
-
} else if (!this.hasSubtasks()) wrapper.report(error, ListrErrorTypes.HAS_FAILED_WITHOUT_ERROR);
|
|
1951
|
-
}
|
|
1952
|
-
} finally {
|
|
1953
|
-
this.close();
|
|
1954
|
-
}
|
|
1955
|
-
}
|
|
1956
|
-
close() {
|
|
1957
|
-
this.emit(ListrTaskEventType.CLOSED);
|
|
1958
|
-
this.listr.events.emit(ListrEventType.SHOULD_REFRESH_RENDER);
|
|
1959
|
-
this.complete();
|
|
1960
|
-
}
|
|
1961
|
-
};
|
|
1962
|
-
|
|
1963
|
-
//#endregion
|
|
1964
|
-
//#region src/lib/listr-event-manager.ts
|
|
1965
|
-
var ListrEventManager = class extends EventManager {};
|
|
1966
|
-
|
|
1967
|
-
//#endregion
|
|
1968
|
-
//#region src/listr.ts
|
|
1969
|
-
/**
|
|
1970
|
-
* Create a new task list with Listr.
|
|
1971
|
-
*
|
|
1972
|
-
* @see {@link https://listr2.kilic.dev/listr/listr.html}
|
|
1973
|
-
*/
|
|
1974
|
-
var Listr = class {
|
|
1975
|
-
tasks = [];
|
|
1976
|
-
errors = [];
|
|
1977
|
-
ctx;
|
|
1978
|
-
events;
|
|
1979
|
-
path = [];
|
|
1980
|
-
rendererClass;
|
|
1981
|
-
rendererClassOptions;
|
|
1982
|
-
rendererSelection;
|
|
1983
|
-
boundSignalHandler;
|
|
1984
|
-
concurrency;
|
|
1985
|
-
renderer;
|
|
1986
|
-
constructor(task, options, parentTask) {
|
|
1987
|
-
this.task = task;
|
|
1988
|
-
this.options = options;
|
|
1989
|
-
this.parentTask = parentTask;
|
|
1990
|
-
this.options = {
|
|
1991
|
-
concurrent: false,
|
|
1992
|
-
renderer: "default",
|
|
1993
|
-
fallbackRenderer: "simple",
|
|
1994
|
-
exitOnError: true,
|
|
1995
|
-
exitAfterRollback: true,
|
|
1996
|
-
collectErrors: false,
|
|
1997
|
-
registerSignalListeners: true,
|
|
1998
|
-
...this.parentTask?.options ?? {},
|
|
1999
|
-
...options
|
|
2000
|
-
};
|
|
2001
|
-
if (this.options.concurrent === true) this.options.concurrent = Infinity;
|
|
2002
|
-
else if (typeof this.options.concurrent !== "number") this.options.concurrent = 1;
|
|
2003
|
-
this.concurrency = new Concurrency({ concurrency: this.options.concurrent });
|
|
2004
|
-
if (parentTask) {
|
|
2005
|
-
this.path = [...parentTask.listr.path, parentTask.title];
|
|
2006
|
-
this.errors = parentTask.listr.errors;
|
|
2007
|
-
}
|
|
2008
|
-
if (this.parentTask?.listr.events instanceof ListrEventManager) this.events = this.parentTask.listr.events;
|
|
2009
|
-
else this.events = new ListrEventManager();
|
|
2010
|
-
/* istanbul ignore if */
|
|
2011
|
-
if (this.options?.forceTTY || process.env[ListrEnvironmentVariables.FORCE_TTY]) {
|
|
2012
|
-
process.stdout.isTTY = true;
|
|
2013
|
-
process.stderr.isTTY = true;
|
|
2014
|
-
}
|
|
2015
|
-
/* istanbul ignore if */
|
|
2016
|
-
if (this.options?.forceUnicode) process.env[ListrEnvironmentVariables.FORCE_UNICODE] = "1";
|
|
2017
|
-
const renderer = getRenderer({
|
|
2018
|
-
renderer: this.options.renderer,
|
|
2019
|
-
rendererOptions: this.options.rendererOptions,
|
|
2020
|
-
fallbackRenderer: this.options.fallbackRenderer,
|
|
2021
|
-
fallbackRendererOptions: this.options.fallbackRendererOptions,
|
|
2022
|
-
fallbackRendererCondition: this.options?.fallbackRendererCondition,
|
|
2023
|
-
silentRendererCondition: this.options?.silentRendererCondition
|
|
2024
|
-
});
|
|
2025
|
-
this.rendererClass = renderer.renderer;
|
|
2026
|
-
this.rendererClassOptions = renderer.options;
|
|
2027
|
-
this.rendererSelection = renderer.selection;
|
|
2028
|
-
/* istanbul ignore next */
|
|
2029
|
-
this.add(task ?? []);
|
|
2030
|
-
/* istanbul ignore if */
|
|
2031
|
-
if (this.options.registerSignalListeners) {
|
|
2032
|
-
this.boundSignalHandler = this.signalHandler.bind(this);
|
|
2033
|
-
process.once("SIGINT", this.boundSignalHandler).setMaxListeners(0);
|
|
2034
|
-
}
|
|
2035
|
-
}
|
|
2036
|
-
/**
|
|
2037
|
-
* Whether this is the root task.
|
|
2038
|
-
*/
|
|
2039
|
-
isRoot() {
|
|
2040
|
-
return !this.parentTask;
|
|
2041
|
-
}
|
|
2042
|
-
/**
|
|
2043
|
-
* Whether this is a subtask of another task list.
|
|
2044
|
-
*/
|
|
2045
|
-
isSubtask() {
|
|
2046
|
-
return !!this.parentTask;
|
|
2047
|
-
}
|
|
2048
|
-
/**
|
|
2049
|
-
* Add tasks to current task list.
|
|
2050
|
-
*
|
|
2051
|
-
* @see {@link https://listr2.kilic.dev/task/task.html}
|
|
2052
|
-
*/
|
|
2053
|
-
add(tasks) {
|
|
2054
|
-
this.tasks.push(...this.generate(tasks));
|
|
2055
|
-
}
|
|
2056
|
-
/**
|
|
2057
|
-
* Run the task list.
|
|
2058
|
-
*
|
|
2059
|
-
* @see {@link https://listr2.kilic.dev/listr/listr.html#run-the-generated-task-list}
|
|
2060
|
-
*/
|
|
2061
|
-
async run(context) {
|
|
2062
|
-
if (!this.renderer) this.renderer = new this.rendererClass(this.tasks, this.rendererClassOptions, this.events);
|
|
2063
|
-
await this.renderer.render();
|
|
2064
|
-
this.ctx = this.options?.ctx ?? context ?? {};
|
|
2065
|
-
try {
|
|
2066
|
-
await Promise.all(this.tasks.map((task) => task.check(this.ctx)));
|
|
2067
|
-
await Promise.all(this.tasks.map((task) => this.concurrency.add(() => this.runTask(task))));
|
|
2068
|
-
this.renderer.end();
|
|
2069
|
-
this.removeSignalHandler();
|
|
2070
|
-
} catch (err) {
|
|
2071
|
-
if (this.options.exitOnError !== false) {
|
|
2072
|
-
this.renderer.end(err);
|
|
2073
|
-
this.removeSignalHandler();
|
|
2074
|
-
throw err;
|
|
2075
|
-
}
|
|
2076
|
-
}
|
|
2077
|
-
return this.ctx;
|
|
2078
|
-
}
|
|
2079
|
-
generate(tasks) {
|
|
2080
|
-
tasks = Array.isArray(tasks) ? tasks : [tasks];
|
|
2081
|
-
return tasks.map((task) => {
|
|
2082
|
-
let rendererTaskOptions;
|
|
2083
|
-
if (this.rendererSelection === ListrRendererSelection.PRIMARY) rendererTaskOptions = task.rendererOptions;
|
|
2084
|
-
else if (this.rendererSelection === ListrRendererSelection.SECONDARY) rendererTaskOptions = task.fallbackRendererOptions;
|
|
2085
|
-
return new Task(this, task, this.options, this.rendererClassOptions, rendererTaskOptions);
|
|
2086
|
-
});
|
|
2087
|
-
}
|
|
2088
|
-
async runTask(task) {
|
|
2089
|
-
if (!await task.check(this.ctx)) return;
|
|
2090
|
-
return new TaskWrapper(task).run(this.ctx);
|
|
2091
|
-
}
|
|
2092
|
-
signalHandler() {
|
|
2093
|
-
this.tasks?.forEach(async (task) => {
|
|
2094
|
-
if (task.isPending()) task.state$ = ListrTaskState.FAILED;
|
|
2095
|
-
});
|
|
2096
|
-
if (this.isRoot()) {
|
|
2097
|
-
this.renderer?.end(/* @__PURE__ */ new Error("Interrupted."));
|
|
2098
|
-
process.exit(127);
|
|
2099
|
-
}
|
|
2100
|
-
}
|
|
2101
|
-
removeSignalHandler() {
|
|
2102
|
-
if (this.boundSignalHandler) process.removeListener("SIGINT", this.boundSignalHandler);
|
|
2103
|
-
}
|
|
2104
|
-
};
|
|
2105
|
-
|
|
2106
|
-
//#endregion
|
|
2107
|
-
export { ANSI_ESCAPE, ANSI_ESCAPE_CODES, BaseEventMap, Concurrency, DefaultRenderer, EventManager, LISTR_DEFAULT_RENDERER_STYLE, LISTR_LOGGER_STDERR_LEVELS, LISTR_LOGGER_STYLE, Listr, ListrDefaultRendererLogLevels, ListrEnvironmentVariables, ListrError, ListrErrorTypes, ListrEventManager, ListrEventType, ListrLogLevels, ListrLogger, ListrPromptAdapter, ListrRendererError, ListrRendererSelection, ListrTaskEventManager, ListrTaskEventType, ListrTaskState, PRESET_TIMER, PRESET_TIMESTAMP, ProcessOutput, ProcessOutputBuffer, ProcessOutputStream, PromptError, SilentRenderer, SimpleRenderer, Spinner, TestRenderer, TestRendererSerializer, VerboseRenderer, assertFunctionOrSelf, cleanseAnsi, cloneObject, color, createWritable, delay, figures, getRenderer, getRendererClass, indent, isObservable, isReadable, isUnicodeSupported, parseTimer, parseTimestamp, splat };
|