From ea4a96ff0d9bd80e5d7751bb147bf96026311a02 Mon Sep 17 00:00:00 2001 From: npm-robot Date: Thu, 17 Jun 2021 18:59:38 +0000 Subject: [PATCH] deps: upgrade npm to 7.18.1 --- deps/npm/docs/content/commands/npm-audit.md | 10 +- deps/npm/docs/content/commands/npm-ls.md | 21 +- deps/npm/docs/content/commands/npm-pack.md | 7 + deps/npm/docs/content/using-npm/config.md | 30 +- deps/npm/docs/output/commands/npm-audit.html | 8 +- deps/npm/docs/output/commands/npm-ls.html | 23 +- deps/npm/docs/output/commands/npm-pack.html | 8 +- deps/npm/docs/output/commands/npm.html | 2 +- deps/npm/docs/output/using-npm/config.html | 28 +- deps/npm/lib/audit.js | 2 +- deps/npm/lib/base-command.js | 9 + deps/npm/lib/ci.js | 2 +- deps/npm/lib/cli.js | 1 + deps/npm/lib/dedupe.js | 2 +- deps/npm/lib/diff.js | 7 +- deps/npm/lib/dist-tag.js | 6 +- deps/npm/lib/docs.js | 6 +- deps/npm/lib/exec.js | 14 +- deps/npm/lib/explain.js | 4 +- deps/npm/lib/fund.js | 2 +- deps/npm/lib/init.js | 2 - deps/npm/lib/install.js | 2 +- deps/npm/lib/link.js | 4 +- deps/npm/lib/ls.js | 27 +- deps/npm/lib/npm.js | 3 + deps/npm/lib/outdated.js | 6 +- deps/npm/lib/pack.js | 18 +- deps/npm/lib/prune.js | 2 +- deps/npm/lib/publish.js | 10 +- deps/npm/lib/rebuild.js | 2 +- deps/npm/lib/repo.js | 6 +- deps/npm/lib/run-script.js | 15 +- deps/npm/lib/set-script.js | 20 +- deps/npm/lib/uninstall.js | 2 +- deps/npm/lib/unpublish.js | 6 +- deps/npm/lib/update.js | 2 +- deps/npm/lib/utils/cache-file.js | 66 -- deps/npm/lib/utils/config/definitions.js | 33 +- deps/npm/lib/utils/error-handler.js | 48 +- deps/npm/lib/utils/error-message.js | 7 +- deps/npm/lib/utils/explain-eresolve.js | 19 +- deps/npm/lib/utils/setup-log.js | 27 +- deps/npm/lib/version.js | 13 +- deps/npm/lib/view.js | 12 +- deps/npm/lib/workspaces/arborist-cmd.js | 7 +- deps/npm/man/man1/npm-audit.1 | 10 +- deps/npm/man/man1/npm-ls.1 | 24 +- deps/npm/man/man1/npm-pack.1 | 10 + deps/npm/man/man1/npm.1 | 2 +- deps/npm/man/man7/config.7 | 37 +- .../arborist/lib/arborist/build-ideal-tree.js | 14 +- .../@npmcli/arborist/lib/arborist/index.js | 2 +- .../arborist/lib/arborist/load-actual.js | 20 +- .../@npmcli/arborist/lib/arborist/reify.js | 35 - .../@npmcli/arborist/lib/audit-report.js | 2 +- .../@npmcli/arborist/lib/calc-dep-flags.js | 16 +- .../@npmcli/arborist/lib/inventory.js | 18 +- .../node_modules/@npmcli/arborist/lib/node.js | 18 +- .../@npmcli/arborist/lib/proc-log.js | 21 - .../@npmcli/arborist/lib/shrinkwrap.js | 2 +- .../@npmcli/arborist/lib/tracker.js | 2 +- .../@npmcli/arborist/package.json | 3 +- .../node_modules/libnpmdiff/.eslintrc.json | 207 +++++ deps/npm/node_modules/libnpmdiff/.gitignore | 99 +++ deps/npm/node_modules/libnpmdiff/CHANGELOG.md | 29 + deps/npm/node_modules/libnpmdiff/README.md | 97 +++ deps/npm/node_modules/libnpmdiff/package.json | 12 +- .../test/format-diff.js.test.cjs | 152 ++++ .../tap-snapshots/test/index.js.test.cjs | 115 +++ .../tap-snapshots/test/untar.js.test.cjs | 134 +++ .../libnpmdiff/test/format-diff.js | 483 +++++++++++ .../npm/node_modules/libnpmdiff/test/index.js | 147 ++++ .../libnpmdiff/test/should-print-patch.js | 28 + .../node_modules/libnpmdiff/test/tarball.js | 96 +++ .../npm/node_modules/libnpmdiff/test/untar.js | 231 +++++ .../libnpmexec/lib/cache-install-dir.js | 8 +- deps/npm/node_modules/libnpmexec/lib/index.js | 4 +- deps/npm/node_modules/libnpmexec/package.json | 2 +- .../libnpmversion/lib/retrieve-tag.js | 2 +- .../node_modules/libnpmversion/package.json | 2 +- .../make-fetch-happen/lib/cache/entry.js | 6 + .../make-fetch-happen/lib/cache/index.js | 17 +- .../make-fetch-happen/package.json | 2 +- deps/npm/node_modules/npm-package-arg/npa.js | 104 ++- .../node_modules/npm-package-arg/package.json | 2 +- deps/npm/package.json | 15 +- .../test/lib/load-all-commands.js.test.cjs | 8 +- .../npm/tap-snapshots/test/lib/ls.js.test.cjs | 17 + .../lib/utils/config/definitions.js.test.cjs | 1 + .../lib/utils/config/describe-all.js.test.cjs | 30 +- .../test/lib/utils/error-handler.js.test.cjs | 2 +- .../lib/utils/explain-eresolve.js.test.cjs | 139 +-- .../test/lib/utils/npm-usage.js.test.cjs | 8 +- deps/npm/test/lib/cli.js | 5 + deps/npm/test/lib/diff.js | 5 +- deps/npm/test/lib/exec.js | 28 +- deps/npm/test/lib/init.js | 12 +- deps/npm/test/lib/link.js | 50 ++ deps/npm/test/lib/load-all.js | 1 + deps/npm/test/lib/ls.js | 807 ++++++++++++++++++ deps/npm/test/lib/npm.js | 56 +- deps/npm/test/lib/pack.js | 44 +- deps/npm/test/lib/utils/config/definitions.js | 1 + deps/npm/test/lib/utils/error-handler.js | 38 +- deps/npm/test/lib/utils/error-message.js | 57 +- deps/npm/test/lib/utils/explain-eresolve.js | 19 +- deps/npm/test/lib/utils/setup-log.js | 2 +- deps/npm/test/lib/workspaces/arborist-cmd.js | 12 +- 108 files changed, 3433 insertions(+), 690 deletions(-) delete mode 100644 deps/npm/lib/utils/cache-file.js delete mode 100644 deps/npm/node_modules/@npmcli/arborist/lib/proc-log.js create mode 100644 deps/npm/node_modules/libnpmdiff/.eslintrc.json create mode 100644 deps/npm/node_modules/libnpmdiff/.gitignore create mode 100644 deps/npm/node_modules/libnpmdiff/CHANGELOG.md create mode 100644 deps/npm/node_modules/libnpmdiff/README.md create mode 100644 deps/npm/node_modules/libnpmdiff/tap-snapshots/test/format-diff.js.test.cjs create mode 100644 deps/npm/node_modules/libnpmdiff/tap-snapshots/test/index.js.test.cjs create mode 100644 deps/npm/node_modules/libnpmdiff/tap-snapshots/test/untar.js.test.cjs create mode 100644 deps/npm/node_modules/libnpmdiff/test/format-diff.js create mode 100644 deps/npm/node_modules/libnpmdiff/test/index.js create mode 100644 deps/npm/node_modules/libnpmdiff/test/should-print-patch.js create mode 100644 deps/npm/node_modules/libnpmdiff/test/tarball.js create mode 100644 deps/npm/node_modules/libnpmdiff/test/untar.js diff --git a/deps/npm/docs/content/commands/npm-audit.md b/deps/npm/docs/content/commands/npm-audit.md index 0771d897df90db..704d7a15fb8f19 100644 --- a/deps/npm/docs/content/commands/npm-audit.md +++ b/deps/npm/docs/content/commands/npm-audit.md @@ -250,8 +250,14 @@ Not supported by all npm commands. * Default: false * Type: Boolean -If set to true, it will update only the `package-lock.json`, instead of -checking `node_modules` and downloading dependencies. +If set to true, the current operation will only use the `package-lock.json`, +ignoring `node_modules`. + +For `update` this means only the `package-lock.json` will be updated, +instead of checking `node_modules` and downloading dependencies. + +For `list` this means the output will be based on the tree described by the +`package-lock.json`, rather than the contents of `node_modules`. #### `omit` diff --git a/deps/npm/docs/content/commands/npm-ls.md b/deps/npm/docs/content/commands/npm-ls.md index 3c662176327bf4..1f401fa956ff8d 100644 --- a/deps/npm/docs/content/commands/npm-ls.md +++ b/deps/npm/docs/content/commands/npm-ls.md @@ -155,18 +155,21 @@ variable will be set to `'production'` for all lifecycle scripts. * Default: false * Type: Boolean -If true, then local installs will link if there is a suitable globally -installed package. +Used with `npm ls`, limiting output to only those packages that are linked. -Note that this means that local installs can cause things to be installed -into the global space at the same time. The link is only done if one of the -two conditions are met: +#### `package-lock-only` -* The package is not already installed globally, or -* the globally installed version is identical to the version that is being - installed locally. +* Default: false +* Type: Boolean + +If set to true, the current operation will only use the `package-lock.json`, +ignoring `node_modules`. + +For `update` this means only the `package-lock.json` will be updated, +instead of checking `node_modules` and downloading dependencies. -When used with `npm ls`, only show packages that are linked. +For `list` this means the output will be based on the tree described by the +`package-lock.json`, rather than the contents of `node_modules`. #### `unicode` diff --git a/deps/npm/docs/content/commands/npm-pack.md b/deps/npm/docs/content/commands/npm-pack.md index 04a22a5d854b45..95070262784378 100644 --- a/deps/npm/docs/content/commands/npm-pack.md +++ b/deps/npm/docs/content/commands/npm-pack.md @@ -36,6 +36,13 @@ Whether or not to output JSON data, rather than the normal output. Not supported by all npm commands. +#### `pack-destination` + +* Default: "." +* Type: String + +Directory in which `npm pack` will save tarballs. + #### `workspace` * Default: diff --git a/deps/npm/docs/content/using-npm/config.md b/deps/npm/docs/content/using-npm/config.md index 44b79a801f15ec..1036895101fcc1 100644 --- a/deps/npm/docs/content/using-npm/config.md +++ b/deps/npm/docs/content/using-npm/config.md @@ -743,18 +743,7 @@ Use of `legacy-peer-deps` is not recommended, as it will not enforce the * Default: false * Type: Boolean -If true, then local installs will link if there is a suitable globally -installed package. - -Note that this means that local installs can cause things to be installed -into the global space at the same time. The link is only done if one of the -two conditions are met: - -* The package is not already installed globally, or -* the globally installed version is identical to the version that is being - installed locally. - -When used with `npm ls`, only show packages that are linked. +Used with `npm ls`, limiting output to only those packages that are linked. #### `local-address` @@ -878,6 +867,13 @@ when publishing or changing package permissions with `npm access`. If not set, and a registry response fails with a challenge for a one-time password, npm will prompt on the command line for one. +#### `pack-destination` + +* Default: "." +* Type: String + +Directory in which `npm pack` will save tarballs. + #### `package` * Default: @@ -902,8 +898,14 @@ package-locks disabled use `npm prune`. * Default: false * Type: Boolean -If set to true, it will update only the `package-lock.json`, instead of -checking `node_modules` and downloading dependencies. +If set to true, the current operation will only use the `package-lock.json`, +ignoring `node_modules`. + +For `update` this means only the `package-lock.json` will be updated, +instead of checking `node_modules` and downloading dependencies. + +For `list` this means the output will be based on the tree described by the +`package-lock.json`, rather than the contents of `node_modules`. #### `parseable` diff --git a/deps/npm/docs/output/commands/npm-audit.html b/deps/npm/docs/output/commands/npm-audit.html index 64c62658cdd2aa..a1c58d89633742 100644 --- a/deps/npm/docs/output/commands/npm-audit.html +++ b/deps/npm/docs/output/commands/npm-audit.html @@ -324,8 +324,12 @@

