From 6bf63bb54bb3afcf7f2c92a20fac466725ca684d Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Tue, 4 Oct 2022 15:50:21 -0700 Subject: [PATCH] chore: use packlist to write node_module ignores The gitignore file inside `node_modules/` is now an allow list built from the output of `npm-packlist`. This means that the only dependencies that get checked in to source control are those that will end up in the packed tarball, with the exception of some files that we always ignore. This also moves the dependencies required to build the docs workspace from devDependencies to dependencies so they are available for making the docs after pruning. Ignoring these from source control was the reason that the change to how we build the gitignore file was necessary. --- DEPENDENCIES.md | 324 +- docs/.eslintrc.local.json | 1 - docs/package.json | 15 +- node_modules/.gitignore | 845 ++-- node_modules/aggregate-error/readme.md | 61 - node_modules/ansi-regex/readme.md | 78 - node_modules/ansi-styles/readme.md | 152 - node_modules/binary-extensions/readme.md | 41 - node_modules/builtins/Readme.md | 39 - node_modules/chalk/readme.md | 341 -- node_modules/clean-stack/readme.md | 76 - node_modules/cli-columns/{LICENSE => license} | 0 node_modules/columnify/Readme.md | 475 --- node_modules/debug/node_modules/ms/readme.md | 60 - node_modules/delegates/Readme.md | 94 - node_modules/depd/Readme.md | 280 -- node_modules/env-paths/readme.md | 115 - node_modules/has-flag/readme.md | 89 - node_modules/iconv-lite/Changelog.md | 212 - node_modules/indent-string/readme.md | 70 - node_modules/ip-regex/readme.md | 86 - .../is-fullwidth-code-point/readme.md | 39 - node_modules/minipass-sized/package-lock.json | 3464 ---------------- node_modules/mkdirp/readme.markdown | 266 -- node_modules/ms/readme.md | 59 - node_modules/node-gyp/node_modules/.bin/nopt | 1 - .../package-lock.json | 3529 ----------------- node_modules/p-map/readme.md | 89 - node_modules/path-is-absolute/readme.md | 59 - .../promise-all-reject-late/package-lock.json | 3447 ---------------- node_modules/safer-buffer/Readme.md | 156 - node_modules/string-width/readme.md | 50 - node_modules/strip-ansi/readme.md | 46 - node_modules/supports-color/readme.md | 76 - node_modules/text-table/readme.markdown | 134 - node_modules/wcwidth/Readme.md | 33 - package-lock.json | 246 +- package.json | 7 +- scripts/bundle-and-gitignore-deps.js | 264 +- 39 files changed, 823 insertions(+), 14596 deletions(-) delete mode 100644 docs/.eslintrc.local.json delete mode 100644 node_modules/aggregate-error/readme.md delete mode 100644 node_modules/ansi-regex/readme.md delete mode 100644 node_modules/ansi-styles/readme.md delete mode 100644 node_modules/binary-extensions/readme.md delete mode 100644 node_modules/builtins/Readme.md delete mode 100644 node_modules/chalk/readme.md delete mode 100644 node_modules/clean-stack/readme.md rename node_modules/cli-columns/{LICENSE => license} (100%) delete mode 100644 node_modules/columnify/Readme.md delete mode 100644 node_modules/debug/node_modules/ms/readme.md delete mode 100644 node_modules/delegates/Readme.md delete mode 100644 node_modules/depd/Readme.md delete mode 100644 node_modules/env-paths/readme.md delete mode 100644 node_modules/has-flag/readme.md delete mode 100644 node_modules/iconv-lite/Changelog.md delete mode 100644 node_modules/indent-string/readme.md delete mode 100644 node_modules/ip-regex/readme.md delete mode 100644 node_modules/is-fullwidth-code-point/readme.md delete mode 100644 node_modules/minipass-sized/package-lock.json delete mode 100644 node_modules/mkdirp/readme.markdown delete mode 100644 node_modules/ms/readme.md delete mode 120000 node_modules/node-gyp/node_modules/.bin/nopt delete mode 100644 node_modules/npm-normalize-package-bin/package-lock.json delete mode 100644 node_modules/p-map/readme.md delete mode 100644 node_modules/path-is-absolute/readme.md delete mode 100644 node_modules/promise-all-reject-late/package-lock.json delete mode 100644 node_modules/safer-buffer/Readme.md delete mode 100644 node_modules/string-width/readme.md delete mode 100644 node_modules/strip-ansi/readme.md delete mode 100644 node_modules/supports-color/readme.md delete mode 100644 node_modules/text-table/readme.markdown delete mode 100644 node_modules/wcwidth/Readme.md diff --git a/DEPENDENCIES.md b/DEPENDENCIES.md index bdee9cd465d8a..52525aa03c5b9 100644 --- a/DEPENDENCIES.md +++ b/DEPENDENCIES.md @@ -111,6 +111,7 @@ graph LR; npm-->npm-audit-report; npm-->npm-install-checks; npm-->npm-package-arg; + npm-->npm-packlist; npm-->npm-pick-manifest; npm-->npm-profile; npm-->npm-registry-fetch; @@ -120,6 +121,7 @@ graph LR; npm-->npmcli-config["@npmcli/config"]; npm-->npmcli-eslint-config["@npmcli/eslint-config"]; npm-->npmcli-fs["@npmcli/fs"]; + npm-->npmcli-git["@npmcli/git"]; npm-->npmcli-map-workspaces["@npmcli/map-workspaces"]; npm-->npmcli-package-json["@npmcli/package-json"]; npm-->npmcli-promise-spawn["@npmcli/promise-spawn"]; @@ -242,6 +244,8 @@ graph LR; ## all dependencies ```mermaid graph LR; + acorn-globals-->acorn-walk; + acorn-globals-->acorn; agent-base-->debug; agentkeepalive-->debug; agentkeepalive-->depd; @@ -251,14 +255,92 @@ graph LR; ansi-styles-->color-convert; are-we-there-yet-->delegates; are-we-there-yet-->readable-stream; + babel-code-frame-->babel-highlight["@babel/highlight"]; + babel-core-->babel-code-frame["@babel/code-frame"]; + babel-core-->babel-generator["@babel/generator"]; + babel-core-->babel-helper-module-transforms["@babel/helper-module-transforms"]; + babel-core-->babel-helpers["@babel/helpers"]; + babel-core-->babel-parser["@babel/parser"]; + babel-core-->babel-template["@babel/template"]; + babel-core-->babel-traverse["@babel/traverse"]; + babel-core-->babel-types["@babel/types"]; + babel-core-->convert-source-map; + babel-core-->debug; + babel-core-->gensync; + babel-core-->json5; + babel-core-->lodash; + babel-core-->resolve; + babel-core-->semver; + babel-core-->source-map; + babel-generator-->babel-types["@babel/types"]; + babel-generator-->jsesc; + babel-generator-->source-map; + babel-helper-environment-visitor-->babel-types["@babel/types"]; + babel-helper-function-name-->babel-helper-get-function-arity["@babel/helper-get-function-arity"]; + babel-helper-function-name-->babel-template["@babel/template"]; + babel-helper-function-name-->babel-types["@babel/types"]; + babel-helper-get-function-arity-->babel-types["@babel/types"]; + babel-helper-hoist-variables-->babel-types["@babel/types"]; + babel-helper-module-imports-->babel-types["@babel/types"]; + babel-helper-module-transforms-->babel-helper-environment-visitor["@babel/helper-environment-visitor"]; + babel-helper-module-transforms-->babel-helper-module-imports["@babel/helper-module-imports"]; + babel-helper-module-transforms-->babel-helper-simple-access["@babel/helper-simple-access"]; + babel-helper-module-transforms-->babel-helper-split-export-declaration["@babel/helper-split-export-declaration"]; + babel-helper-module-transforms-->babel-helper-validator-identifier["@babel/helper-validator-identifier"]; + babel-helper-module-transforms-->babel-template["@babel/template"]; + babel-helper-module-transforms-->babel-traverse["@babel/traverse"]; + babel-helper-module-transforms-->babel-types["@babel/types"]; + babel-helper-simple-access-->babel-types["@babel/types"]; + babel-helper-split-export-declaration-->babel-types["@babel/types"]; + babel-helpers-->babel-template["@babel/template"]; + babel-helpers-->babel-traverse["@babel/traverse"]; + babel-helpers-->babel-types["@babel/types"]; + babel-highlight-->babel-helper-validator-identifier["@babel/helper-validator-identifier"]; + babel-highlight-->chalk; + babel-highlight-->js-tokens; + babel-plugin-apply-mdx-type-prop-->babel-core["@babel/core"]; + babel-plugin-apply-mdx-type-prop-->babel-helper-plugin-utils["@babel/helper-plugin-utils"]; + babel-plugin-apply-mdx-type-prop-->mdx-js-util["@mdx-js/util"]; + babel-plugin-extract-import-names-->babel-helper-plugin-utils["@babel/helper-plugin-utils"]; + babel-plugin-proposal-object-rest-spread-->babel-core["@babel/core"]; + babel-plugin-proposal-object-rest-spread-->babel-helper-plugin-utils["@babel/helper-plugin-utils"]; + babel-plugin-proposal-object-rest-spread-->babel-plugin-syntax-object-rest-spread["@babel/plugin-syntax-object-rest-spread"]; + babel-plugin-proposal-object-rest-spread-->babel-plugin-transform-parameters["@babel/plugin-transform-parameters"]; + babel-plugin-syntax-jsx-->babel-core["@babel/core"]; + babel-plugin-syntax-jsx-->babel-helper-plugin-utils["@babel/helper-plugin-utils"]; + babel-plugin-syntax-object-rest-spread-->babel-core["@babel/core"]; + babel-plugin-syntax-object-rest-spread-->babel-helper-plugin-utils["@babel/helper-plugin-utils"]; + babel-plugin-transform-parameters-->babel-core["@babel/core"]; + babel-plugin-transform-parameters-->babel-helper-plugin-utils["@babel/helper-plugin-utils"]; + babel-template-->babel-code-frame["@babel/code-frame"]; + babel-template-->babel-parser["@babel/parser"]; + babel-template-->babel-types["@babel/types"]; + babel-traverse-->babel-code-frame["@babel/code-frame"]; + babel-traverse-->babel-generator["@babel/generator"]; + babel-traverse-->babel-helper-environment-visitor["@babel/helper-environment-visitor"]; + babel-traverse-->babel-helper-function-name["@babel/helper-function-name"]; + babel-traverse-->babel-helper-hoist-variables["@babel/helper-hoist-variables"]; + babel-traverse-->babel-helper-split-export-declaration["@babel/helper-split-export-declaration"]; + babel-traverse-->babel-parser["@babel/parser"]; + babel-traverse-->babel-types["@babel/types"]; + babel-traverse-->debug; + babel-traverse-->globals; + babel-types-->babel-helper-validator-identifier["@babel/helper-validator-identifier"]; + babel-types-->to-fast-properties; bin-links-->cmd-shim; bin-links-->mkdirp-infer-owner; bin-links-->npm-normalize-package-bin; bin-links-->read-cmd-shim; bin-links-->rimraf; bin-links-->write-file-atomic; + bindings-->file-uri-to-path; + bl-->buffer; + bl-->inherits; + bl-->readable-stream; brace-expansion-->balanced-match; brace-expansion-->concat-map; + buffer-->base64-js; + buffer-->ieee754; builtins-->semver; cacache-->chownr; cacache-->fs-minipass; @@ -279,24 +361,37 @@ graph LR; cacache-->tar; cacache-->unique-filename; chalk-->ansi-styles; + chalk-->escape-string-regexp; chalk-->supports-color; cidr-regex-->ip-regex; cli-columns-->string-width; cli-columns-->strip-ansi; cli-table3-->colors-colors["@colors/colors"]; cli-table3-->string-width; + cmark-gfm-->bindings; + cmark-gfm-->node-addon-api; + cmark-gfm-->prebuild-install; cmd-shim-->mkdirp-infer-owner; color-convert-->color-name; columnify-->strip-ansi; columnify-->wcwidth; + combined-stream-->delayed-stream; + convert-source-map-->safe-buffer; + cssstyle-->cssom; + data-urls-->abab; + data-urls-->whatwg-mimetype; + data-urls-->whatwg-url; debug-->ms; + decompress-response-->mimic-response; defaults-->clone; + detab-->repeat-string; dezalgo-->asap; dezalgo-->wrappy; docs-->cmark-gfm; docs-->jsdom; docs-->marked-man; docs-->mdx-js-mdx["@mdx-js/mdx"]; + docs-->mkdirp; docs-->npmcli-eslint-config["@npmcli/eslint-config"]; docs-->npmcli-fs["@npmcli/fs"]; docs-->npmcli-promise-spawn["@npmcli/promise-spawn"]; @@ -304,12 +399,22 @@ graph LR; docs-->tap; docs-->which; docs-->yaml; + domexception-->webidl-conversions; encoding-->iconv-lite; + end-of-stream-->once; + escodegen-->esprima; + escodegen-->estraverse; + escodegen-->esutils; + escodegen-->optionator; + escodegen-->source-map; + form-data-->asynckit; + form-data-->combined-stream; + form-data-->mime-types; fs-minipass-->minipass; gauge-->aproba; - gauge-->color-support; gauge-->console-control-strings; gauge-->has-unicode; + gauge-->object-assign; gauge-->signal-exit; gauge-->string-width; gauge-->strip-ansi; @@ -321,7 +426,41 @@ graph LR; glob-->once; glob-->path-is-absolute; has-->function-bind; + hast-to-hyperscript-->comma-separated-tokens; + hast-to-hyperscript-->property-information; + hast-to-hyperscript-->space-separated-tokens; + hast-to-hyperscript-->style-to-object; + hast-to-hyperscript-->types-unist["@types/unist"]; + hast-to-hyperscript-->unist-util-is; + hast-to-hyperscript-->web-namespaces; + hast-util-from-parse5-->hastscript; + hast-util-from-parse5-->property-information; + hast-util-from-parse5-->types-parse5["@types/parse5"]; + hast-util-from-parse5-->vfile-location; + hast-util-from-parse5-->vfile; + hast-util-from-parse5-->web-namespaces; + hast-util-raw-->hast-util-from-parse5; + hast-util-raw-->hast-util-to-parse5; + hast-util-raw-->html-void-elements; + hast-util-raw-->parse5; + hast-util-raw-->types-hast["@types/hast"]; + hast-util-raw-->unist-util-position; + hast-util-raw-->vfile; + hast-util-raw-->web-namespaces; + hast-util-raw-->xtend; + hast-util-raw-->zwitch; + hast-util-to-parse5-->hast-to-hyperscript; + hast-util-to-parse5-->property-information; + hast-util-to-parse5-->web-namespaces; + hast-util-to-parse5-->xtend; + hast-util-to-parse5-->zwitch; + hastscript-->comma-separated-tokens; + hastscript-->hast-util-parse-selector; + hastscript-->property-information; + hastscript-->space-separated-tokens; + hastscript-->types-hast["@types/hast"]; hosted-git-info-->lru-cache; + html-encoding-sniffer-->whatwg-encoding; http-proxy-agent-->agent-base; http-proxy-agent-->debug; http-proxy-agent-->tootallnate-once["@tootallnate/once"]; @@ -339,8 +478,41 @@ graph LR; init-package-json-->semver; init-package-json-->validate-npm-package-license; init-package-json-->validate-npm-package-name; + is-alphanumerical-->is-alphabetical; + is-alphanumerical-->is-decimal; is-cidr-->cidr-regex; is-core-module-->has; + is-fullwidth-code-point-->number-is-nan; + jsdom-->abab; + jsdom-->acorn-globals; + jsdom-->acorn; + jsdom-->canvas; + jsdom-->cssom; + jsdom-->cssstyle; + jsdom-->data-urls; + jsdom-->decimal.js; + jsdom-->domexception; + jsdom-->escodegen; + jsdom-->form-data; + jsdom-->html-encoding-sniffer; + jsdom-->http-proxy-agent; + jsdom-->https-proxy-agent; + jsdom-->is-potential-custom-element-name; + jsdom-->nwsapi; + jsdom-->parse5; + jsdom-->saxes; + jsdom-->symbol-tree; + jsdom-->tough-cookie; + jsdom-->w3c-hr-time; + jsdom-->w3c-xmlserializer; + jsdom-->webidl-conversions; + jsdom-->whatwg-encoding; + jsdom-->whatwg-mimetype; + jsdom-->whatwg-url; + jsdom-->ws; + jsdom-->xml-name-validator; + levn-->prelude-ls; + levn-->type-check; libnpmaccess-->nock; libnpmaccess-->npm-package-arg; libnpmaccess-->npm-registry-fetch; @@ -452,6 +624,37 @@ graph LR; make-fetch-happen-->promise-retry; make-fetch-happen-->socks-proxy-agent; make-fetch-happen-->ssri; + marked-man-->marked; + mdast-squeeze-paragraphs-->unist-util-remove; + mdast-util-definitions-->unist-util-visit; + mdast-util-to-hast-->mdast-util-definitions; + mdast-util-to-hast-->mdurl; + mdast-util-to-hast-->types-mdast["@types/mdast"]; + mdast-util-to-hast-->types-unist["@types/unist"]; + mdast-util-to-hast-->unist-builder; + mdast-util-to-hast-->unist-util-generated; + mdast-util-to-hast-->unist-util-position; + mdast-util-to-hast-->unist-util-visit; + mdx-js-mdx-->babel-core["@babel/core"]; + mdx-js-mdx-->babel-plugin-apply-mdx-type-prop; + mdx-js-mdx-->babel-plugin-extract-import-names; + mdx-js-mdx-->babel-plugin-syntax-jsx["@babel/plugin-syntax-jsx"]; + mdx-js-mdx-->babel-plugin-syntax-object-rest-spread["@babel/plugin-syntax-object-rest-spread"]; + mdx-js-mdx-->camelcase-css; + mdx-js-mdx-->detab; + mdx-js-mdx-->hast-util-raw; + mdx-js-mdx-->lodash.uniq; + mdx-js-mdx-->mdast-util-to-hast; + mdx-js-mdx-->mdx-js-util["@mdx-js/util"]; + mdx-js-mdx-->remark-footnotes; + mdx-js-mdx-->remark-mdx; + mdx-js-mdx-->remark-parse; + mdx-js-mdx-->remark-squeeze-paragraphs; + mdx-js-mdx-->style-to-object; + mdx-js-mdx-->unified; + mdx-js-mdx-->unist-builder; + mdx-js-mdx-->unist-util-visit; + mime-types-->mime-db; minimatch-->brace-expansion; minipass-->yallist; minipass-collect-->minipass; @@ -469,6 +672,7 @@ graph LR; mkdirp-infer-owner-->chownr; mkdirp-infer-owner-->infer-owner; mkdirp-infer-owner-->mkdirp; + node-abi-->semver; node-gyp-->env-paths; node-gyp-->glob; node-gyp-->graceful-fs; @@ -528,6 +732,7 @@ graph LR; npm-->npm-audit-report; npm-->npm-install-checks; npm-->npm-package-arg; + npm-->npm-packlist; npm-->npm-pick-manifest; npm-->npm-profile; npm-->npm-registry-fetch; @@ -537,6 +742,7 @@ graph LR; npm-->npmcli-config["@npmcli/config"]; npm-->npmcli-eslint-config["@npmcli/eslint-config"]; npm-->npmcli-fs["@npmcli/fs"]; + npm-->npmcli-git["@npmcli/git"]; npm-->npmcli-map-workspaces["@npmcli/map-workspaces"]; npm-->npmcli-package-json["@npmcli/package-json"]; npm-->npmcli-promise-spawn["@npmcli/promise-spawn"]; @@ -678,6 +884,12 @@ graph LR; npmlog-->gauge; npmlog-->set-blocking; once-->wrappy; + optionator-->deep-is; + optionator-->fast-levenshtein; + optionator-->levn; + optionator-->prelude-ls; + optionator-->type-check; + optionator-->word-wrap; p-map-->aggregate-error; pacote-->cacache; pacote-->chownr; @@ -703,11 +915,37 @@ graph LR; parse-conflict-json-->json-parse-even-better-errors; parse-conflict-json-->just-diff-apply; parse-conflict-json-->just-diff; + parse-entities-->character-entities-legacy; + parse-entities-->character-entities; + parse-entities-->character-reference-invalid; + parse-entities-->is-alphanumerical; + parse-entities-->is-decimal; + parse-entities-->is-hexadecimal; postcss-selector-parser-->cssesc; postcss-selector-parser-->util-deprecate; + prebuild-install-->detect-libc; + prebuild-install-->expand-template; + prebuild-install-->github-from-package; + prebuild-install-->minimist; + prebuild-install-->mkdirp-classic; + prebuild-install-->napi-build-utils; + prebuild-install-->node-abi; + prebuild-install-->npmlog; + prebuild-install-->pump; + prebuild-install-->rc; + prebuild-install-->simple-get; + prebuild-install-->tar-fs; + prebuild-install-->tunnel-agent; promise-retry-->err-code; promise-retry-->retry; promzard-->read; + property-information-->xtend; + pump-->end-of-stream; + pump-->once; + rc-->deep-extend; + rc-->ini; + rc-->minimist; + rc-->strip-json-comments; read-->mute-stream; read-package-json-->glob; read-package-json-->json-parse-even-better-errors; @@ -715,15 +953,51 @@ graph LR; read-package-json-->npm-normalize-package-bin; read-package-json-fast-->json-parse-even-better-errors; read-package-json-fast-->npm-normalize-package-bin; + readable-stream-->core-util-is; readable-stream-->inherits; + readable-stream-->isarray; + readable-stream-->process-nextick-args; + readable-stream-->safe-buffer; readable-stream-->string_decoder; readable-stream-->util-deprecate; readdir-scoped-modules-->debuglog; readdir-scoped-modules-->dezalgo; readdir-scoped-modules-->graceful-fs; readdir-scoped-modules-->once; + remark-mdx-->babel-core["@babel/core"]; + remark-mdx-->babel-helper-plugin-utils["@babel/helper-plugin-utils"]; + remark-mdx-->babel-plugin-proposal-object-rest-spread["@babel/plugin-proposal-object-rest-spread"]; + remark-mdx-->babel-plugin-syntax-jsx["@babel/plugin-syntax-jsx"]; + remark-mdx-->is-alphabetical; + remark-mdx-->mdx-js-util["@mdx-js/util"]; + remark-mdx-->remark-parse; + remark-mdx-->unified; + remark-parse-->ccount; + remark-parse-->collapse-white-space; + remark-parse-->is-alphabetical; + remark-parse-->is-decimal; + remark-parse-->is-whitespace-character; + remark-parse-->is-word-character; + remark-parse-->markdown-escapes; + remark-parse-->parse-entities; + remark-parse-->repeat-string; + remark-parse-->state-toggle; + remark-parse-->trim-trailing-lines; + remark-parse-->trim; + remark-parse-->unherit; + remark-parse-->unist-util-remove-position; + remark-parse-->vfile-location; + remark-parse-->xtend; + remark-squeeze-paragraphs-->mdast-squeeze-paragraphs; + resolve-->is-core-module; + resolve-->path-parse; + resolve-->supports-preserve-symlinks-flag; rimraf-->glob; + saxes-->xmlchars; semver-->lru-cache; + simple-get-->decompress-response; + simple-get-->once; + simple-get-->simple-concat; smoke-tests-->minify-registry-metadata; smoke-tests-->npmcli-eslint-config["@npmcli/eslint-config"]; smoke-tests-->npmcli-promise-spawn["@npmcli/promise-spawn"]; @@ -741,11 +1015,13 @@ graph LR; spdx-expression-parse-->spdx-exceptions; spdx-expression-parse-->spdx-license-ids; ssri-->minipass; + string-width-->code-point-at; string-width-->emoji-regex; string-width-->is-fullwidth-code-point; string-width-->strip-ansi; string_decoder-->safe-buffer; strip-ansi-->ansi-regex; + style-to-object-->inline-style-parser; supports-color-->has-flag; tar-->chownr; tar-->fs-minipass; @@ -753,16 +1029,62 @@ graph LR; tar-->minizlib; tar-->mkdirp; tar-->yallist; + tar-fs-->chownr; + tar-fs-->mkdirp-classic; + tar-fs-->pump; + tar-fs-->tar-stream; + tar-stream-->bl; + tar-stream-->end-of-stream; + tar-stream-->fs-constants; + tar-stream-->inherits; + tar-stream-->readable-stream; + tough-cookie-->psl; + tough-cookie-->punycode; + tough-cookie-->universalify; + tr46-->punycode; + tunnel-agent-->safe-buffer; + type-check-->prelude-ls; + types-hast-->types-unist["@types/unist"]; + types-mdast-->types-unist["@types/unist"]; + unherit-->inherits; + unherit-->xtend; + unified-->bail; + unified-->extend; + unified-->is-buffer; + unified-->is-plain-obj; + unified-->trough; + unified-->vfile; unique-filename-->unique-slug; unique-slug-->imurmurhash; + unist-util-remove-->unist-util-is; + unist-util-remove-position-->unist-util-visit; + unist-util-stringify-position-->types-unist["@types/unist"]; + unist-util-visit-->types-unist["@types/unist"]; + unist-util-visit-->unist-util-is; + unist-util-visit-->unist-util-visit-parents; + unist-util-visit-parents-->types-unist["@types/unist"]; + unist-util-visit-parents-->unist-util-is; validate-npm-package-license-->spdx-correct; validate-npm-package-license-->spdx-expression-parse; validate-npm-package-name-->builtins; + vfile-->is-buffer; + vfile-->types-unist["@types/unist"]; + vfile-->unist-util-stringify-position; + vfile-->vfile-message; + vfile-message-->types-unist["@types/unist"]; + vfile-message-->unist-util-stringify-position; + w3c-hr-time-->browser-process-hrtime; + w3c-xmlserializer-->xml-name-validator; wcwidth-->defaults; + whatwg-encoding-->iconv-lite; + whatwg-url-->tr46; + whatwg-url-->webidl-conversions; which-->isexe; wide-align-->string-width; write-file-atomic-->imurmurhash; write-file-atomic-->signal-exit; + ws-->bufferutil; + ws-->utf-8-validate; ``` ## npm dependency heirarchy diff --git a/docs/.eslintrc.local.json b/docs/.eslintrc.local.json deleted file mode 100644 index ed467baedee00..0000000000000 --- a/docs/.eslintrc.local.json +++ /dev/null @@ -1 +0,0 @@ -{ "rules": { "import/no-extraneous-dependencies": "off" } } diff --git a/docs/package.json b/docs/package.json index 16d83b2cd6b22..eb5e16576eaab 100644 --- a/docs/package.json +++ b/docs/package.json @@ -17,18 +17,21 @@ "url": "https://github.com/npm/cli.git", "directory": "docs" }, - "devDependencies": { + "dependencies": { "@mdx-js/mdx": "^1.6.22", + "cmark-gfm": "^0.9.0", + "jsdom": "^18.1.0", + "marked-man": "^0.7.0", + "mkdirp": "^1.0.4", + "yaml": "^1.10.2" + }, + "devDependencies": { "@npmcli/eslint-config": "^3.1.0", "@npmcli/fs": "^2.1.0", "@npmcli/promise-spawn": "^3.0.0", "@npmcli/template-oss": "4.5.0", - "cmark-gfm": "^0.9.0", - "jsdom": "^18.1.0", - "marked-man": "^0.7.0", "tap": "^16.0.1", - "which": "^2.0.2", - "yaml": "^1.10.0" + "which": "^2.0.2" }, "author": "GitHub Inc.", "license": "ISC", diff --git a/node_modules/.gitignore b/node_modules/.gitignore index 37530342b697a..3ca5d9de99121 100644 --- a/node_modules/.gitignore +++ b/node_modules/.gitignore @@ -1,10 +1,253 @@ -# Automatically generated to ignore dev deps -/.package-lock.json +# Automatically generated to ignore everything except bundled deps +# Ignore everything by default except this file +/* +!/.gitignore +# Allow all bundled deps +!/@colors/ +/@colors/* +!/@colors/colors +!/@gar/ +/@gar/* +!/@gar/promisify +!/@isaacs/ +/@isaacs/* +!/@isaacs/string-locale-compare +!/@npmcli/ +/@npmcli/* +!/@npmcli/arborist +!/@npmcli/ci-detect +!/@npmcli/config +!/@npmcli/disparity-colors +!/@npmcli/fs +!/@npmcli/git +!/@npmcli/installed-package-contents +!/@npmcli/installed-package-contents/node_modules/ +/@npmcli/installed-package-contents/node_modules/* +!/@npmcli/installed-package-contents/node_modules/npm-bundled +!/@npmcli/map-workspaces +!/@npmcli/metavuln-calculator +!/@npmcli/move-file +!/@npmcli/name-from-folder +!/@npmcli/node-gyp +!/@npmcli/package-json +!/@npmcli/promise-spawn +!/@npmcli/query +!/@npmcli/run-script +!/@tootallnate/ +/@tootallnate/* +!/@tootallnate/once +!/abbrev +!/agent-base +!/agentkeepalive +!/aggregate-error +!/ansi-regex +!/ansi-styles +!/aproba +!/archy +!/are-we-there-yet +!/asap +!/balanced-match +!/bin-links +!/bin-links/node_modules/ +/bin-links/node_modules/* +!/bin-links/node_modules/npm-normalize-package-bin +!/binary-extensions +!/brace-expansion +!/builtins +!/cacache +!/chalk +!/chownr +!/cidr-regex +!/clean-stack +!/cli-columns +!/cli-table3 +!/clone +!/cmd-shim +!/color-convert +!/color-name +!/color-support +!/columnify +!/common-ancestor-path +!/concat-map +!/console-control-strings +!/cssesc +!/debug +!/debug/node_modules/ +/debug/node_modules/* +!/debug/node_modules/ms +!/debuglog +!/defaults +!/delegates +!/depd +!/dezalgo +!/diff +!/emoji-regex +!/encoding +!/env-paths +!/err-code +!/fastest-levenshtein +!/fs-minipass +!/fs.realpath +!/function-bind +!/gauge +!/glob +!/graceful-fs +!/has-flag +!/has-unicode +!/has +!/hosted-git-info +!/http-cache-semantics +!/http-proxy-agent +!/https-proxy-agent +!/humanize-ms +!/iconv-lite +!/ignore-walk +!/imurmurhash +!/indent-string +!/infer-owner +!/inflight +!/inherits +!/ini +!/init-package-json +!/ip-regex +!/ip +!/is-cidr +!/is-core-module +!/is-fullwidth-code-point +!/is-lambda +!/isexe +!/json-parse-even-better-errors +!/json-stringify-nice +!/jsonparse +!/just-diff-apply +!/just-diff +!/libnpmaccess +!/libnpmdiff +!/libnpmexec +!/libnpmfund +!/libnpmhook +!/libnpmorg +!/libnpmpack +!/libnpmpublish +!/libnpmsearch +!/libnpmteam +!/libnpmversion +!/lru-cache +!/make-fetch-happen +!/minimatch +!/minipass-collect +!/minipass-fetch +!/minipass-flush +!/minipass-json-stream +!/minipass-pipeline +!/minipass-sized +!/minipass +!/minizlib +!/mkdirp-infer-owner +!/mkdirp +!/ms +!/mute-stream +!/negotiator +!/node-gyp +!/node-gyp/node_modules/ +/node-gyp/node_modules/* +!/node-gyp/node_modules/brace-expansion +!/node-gyp/node_modules/glob +!/node-gyp/node_modules/minimatch +!/node-gyp/node_modules/nopt +!/nopt +!/normalize-package-data +!/npm-audit-report +!/npm-install-checks +!/npm-normalize-package-bin +!/npm-package-arg +!/npm-packlist +!/npm-pick-manifest +!/npm-pick-manifest/node_modules/ +/npm-pick-manifest/node_modules/* +!/npm-pick-manifest/node_modules/npm-normalize-package-bin +!/npm-profile +!/npm-registry-fetch +!/npm-user-validate +!/npmlog +!/once +!/opener +!/p-map +!/pacote +!/parse-conflict-json +!/path-is-absolute +!/postcss-selector-parser +!/proc-log +!/promise-all-reject-late +!/promise-call-limit +!/promise-inflight +!/promise-retry +!/promzard +!/qrcode-terminal +!/read-cmd-shim +!/read-package-json-fast +!/read-package-json +!/read-package-json/node_modules/ +/read-package-json/node_modules/* +!/read-package-json/node_modules/npm-normalize-package-bin +!/read +!/readable-stream +!/readdir-scoped-modules +!/retry +!/rimraf +!/rimraf/node_modules/ +/rimraf/node_modules/* +!/rimraf/node_modules/brace-expansion +!/rimraf/node_modules/glob +!/rimraf/node_modules/minimatch +!/safe-buffer +!/safer-buffer +!/semver +!/semver/node_modules/ +/semver/node_modules/* +!/semver/node_modules/lru-cache +!/set-blocking +!/signal-exit +!/smart-buffer +!/socks-proxy-agent +!/socks +!/spdx-correct +!/spdx-exceptions +!/spdx-expression-parse +!/spdx-license-ids +!/ssri +!/string_decoder +!/string-width +!/strip-ansi +!/supports-color +!/tar +!/text-table +!/tiny-relative-date +!/treeverse +!/unique-filename +!/unique-slug +!/util-deprecate +!/validate-npm-package-license +!/validate-npm-package-name +!/walk-up-path +!/wcwidth +!/which +!/wide-align +!/wrappy +!/write-file-atomic +!/yallist +# Always ignore some specific patterns within any allowed package +.bin/ +.cache/ package-lock.json CHANGELOG* changelog* +ChangeLog* +Changelog* README* readme* +ReadMe* +Readme* __pycache__ .editorconfig .idea/ @@ -24,601 +267,3 @@ __pycache__ .babelrc* .nyc_output .gitkeep - -/@actions/core -/@actions/http-client -/@babel/code-frame -/@babel/core -/@babel/generator -/@babel/helper-environment-visitor -/@babel/helper-function-name -/@babel/helper-get-function-arity -/@babel/helper-hoist-variables -/@babel/helper-module-imports -/@babel/helper-module-transforms -/@babel/helper-plugin-utils -/@babel/helper-simple-access -/@babel/helper-split-export-declaration -/@babel/helper-validator-identifier -/@babel/helpers -/@babel/highlight -/@babel/parser -/@babel/plugin-proposal-object-rest-spread -/@babel/plugin-syntax-jsx -/@babel/plugin-syntax-object-rest-spread -/@babel/plugin-transform-parameters -/@babel/template -/@babel/traverse -/@babel/types -/@blueoak/list -/@commitlint/cli -/@commitlint/config-conventional -/@commitlint/config-validator -/@commitlint/ensure -/@commitlint/execute-rule -/@commitlint/format -/@commitlint/is-ignored -/@commitlint/lint -/@commitlint/load -/@commitlint/message -/@commitlint/parse -/@commitlint/read -/@commitlint/resolve-extends -/@commitlint/rules -/@commitlint/to-lines -/@commitlint/top-level -/@commitlint/types -/@conventional-commits/parser -/@cspotcode/source-map-support -/@eslint/eslintrc -/@google-automations/git-file-utils -/@humanwhocodes/config-array -/@humanwhocodes/object-schema -/@iarna/toml -/@istanbuljs/load-nyc-config -/@istanbuljs/schema -/@jridgewell/resolve-uri -/@jridgewell/sourcemap-codec -/@jridgewell/trace-mapping -/@lerna/child-process -/@lerna/collect-updates -/@lerna/describe-ref -/@lerna/package -/@lerna/package-graph -/@lerna/prerelease-id-from-version -/@lerna/query-graph -/@lerna/run-topologically -/@lerna/validation-error -/@mdx-js/mdx -/@mdx-js/util -/@npmcli/eslint-config -/@npmcli/template-oss -/@octokit/auth-token -/@octokit/core -/@octokit/endpoint -/@octokit/graphql -/@octokit/openapi-types -/@octokit/plugin-paginate-rest -/@octokit/plugin-request-log -/@octokit/plugin-rest-endpoint-methods -/@octokit/request -/@octokit/request-error -/@octokit/rest -/@octokit/types -/@tsconfig/node10 -/@tsconfig/node12 -/@tsconfig/node14 -/@tsconfig/node16 -/@types/hast -/@types/json5 -/@types/mdast -/@types/minimist -/@types/node -/@types/normalize-package-data -/@types/npm-package-arg -/@types/parse-json -/@types/parse5 -/@types/unist -/@types/yargs -/@types/yargs-parser -/@xmldom/xmldom -/abab -/acorn -/acorn-globals -/acorn-jsx -/acorn-walk -/ajv -/anymatch -/append-transform -/arg -/argparse -/array-find-index -/array-ify -/array-includes -/array.prototype.flat -/arrify -/asn1 -/assert-plus -/async-hook-domain -/async-retry -/asynckit -/aws-sign2 -/aws4 -/babel-plugin-apply-mdx-type-prop -/babel-plugin-extract-import-names -/bail -/base64-js -/bcrypt-pbkdf -/before-after-hook -/benchmark -/bind-obj-methods -/bindings -/bl -/boolbase -/braces -/browser-process-hrtime -/buffer -/buffer-from -/caching-transform -/call-bind -/caller -/callsites -/camelcase -/camelcase-css -/camelcase-keys -/caseless -/ccount -/character-entities -/character-entities-legacy -/character-reference-invalid -/chokidar -/cliui -/cmark-gfm -/code-point-at -/code-suggester -/collapse-white-space -/combined-stream -/comma-separated-tokens -/commondir -/compare-func -/conventional-changelog-angular -/conventional-changelog-conventionalcommits -/conventional-changelog-writer -/conventional-commits-filter -/conventional-commits-parser -/convert-source-map -/core-util-is -/correct-license-metadata -/cosmiconfig -/cosmiconfig-typescript-loader -/coveralls -/create-require -/cross-spawn -/css-select -/css-what -/cssom -/cssstyle -/dargs -/dashdash -/data-urls -/dateformat -/decamelize -/decamelize-keys -/decimal.js -/decompress-response -/deep-extend -/deep-is -/default-require-extensions -/define-properties -/delayed-stream -/deprecation -/detab -/detect-indent -/detect-libc -/docopt -/docs -/doctrine -/dom-serializer -/domelementtype -/domexception -/domhandler -/domutils -/dot-prop -/duplexer -/ecc-jsbn -/end-of-stream -/entities -/error-ex -/es-abstract -/es-shim-unscopables -/es-to-primitive -/es6-error -/escalade -/escape-string-regexp -/escodegen -/eslint -/eslint-import-resolver-node -/eslint-module-utils -/eslint-plugin-es -/eslint-plugin-import -/eslint-plugin-node -/eslint-plugin-promise -/eslint-scope -/eslint-utils -/eslint-visitor-keys -/espree -/esprima -/esquery -/esrecurse -/estraverse -/esutils -/eventemitter3 -/events-to-array -/execa -/expand-template -/extend -/extsprintf -/fast-deep-equal -/fast-json-stable-stringify -/fast-levenshtein -/figures -/file-entry-cache -/file-uri-to-path -/fill-range -/find-cache-dir -/find-up -/findit -/flat-cache -/flatted -/flow-parser -/flow-remove-types -/foreground-child -/forever-agent -/form-data -/fromentries -/fs-access -/fs-constants -/fs-exists-cached -/fs-extra -/fsevents -/function-loop -/function.prototype.name -/functional-red-black-tree -/functions-have-names -/gensync -/get-caller-file -/get-intrinsic -/get-package-type -/get-stream -/get-symbol-description -/getpass -/git-raw-commits -/github-from-package -/glob-parent -/global-dirs -/globals -/handlebars -/har-schema -/har-validator -/hard-rejection -/has-bigints -/has-property-descriptors -/has-symbols -/has-tostringtag -/hasha -/hast-to-hyperscript -/hast-util-from-parse5 -/hast-util-parse-selector -/hast-util-raw -/hast-util-to-parse5 -/hastscript -/he -/html-encoding-sniffer -/html-escaper -/html-void-elements -/http-signature -/human-signals -/ieee754 -/ignore -/import-fresh -/inline-style-parser -/internal-slot -/is-alphabetical -/is-alphanumerical -/is-arrayish -/is-bigint -/is-binary-path -/is-boolean-object -/is-buffer -/is-callable -/is-date-object -/is-decimal -/is-extglob -/is-glob -/is-hexadecimal -/is-negative-zero -/is-number -/is-number-object -/is-obj -/is-plain-obj -/is-plain-object -/is-potential-custom-element-name -/is-regex -/is-shared-array-buffer -/is-stream -/is-string -/is-symbol -/is-text-path -/is-typedarray -/is-weakref -/is-whitespace-character -/is-windows -/is-word-character -/isarray -/isstream -/istanbul-lib-coverage -/istanbul-lib-hook -/istanbul-lib-instrument -/istanbul-lib-processinfo -/istanbul-lib-report -/istanbul-lib-source-maps -/istanbul-reports -/jackspeak -/js-tokens -/js-yaml -/jsbn -/jsdom -/jsesc -/json-parse-errback -/json-schema -/json-schema-traverse -/json-stable-stringify-without-jsonify -/json-stringify-safe -/json5 -/jsonfile -/jsonpath -/JSONStream -/jsprim -/just-deep-map-values -/kind-of -/lcov-parse -/levn -/libtap -/licensee -/lines-and-columns -/load-json-file -/locate-path -/lodash -/lodash.clonedeep -/lodash.flattendeep -/lodash.ismatch -/lodash.merge -/lodash.uniq -/log-driver -/make-dir -/make-error -/map-obj -/markdown-escapes -/marked -/marked-man -/mdast-squeeze-paragraphs -/mdast-util-definitions -/mdast-util-to-hast -/mdurl -/meow -/merge-stream -/mime-db -/mime-types -/mimic-fn -/mimic-response -/min-indent -/minify-registry-metadata -/minimist -/minimist-options -/mkdirp-classic -/modify-values -/napi-build-utils -/natural-compare -/neo-async -/nock -/node-abi -/node-addon-api -/node-fetch -/node-html-parser -/node-modules-regexp -/node-preload -/normalize-path -/npm-license-corrections -/npm-run-path -/nth-check -/null-check -/number-is-nan -/nwsapi -/nyc -/oauth-sign -/object-assign -/object-inspect -/object-keys -/object.assign -/object.getownpropertydescriptors -/object.values -/onetime -/optionator -/own-or -/own-or-env -/p-finally -/p-limit -/p-locate -/p-queue -/p-timeout -/p-try -/package-hash -/parent-module -/parse-diff -/parse-entities -/parse-github-repo-url -/parse-json -/parse5 -/path-exists -/path-key -/path-parse -/path-type -/performance-now -/picomatch -/pify -/pirates -/platform -/prebuild-install -/prelude-ls -/process-nextick-args -/process-on-spawn -/propagate -/property-information -/psl -/pump -/punycode -/q -/qs -/queue-microtask -/quick-lru -/rc -/read-package-tree -/read-pkg -/read-pkg-up -/readdirp -/redent -/regexp.prototype.flags -/regexpp -/release-please -/release-zalgo -/remark-footnotes -/remark-mdx -/remark-parse -/remark-squeeze-paragraphs -/repeat-string -/request -/require-directory -/require-from-string -/require-inject -/require-main-filename -/resolve -/resolve-from -/resolve-global -/run-parallel -/saxes -/shebang-command -/shebang-regex -/side-channel -/simple-concat -/simple-get -/slash -/smoke-tests -/sort-keys -/source-map -/source-map-support -/space-separated-tokens -/spawk -/spawn-wrap -/spdx-compare -/spdx-expression-validate -/spdx-osi -/spdx-ranges -/spdx-whitelisted -/split -/split2 -/sprintf-js -/sshpk -/stack-utils -/state-toggle -/static-eval -/string.prototype.trimend -/string.prototype.trimstart -/strip-bom -/strip-final-newline -/strip-indent -/strip-json-comments -/strong-log-transformer -/style-to-object -/supports-preserve-symlinks-flag -/symbol-tree -/tap -/tap-mocha-reporter -/tap-parser -/tap-yaml -/tar-fs -/tar-stream -/tcompare -/test-exclude -/text-extensions -/through -/through2 -/to-fast-properties -/to-regex-range -/tough-cookie -/tr46 -/trim -/trim-newlines -/trim-trailing-lines -/trivial-deferred -/trough -/ts-node -/tsconfig-paths -/tunnel -/tunnel-agent -/tweetnacl -/type-check -/type-fest -/typescript -/uglify-js -/unbox-primitive -/underscore -/unherit -/unicode-length -/unified -/unist-builder -/unist-util-generated -/unist-util-is -/unist-util-position -/unist-util-remove -/unist-util-remove-position -/unist-util-stringify-position -/unist-util-visit -/unist-util-visit-parents -/universal-user-agent -/universalify -/uri-js -/util-promisify -/uuid -/v8-compile-cache -/v8-compile-cache-lib -/verror -/vfile -/vfile-location -/vfile-message -/vlq -/w3c-hr-time -/w3c-xmlserializer -/web-namespaces -/webidl-conversions -/whatwg-encoding -/whatwg-mimetype -/whatwg-url -/which-boxed-primitive -/which-module -/word-wrap -/wordwrap -/wrap-ansi -/write-json-file -/write-pkg -/ws -/xml-name-validator -/xmlchars -/xpath -/xtend -/y18n -/yaml -/yargs -/yargs-parser -/yn -/yocto-queue -/zwitch diff --git a/node_modules/aggregate-error/readme.md b/node_modules/aggregate-error/readme.md deleted file mode 100644 index 850de98a8e8f4..0000000000000 --- a/node_modules/aggregate-error/readme.md +++ /dev/null @@ -1,61 +0,0 @@ -# aggregate-error [![Build Status](https://travis-ci.org/sindresorhus/aggregate-error.svg?branch=master)](https://travis-ci.org/sindresorhus/aggregate-error) - -> Create an error from multiple errors - - -## Install - -``` -$ npm install aggregate-error -``` - - -## Usage - -```js -const AggregateError = require('aggregate-error'); - -const error = new AggregateError([new Error('foo'), 'bar', {message: 'baz'}]); - -throw error; -/* -AggregateError: - Error: foo - at Object. (/Users/sindresorhus/dev/aggregate-error/example.js:3:33) - Error: bar - at Object. (/Users/sindresorhus/dev/aggregate-error/example.js:3:13) - Error: baz - at Object. (/Users/sindresorhus/dev/aggregate-error/example.js:3:13) - at AggregateError (/Users/sindresorhus/dev/aggregate-error/index.js:19:3) - at Object. (/Users/sindresorhus/dev/aggregate-error/example.js:3:13) - at Module._compile (module.js:556:32) - at Object.Module._extensions..js (module.js:565:10) - at Module.load (module.js:473:32) - at tryModuleLoad (module.js:432:12) - at Function.Module._load (module.js:424:3) - at Module.runMain (module.js:590:10) - at run (bootstrap_node.js:394:7) - at startup (bootstrap_node.js:149:9) -*/ - -for (const individualError of error) { - console.log(individualError); -} -//=> [Error: foo] -//=> [Error: bar] -//=> [Error: baz] -``` - - -## API - -### AggregateError(errors) - -Returns an `Error` that is also an [`Iterable`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#Iterables) for the individual errors. - -#### errors - -Type: `Array` - -If a string, a new `Error` is created with the string as the error message.
-If a non-Error object, a new `Error` is created with all properties from the object copied over. diff --git a/node_modules/ansi-regex/readme.md b/node_modules/ansi-regex/readme.md deleted file mode 100644 index 4d848bc36f6b8..0000000000000 --- a/node_modules/ansi-regex/readme.md +++ /dev/null @@ -1,78 +0,0 @@ -# ansi-regex - -> Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) - - -## Install - -``` -$ npm install ansi-regex -``` - - -## Usage - -```js -const ansiRegex = require('ansi-regex'); - -ansiRegex().test('\u001B[4mcake\u001B[0m'); -//=> true - -ansiRegex().test('cake'); -//=> false - -'\u001B[4mcake\u001B[0m'.match(ansiRegex()); -//=> ['\u001B[4m', '\u001B[0m'] - -'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true})); -//=> ['\u001B[4m'] - -'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex()); -//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007'] -``` - - -## API - -### ansiRegex(options?) - -Returns a regex for matching ANSI escape codes. - -#### options - -Type: `object` - -##### onlyFirst - -Type: `boolean`
-Default: `false` *(Matches any ANSI escape codes in a string)* - -Match only the first ANSI escape. - - -## FAQ - -### Why do you test for codes not in the ECMA 48 standard? - -Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them. - -On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out. - - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/node_modules/ansi-styles/readme.md b/node_modules/ansi-styles/readme.md deleted file mode 100644 index 24883de808be6..0000000000000 --- a/node_modules/ansi-styles/readme.md +++ /dev/null @@ -1,152 +0,0 @@ -# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) - -> [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal - -You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings. - - - -## Install - -``` -$ npm install ansi-styles -``` - -## Usage - -```js -const style = require('ansi-styles'); - -console.log(`${style.green.open}Hello world!${style.green.close}`); - - -// Color conversion between 16/256/truecolor -// NOTE: If conversion goes to 16 colors or 256 colors, the original color -// may be degraded to fit that color palette. This means terminals -// that do not support 16 million colors will best-match the -// original color. -console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close); -console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close); -console.log(style.color.ansi16m.hex('#abcdef') + 'Hello world!' + style.color.close); -``` - -## API - -Each style has an `open` and `close` property. - -## Styles - -### Modifiers - -- `reset` -- `bold` -- `dim` -- `italic` *(Not widely supported)* -- `underline` -- `inverse` -- `hidden` -- `strikethrough` *(Not widely supported)* - -### Colors - -- `black` -- `red` -- `green` -- `yellow` -- `blue` -- `magenta` -- `cyan` -- `white` -- `blackBright` (alias: `gray`, `grey`) -- `redBright` -- `greenBright` -- `yellowBright` -- `blueBright` -- `magentaBright` -- `cyanBright` -- `whiteBright` - -### Background colors - -- `bgBlack` -- `bgRed` -- `bgGreen` -- `bgYellow` -- `bgBlue` -- `bgMagenta` -- `bgCyan` -- `bgWhite` -- `bgBlackBright` (alias: `bgGray`, `bgGrey`) -- `bgRedBright` -- `bgGreenBright` -- `bgYellowBright` -- `bgBlueBright` -- `bgMagentaBright` -- `bgCyanBright` -- `bgWhiteBright` - -## Advanced usage - -By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module. - -- `style.modifier` -- `style.color` -- `style.bgColor` - -###### Example - -```js -console.log(style.color.green.open); -``` - -Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `style.codes`, which returns a `Map` with the open codes as keys and close codes as values. - -###### Example - -```js -console.log(style.codes.get(36)); -//=> 39 -``` - -## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728) - -`ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors. - -The following color spaces from `color-convert` are supported: - -- `rgb` -- `hex` -- `keyword` -- `hsl` -- `hsv` -- `hwb` -- `ansi` -- `ansi256` - -To use these, call the associated conversion function with the intended output, for example: - -```js -style.color.ansi.rgb(100, 200, 15); // RGB to 16 color ansi foreground code -style.bgColor.ansi.rgb(100, 200, 15); // RGB to 16 color ansi background code - -style.color.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code -style.bgColor.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code - -style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground code -style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code -``` - -## Related - -- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - -## For enterprise - -Available as part of the Tidelift Subscription. - -The maintainers of `ansi-styles` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-ansi-styles?utm_source=npm-ansi-styles&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/node_modules/binary-extensions/readme.md b/node_modules/binary-extensions/readme.md deleted file mode 100644 index 3e25dd835e08b..0000000000000 --- a/node_modules/binary-extensions/readme.md +++ /dev/null @@ -1,41 +0,0 @@ -# binary-extensions - -> List of binary file extensions - -The list is just a [JSON file](binary-extensions.json) and can be used anywhere. - - -## Install - -``` -$ npm install binary-extensions -``` - - -## Usage - -```js -const binaryExtensions = require('binary-extensions'); - -console.log(binaryExtensions); -//=> ['3ds', '3g2', …] -``` - - -## Related - -- [is-binary-path](https://github.com/sindresorhus/is-binary-path) - Check if a filepath is a binary file -- [text-extensions](https://github.com/sindresorhus/text-extensions) - List of text file extensions - - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/node_modules/builtins/Readme.md b/node_modules/builtins/Readme.md deleted file mode 100644 index b1c0007d6f5e4..0000000000000 --- a/node_modules/builtins/Readme.md +++ /dev/null @@ -1,39 +0,0 @@ -# builtins - -[![CI](https://github.com/juliangruber/builtins/actions/workflows/ci.yml/badge.svg)](https://github.com/juliangruber/builtins/actions/workflows/ci.yml) - -List of node.js [builtin modules](http://nodejs.org/api/). - -## Usage - -```js -const builtins = require('builtins') -``` - -Get list of core modules for current Node.js version: - -```js -assert(builtins().includes('http')) -``` - -Get list of core modules for specific Node.js version: - -```js -assert(builtins({ version: '6.0.0' }).includes('http')) -``` - -Get list of core modules present in one or mode Node.js versions: - -```js -assert(builtins({ version: '*' }).includes('worker_threads')) -``` - -Add experimental modules to the list: - -```js -assert(builtins({ experimental: true }).includes('wasi')) -``` - -## License - -MIT diff --git a/node_modules/chalk/readme.md b/node_modules/chalk/readme.md deleted file mode 100644 index a055d21c97ed7..0000000000000 --- a/node_modules/chalk/readme.md +++ /dev/null @@ -1,341 +0,0 @@ -

