From e092fdebea1df1b126b48acf6a9613365cb71799 Mon Sep 17 00:00:00 2001 From: npm team Date: Thu, 18 Nov 2021 20:58:02 +0000 Subject: [PATCH] deps: upgrade npm to 8.1.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/40865 Reviewed-By: Michaël Zasso Reviewed-By: Rich Trott --- deps/npm/bin/npx-cli.js | 15 +- deps/npm/docs/content/commands/npm-install.md | 2 +- deps/npm/docs/content/using-npm/developers.md | 2 + deps/npm/docs/output/commands/npm-access.html | 11 +- .../npm/docs/output/commands/npm-adduser.html | 7 +- deps/npm/docs/output/commands/npm-audit.html | 27 +- deps/npm/docs/output/commands/npm-bin.html | 5 +- deps/npm/docs/output/commands/npm-bugs.html | 7 +- deps/npm/docs/output/commands/npm-cache.html | 11 +- deps/npm/docs/output/commands/npm-ci.html | 13 +- .../docs/output/commands/npm-completion.html | 5 +- deps/npm/docs/output/commands/npm-config.html | 15 +- deps/npm/docs/output/commands/npm-dedupe.html | 23 +- .../docs/output/commands/npm-deprecate.html | 7 +- deps/npm/docs/output/commands/npm-diff.html | 25 +- .../docs/output/commands/npm-dist-tag.html | 3 +- deps/npm/docs/output/commands/npm-docs.html | 7 +- deps/npm/docs/output/commands/npm-doctor.html | 39 +- deps/npm/docs/output/commands/npm-edit.html | 11 +- deps/npm/docs/output/commands/npm-exec.html | 13 +- .../npm/docs/output/commands/npm-explain.html | 5 +- .../npm/docs/output/commands/npm-explore.html | 5 +- .../docs/output/commands/npm-find-dupes.html | 17 +- deps/npm/docs/output/commands/npm-fund.html | 7 +- .../docs/output/commands/npm-help-search.html | 3 +- deps/npm/docs/output/commands/npm-help.html | 5 +- deps/npm/docs/output/commands/npm-hook.html | 11 +- deps/npm/docs/output/commands/npm-init.html | 15 +- .../output/commands/npm-install-ci-test.html | 7 +- .../output/commands/npm-install-test.html | 23 +- .../npm/docs/output/commands/npm-install.html | 41 +- deps/npm/docs/output/commands/npm-link.html | 31 +- deps/npm/docs/output/commands/npm-logout.html | 11 +- deps/npm/docs/output/commands/npm-ls.html | 21 +- deps/npm/docs/output/commands/npm-org.html | 7 +- .../docs/output/commands/npm-outdated.html | 25 +- deps/npm/docs/output/commands/npm-owner.html | 11 +- deps/npm/docs/output/commands/npm-pack.html | 9 +- deps/npm/docs/output/commands/npm-ping.html | 5 +- deps/npm/docs/output/commands/npm-pkg.html | 13 +- deps/npm/docs/output/commands/npm-prefix.html | 5 +- .../npm/docs/output/commands/npm-profile.html | 11 +- deps/npm/docs/output/commands/npm-prune.html | 19 +- .../npm/docs/output/commands/npm-publish.html | 25 +- .../npm/docs/output/commands/npm-rebuild.html | 7 +- deps/npm/docs/output/commands/npm-repo.html | 5 +- .../npm/docs/output/commands/npm-restart.html | 5 +- deps/npm/docs/output/commands/npm-root.html | 5 +- .../docs/output/commands/npm-run-script.html | 27 +- deps/npm/docs/output/commands/npm-search.html | 15 +- .../docs/output/commands/npm-set-script.html | 3 +- .../docs/output/commands/npm-shrinkwrap.html | 3 +- deps/npm/docs/output/commands/npm-star.html | 15 +- deps/npm/docs/output/commands/npm-stars.html | 7 +- deps/npm/docs/output/commands/npm-start.html | 9 +- deps/npm/docs/output/commands/npm-stop.html | 9 +- deps/npm/docs/output/commands/npm-team.html | 15 +- deps/npm/docs/output/commands/npm-test.html | 7 +- deps/npm/docs/output/commands/npm-token.html | 7 +- .../docs/output/commands/npm-uninstall.html | 3 +- .../docs/output/commands/npm-unpublish.html | 9 +- deps/npm/docs/output/commands/npm-unstar.html | 13 +- deps/npm/docs/output/commands/npm-update.html | 27 +- .../npm/docs/output/commands/npm-version.html | 7 +- deps/npm/docs/output/commands/npm-view.html | 5 +- deps/npm/docs/output/commands/npm-whoami.html | 5 +- deps/npm/docs/output/commands/npm.html | 27 +- deps/npm/docs/output/commands/npx.html | 7 +- .../docs/output/configuring-npm/folders.html | 45 +- .../docs/output/configuring-npm/install.html | 7 +- .../configuring-npm/npm-shrinkwrap-json.html | 5 +- .../docs/output/configuring-npm/npmrc.html | 11 +- .../output/configuring-npm/package-json.html | 131 +-- .../configuring-npm/package-lock-json.html | 21 +- deps/npm/docs/output/using-npm/config.html | 223 ++--- .../npm/docs/output/using-npm/developers.html | 49 +- deps/npm/docs/output/using-npm/orgs.html | 3 +- deps/npm/docs/output/using-npm/registry.html | 21 +- deps/npm/docs/output/using-npm/removal.html | 11 +- deps/npm/docs/output/using-npm/scope.html | 5 +- deps/npm/docs/output/using-npm/scripts.html | 45 +- .../npm/docs/output/using-npm/workspaces.html | 15 +- deps/npm/index.js | 5 +- deps/npm/lib/arborist-cmd.js | 13 +- deps/npm/lib/auth/legacy.js | 15 +- deps/npm/lib/auth/sso.js | 12 +- deps/npm/lib/base-command.js | 30 +- deps/npm/lib/cli.js | 13 +- deps/npm/lib/commands/access.js | 85 +- deps/npm/lib/commands/adduser.js | 29 +- deps/npm/lib/commands/audit.js | 47 +- deps/npm/lib/commands/bin.js | 17 +- deps/npm/lib/commands/birthday.js | 5 +- deps/npm/lib/commands/bugs.js | 35 +- deps/npm/lib/commands/cache.js | 85 +- deps/npm/lib/commands/ci.js | 25 +- deps/npm/lib/commands/completion.js | 71 +- deps/npm/lib/commands/config.js | 86 +- deps/npm/lib/commands/dedupe.js | 41 +- deps/npm/lib/commands/deprecate.js | 37 +- deps/npm/lib/commands/diff.js | 100 +-- deps/npm/lib/commands/dist-tag.js | 72 +- deps/npm/lib/commands/docs.js | 45 +- deps/npm/lib/commands/doctor.js | 202 +++-- deps/npm/lib/commands/edit.js | 34 +- deps/npm/lib/commands/exec.js | 53 +- deps/npm/lib/commands/explain.js | 66 +- deps/npm/lib/commands/explore.js | 37 +- deps/npm/lib/commands/find-dupes.js | 39 +- deps/npm/lib/commands/fund.js | 94 +- deps/npm/lib/commands/get.js | 20 +- deps/npm/lib/commands/help-search.js | 48 +- deps/npm/lib/commands/help.js | 48 +- deps/npm/lib/commands/hook.js | 69 +- deps/npm/lib/commands/init.js | 51 +- deps/npm/lib/commands/install-ci-test.js | 10 +- deps/npm/lib/commands/install-test.js | 10 +- deps/npm/lib/commands/install.js | 139 ++- deps/npm/lib/commands/link.js | 66 +- deps/npm/lib/commands/ll.js | 11 +- deps/npm/lib/commands/logout.js | 30 +- deps/npm/lib/commands/ls.js | 119 +-- deps/npm/lib/commands/org.js | 145 +-- deps/npm/lib/commands/outdated.js | 91 +- deps/npm/lib/commands/owner.js | 94 +- deps/npm/lib/commands/pack.js | 47 +- deps/npm/lib/commands/ping.js | 20 +- deps/npm/lib/commands/pkg.js | 64 +- deps/npm/lib/commands/prefix.js | 23 +- deps/npm/lib/commands/profile.js | 105 +-- deps/npm/lib/commands/prune.js | 23 +- deps/npm/lib/commands/publish.js | 75 +- deps/npm/lib/commands/rebuild.js | 53 +- deps/npm/lib/commands/repo.js | 29 +- deps/npm/lib/commands/restart.js | 23 +- deps/npm/lib/commands/root.js | 17 +- deps/npm/lib/commands/run-script.js | 118 +-- deps/npm/lib/commands/search.js | 65 +- deps/npm/lib/commands/set-script.js | 35 +- deps/npm/lib/commands/set.js | 22 +- deps/npm/lib/commands/shrinkwrap.js | 22 +- deps/npm/lib/commands/star.js | 34 +- deps/npm/lib/commands/stars.js | 37 +- deps/npm/lib/commands/start.js | 23 +- deps/npm/lib/commands/stop.js | 23 +- deps/npm/lib/commands/team.js | 88 +- deps/npm/lib/commands/test.js | 23 +- deps/npm/lib/commands/token.js | 173 ++-- deps/npm/lib/commands/uninstall.js | 34 +- deps/npm/lib/commands/unpublish.js | 59 +- deps/npm/lib/commands/unstar.js | 25 +- deps/npm/lib/commands/update.js | 55 +- deps/npm/lib/commands/version.js | 70 +- deps/npm/lib/commands/view.js | 139 +-- deps/npm/lib/commands/whoami.js | 17 +- deps/npm/lib/lifecycle-cmd.js | 4 +- deps/npm/lib/npm.js | 60 +- deps/npm/lib/search/format-package-stream.js | 6 +- deps/npm/lib/search/package-filter.js | 6 +- deps/npm/lib/utils/audit-error.js | 9 +- deps/npm/lib/utils/cleanup-log-files.js | 15 +- .../lib/utils/completion/installed-deep.js | 6 +- .../lib/utils/completion/installed-shallow.js | 3 +- deps/npm/lib/utils/config/definition.js | 127 +-- deps/npm/lib/utils/config/definitions.js | 89 +- deps/npm/lib/utils/config/describe-all.js | 2 +- deps/npm/lib/utils/config/flatten.js | 5 +- deps/npm/lib/utils/config/index.js | 8 +- deps/npm/lib/utils/deref-command.js | 12 +- deps/npm/lib/utils/did-you-mean.js | 16 +- deps/npm/lib/utils/error-message.js | 153 ++-- deps/npm/lib/utils/exit-handler.js | 78 +- deps/npm/lib/utils/explain-dep.js | 24 +- deps/npm/lib/utils/explain-eresolve.js | 12 +- deps/npm/lib/utils/format-bytes.js | 15 +- deps/npm/lib/utils/get-identity.js | 7 +- deps/npm/lib/utils/get-project-scope.js | 6 +- deps/npm/lib/utils/npm-usage.js | 7 +- deps/npm/lib/utils/open-url.js | 22 +- deps/npm/lib/utils/otplease.js | 6 +- deps/npm/lib/utils/queryable.js | 117 ++- deps/npm/lib/utils/read-user-info.js | 16 +- deps/npm/lib/utils/reify-finish.js | 11 +- deps/npm/lib/utils/reify-output.js | 36 +- deps/npm/lib/utils/replace-info.js | 6 +- deps/npm/lib/utils/setup-log.js | 20 +- deps/npm/lib/utils/split-package-names.js | 8 +- deps/npm/lib/utils/tar.js | 77 +- deps/npm/lib/utils/update-notifier.js | 18 +- deps/npm/lib/utils/usage.js | 9 +- deps/npm/lib/workspaces/get-workspaces.js | 9 +- deps/npm/man/man1/npm-install.1 | 2 +- deps/npm/man/man1/npm-ls.1 | 2 +- deps/npm/man/man1/npm.1 | 2 +- deps/npm/man/man7/developers.7 | 4 + .../npm/node_modules/@npmcli/arborist/LICENSE | 22 - .../node_modules/@npmcli/arborist/LICENSE.md | 20 + .../node_modules/@npmcli/arborist/README.md | 2 +- .../@npmcli/arborist/bin/prune.js | 2 +- .../@npmcli/arborist/bin/reify.js | 2 +- .../@npmcli/arborist/lib/add-rm-pkg-deps.js | 6 +- .../arborist/lib/arborist/build-ideal-tree.js | 12 +- .../@npmcli/arborist/lib/arborist/index.js | 56 +- .../arborist/lib/arborist/load-actual.js | 8 +- .../arborist/lib/arborist/load-virtual.js | 8 +- .../@npmcli/arborist/lib/arborist/rebuild.js | 14 +- .../@npmcli/arborist/lib/arborist/reify.js | 16 +- .../@npmcli/arborist/lib/audit-report.js | 6 +- .../@npmcli/arborist/lib/calc-dep-flags.js | 2 +- .../@npmcli/arborist/lib/can-place-dep.js | 4 +- .../@npmcli/arborist/lib/dep-valid.js | 2 +- .../node_modules/@npmcli/arborist/lib/diff.js | 14 +- .../@npmcli/arborist/lib/from-path.js | 2 +- .../node_modules/@npmcli/arborist/lib/link.js | 2 +- .../node_modules/@npmcli/arborist/lib/node.js | 12 +- .../@npmcli/arborist/lib/printable.js | 4 +- .../@npmcli/arborist/lib/relpath.js | 2 +- .../@npmcli/arborist/lib/retire-path.js | 2 +- .../@npmcli/arborist/lib/shrinkwrap.js | 8 +- .../@npmcli/arborist/lib/version-from-tgz.js | 4 +- .../node_modules/@npmcli/arborist/lib/vuln.js | 2 +- .../@npmcli/arborist/lib/yarn-lock.js | 4 +- .../@npmcli/arborist/package.json | 30 +- .../@npmcli/node-gyp/package.json | 6 +- deps/npm/node_modules/gauge/LICENSE | 13 - deps/npm/node_modules/gauge/LICENSE.md | 20 + .../gauge/{ => lib}/base-theme.js | 10 +- deps/npm/node_modules/gauge/lib/demo.js | 45 + .../npm/node_modules/gauge/{ => lib}/error.js | 0 .../node_modules/gauge/{ => lib}/has-color.js | 0 .../npm/node_modules/gauge/{ => lib}/index.js | 121 ++- .../node_modules/gauge/{ => lib}/plumbing.js | 4 +- .../node_modules/gauge/{ => lib}/process.js | 0 .../gauge/{ => lib}/progress-bar.js | 16 +- .../gauge/{ => lib}/render-template.js | 92 +- .../gauge/{ => lib}/set-immediate.js | 0 .../gauge/{ => lib}/set-interval.js | 0 deps/npm/node_modules/gauge/{ => lib}/spin.js | 0 .../gauge/{ => lib}/template-item.js | 27 +- .../node_modules/gauge/{ => lib}/theme-set.js | 54 +- .../node_modules/gauge/{ => lib}/themes.js | 26 +- .../gauge/{ => lib}/wide-truncate.js | 12 +- .../gauge/node_modules/ansi-regex/index.d.ts | 37 + .../gauge/node_modules/ansi-regex/index.js | 10 + .../gauge/node_modules/ansi-regex/license | 9 + .../node_modules/ansi-regex/package.json | 55 ++ .../is-fullwidth-code-point/index.d.ts | 17 + .../is-fullwidth-code-point/index.js | 50 ++ .../is-fullwidth-code-point/license | 9 + .../is-fullwidth-code-point/package.json | 42 + .../node_modules/string-width/index.d.ts | 29 + .../gauge/node_modules/string-width/index.js | 47 + .../gauge/node_modules/string-width/license | 9 + .../node_modules/string-width/package.json | 56 ++ .../gauge/node_modules/strip-ansi/index.d.ts | 17 + .../gauge/node_modules/strip-ansi/index.js | 4 + .../gauge/node_modules/strip-ansi/license | 9 + .../node_modules/strip-ansi/package.json | 54 ++ deps/npm/node_modules/gauge/package.json | 66 +- deps/npm/node_modules/libnpmdiff/index.js | 3 +- .../libnpmdiff/lib/format-diff.js | 14 +- .../libnpmdiff/lib/should-print-patch.js | 3 +- .../node_modules/libnpmdiff/lib/tarball.js | 3 +- deps/npm/node_modules/libnpmdiff/package.json | 6 +- .../.github/workflows/visual-studio.yml | 25 + deps/npm/node_modules/node-gyp/CHANGELOG.md | 8 + deps/npm/node_modules/node-gyp/README.md | 17 + .../node_modules/node-gyp/lib/configure.js | 12 +- .../node-gyp/lib/create-config-gypi.js | 49 +- .../node-gyp/lib/find-visualstudio.js | 14 +- .../npm/node_modules/node-gyp/lib/node-gyp.js | 3 +- deps/npm/node_modules/node-gyp/package.json | 2 +- .../fixtures/nodedir/include/node/config.gypi | 6 + .../node-gyp/test/test-configure-python.js | 5 +- .../node-gyp/test/test-create-config-gypi.js | 47 +- deps/npm/node_modules/npmlog/LICENSE | 15 - deps/npm/node_modules/npmlog/LICENSE.md | 20 + deps/npm/node_modules/npmlog/{ => lib}/log.js | 18 +- deps/npm/node_modules/npmlog/package.json | 35 +- deps/npm/node_modules/signal-exit/index.js | 297 ++++--- .../npm/node_modules/signal-exit/package.json | 20 +- deps/npm/package.json | 21 +- .../test/lib/commands/completion.js.test.cjs | 239 +++++ .../test/lib/commands/dist-tag.js.test.cjs | 136 --- .../test/lib/commands/pack.js.test.cjs | 78 ++ .../test/lib/commands/publish.js.test.cjs | 19 - deps/npm/test/bin/npx-cli.js | 14 +- deps/npm/test/bin/windows-shims.js | 4 +- deps/npm/test/coverage-map.js | 3 +- deps/npm/test/fixtures/mock-npm.js | 19 +- deps/npm/test/fixtures/sandbox.js | 12 +- deps/npm/test/lib/auth/legacy.js | 3 +- deps/npm/test/lib/auth/sso.js | 4 +- deps/npm/test/lib/cli.js | 42 +- deps/npm/test/lib/commands/access.js | 2 +- deps/npm/test/lib/commands/adduser.js | 9 +- deps/npm/test/lib/commands/audit.js | 226 +++-- deps/npm/test/lib/commands/birthday.js | 30 +- deps/npm/test/lib/commands/bugs.js | 4 +- deps/npm/test/lib/commands/cache.js | 22 +- deps/npm/test/lib/commands/ci.js | 9 +- deps/npm/test/lib/commands/completion.js | 690 +++++---------- deps/npm/test/lib/commands/config.js | 147 ++-- deps/npm/test/lib/commands/diff.js | 211 +++-- deps/npm/test/lib/commands/dist-tag.js | 6 +- deps/npm/test/lib/commands/docs.js | 4 +- deps/npm/test/lib/commands/doctor.js | 432 +++++---- deps/npm/test/lib/commands/edit.js | 3 +- deps/npm/test/lib/commands/exec.js | 825 ++++++++++-------- deps/npm/test/lib/commands/explore.js | 5 +- deps/npm/test/lib/commands/fund.js | 78 +- deps/npm/test/lib/commands/help-search.js | 22 +- deps/npm/test/lib/commands/help.js | 62 +- deps/npm/test/lib/commands/hook.js | 489 +++++++---- deps/npm/test/lib/commands/install-ci-test.js | 3 +- deps/npm/test/lib/commands/install-test.js | 3 +- deps/npm/test/lib/commands/install.js | 370 ++++---- deps/npm/test/lib/commands/link.js | 3 +- deps/npm/test/lib/commands/ll.js | 3 +- deps/npm/test/lib/commands/logout.js | 29 +- deps/npm/test/lib/commands/ls.js | 437 +++++----- deps/npm/test/lib/commands/org.js | 416 +++++---- deps/npm/test/lib/commands/outdated.js | 3 +- deps/npm/test/lib/commands/owner.js | 45 +- deps/npm/test/lib/commands/pack.js | 448 +++------- deps/npm/test/lib/commands/profile.js | 208 ++--- deps/npm/test/lib/commands/publish.js | 499 ++++++----- deps/npm/test/lib/commands/repo.js | 4 +- deps/npm/test/lib/commands/run-script.js | 277 +++--- deps/npm/test/lib/commands/search.js | 6 +- deps/npm/test/lib/commands/set-script.js | 10 +- deps/npm/test/lib/commands/set.js | 26 +- deps/npm/test/lib/commands/shrinkwrap.js | 251 +++--- deps/npm/test/lib/commands/team.js | 4 +- deps/npm/test/lib/commands/token.js | 335 +++---- deps/npm/test/lib/commands/unpublish.js | 7 +- deps/npm/test/lib/commands/version.js | 157 ++-- deps/npm/test/lib/commands/view.js | 16 +- deps/npm/test/lib/load-all-commands.js | 9 +- deps/npm/test/lib/load-all.js | 4 +- deps/npm/test/lib/npm.js | 6 +- deps/npm/test/lib/utils/config/definitions.js | 91 +- deps/npm/test/lib/utils/error-message.js | 12 +- deps/npm/test/lib/utils/exit-handler.js | 12 +- deps/npm/test/lib/utils/open-url.js | 60 +- deps/npm/test/lib/utils/otplease.js | 3 +- deps/npm/test/lib/utils/pulse-till-done.js | 3 +- deps/npm/test/lib/utils/read-user-info.js | 6 +- deps/npm/test/lib/utils/reify-finish.js | 7 +- deps/npm/test/lib/utils/reify-output.js | 21 +- .../npm/test/lib/utils/split-package-names.js | 3 +- deps/npm/test/lib/utils/update-notifier.js | 111 ++- .../npm/test/lib/workspaces/get-workspaces.js | 3 +- 353 files changed, 8547 insertions(+), 7424 deletions(-) delete mode 100644 deps/npm/node_modules/@npmcli/arborist/LICENSE create mode 100644 deps/npm/node_modules/@npmcli/arborist/LICENSE.md delete mode 100644 deps/npm/node_modules/gauge/LICENSE create mode 100644 deps/npm/node_modules/gauge/LICENSE.md rename deps/npm/node_modules/gauge/{ => lib}/base-theme.js (74%) create mode 100644 deps/npm/node_modules/gauge/lib/demo.js rename deps/npm/node_modules/gauge/{ => lib}/error.js (100%) rename deps/npm/node_modules/gauge/{ => lib}/has-color.js (100%) rename deps/npm/node_modules/gauge/{ => lib}/index.js (75%) rename deps/npm/node_modules/gauge/{ => lib}/plumbing.js (97%) rename deps/npm/node_modules/gauge/{ => lib}/process.js (100%) rename deps/npm/node_modules/gauge/{ => lib}/progress-bar.js (72%) rename deps/npm/node_modules/gauge/{ => lib}/render-template.js (71%) rename deps/npm/node_modules/gauge/{ => lib}/set-immediate.js (100%) rename deps/npm/node_modules/gauge/{ => lib}/set-interval.js (100%) rename deps/npm/node_modules/gauge/{ => lib}/spin.js (100%) rename deps/npm/node_modules/gauge/{ => lib}/template-item.js (79%) rename deps/npm/node_modules/gauge/{ => lib}/theme-set.js (69%) rename deps/npm/node_modules/gauge/{ => lib}/themes.js (65%) rename deps/npm/node_modules/gauge/{ => lib}/wide-truncate.js (83%) create mode 100644 deps/npm/node_modules/gauge/node_modules/ansi-regex/index.d.ts create mode 100644 deps/npm/node_modules/gauge/node_modules/ansi-regex/index.js create mode 100644 deps/npm/node_modules/gauge/node_modules/ansi-regex/license create mode 100644 deps/npm/node_modules/gauge/node_modules/ansi-regex/package.json create mode 100644 deps/npm/node_modules/gauge/node_modules/is-fullwidth-code-point/index.d.ts create mode 100644 deps/npm/node_modules/gauge/node_modules/is-fullwidth-code-point/index.js create mode 100644 deps/npm/node_modules/gauge/node_modules/is-fullwidth-code-point/license create mode 100644 deps/npm/node_modules/gauge/node_modules/is-fullwidth-code-point/package.json create mode 100644 deps/npm/node_modules/gauge/node_modules/string-width/index.d.ts create mode 100644 deps/npm/node_modules/gauge/node_modules/string-width/index.js create mode 100644 deps/npm/node_modules/gauge/node_modules/string-width/license create mode 100644 deps/npm/node_modules/gauge/node_modules/string-width/package.json create mode 100644 deps/npm/node_modules/gauge/node_modules/strip-ansi/index.d.ts create mode 100644 deps/npm/node_modules/gauge/node_modules/strip-ansi/index.js create mode 100644 deps/npm/node_modules/gauge/node_modules/strip-ansi/license create mode 100644 deps/npm/node_modules/gauge/node_modules/strip-ansi/package.json create mode 100644 deps/npm/node_modules/node-gyp/.github/workflows/visual-studio.yml create mode 100644 deps/npm/node_modules/node-gyp/test/fixtures/nodedir/include/node/config.gypi delete mode 100644 deps/npm/node_modules/npmlog/LICENSE create mode 100644 deps/npm/node_modules/npmlog/LICENSE.md rename deps/npm/node_modules/npmlog/{ => lib}/log.js (93%) create mode 100644 deps/npm/tap-snapshots/test/lib/commands/completion.js.test.cjs create mode 100644 deps/npm/tap-snapshots/test/lib/commands/pack.js.test.cjs diff --git a/deps/npm/bin/npx-cli.js b/deps/npm/bin/npx-cli.js index 7a3fb39837d276..cb05e1cb706c6e 100755 --- a/deps/npm/bin/npx-cli.js +++ b/deps/npm/bin/npx-cli.js @@ -26,7 +26,7 @@ const removed = new Set([ const { definitions, shorthands } = require('../lib/utils/config/index.js') const npmSwitches = Object.entries(definitions) - .filter(([key, {type}]) => type === Boolean || + .filter(([key, { type }]) => type === Boolean || (Array.isArray(type) && type.includes(Boolean))) .map(([key]) => key) @@ -65,9 +65,9 @@ let i let sawRemovedFlags = false for (i = 3; i < process.argv.length; i++) { const arg = process.argv[i] - if (arg === '--') + if (arg === '--') { break - else if (/^-/.test(arg)) { + } else if (/^-/.test(arg)) { const [key, ...v] = arg.replace(/^-+/, '').split('=') switch (key) { @@ -87,8 +87,9 @@ for (i = 3; i < process.argv.length; i++) { // resolve shorthands and run again if (shorthands[key] && !removed.has(key)) { const a = [...shorthands[key]] - if (v.length) + if (v.length) { a.push(v.join('=')) + } process.argv.splice(i, 1, ...a) i-- continue @@ -109,8 +110,9 @@ for (i = 3; i < process.argv.length; i++) { if (removed.has(key)) { // also remove the value for the cut key. process.argv.splice(i + 1, 1) - } else + } else { i++ + } } } else { // found a positional arg, put -- in front of it, and we're done @@ -119,7 +121,8 @@ for (i = 3; i < process.argv.length; i++) { } } -if (sawRemovedFlags) +if (sawRemovedFlags) { console.error('See `npm help exec` for more information') +} cli(process) diff --git a/deps/npm/docs/content/commands/npm-install.md b/deps/npm/docs/content/commands/npm-install.md index a103845d1a6758..83b9af1e4d07f9 100644 --- a/deps/npm/docs/content/commands/npm-install.md +++ b/deps/npm/docs/content/commands/npm-install.md @@ -58,7 +58,7 @@ into a tarball (b). * `npm install` (in a package directory, no arguments): - Install the dependencies in the local `node_modules` folder. + Install the dependencies to the local `node_modules` folder. In global mode (ie, with `-g` or `--global` appended to the command), it installs the current package context (ie, the current working diff --git a/deps/npm/docs/content/using-npm/developers.md b/deps/npm/docs/content/using-npm/developers.md index a76808ca675e61..5fc2e5876e3dd3 100644 --- a/deps/npm/docs/content/using-npm/developers.md +++ b/deps/npm/docs/content/using-npm/developers.md @@ -119,7 +119,9 @@ need to add them to `.npmignore` explicitly: * `._*` * `.DS_Store` * `.git` +* `.gitignore` * `.hg` +* `.npmignore` * `.npmrc` * `.lock-wscript` * `.svn` diff --git a/deps/npm/docs/output/commands/npm-access.html b/deps/npm/docs/output/commands/npm-access.html index bfece57cd7e4b3..cfadcce10c594e 100644 --- a/deps/npm/docs/output/commands/npm-access.html +++ b/deps/npm/docs/output/commands/npm-access.html @@ -1,4 +1,5 @@ - + + npm-access