package-lock-only

  • Default: false
  • Type: Boolean
  • -

    If set to true, it will update only the package-lock.json, instead of -checking node_modules and downloading dependencies.

    +

    If set to true, the current operation will only use the package-lock.json, +ignoring node_modules.

    +

    For update this means only the package-lock.json will be updated, +instead of checking node_modules and downloading dependencies.

    +

    For list this means the output will be based on the tree described by the +package-lock.json, rather than the contents of node_modules.

    omit

    -

    If true, then local installs will link if there is a suitable globally -installed package.

    -

    Note that this means that local installs can cause things to be installed -into the global space at the same time. The link is only done if one of the -two conditions are met:

    +

    Used with npm ls, limiting output to only those packages that are linked.

    +

    package-lock-only

    -

    When used with npm ls, only show packages that are linked.

    +

    If set to true, the current operation will only use the package-lock.json, +ignoring node_modules.

    +

    For update this means only the package-lock.json will be updated, +instead of checking node_modules and downloading dependencies.

    +

    For list this means the output will be based on the tree described by the +package-lock.json, rather than the contents of node_modules.

    unicode

    Whether or not to output JSON data, rather than the normal output.

    Not supported by all npm commands.

    +

    pack-destination

    + +

    Directory in which npm pack will save tarballs.

    workspace

    -

    If true, then local installs will link if there is a suitable globally -installed package.

    -

    Note that this means that local installs can cause things to be installed -into the global space at the same time. The link is only done if one of the -two conditions are met:

    - -

    When used with npm ls, only show packages that are linked.

    +

    Used with npm ls, limiting output to only those packages that are linked.

    local-address