-
-
- Chalk -
-
-
-

- -> Terminal string styling done right - -[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![npm dependents](https://badgen.net/npm/dependents/chalk)](https://www.npmjs.com/package/chalk?activeTab=dependents) [![Downloads](https://badgen.net/npm/dt/chalk)](https://www.npmjs.com/package/chalk) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) ![TypeScript-ready](https://img.shields.io/npm/types/chalk.svg) [![run on repl.it](https://repl.it/badge/github/chalk/chalk)](https://repl.it/github/chalk/chalk) - - - -
- ---- - - - ---- - -
- -## Highlights - -- Expressive API -- Highly performant -- Ability to nest styles -- [256/Truecolor color support](#256-and-truecolor-color-support) -- Auto-detects color support -- Doesn't extend `String.prototype` -- Clean and focused -- Actively maintained -- [Used by ~50,000 packages](https://www.npmjs.com/browse/depended/chalk) as of January 1, 2020 - -## Install - -```console -$ npm install chalk -``` - -## Usage - -```js -const chalk = require('chalk'); - -console.log(chalk.blue('Hello world!')); -``` - -Chalk comes with an easy to use composable API where you just chain and nest the styles you want. - -```js -const chalk = require('chalk'); -const log = console.log; - -// Combine styled and normal strings -log(chalk.blue('Hello') + ' World' + chalk.red('!')); - -// Compose multiple styles using the chainable API -log(chalk.blue.bgRed.bold('Hello world!')); - -// Pass in multiple arguments -log(chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz')); - -// Nest styles -log(chalk.red('Hello', chalk.underline.bgBlue('world') + '!')); - -// Nest styles of the same type even (color, underline, background) -log(chalk.green( - 'I am a green line ' + - chalk.blue.underline.bold('with a blue substring') + - ' that becomes green again!' -)); - -// ES2015 template literal -log(` -CPU: ${chalk.red('90%')} -RAM: ${chalk.green('40%')} -DISK: ${chalk.yellow('70%')} -`); - -// ES2015 tagged template literal -log(chalk` -CPU: {red ${cpu.totalPercent}%} -RAM: {green ${ram.used / ram.total * 100}%} -DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} -`); - -// Use RGB colors in terminal emulators that support it. -log(chalk.keyword('orange')('Yay for orange colored text!')); -log(chalk.rgb(123, 45, 67).underline('Underlined reddish color')); -log(chalk.hex('#DEADED').bold('Bold gray!')); -``` - -Easily define your own themes: - -```js -const chalk = require('chalk'); - -const error = chalk.bold.red; -const warning = chalk.keyword('orange'); - -console.log(error('Error!')); -console.log(warning('Warning!')); -``` - -Take advantage of console.log [string substitution](https://nodejs.org/docs/latest/api/console.html#console_console_log_data_args): - -```js -const name = 'Sindre'; -console.log(chalk.green('Hello %s'), name); -//=> 'Hello Sindre' -``` - -## API - -### chalk.`