From 94405650aebbb16dde6fcc215e1ba912ced0111d Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Thu, 15 Apr 2021 21:53:45 -0400 Subject: [PATCH] deps: upgrade npm to 7.10.0 PR-URL: https://github.com/nodejs/node/pull/38254 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig --- deps/npm/CHANGELOG.md | 33 ++ deps/npm/CONTRIBUTING.md | 4 + deps/npm/docs/content/commands/npm-bugs.md | 6 +- deps/npm/docs/content/commands/npm-version.md | 83 +-- deps/npm/docs/output/commands/npm-bugs.html | 6 +- deps/npm/docs/output/commands/npm-ls.html | 2 +- .../npm/docs/output/commands/npm-version.html | 71 ++- deps/npm/docs/output/commands/npm.html | 2 +- deps/npm/lib/base-command.js | 20 +- deps/npm/lib/bugs.js | 3 + deps/npm/lib/utils/config/definitions.js | 1 + deps/npm/lib/version.js | 78 ++- deps/npm/lib/workspaces/get-workspaces.js | 3 + deps/npm/man/man1/npm-bugs.1 | 6 +- deps/npm/man/man1/npm-ls.1 | 2 +- deps/npm/man/man1/npm-version.1 | 111 ++-- deps/npm/man/man1/npm.1 | 2 +- .../npm/node_modules/@npmcli/git/lib/clone.js | 94 ++-- deps/npm/node_modules/@npmcli/git/lib/env.js | 33 -- deps/npm/node_modules/@npmcli/git/lib/find.js | 18 +- .../npm/node_modules/@npmcli/git/lib/index.js | 2 +- .../node_modules/@npmcli/git/lib/is-clean.js | 6 +- .../@npmcli/git/lib/lines-to-revs.js | 52 +- deps/npm/node_modules/@npmcli/git/lib/opts.js | 10 +- deps/npm/node_modules/@npmcli/git/lib/revs.js | 16 +- .../npm/node_modules/@npmcli/git/lib/spawn.js | 28 +- .../npm/node_modules/@npmcli/git/lib/utils.js | 3 + .../npm/node_modules/@npmcli/git/lib/which.js | 13 +- .../npm/node_modules/@npmcli/git/package.json | 25 +- .../node_modules/balanced-match/.npmignore | 5 - .../npm/node_modules/balanced-match/README.md | 6 + deps/npm/node_modules/balanced-match/index.js | 3 + .../node_modules/balanced-match/package.json | 7 +- deps/npm/node_modules/just-diff/package.json | 5 +- .../node_modules/libnpmversion/lib/commit.js | 11 +- .../libnpmversion/lib/enforce-clean.js | 11 +- .../node_modules/libnpmversion/lib/index.js | 4 +- .../libnpmversion/lib/read-json.js | 2 +- .../libnpmversion/lib/retrieve-tag.js | 12 +- .../npm/node_modules/libnpmversion/lib/tag.js | 20 +- .../node_modules/libnpmversion/lib/version.js | 38 +- .../libnpmversion/lib/write-json.js | 4 +- .../node_modules/libnpmversion/package.json | 17 +- deps/npm/node_modules/mime-db/HISTORY.md | 7 + deps/npm/node_modules/mime-db/README.md | 2 - deps/npm/node_modules/mime-db/db.json | 24 +- deps/npm/node_modules/mime-db/package.json | 12 +- deps/npm/node_modules/mime-types/HISTORY.md | 8 + deps/npm/node_modules/mime-types/package.json | 8 +- deps/npm/package.json | 8 +- .../index.js.test.cjs} | 8 +- .../test-lib-link.js-TAP.test.js | 30 - .../test-lib-outdated.js-TAP.test.js | 154 ----- .../test-tap-repo.js-TAP.test.js | 21 - .../lib/config.js.test.cjs} | 40 +- .../lib/dist-tag.js.test.cjs} | 29 +- .../lib/fund.js.test.cjs} | 0 .../lib/init.js.test.cjs} | 0 .../tap-snapshots/test/lib/link.js.test.cjs | 30 + .../lib/ls.js.test.cjs} | 358 ++++++------ .../test/lib/outdated.js.test.cjs | 154 +++++ .../lib/owner.js.test.cjs} | 0 .../lib/profile.js.test.cjs} | 0 .../lib/publish.js.test.cjs} | 0 .../lib/search.js.test.cjs} | 6 +- .../lib/stars.js.test.cjs} | 0 .../lib/team.js.test.cjs} | 0 .../lib/utils/cmd-list.js.test.cjs} | 0 .../lib/utils/config/definition.js.test.cjs} | 0 .../lib/utils/config/definitions.js.test.cjs} | 0 .../utils/config/describe-all.js.test.cjs} | 0 .../lib/utils/config/index.js.test.cjs} | 0 .../lib/utils/error-handler.js.test.cjs} | 0 .../lib/utils/error-message.js.test.cjs} | 349 ++++++++++-- .../lib/utils/explain-dep.js.test.cjs} | 0 .../lib/utils/explain-eresolve.js.test.cjs} | 0 .../lib/utils/npm-usage.js.test.cjs} | 527 +++++++++--------- .../lib/utils/open-url.js.test.cjs} | 0 .../lib/utils/reify-finish.js.test.cjs} | 0 .../lib/utils/reify-output.js.test.cjs} | 0 .../lib/utils/tar.js.test.cjs} | 18 +- .../lib/utils/update-notifier.js.test.cjs} | 0 .../lib/view.js.test.cjs} | 0 deps/npm/test/bin/npm-cli.js | 3 +- deps/npm/test/bin/npx-cli.js | 18 +- deps/npm/test/lib/access.js | 97 ++-- deps/npm/test/lib/adduser.js | 31 +- deps/npm/test/lib/audit.js | 7 +- deps/npm/test/lib/auth/legacy.js | 37 +- deps/npm/test/lib/auth/oauth.js | 7 +- deps/npm/test/lib/auth/saml.js | 7 +- deps/npm/test/lib/auth/sso.js | 25 +- deps/npm/test/lib/bin.js | 23 +- deps/npm/test/lib/bugs.js | 17 +- deps/npm/test/lib/cache.js | 13 +- deps/npm/test/lib/ci.js | 29 +- deps/npm/test/lib/cli.js | 3 +- deps/npm/test/lib/completion.js | 49 +- deps/npm/test/lib/config.js | 47 +- deps/npm/test/lib/dedupe.js | 15 +- deps/npm/test/lib/deprecate.js | 17 +- deps/npm/test/lib/diff.js | 16 +- deps/npm/test/lib/dist-tag.js | 74 ++- deps/npm/test/lib/docs.js | 7 +- deps/npm/test/lib/doctor.js | 15 +- deps/npm/test/lib/edit.js | 17 +- deps/npm/test/lib/exec.js | 14 +- deps/npm/test/lib/explain.js | 10 +- deps/npm/test/lib/explore.js | 30 +- deps/npm/test/lib/fund.js | 103 ++-- deps/npm/test/lib/get.js | 7 +- deps/npm/test/lib/help-search.js | 17 +- deps/npm/test/lib/help.js | 35 +- deps/npm/test/lib/hook.js | 49 +- deps/npm/test/lib/init.js | 44 +- deps/npm/test/lib/install-ci-test.js | 3 +- deps/npm/test/lib/install-test.js | 3 +- deps/npm/test/lib/install.js | 35 +- deps/npm/test/lib/link.js | 13 +- deps/npm/test/lib/ll.js | 5 +- deps/npm/test/lib/load-all-commands.js | 7 +- deps/npm/test/lib/logout.js | 29 +- deps/npm/test/lib/ls.js | 233 ++++---- deps/npm/test/lib/npm.js | 27 +- deps/npm/test/lib/org.js | 53 +- deps/npm/test/lib/outdated.js | 18 +- deps/npm/test/lib/owner.js | 27 +- deps/npm/test/lib/pack.js | 16 +- deps/npm/test/lib/ping.js | 21 +- deps/npm/test/lib/prefix.js | 2 +- deps/npm/test/lib/profile.js | 72 ++- deps/npm/test/lib/prune.js | 7 +- deps/npm/test/lib/publish.js | 38 +- deps/npm/test/lib/rebuild.js | 3 +- deps/npm/test/lib/repo.js | 7 +- deps/npm/test/lib/root.js | 2 +- deps/npm/test/lib/run-script.js | 28 +- deps/npm/test/lib/search.js | 16 +- deps/npm/test/lib/set-script.js | 25 +- deps/npm/test/lib/set.js | 3 +- deps/npm/test/lib/shrinkwrap.js | 28 +- deps/npm/test/lib/star.js | 8 +- deps/npm/test/lib/stars.js | 6 +- deps/npm/test/lib/team.js | 42 +- deps/npm/test/lib/test.js | 3 +- deps/npm/test/lib/token.js | 97 ++-- deps/npm/test/lib/uninstall.js | 8 +- deps/npm/test/lib/unpublish.js | 42 +- deps/npm/test/lib/unstar.js | 5 +- deps/npm/test/lib/update.js | 24 +- deps/npm/test/lib/utils/audit-error.js | 3 +- deps/npm/test/lib/utils/cleanup-log-files.js | 3 +- .../lib/utils/completion/installed-deep.js | 21 +- .../lib/utils/completion/installed-shallow.js | 3 +- deps/npm/test/lib/utils/config/definitions.js | 53 +- deps/npm/test/lib/utils/did-you-mean.js | 3 +- deps/npm/test/lib/utils/error-handler.js | 41 +- deps/npm/test/lib/utils/error-message.js | 42 +- deps/npm/test/lib/utils/explain-dep.js | 3 +- deps/npm/test/lib/utils/explain-eresolve.js | 3 +- deps/npm/test/lib/utils/file-exists.js | 8 +- deps/npm/test/lib/utils/get-identity.js | 23 +- deps/npm/test/lib/utils/npm-usage.js | 3 +- deps/npm/test/lib/utils/open-url.js | 35 +- deps/npm/test/lib/utils/otplease.js | 17 +- deps/npm/test/lib/utils/path.js | 7 +- deps/npm/test/lib/utils/ping.js | 11 +- deps/npm/test/lib/utils/proc-log-listener.js | 3 +- deps/npm/test/lib/utils/pulse-till-done.js | 7 +- deps/npm/test/lib/utils/read-local-package.js | 11 +- deps/npm/test/lib/utils/read-user-info.js | 17 +- deps/npm/test/lib/utils/reify-finish.js | 5 +- deps/npm/test/lib/utils/reify-output.js | 4 +- deps/npm/test/lib/utils/replace-info.js | 4 +- deps/npm/test/lib/utils/setup-log.js | 6 +- .../npm/test/lib/utils/split-package-names.js | 4 +- deps/npm/test/lib/utils/tar.js | 15 +- deps/npm/test/lib/utils/unsupported.js | 14 +- deps/npm/test/lib/utils/update-notifier.js | 7 +- deps/npm/test/lib/version.js | 188 ++++++- deps/npm/test/lib/view.js | 51 +- deps/npm/test/lib/whoami.js | 15 +- .../npm/test/lib/workspaces/get-workspaces.js | 16 +- 183 files changed, 2850 insertions(+), 2306 deletions(-) delete mode 100644 deps/npm/node_modules/@npmcli/git/lib/env.js create mode 100644 deps/npm/node_modules/@npmcli/git/lib/utils.js delete mode 100644 deps/npm/node_modules/balanced-match/.npmignore rename deps/npm/tap-snapshots/{smoke-tests-index.js-TAP.test.js => smoke-tests/index.js.test.cjs} (98%) delete mode 100644 deps/npm/tap-snapshots/test-lib-link.js-TAP.test.js delete mode 100644 deps/npm/tap-snapshots/test-lib-outdated.js-TAP.test.js delete mode 100644 deps/npm/tap-snapshots/test-tap-repo.js-TAP.test.js rename deps/npm/tap-snapshots/{test-lib-config.js-TAP.test.js => test/lib/config.js.test.cjs} (90%) rename deps/npm/tap-snapshots/{test-lib-dist-tag.js-TAP.test.js => test/lib/dist-tag.js.test.cjs} (92%) rename deps/npm/tap-snapshots/{test-lib-fund.js-TAP.test.js => test/lib/fund.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-init.js-TAP.test.js => test/lib/init.js.test.cjs} (100%) create mode 100644 deps/npm/tap-snapshots/test/lib/link.js.test.cjs rename deps/npm/tap-snapshots/{test-lib-ls.js-TAP.test.js => test/lib/ls.js.test.cjs} (51%) create mode 100644 deps/npm/tap-snapshots/test/lib/outdated.js.test.cjs rename deps/npm/tap-snapshots/{test-lib-owner.js-TAP.test.js => test/lib/owner.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-profile.js-TAP.test.js => test/lib/profile.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-publish.js-TAP.test.js => test/lib/publish.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-search.js-TAP.test.js => test/lib/search.js.test.cjs} (95%) rename deps/npm/tap-snapshots/{test-lib-stars.js-TAP.test.js => test/lib/stars.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-team.js-TAP.test.js => test/lib/team.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-cmd-list.js-TAP.test.js => test/lib/utils/cmd-list.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-config-definition.js-TAP.test.js => test/lib/utils/config/definition.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-config-definitions.js-TAP.test.js => test/lib/utils/config/definitions.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-config-describe-all.js-TAP.test.js => test/lib/utils/config/describe-all.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-config-index.js-TAP.test.js => test/lib/utils/config/index.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-error-handler.js-TAP.test.js => test/lib/utils/error-handler.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-error-message.js-TAP.test.js => test/lib/utils/error-message.js.test.cjs} (67%) rename deps/npm/tap-snapshots/{test-lib-utils-explain-dep.js-TAP.test.js => test/lib/utils/explain-dep.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-explain-eresolve.js-TAP.test.js => test/lib/utils/explain-eresolve.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-npm-usage.js-TAP.test.js => test/lib/utils/npm-usage.js.test.cjs} (81%) rename deps/npm/tap-snapshots/{test-lib-utils-open-url.js-TAP.test.js => test/lib/utils/open-url.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-reify-finish.js-TAP.test.js => test/lib/utils/reify-finish.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-reify-output.js-TAP.test.js => test/lib/utils/reify-output.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-utils-tar.js-TAP.test.js => test/lib/utils/tar.js.test.cjs} (55%) rename deps/npm/tap-snapshots/{test-lib-utils-update-notifier.js-TAP.test.js => test/lib/utils/update-notifier.js.test.cjs} (100%) rename deps/npm/tap-snapshots/{test-lib-view.js-TAP.test.js => test/lib/view.js.test.cjs} (100%) diff --git a/deps/npm/CHANGELOG.md b/deps/npm/CHANGELOG.md index 8155d019159f5b..bbc9785efcd46b 100644 --- a/deps/npm/CHANGELOG.md +++ b/deps/npm/CHANGELOG.md @@ -1,3 +1,36 @@ +## v7.10.0 (2021-04-15) + +### FEATURES + +* [`f9b639eb6`](https://github.com/npm/cli/commit/f9b639eb6c504ded6cdd59e83e26a392bfe81e5d) + [#3052](https://github.com/npm/cli/issues/3052) + feat(bugs): fall back to email if provided + ([@Yash-Singh1](https://github.com/Yash-Singh1)) +* [`8c9e24778`](https://github.com/npm/cli/commit/8c9e24778db867cb3148bc247c7e321639aa9f58) + [#3055](https://github.com/npm/cli/issues/3055) + feat(version): add workspace support + ([@wraithgar](https://github.com/wraithgar)) + +### DEPENDENCIES + +* [`f1e6743a6`](https://github.com/npm/cli/commit/f1e6743a6e8e32ddad6d1964eb05d17e6c50a456) + `libnpmversion@1.2.0` + * feat(retrieve-tag): retrieve unannotated git tags + * fix(retrieve-tag): use semver to look for semver +* [`3b476a24c`](https://github.com/npm/cli/commit/3b476a24cf0b2823fdf92505b84bddde4fcc8b14) + `@npmcl/git@2.0.8` + * fix(git): do not use shell when calling git +* [`dfcd0c1e2`](https://github.com/npm/cli/commit/dfcd0c1e2331c1f4b6573466b50505772eddaf22) + [#3069](https://github.com/npm/cli/issues/3069) + `tap@15.0.2` + +### DOCUMENTATION + +* [`90b61eda9`](https://github.com/npm/cli/commit/90b61eda9b41af108ed69fc0c43a522a92745047) + [#3053](https://github.com/npm/cli/issues/3053) + fix(contributing.md): explicitely outline dep updates + ([@darcyclarke](https://github.com/darcyclarke)) + ## v7.9.0 (2021-04-08) ### FEATURES diff --git a/deps/npm/CONTRIBUTING.md b/deps/npm/CONTRIBUTING.md index 4116f4e71d057c..6821da895b3b51 100644 --- a/deps/npm/CONTRIBUTING.md +++ b/deps/npm/CONTRIBUTING.md @@ -51,6 +51,10 @@ We've set up an automated [benchmark](https://github.com/npm/benchmarks) integra You can learn more about this tool, including how to run & configure it manually, [here](https://github.com/npm/benchmarks) +## Dependency Updates + +It should be noted that our team does not accept third-party dependency updates/PRs. We have a [release process](https://github.com/npm/cli/wiki/Release-Process) that includes checks to ensure dependencies are staying up-to-date & will ship security patches for CVEs as they occur. If you submit a PR trying to update our dependencies we will close it with or without a reference to these contribution guidelines. + ## Reporting Bugs When submitting a new bug report, please first [search](https://github.com/npm/cli/issues) for an existing or similar report & then use one of our existing [issue templates](https://github.com/npm/cli/issues/new/choose) if you believe you've come across a unique problem. Duplicate issues, or issues that don't use one of our templates may get closed without a response. diff --git a/deps/npm/docs/content/commands/npm-bugs.md b/deps/npm/docs/content/commands/npm-bugs.md index dd1ab299f9c550..714db4440cdf25 100644 --- a/deps/npm/docs/content/commands/npm-bugs.md +++ b/deps/npm/docs/content/commands/npm-bugs.md @@ -15,9 +15,9 @@ aliases: issues ### Description This command tries to guess at the likely location of a package's bug -tracker URL, and then tries to open it using the `--browser` config param. -If no package name is provided, it will search for a `package.json` in the -current folder and use the `name` property. +tracker URL or the `mailto` URL of the support email, and then tries to +open it using the `--browser` config param. If no package name is provided, it +will search for a `package.json` in the current folder and use the `name` property. ### Configuration diff --git a/deps/npm/docs/content/commands/npm-version.md b/deps/npm/docs/content/commands/npm-version.md index 0eb814b9899b0f..cdf0f977f503d0 100644 --- a/deps/npm/docs/content/commands/npm-version.md +++ b/deps/npm/docs/content/commands/npm-version.md @@ -14,6 +14,56 @@ npm version [ | major | minor | patch | premajor | preminor | prepat 'npm ls' to inspect current package/dependency versions ``` +### Configuration + +#### `allow-same-version` + +* Default: `false` +* Type: Boolean + +Prevents throwing an error when `npm version` is used to set the new version +to the same value as the current version. + +#### `git-tag-version` + +* Default: `true` +* Type: Boolean + +Commit and tag the version change. + +#### `commit-hooks` + +* Default: `true` +* Type: Boolean + +Run git commit hooks when committing the version change. + +#### `sign-git-tag` + +* Default: `false` +* Type: Boolean + +Pass the `-s` flag to git to sign the tag. + +Note that you must have a default GPG key set up in your git config for this to work properly. + +#### workspaces + +* Default: `false` +* Type: Boolean + +Enables workspaces context and includes workspaces in reported output +when getting versions. When setting a new version *only the workspaces +will be changed*. + +#### workspace + +* Default: [] +* Type: Array + +Enables workspaces context and limits results to only those specified by +this config item. + ### Description Run this in a package directory to bump the version and write the new @@ -87,39 +137,6 @@ This runs all your tests and proceeds only if they pass. Then runs your `build` adds everything in the `dist` directory to the commit. After the commit, it pushes the new commit and tag up to the server, and deletes the `build/temp` directory. -### Configuration - -#### `allow-same-version` - -* Default: `false` -* Type: Boolean - -Prevents throwing an error when `npm version` is used to set the new version -to the same value as the current version. - -#### `git-tag-version` - -* Default: `true` -* Type: Boolean - -Commit and tag the version change. - -#### `commit-hooks` - -* Default: `true` -* Type: Boolean - -Run git commit hooks when committing the version change. - -#### `sign-git-tag` - -* Default: `false` -* Type: Boolean - -Pass the `-s` flag to git to sign the tag. - -Note that you must have a default GPG key set up in your git config for this to work properly. - ### See Also * [npm init](/commands/npm-init) diff --git a/deps/npm/docs/output/commands/npm-bugs.html b/deps/npm/docs/output/commands/npm-bugs.html index 4fdde0a0c6c988..66789ca40b62a3 100644 --- a/deps/npm/docs/output/commands/npm-bugs.html +++ b/deps/npm/docs/output/commands/npm-bugs.html @@ -151,9 +151,9 @@

Table of contents

Description

This command tries to guess at the likely location of a package’s bug -tracker URL, and then tries to open it using the --browser config param. -If no package name is provided, it will search for a package.json in the -current folder and use the name property.

+tracker URL or the mailto URL of the support email, and then tries to +open it using the --browser config param. If no package name is provided, it +will search for a package.json in the current folder and use the name property.

Configuration

browser

    diff --git a/deps/npm/docs/output/commands/npm-ls.html b/deps/npm/docs/output/commands/npm-ls.html index 25a2850561a253..5e2f75138a62b9 100644 --- a/deps/npm/docs/output/commands/npm-ls.html +++ b/deps/npm/docs/output/commands/npm-ls.html @@ -159,7 +159,7 @@

    Description

    the results to only the paths to the packages named. Note that nested packages will also show the paths to the specified packages. For example, running npm ls promzard in npm’s source tree will show:

    -
    npm@7.9.0 /path/to/npm
    +
    npm@7.10.0 /path/to/npm
     └─┬ init-package-json@0.0.4
       └── promzard@0.1.5
     
    diff --git a/deps/npm/docs/output/commands/npm-version.html b/deps/npm/docs/output/commands/npm-version.html index f5832a2d2fdc2b..db78d2c970dbf1 100644 --- a/deps/npm/docs/output/commands/npm-version.html +++ b/deps/npm/docs/output/commands/npm-version.html @@ -141,7 +141,7 @@

    npm-version

    Table of contents

    - +

    Synopsis

    @@ -151,6 +151,48 @@

    Table of contents

    'npm view <pkg> version' to view a package's published version 'npm ls' to inspect current package/dependency versions
    +

    Configuration

    +

    allow-same-version

    +
      +
    • Default: false
    • +
    • Type: Boolean
    • +
    +

    Prevents throwing an error when npm version is used to set the new version +to the same value as the current version.

    +

    git-tag-version

    +
      +
    • Default: true
    • +
    • Type: Boolean
    • +
    +

    Commit and tag the version change.

    +

    commit-hooks

    +
      +
    • Default: true
    • +
    • Type: Boolean
    • +
    +

    Run git commit hooks when committing the version change.

    +

    sign-git-tag

    +
      +
    • Default: false
    • +
    • Type: Boolean
    • +
    +

    Pass the -s flag to git to sign the tag.

    +

    Note that you must have a default GPG key set up in your git config for this to work properly.

    +

    workspaces

    +
      +
    • Default: false
    • +
    • Type: Boolean
    • +
    +

    Enables workspaces context and includes workspaces in reported output +when getting versions. When setting a new version only the workspaces +will be changed.

    +

    workspace

    +
      +
    • Default: []
    • +
    • Type: Array
    • +
    +

    Enables workspaces context and limits results to only those specified by +this config item.

    Description

    Run this in a package directory to bump the version and write the new data back to package.json, package-lock.json, and, if present, npm-shrinkwrap.json.

    @@ -210,33 +252,6 @@

    Description

    This runs all your tests and proceeds only if they pass. Then runs your build script, and adds everything in the dist directory to the commit. After the commit, it pushes the new commit and tag up to the server, and deletes the build/temp directory.

    -

    Configuration

    -

    allow-same-version

    -
      -
    • Default: false
    • -
    • Type: Boolean
    • -
    -

    Prevents throwing an error when npm version is used to set the new version -to the same value as the current version.

    -

    git-tag-version

    -
      -
    • Default: true
    • -
    • Type: Boolean
    • -
    -

    Commit and tag the version change.

    -

    commit-hooks

    -
      -
    • Default: true
    • -
    • Type: Boolean
    • -
    -

    Run git commit hooks when committing the version change.

    -

    sign-git-tag

    -
      -
    • Default: false
    • -
    • Type: Boolean
    • -
    -

    Pass the -s flag to git to sign the tag.

    -

    Note that you must have a default GPG key set up in your git config for this to work properly.

    See Also

    • npm init
    • diff --git a/deps/npm/docs/output/commands/npm.html b/deps/npm/docs/output/commands/npm.html index 7290e4f8ef6138..dde689df3ee387 100644 --- a/deps/npm/docs/output/commands/npm.html +++ b/deps/npm/docs/output/commands/npm.html @@ -148,7 +148,7 @@

      Table of contents

      npm <command> [args]
       

      Version

      -

      7.9.0

      +

      7.10.0

      Description

      npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency diff --git a/deps/npm/lib/base-command.js b/deps/npm/lib/base-command.js index 91c7c5357c9a03..322fd8963a2032 100644 --- a/deps/npm/lib/base-command.js +++ b/deps/npm/lib/base-command.js @@ -4,6 +4,7 @@ const ConfigDefinitions = require('./utils/config/definitions.js') class BaseCommand { constructor (npm) { + this.wrapWidth = 80 this.npm = npm } @@ -27,8 +28,7 @@ class BaseCommand { usage = `${usage}${this.constructor.usage.map(u => `npm ${this.constructor.name} ${u}`).join('\n')}` if (this.constructor.params) - // TODO word wrap this along params boundaries - usage = `${usage}\n\nOptions:\n[${this.constructor.params.map(p => ConfigDefinitions[p].usage).join('] [')}]` + usage = `${usage}\n\nOptions:\n${this.wrappedParams}` // Mostly this just appends aliases, this could be more clear usage = usageUtil(this.constructor.name, usage) @@ -36,6 +36,22 @@ class BaseCommand { return usage } + get wrappedParams () { + let results = '' + let line = '' + + for (const param of this.constructor.params) { + const usage = `[${ConfigDefinitions[param].usage}]` + if (line.length && (line.length + usage.length) > this.wrapWidth) { + results = [results, line].filter(Boolean).join('\n') + line = '' + } + line = [line, usage].filter(Boolean).join(' ') + } + results = [results, line].filter(Boolean).join('\n') + return results + } + usageError (msg) { if (!msg) { return Object.assign(new Error(`\nUsage: ${this.usage}`), { diff --git a/deps/npm/lib/bugs.js b/deps/npm/lib/bugs.js index a0cef4c5ec4faf..5085a25b4a64a3 100644 --- a/deps/npm/lib/bugs.js +++ b/deps/npm/lib/bugs.js @@ -43,6 +43,9 @@ class Bugs extends BaseCommand { if (typeof mani.bugs === 'object' && mani.bugs.url) return mani.bugs.url + + if (typeof mani.bugs === 'object' && mani.bugs.email) + return `mailto:${mani.bugs.email}` } // try to get it from the repo, if possible diff --git a/deps/npm/lib/utils/config/definitions.js b/deps/npm/lib/utils/config/definitions.js index d87c43ddade500..db1f25e9517def 100644 --- a/deps/npm/lib/utils/config/definitions.js +++ b/deps/npm/lib/utils/config/definitions.js @@ -1389,6 +1389,7 @@ define('prefix', { define('preid', { default: '', + hint: 'prerelease-id', type: String, description: ` The "prerelease identifier" to use as a prefix for the "prerelease" part diff --git a/deps/npm/lib/version.js b/deps/npm/lib/version.js index 18b7d7d6c5d840..3ef3801e74e810 100644 --- a/deps/npm/lib/version.js +++ b/deps/npm/lib/version.js @@ -1,6 +1,11 @@ -const libversion = require('libnpmversion') +const libnpmversion = require('libnpmversion') +const { resolve } = require('path') +const { promisify } = require('util') +const readFile = promisify(require('fs').readFile) +const getWorkspaces = require('./workspaces/get-workspaces.js') const BaseCommand = require('./base-command.js') + class Version extends BaseCommand { static get description () { return 'Bump a package version' @@ -11,9 +16,23 @@ class Version extends BaseCommand { return 'version' } + /* istanbul ignore next - see test/lib/load-all-commands.js */ + static get params () { + return [ + 'allow-same-version', + 'commit-hooks', + 'git-tag-version', + 'json', + 'preid', + 'sign-git-tag', + 'workspace', + 'workspaces', + ] + } + /* istanbul ignore next - see test/lib/load-all-commands.js */ static get usage () { - return ['[ | major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=] | from-git]'] + return ['[ | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]'] } async completion (opts) { @@ -37,6 +56,10 @@ class Version extends BaseCommand { return this.version(args).then(() => cb()).catch(cb) } + execWorkspaces (args, filters, cb) { + this.versionWorkspaces(args, filters).then(() => cb()).catch(cb) + } + async version (args) { switch (args.length) { case 0: @@ -48,20 +71,42 @@ class Version extends BaseCommand { } } + async versionWorkspaces (args, filters) { + switch (args.length) { + case 0: + return this.listWorkspaces(filters) + case 1: + return this.changeWorkspaces(args, filters) + default: + throw this.usage + } + } + async change (args) { const prefix = this.npm.config.get('tag-version-prefix') - const version = await libversion(args[0], { + const version = await libnpmversion(args[0], { ...this.npm.flatOptions, path: this.npm.prefix, }) return this.npm.output(`${prefix}${version}`) } - async list () { - const results = {} - const { promisify } = require('util') - const { resolve } = require('path') - const readFile = promisify(require('fs').readFile) + async changeWorkspaces (args, filters) { + const prefix = this.npm.config.get('tag-version-prefix') + const workspaces = + await getWorkspaces(filters, { path: this.npm.localPrefix }) + for (const [name, path] of workspaces) { + this.npm.output(name) + const version = await libnpmversion(args[0], { + ...this.npm.flatOptions, + 'git-tag-version': false, + path, + }) + this.npm.output(`${prefix}${version}`) + } + } + + async list (results = {}) { const pj = resolve(this.npm.prefix, 'package.json') const pkg = await readFile(pj, 'utf8') @@ -80,5 +125,22 @@ class Version extends BaseCommand { else this.npm.output(results) } + + async listWorkspaces (filters) { + const results = {} + const workspaces = + await getWorkspaces(filters, { path: this.npm.localPrefix }) + for (const [, path] of workspaces) { + const pj = resolve(path, 'package.json') + // getWorkspaces has already parsed this so we know it won't error + const pkg = await readFile(pj, 'utf8') + .then(data => JSON.parse(data)) + + if (pkg.name && pkg.version) + results[pkg.name] = pkg.version + } + return this.list(results) + } } + module.exports = Version diff --git a/deps/npm/lib/workspaces/get-workspaces.js b/deps/npm/lib/workspaces/get-workspaces.js index 64812d5403576c..91b0074556ae79 100644 --- a/deps/npm/lib/workspaces/get-workspaces.js +++ b/deps/npm/lib/workspaces/get-workspaces.js @@ -3,7 +3,10 @@ const mapWorkspaces = require('@npmcli/map-workspaces') const minimatch = require('minimatch') const rpj = require('read-package-json-fast') +// Returns an Map of paths to workspaces indexed by workspace name +// { foo => '/path/to/foo' } const getWorkspaces = async (filters, { path }) => { + // TODO we need a better error to be bubbled up here if this rpj call fails const pkg = await rpj(resolve(path, 'package.json')) const workspaces = await mapWorkspaces({ cwd: path, pkg }) const res = filters.length ? new Map() : workspaces diff --git a/deps/npm/man/man1/npm-bugs.1 b/deps/npm/man/man1/npm-bugs.1 index 40a4cadbb3951f..9d453b825b9f92 100644 --- a/deps/npm/man/man1/npm-bugs.1 +++ b/deps/npm/man/man1/npm-bugs.1 @@ -13,9 +13,9 @@ aliases: issues .SS Description .P This command tries to guess at the likely location of a package's bug -tracker URL, and then tries to open it using the \fB\-\-browser\fP config param\. -If no package name is provided, it will search for a \fBpackage\.json\fP in the -current folder and use the \fBname\fP property\. +tracker URL or the \fBmailto\fP URL of the support email, and then tries to +open it using the \fB\-\-browser\fP config param\. If no package name is provided, it +will search for a \fBpackage\.json\fP in the current folder and use the \fBname\fP property\. .SS Configuration .SS browser .RS 0 diff --git a/deps/npm/man/man1/npm-ls.1 b/deps/npm/man/man1/npm-ls.1 index 67cd6f1b1618b1..6f1041b8dcb83d 100644 --- a/deps/npm/man/man1/npm-ls.1 +++ b/deps/npm/man/man1/npm-ls.1 @@ -26,7 +26,7 @@ example, running \fBnpm ls promzard\fP in npm's source tree will show: .P .RS 2 .nf -npm@7\.9\.0 /path/to/npm +npm@7\.10\.0 /path/to/npm └─┬ init\-package\-json@0\.0\.4 └── promzard@0\.1\.5 .fi diff --git a/deps/npm/man/man1/npm-version.1 b/deps/npm/man/man1/npm-version.1 index 2bfb2556863b96..d926c9e5282eee 100644 --- a/deps/npm/man/man1/npm-version.1 +++ b/deps/npm/man/man1/npm-version.1 @@ -12,6 +12,73 @@ npm version [ | major | minor | patch | premajor | preminor | prepat \|'npm ls' to inspect current package/dependency versions .fi .RE +.SS Configuration +.SS \fBallow\-same\-version\fP +.RS 0 +.IP \(bu 2 +Default: \fBfalse\fP +.IP \(bu 2 +Type: Boolean + +.RE +.P +Prevents throwing an error when \fBnpm version\fP is used to set the new version +to the same value as the current version\. +.SS \fBgit\-tag\-version\fP +.RS 0 +.IP \(bu 2 +Default: \fBtrue\fP +.IP \(bu 2 +Type: Boolean + +.RE +.P +Commit and tag the version change\. +.SS \fBcommit\-hooks\fP +.RS 0 +.IP \(bu 2 +Default: \fBtrue\fP +.IP \(bu 2 +Type: Boolean + +.RE +.P +Run git commit hooks when committing the version change\. +.SS \fBsign\-git\-tag\fP +.RS 0 +.IP \(bu 2 +Default: \fBfalse\fP +.IP \(bu 2 +Type: Boolean + +.RE +.P +Pass the \fB\-s\fP flag to git to sign the tag\. +.P +Note that you must have a default GPG key set up in your git config for this to work properly\. +.SS workspaces +.RS 0 +.IP \(bu 2 +Default: \fBfalse\fP +.IP \(bu 2 +Type: Boolean + +.RE +.P +Enables workspaces context and includes workspaces in reported output +when getting versions\. When setting a new version \fIonly the workspaces +will be changed\fR\|\. +.SS workspace +.RS 0 +.IP \(bu 2 +Default: [] +.IP \(bu 2 +Type: Array + +.RE +.P +Enables workspaces context and limits results to only those specified by +this config item\. .SS Description .P Run this in a package directory to bump the version and write the new @@ -99,50 +166,6 @@ Take the following example: This runs all your tests and proceeds only if they pass\. Then runs your \fBbuild\fP script, and adds everything in the \fBdist\fP directory to the commit\. After the commit, it pushes the new commit and tag up to the server, and deletes the \fBbuild/temp\fP directory\. -.SS Configuration -.SS \fBallow\-same\-version\fP -.RS 0 -.IP \(bu 2 -Default: \fBfalse\fP -.IP \(bu 2 -Type: Boolean - -.RE -.P -Prevents throwing an error when \fBnpm version\fP is used to set the new version -to the same value as the current version\. -.SS \fBgit\-tag\-version\fP -.RS 0 -.IP \(bu 2 -Default: \fBtrue\fP -.IP \(bu 2 -Type: Boolean - -.RE -.P -Commit and tag the version change\. -.SS \fBcommit\-hooks\fP -.RS 0 -.IP \(bu 2 -Default: \fBtrue\fP -.IP \(bu 2 -Type: Boolean - -.RE -.P -Run git commit hooks when committing the version change\. -.SS \fBsign\-git\-tag\fP -.RS 0 -.IP \(bu 2 -Default: \fBfalse\fP -.IP \(bu 2 -Type: Boolean - -.RE -.P -Pass the \fB\-s\fP flag to git to sign the tag\. -.P -Note that you must have a default GPG key set up in your git config for this to work properly\. .SS See Also .RS 0 .IP \(bu 2 diff --git a/deps/npm/man/man1/npm.1 b/deps/npm/man/man1/npm.1 index 94bca15adbf3f8..595b8e68477b82 100644 --- a/deps/npm/man/man1/npm.1 +++ b/deps/npm/man/man1/npm.1 @@ -10,7 +10,7 @@ npm [args] .RE .SS Version .P -7\.9\.0 +7\.10\.0 .SS Description .P npm is the package manager for the Node JavaScript platform\. It puts diff --git a/deps/npm/node_modules/@npmcli/git/lib/clone.js b/deps/npm/node_modules/@npmcli/git/lib/clone.js index 3c50a05cf1aec1..1fea5acc846211 100644 --- a/deps/npm/node_modules/@npmcli/git/lib/clone.js +++ b/deps/npm/node_modules/@npmcli/git/lib/clone.js @@ -15,16 +15,18 @@ const shallowHosts = new Set([ 'gist.github.com', 'gitlab.com', 'bitbucket.com', - 'bitbucket.org', + 'bitbucket.org' ]) -const { parse } = require('url') +// we have to use url.parse until we add the same shim that hosted-git-info has +// to handle scp:// urls +const { parse } = require('url') // eslint-disable-line node/no-deprecated-api const { basename, resolve } = require('path') const revs = require('./revs.js') const spawn = require('./spawn.js') +const { isWindows } = require('./utils.js') const pickManifest = require('npm-pick-manifest') -const { promisify } = require('util') const fs = require('fs') const mkdirp = require('mkdirp') @@ -38,38 +40,56 @@ module.exports = (repo, ref = 'HEAD', target = null, /* istanbul ignore next */ opts )) -const maybeShallow = (repo, opts) => - opts.gitShallow === false || opts.gitShallow ? opts.gitShallow - : shallowHosts.has(parse(repo).host) - -const isWindows = opts => (opts.fakePlatform || process.platform) === 'win32' +const maybeShallow = (repo, opts) => { + if (opts.gitShallow === false || opts.gitShallow) { + return opts.gitShallow + } + return shallowHosts.has(parse(repo).host) +} const defaultTarget = (repo, /* istanbul ignore next */ cwd = process.cwd()) => - resolve(cwd, basename(repo.replace(/[\/\\]?\.git$/, ''))) - -const clone = (repo, revs, ref, revDoc, target, opts) => - !revDoc ? unresolved(repo, ref, target, opts) - : revDoc.sha === revs.refs.HEAD.sha ? plain(repo, revDoc, target, opts) - : revDoc.type === 'tag' || revDoc.type === 'branch' - ? branch(repo, revDoc, target, opts) - : other(repo, revDoc, target, opts) + resolve(cwd, basename(repo.replace(/[/\\]?\.git$/, ''))) + +const clone = (repo, revs, ref, revDoc, target, opts) => { + if (!revDoc) { + return unresolved(repo, ref, target, opts) + } + if (revDoc.sha === revs.refs.HEAD.sha) { + return plain(repo, revDoc, target, opts) + } + if (revDoc.type === 'tag' || revDoc.type === 'branch') { + return branch(repo, revDoc, target, opts) + } + return other(repo, revDoc, target, opts) +} const resolveRef = (revs, ref, opts) => { const { spec = {} } = opts ref = spec.gitCommittish || ref - return !revs ? /* istanbul ignore next - will fail anyway, can't pull */ null - : spec.gitRange ? pickManifest(revs, spec.gitRange, opts) - : !ref ? revs.refs.HEAD - : revs.refs[ref] ? revs.refs[ref] - : revs.shas[ref] ? revs.refs[revs.shas[ref][0]] - : null + /* istanbul ignore next - will fail anyway, can't pull */ + if (!revs) { + return null + } + if (spec.gitRange) { + return pickManifest(revs, spec.gitRange, opts) + } + if (!ref) { + return revs.refs.HEAD + } + if (revs.refs[ref]) { + return revs.refs[ref] + } + if (revs.shas[ref]) { + return revs.refs[revs.shas[ref][0]] + } + return null } // pull request or some other kind of advertised ref const other = (repo, revDoc, target, opts) => { const shallow = maybeShallow(repo, opts) - const fetchOrigin = [ 'fetch', 'origin', revDoc.rawRef ] + const fetchOrigin = ['fetch', 'origin', revDoc.rawRef] .concat(shallow ? ['--depth=1'] : []) const git = (args) => spawn(args, { ...opts, cwd: target }) @@ -93,12 +113,10 @@ const branch = (repo, revDoc, target, opts) => { revDoc.ref, repo, target, - '--recurse-submodules', + '--recurse-submodules' ] - if (maybeShallow(repo, opts)) - args.push('--depth=1') - if (isWindows(opts)) - args.push('--config', 'core.longpaths=true') + if (maybeShallow(repo, opts)) { args.push('--depth=1') } + if (isWindows(opts)) { args.push('--config', 'core.longpaths=true') } return spawn(args, opts).then(() => revDoc.sha) } @@ -110,22 +128,24 @@ const plain = (repo, revDoc, target, opts) => { target, '--recurse-submodules' ] - if (maybeShallow(repo, opts)) - args.push('--depth=1') - if (isWindows(opts)) - args.push('--config', 'core.longpaths=true') + if (maybeShallow(repo, opts)) { args.push('--depth=1') } + if (isWindows(opts)) { args.push('--config', 'core.longpaths=true') } return spawn(args, opts).then(() => revDoc.sha) } -const updateSubmodules = (target, opts) => new Promise(res => - fs.stat(target + '/.gitmodules', er => res(er ? null - : spawn([ +const updateSubmodules = (target, opts) => new Promise(resolve => + fs.stat(target + '/.gitmodules', er => { + if (er) { + return resolve(null) + } + return resolve(spawn([ 'submodule', 'update', '-q', '--init', '--recursive' - ], { ...opts, cwd: target })))) + ], { ...opts, cwd: target })) + })) const unresolved = (repo, ref, target, opts) => { // can't do this one shallowly, because the ref isn't advertised @@ -139,5 +159,5 @@ const unresolved = (repo, ref, target, opts) => { .then(() => git(['checkout', ref])) .then(() => updateSubmodules(target, opts)) .then(() => git(['rev-parse', '--revs-only', 'HEAD'])) - .then(({stdout}) => stdout.trim()) + .then(({ stdout }) => stdout.trim()) } diff --git a/deps/npm/node_modules/@npmcli/git/lib/env.js b/deps/npm/node_modules/@npmcli/git/lib/env.js deleted file mode 100644 index 87787cdbebe670..00000000000000 --- a/deps/npm/node_modules/@npmcli/git/lib/env.js +++ /dev/null @@ -1,33 +0,0 @@ -const uniqueFilename = require('unique-filename') -const { join } = require('path') -const {tmpdir} = require('os') - -const goodEnvVars = new Set([ - 'GIT_ASKPASS', - 'GIT_EXEC_PATH', - 'GIT_PROXY_COMMAND', - 'GIT_SSH', - 'GIT_SSH_COMMAND', - 'GIT_SSL_CAINFO', - 'GIT_SSL_NO_VERIFY' -]) - -// memoize -let gitEnv - -module.exports = () => { - if (gitEnv) - return gitEnv - - // we set the template dir to an empty folder to give git less to do - const tmpDir = join(tmpdir(), 'npmcli-git-template-tmp') - const tmpName = uniqueFilename(tmpDir, 'git-clone') - return gitEnv = Object.keys(process.env).reduce((gitEnv, k) => { - if (goodEnvVars.has(k) || !k.startsWith('GIT_')) - gitEnv[k] = process.env[k] - return gitEnv - }, { - GIT_ASKPASS: 'echo', - GIT_TEMPLATE_DIR: tmpName - }) -} diff --git a/deps/npm/node_modules/@npmcli/git/lib/find.js b/deps/npm/node_modules/@npmcli/git/lib/find.js index 2d2ad308665de1..d58f01dbcc16ff 100644 --- a/deps/npm/node_modules/@npmcli/git/lib/find.js +++ b/deps/npm/node_modules/@npmcli/git/lib/find.js @@ -1,7 +1,15 @@ const is = require('./is.js') const { dirname } = require('path') -const check = (cwd, prev) => is({ cwd }).then(isGit => - isGit ? cwd - : cwd === prev ? null - : check(dirname(cwd), cwd)) -module.exports = ({ cwd = process.cwd() } = {}) => check(cwd) + +module.exports = async ({ cwd = process.cwd() } = {}) => { + if (await is({ cwd })) { + return cwd + } + while (cwd !== dirname(cwd)) { + cwd = dirname(cwd) + if (await is({ cwd })) { + return cwd + } + } + return null +} diff --git a/deps/npm/node_modules/@npmcli/git/lib/index.js b/deps/npm/node_modules/@npmcli/git/lib/index.js index 7088792a1fc6e3..50fd889b89b5ad 100644 --- a/deps/npm/node_modules/@npmcli/git/lib/index.js +++ b/deps/npm/node_modules/@npmcli/git/lib/index.js @@ -4,5 +4,5 @@ module.exports = { spawn: require('./spawn.js'), is: require('./is.js'), find: require('./find.js'), - isClean: require('./is-clean.js'), + isClean: require('./is-clean.js') } diff --git a/deps/npm/node_modules/@npmcli/git/lib/is-clean.js b/deps/npm/node_modules/@npmcli/git/lib/is-clean.js index 19f8049e0fb145..182373be941935 100644 --- a/deps/npm/node_modules/@npmcli/git/lib/is-clean.js +++ b/deps/npm/node_modules/@npmcli/git/lib/is-clean.js @@ -1,6 +1,6 @@ const spawn = require('./spawn.js') module.exports = (opts = {}) => - spawn([ 'status', '--porcelain=v1', '-uno' ], opts) - .then(res => res.stdout.trim().split(/\r?\n+/) - .map(l => l.trim()).filter(l => l).length ? false : true) + spawn(['status', '--porcelain=v1', '-uno'], opts) + .then(res => !res.stdout.trim().split(/\r?\n+/) + .map(l => l.trim()).filter(l => l).length) diff --git a/deps/npm/node_modules/@npmcli/git/lib/lines-to-revs.js b/deps/npm/node_modules/@npmcli/git/lib/lines-to-revs.js index 524e672431ea4b..9f879ca2475f59 100644 --- a/deps/npm/node_modules/@npmcli/git/lib/lines-to-revs.js +++ b/deps/npm/node_modules/@npmcli/git/lib/lines-to-revs.js @@ -7,7 +7,7 @@ module.exports = lines => finish(lines.reduce(linesToRevsReducer, { versions: {}, 'dist-tags': {}, refs: {}, - shas: {}, + shas: {} })) const finish = revs => distTags(shaList(peelTags(revs))) @@ -15,16 +15,16 @@ const finish = revs => distTags(shaList(peelTags(revs))) // We can check out shallow clones on specific SHAs if we have a ref const shaList = revs => { Object.keys(revs.refs).forEach(ref => { - doc = revs.refs[ref] - if (revs.shas[doc.sha]) - revs.shas[doc.sha].push(ref) - else + const doc = revs.refs[ref] + if (!revs.shas[doc.sha]) { revs.shas[doc.sha] = [ref] + } else { + revs.shas[doc.sha].push(ref) + } }) return revs } - // Replace any tags with their ^{} counterparts, if those exist const peelTags = revs => { Object.keys(revs.refs).filter(ref => ref.endsWith('^{}')).forEach(ref => { @@ -48,30 +48,38 @@ const distTags = revs => { // 'latest' branch if one exists and is a version, // or HEAD if not. const ver = revs.versions[v] - if (revs.refs.latest && ver.sha === revs.refs.latest.sha) + if (revs.refs.latest && ver.sha === revs.refs.latest.sha) { revs['dist-tags'].latest = v - else if (ver.sha === HEAD.sha) { + } else if (ver.sha === HEAD.sha) { revs['dist-tags'].HEAD = v - if (!revs.refs.latest) - revs['dist-tags'].latest = v + if (!revs.refs.latest) { revs['dist-tags'].latest = v } } }) return revs } -const refType = ref => - ref.startsWith('refs/tags/') ? 'tag' - : ref.startsWith('refs/heads/') ? 'branch' - : ref.startsWith('refs/pull/') ? 'pull' - : ref === 'HEAD' ? 'head' - // Could be anything, ignore for now - : /* istanbul ignore next */ 'other' +const refType = ref => { + if (ref.startsWith('refs/tags/')) { + return 'tag' + } + if (ref.startsWith('refs/heads/')) { + return 'branch' + } + if (ref.startsWith('refs/pull/')) { + return 'pull' + } + if (ref === 'HEAD') { + return 'head' + } + // Could be anything, ignore for now + /* istanbul ignore next */ + return 'other' +} // return the doc, or null if we should ignore it. const lineToRevDoc = line => { const split = line.trim().split(/\s+/, 2) - if (split.length < 2) - return null + if (split.length < 2) { return null } const sha = split[0].trim() const rawRef = split[1].trim() @@ -114,8 +122,7 @@ const lineToRevDoc = line => { const linesToRevsReducer = (revs, line) => { const doc = lineToRevDoc(line) - if (!doc) - return revs + if (!doc) { return revs } revs.refs[doc.ref] = doc revs.refs[doc.rawRef] = doc @@ -125,8 +132,9 @@ const linesToRevsReducer = (revs, line) => { // which is a pretty common pattern. const match = !doc.ref.endsWith('^{}') && doc.ref.match(/v?(\d+\.\d+\.\d+(?:[-+].+)?)$/) - if (match && semver.valid(match[1], true)) + if (match && semver.valid(match[1], true)) { revs.versions[semver.clean(match[1], true)] = doc + } } return revs diff --git a/deps/npm/node_modules/@npmcli/git/lib/opts.js b/deps/npm/node_modules/@npmcli/git/lib/opts.js index 7da4801a6aae05..144e0a3aaf03f4 100644 --- a/deps/npm/node_modules/@npmcli/git/lib/opts.js +++ b/deps/npm/node_modules/@npmcli/git/lib/opts.js @@ -1,6 +1,12 @@ -const gitEnv = require('./env.js') +// Values we want to set if they're not already defined by the end user +// This defaults to accepting new ssh host key fingerprints +const gitEnv = { + GIT_ASKPASS: 'echo', + GIT_SSH_COMMAND: 'ssh -oStrictHostKeyChecking=accept-new' +} module.exports = (opts = {}) => ({ stdioString: true, ...opts, - env: opts.env || gitEnv(), + shell: false, + env: opts.env || { ...gitEnv, ...process.env } }) diff --git a/deps/npm/node_modules/@npmcli/git/lib/revs.js b/deps/npm/node_modules/@npmcli/git/lib/revs.js index 5744731872231f..81059594f7aee9 100644 --- a/deps/npm/node_modules/@npmcli/git/lib/revs.js +++ b/deps/npm/node_modules/@npmcli/git/lib/revs.js @@ -4,21 +4,25 @@ const LRU = require('lru-cache') const revsCache = new LRU({ max: 100, - maxAge: 5 * 60 * 1000, + maxAge: 5 * 60 * 1000 }) const linesToRevs = require('./lines-to-revs.js') -module.exports = (repo, opts = {}) => { +module.exports = async (repo, opts = {}) => { if (!opts.noGitRevCache) { const cached = revsCache.get(repo) - if (cached) - return Promise.resolve(cached) + if (cached) { + return cached + } } return pinflight(`ls-remote:${repo}`, () => spawn(['ls-remote', repo], opts) - .then(({stdout}) => linesToRevs(stdout.trim().split('\n'))) - .then(revs => (revsCache.set(repo, revs), revs)) + .then(({ stdout }) => linesToRevs(stdout.trim().split('\n'))) + .then(revs => { + revsCache.set(repo, revs) + return revs + }) ) } diff --git a/deps/npm/node_modules/@npmcli/git/lib/spawn.js b/deps/npm/node_modules/@npmcli/git/lib/spawn.js index 3c3a943fe9f0d3..cee3a7baf40788 100644 --- a/deps/npm/node_modules/@npmcli/git/lib/spawn.js +++ b/deps/npm/node_modules/@npmcli/git/lib/spawn.js @@ -8,26 +8,30 @@ const procLog = require('./proc-log.js') module.exports = (gitArgs, opts = {}) => { const gitPath = whichGit(opts) - if (gitPath instanceof Error) - return Promise.reject(gitPath) + if (gitPath instanceof Error) { return Promise.reject(gitPath) } const log = opts.log || procLog + let retry = opts.retry + if (retry === null || retry === undefined) { + retry = { + retries: opts.fetchRetries || 2, + factor: opts.fetchRetryFactor || 10, + maxTimeout: opts.fetchRetryMaxtimeout || 60000, + minTimeout: opts.fetchRetryMintimeout || 1000 + } + } return promiseRetry((retry, number) => { - if (number !== 1) + if (number !== 1) { log.silly('pacote', `Retrying git command: ${ gitArgs.join(' ')} attempt # ${number}`) + } return spawn(gitPath, gitArgs, makeOpts(opts)) .catch(er => { - if (shouldRetry(er.stderr, number)) - retry(er) - else + if (!shouldRetry(er.stderr, number)) { throw er + } + retry(er) }) - }, opts.retry !== null && opts.retry !== undefined ? opts.retry : { - retries: opts.fetchRetries || 2, - factor: opts.fetchRetryFactor || 10, - maxTimeout: opts.fetchRetryMaxtimeout || 60000, - minTimeout: opts.fetchRetryMintimeout || 1000, - }) + }, retry) } diff --git a/deps/npm/node_modules/@npmcli/git/lib/utils.js b/deps/npm/node_modules/@npmcli/git/lib/utils.js new file mode 100644 index 00000000000000..fcd9578a19597d --- /dev/null +++ b/deps/npm/node_modules/@npmcli/git/lib/utils.js @@ -0,0 +1,3 @@ +const isWindows = opts => (opts.fakePlatform || process.platform) === 'win32' + +exports.isWindows = isWindows diff --git a/deps/npm/node_modules/@npmcli/git/lib/which.js b/deps/npm/node_modules/@npmcli/git/lib/which.js index 9e82d391aadedb..a2f690e1bce80c 100644 --- a/deps/npm/node_modules/@npmcli/git/lib/which.js +++ b/deps/npm/node_modules/@npmcli/git/lib/which.js @@ -5,7 +5,12 @@ try { gitPath = which.sync('git') } catch (e) {} -module.exports = (opts = {}) => - opts.git || - opts.git !== false && gitPath || - Object.assign(new Error('No git binary found in $PATH'), { code: 'ENOGIT' }) +module.exports = (opts = {}) => { + if (opts.git) { + return opts.git + } + if (!gitPath || opts.git === false) { + return Object.assign(new Error('No git binary found in $PATH'), { code: 'ENOGIT' }) + } + return gitPath +} diff --git a/deps/npm/node_modules/@npmcli/git/package.json b/deps/npm/node_modules/@npmcli/git/package.json index 0e01efaf2fbce9..9b368c31e262db 100644 --- a/deps/npm/node_modules/@npmcli/git/package.json +++ b/deps/npm/node_modules/@npmcli/git/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/git", - "version": "2.0.6", + "version": "2.0.8", "main": "lib/index.js", "files": [ "lib/*.js" @@ -13,11 +13,14 @@ "author": "Isaac Z. Schlueter (https://izs.me)", "license": "ISC", "scripts": { - "test": "tap", - "snap": "tap", - "preversion": "npm test", + "lint": "standard", + "lint:fix": "standard --fix", "postversion": "npm publish", - "prepublishOnly": "git push origin --follow-tags" + "prepublishOnly": "git push origin --follow-tags", + "preversion": "npm test", + "snap": "tap", + "test": "tap", + "posttest": "npm run lint" }, "tap": { "check-coverage": true, @@ -25,17 +28,17 @@ }, "devDependencies": { "slash": "^3.0.0", - "tap": "^14.10.6" + "standard": "^16.0.3", + "tap": "^14.11.0" }, "dependencies": { - "@npmcli/promise-spawn": "^1.1.0", + "@npmcli/promise-spawn": "^1.3.2", "lru-cache": "^6.0.0", - "mkdirp": "^1.0.3", - "npm-pick-manifest": "^6.0.0", + "mkdirp": "^1.0.4", + "npm-pick-manifest": "^6.1.1", "promise-inflight": "^1.0.1", "promise-retry": "^2.0.1", - "semver": "^7.3.2", - "unique-filename": "^1.1.1", + "semver": "^7.3.5", "which": "^2.0.2" } } diff --git a/deps/npm/node_modules/balanced-match/.npmignore b/deps/npm/node_modules/balanced-match/.npmignore deleted file mode 100644 index ae5d8c36ac6522..00000000000000 --- a/deps/npm/node_modules/balanced-match/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -test -.gitignore -.travis.yml -Makefile -example.js diff --git a/deps/npm/node_modules/balanced-match/README.md b/deps/npm/node_modules/balanced-match/README.md index 08e918c0db9a62..d2a48b6b49f2cf 100644 --- a/deps/npm/node_modules/balanced-match/README.md +++ b/deps/npm/node_modules/balanced-match/README.md @@ -66,6 +66,12 @@ With [npm](https://npmjs.org) do: npm install balanced-match ``` +## Security contact information + +To report a security vulnerability, please use the +[Tidelift security contact](https://tidelift.com/security). +Tidelift will coordinate the fix and disclosure. + ## License (MIT) diff --git a/deps/npm/node_modules/balanced-match/index.js b/deps/npm/node_modules/balanced-match/index.js index 1685a762932558..c67a64608df7f4 100644 --- a/deps/npm/node_modules/balanced-match/index.js +++ b/deps/npm/node_modules/balanced-match/index.js @@ -28,6 +28,9 @@ function range(a, b, str) { var i = ai; if (ai >= 0 && bi > 0) { + if(a===b) { + return [ai, bi]; + } begs = []; left = str.length; diff --git a/deps/npm/node_modules/balanced-match/package.json b/deps/npm/node_modules/balanced-match/package.json index 61349c6edad627..ce6073e0403b5a 100644 --- a/deps/npm/node_modules/balanced-match/package.json +++ b/deps/npm/node_modules/balanced-match/package.json @@ -1,7 +1,7 @@ { "name": "balanced-match", "description": "Match balanced character pairs, like \"{\" and \"}\"", - "version": "1.0.0", + "version": "1.0.2", "repository": { "type": "git", "url": "git://github.com/juliangruber/balanced-match.git" @@ -9,10 +9,9 @@ "homepage": "https://github.com/juliangruber/balanced-match", "main": "index.js", "scripts": { - "test": "make test", - "bench": "make bench" + "test": "tape test/test.js", + "bench": "matcha test/bench.js" }, - "dependencies": {}, "devDependencies": { "matcha": "^0.7.0", "tape": "^4.6.0" diff --git a/deps/npm/node_modules/just-diff/package.json b/deps/npm/node_modules/just-diff/package.json index dbe3aa2ba9ceab..00be1d50fddbcb 100644 --- a/deps/npm/node_modules/just-diff/package.json +++ b/deps/npm/node_modules/just-diff/package.json @@ -1,8 +1,9 @@ { "name": "just-diff", - "version": "3.0.2", + "version": "3.1.1", "description": "Return an object representing the diffs between two objects. Supports jsonPatch protocol", "main": "index.js", + "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, @@ -19,4 +20,4 @@ "bugs": { "url": "https://github.com/angus-c/just/issues" } -} +} \ No newline at end of file diff --git a/deps/npm/node_modules/libnpmversion/lib/commit.js b/deps/npm/node_modules/libnpmversion/lib/commit.js index bd621acb4393de..dec6edbec98c3d 100644 --- a/deps/npm/node_modules/libnpmversion/lib/commit.js +++ b/deps/npm/node_modules/libnpmversion/lib/commit.js @@ -1,14 +1,17 @@ const git = require('@npmcli/git') module.exports = (version, opts) => { - const {commitHooks, allowSameVersion, signGitCommit, message} = opts + const { commitHooks, allowSameVersion, signGitCommit, message } = opts const args = ['commit'] - if (commitHooks === false) + if (commitHooks === false) { args.push('-n') - if (allowSameVersion) + } + if (allowSameVersion) { args.push('--allow-empty') - if (signGitCommit) + } + if (signGitCommit) { args.push('-S') + } args.push('-m') return git.spawn([...args, message.replace(/%s/g, version)], opts) } diff --git a/deps/npm/node_modules/libnpmversion/lib/enforce-clean.js b/deps/npm/node_modules/libnpmversion/lib/enforce-clean.js index 980419ffb43d87..6103da9bd96af4 100644 --- a/deps/npm/node_modules/libnpmversion/lib/enforce-clean.js +++ b/deps/npm/node_modules/libnpmversion/lib/enforce-clean.js @@ -15,17 +15,16 @@ module.exports = async opts => { hadError = true // how can merges be real if our git isn't real? return true - } else + } else { throw er + } }) if (!clean) { - if (!force) + if (!force) { throw new Error('Git working directory not clean.') - log.warn( - 'version', - 'Git working directory not clean, proceeding forcefully.' - ) + } + log.warn('version', 'Git working directory not clean, proceeding forcefully.') } return !hadError diff --git a/deps/npm/node_modules/libnpmversion/lib/index.js b/deps/npm/node_modules/libnpmversion/lib/index.js index 683941cdea4f35..b10b3e6ba4123a 100644 --- a/deps/npm/node_modules/libnpmversion/lib/index.js +++ b/deps/npm/node_modules/libnpmversion/lib/index.js @@ -16,7 +16,7 @@ module.exports = async (newversion, opts = {}) => { scriptShell = undefined, preid = null, log = proclog, - message = 'v%s', + message = 'v%s' } = opts const pkg = opts.pkg || await readJson(path + '/package.json') @@ -36,6 +36,6 @@ module.exports = async (newversion, opts = {}) => { preid, pkg, log, - message, + message }) } diff --git a/deps/npm/node_modules/libnpmversion/lib/read-json.js b/deps/npm/node_modules/libnpmversion/lib/read-json.js index 0a1f64f2f70e7e..2dd0f7aa4902e8 100644 --- a/deps/npm/node_modules/libnpmversion/lib/read-json.js +++ b/deps/npm/node_modules/libnpmversion/lib/read-json.js @@ -1,6 +1,6 @@ // can't use read-package-json-fast, because we want to ensure // that we make as few changes as possible, even for safety issues. -const {promisify} = require('util') +const { promisify } = require('util') const readFile = promisify(require('fs').readFile) const parse = require('json-parse-even-better-errors') diff --git a/deps/npm/node_modules/libnpmversion/lib/retrieve-tag.js b/deps/npm/node_modules/libnpmversion/lib/retrieve-tag.js index b657561b861e76..7aa2abfda86516 100644 --- a/deps/npm/node_modules/libnpmversion/lib/retrieve-tag.js +++ b/deps/npm/node_modules/libnpmversion/lib/retrieve-tag.js @@ -1,11 +1,11 @@ -const {spawn} = require('@npmcli/git') +const { spawn } = require('@npmcli/git') const semver = require('semver') module.exports = async opts => { - const tag = (await spawn(['describe', '--abbrev=0'], opts)).stdout.trim() - const match = tag.match(/v?(\d+\.\d+\.\d+(?:[-+].+)?)/) - const ver = match && semver.clean(match[1], { loose: true }) - if (ver) - return ver + const tag = (await spawn(['describe', '--tags', '--abbrev=0', '--match=\'*.*.*\''], opts)).stdout.trim() + const ver = semver.coerce(tag, { loose: true }) + if (ver) { + return ver.version + } throw new Error(`Tag is not a valid version: ${JSON.stringify(tag)}`) } diff --git a/deps/npm/node_modules/libnpmversion/lib/tag.js b/deps/npm/node_modules/libnpmversion/lib/tag.js index bd6c803a384998..73134dd25e6fe3 100644 --- a/deps/npm/node_modules/libnpmversion/lib/tag.js +++ b/deps/npm/node_modules/libnpmversion/lib/tag.js @@ -1,20 +1,30 @@ const git = require('@npmcli/git') module.exports = async (version, opts) => { - const { signGitTag, allowSameVersion, tagVersionPrefix, message } = opts - const tag = `${tagVersionPrefix}${version}` + const { + signGitTag, + allowSameVersion, + tagVersionPrefix, + message + } = opts + const tag = `${tagVersionPrefix}${version}` const flags = ['-'] - if (signGitTag) + + if (signGitTag) { flags.push('s') - if (allowSameVersion) + } + + if (allowSameVersion) { flags.push('f') + } + flags.push('m') return git.spawn([ 'tag', flags.join(''), message.replace(/%s/g, version), - tag, + tag ], opts) } diff --git a/deps/npm/node_modules/libnpmversion/lib/version.js b/deps/npm/node_modules/libnpmversion/lib/version.js index 0fe1ea6213fc6f..2ef79173fca765 100644 --- a/deps/npm/node_modules/libnpmversion/lib/version.js +++ b/deps/npm/node_modules/libnpmversion/lib/version.js @@ -15,31 +15,30 @@ module.exports = async (newversion, opts) => { const { path, allowSameVersion, - tagVersionPrefix, - commitHooks, gitTagVersion, - signGitCommit, - signGitTag, - force, ignoreScripts, preid, pkg, - log, - message, + log } = opts const { valid, clean, inc } = semver const current = pkg.version || '0.0.0' const currentClean = clean(current) - const newV = valid(newversion, { loose: true }) ? clean(newversion, { loose: true }) - : newversion === 'from-git' ? await retrieveTag(opts) - : inc(currentClean, newversion, { loose: true }, preid) + let newV + if (valid(newversion, { loose: true })) { + newV = clean(newversion, { loose: true }) + } else if (newversion === 'from-git') { + newV = await retrieveTag(opts) + } else { + newV = inc(currentClean, newversion, { loose: true }, preid) + } if (!newV) { throw Object.assign(new Error('Invalid version: ' + newversion), { current, - requested: newversion, + requested: newversion }) } @@ -47,7 +46,7 @@ module.exports = async (newversion, opts) => { throw Object.assign(new Error('Version not changed'), { current, requested: newversion, - newVersion: newV, + newVersion: newV }) } @@ -68,8 +67,8 @@ module.exports = async (newversion, opts) => { banner: log.level !== 'silent', env: { npm_old_version: current, - npm_new_version: newV, - }, + npm_new_version: newV + } }) } @@ -102,8 +101,8 @@ module.exports = async (newversion, opts) => { banner: log.level !== 'silent', env: { npm_old_version: current, - npm_new_version: newV, - }, + npm_new_version: newV + } }) } @@ -116,8 +115,7 @@ module.exports = async (newversion, opts) => { } await commit(newV, opts) await tag(newV, opts) - } else - log.verbose('version', 'Not tagging: not in a git repo or no git cmd') + } else { log.verbose('version', 'Not tagging: not in a git repo or no git cmd') } if (!ignoreScripts) { await runScript({ @@ -128,8 +126,8 @@ module.exports = async (newversion, opts) => { banner: log.level !== 'silent', env: { npm_old_version: current, - npm_new_version: newV, - }, + npm_new_version: newV + } }) } diff --git a/deps/npm/node_modules/libnpmversion/lib/write-json.js b/deps/npm/node_modules/libnpmversion/lib/write-json.js index 30ca1af0f19edc..813bb7ffc279b6 100644 --- a/deps/npm/node_modules/libnpmversion/lib/write-json.js +++ b/deps/npm/node_modules/libnpmversion/lib/write-json.js @@ -1,5 +1,5 @@ // write the json back, preserving the line breaks and indent -const {promisify} = require('util') +const { promisify } = require('util') const writeFile = promisify(require('fs').writeFile) const kIndent = Symbol.for('indent') const kNewline = Symbol.for('newline') @@ -7,7 +7,7 @@ const kNewline = Symbol.for('newline') module.exports = async (path, pkg) => { const { [kIndent]: indent = 2, - [kNewline]: newline = '\n', + [kNewline]: newline = '\n' } = pkg delete pkg._id const raw = JSON.stringify(pkg, null, indent) + '\n' diff --git a/deps/npm/node_modules/libnpmversion/package.json b/deps/npm/node_modules/libnpmversion/package.json index 30d94c7a14699e..ebc88a1fc57543 100644 --- a/deps/npm/node_modules/libnpmversion/package.json +++ b/deps/npm/node_modules/libnpmversion/package.json @@ -1,6 +1,6 @@ { "name": "libnpmversion", - "version": "1.1.0", + "version": "1.2.0", "main": "lib/index.js", "files": [ "lib/*.js" @@ -13,25 +13,34 @@ "author": "Isaac Z. Schlueter (https://izs.me)", "license": "ISC", "scripts": { + "lint": "standard", + "lint:fix": "standard --fix", "test": "tap", + "posttest": "npm run lint", "snap": "tap", "preversion": "npm test", "postversion": "npm publish", "prepublishOnly": "git push origin --follow-tags" }, + "standard": { + "ignore": [ + "tap-snapshots" + ] + }, "tap": { "coverage-map": "map.js", "check-coverage": true }, "devDependencies": { "require-inject": "^1.4.4", + "standard": "^16.0.3", "tap": "^14.11.0" }, "dependencies": { - "@npmcli/git": "^2.0.6", - "@npmcli/run-script": "^1.8.3", + "@npmcli/git": "^2.0.7", + "@npmcli/run-script": "^1.8.4", "json-parse-even-better-errors": "^2.3.1", - "semver": "^7.3.4", + "semver": "^7.3.5", "stringify-package": "^1.0.1" } } diff --git a/deps/npm/node_modules/mime-db/HISTORY.md b/deps/npm/node_modules/mime-db/HISTORY.md index aff74740dc55e5..1555055e8a7956 100644 --- a/deps/npm/node_modules/mime-db/HISTORY.md +++ b/deps/npm/node_modules/mime-db/HISTORY.md @@ -1,3 +1,10 @@ +1.47.0 / 2021-04-01 +=================== + + * Add new upstream MIME types + * Remove ambigious extensions from IANA for `application/*+xml` types + * Update primary extension to `.es` for `application/ecmascript` + 1.46.0 / 2021-02-13 =================== diff --git a/deps/npm/node_modules/mime-db/README.md b/deps/npm/node_modules/mime-db/README.md index 8f1d8c4e53ffd7..41c696a30dfa15 100644 --- a/deps/npm/node_modules/mime-db/README.md +++ b/deps/npm/node_modules/mime-db/README.md @@ -34,8 +34,6 @@ https://cdn.jsdelivr.net/gh/jshttp/mime-db@master/db.json ## Usage - - ```js var db = require('mime-db') diff --git a/deps/npm/node_modules/mime-db/db.json b/deps/npm/node_modules/mime-db/db.json index 4871607a58a980..63c189ea2687ba 100644 --- a/deps/npm/node_modules/mime-db/db.json +++ b/deps/npm/node_modules/mime-db/db.json @@ -389,7 +389,7 @@ "application/ecmascript": { "source": "iana", "compressible": true, - "extensions": ["ecma","es"] + "extensions": ["es","ecma"] }, "application/edi-consent": { "source": "iana" @@ -934,13 +934,11 @@ }, "application/mrb-consumer+xml": { "source": "iana", - "compressible": true, - "extensions": ["xdf"] + "compressible": true }, "application/mrb-publish+xml": { "source": "iana", - "compressible": true, - "extensions": ["xdf"] + "compressible": true }, "application/msc-ivr+xml": { "source": "iana", @@ -2321,6 +2319,9 @@ "application/vnd.crypto-shade-file": { "source": "iana" }, + "application/vnd.cryptomator.encrypted": { + "source": "iana" + }, "application/vnd.ctc-posml": { "source": "iana", "extensions": ["pml"] @@ -3786,6 +3787,9 @@ "source": "iana", "compressible": true }, + "application/vnd.nebumind.line": { + "source": "iana" + }, "application/vnd.nervana": { "source": "iana" }, @@ -6071,8 +6075,7 @@ }, "application/xcap-error+xml": { "source": "iana", - "compressible": true, - "extensions": ["xer"] + "compressible": true }, "application/xcap-ns+xml": { "source": "iana", @@ -7400,6 +7403,10 @@ "model/vnd.rosette.annotated-data-model": { "source": "iana" }, + "model/vnd.sap.vds": { + "source": "iana", + "extensions": ["vds"] + }, "model/vnd.usdz+zip": { "source": "iana", "compressible": false, @@ -7980,6 +7987,9 @@ "video/encaprtp": { "source": "iana" }, + "video/ffv1": { + "source": "iana" + }, "video/flexfec": { "source": "iana" }, diff --git a/deps/npm/node_modules/mime-db/package.json b/deps/npm/node_modules/mime-db/package.json index ec0328404d9490..bd6403fb68f9f1 100644 --- a/deps/npm/node_modules/mime-db/package.json +++ b/deps/npm/node_modules/mime-db/package.json @@ -1,7 +1,7 @@ { "name": "mime-db", "description": "Media Type Database", - "version": "1.46.0", + "version": "1.47.0", "contributors": [ "Douglas Christopher Wilson ", "Jonathan Ong (http://jongleberry.com)", @@ -22,16 +22,16 @@ "bluebird": "3.7.2", "co": "4.6.0", "cogent": "1.0.1", - "csv-parse": "4.15.1", - "eslint": "7.20.0", + "csv-parse": "4.15.3", + "eslint": "7.23.0", "eslint-config-standard": "15.0.1", "eslint-plugin-import": "2.22.1", - "eslint-plugin-markdown": "1.0.2", + "eslint-plugin-markdown": "2.0.0", "eslint-plugin-node": "11.1.0", "eslint-plugin-promise": "4.3.1", "eslint-plugin-standard": "4.1.0", "gnode": "0.1.2", - "mocha": "8.3.0", + "mocha": "8.3.2", "nyc": "15.1.0", "raw-body": "2.4.1", "stream-to-array": "2.3.0" @@ -49,7 +49,7 @@ "scripts": { "build": "node scripts/build", "fetch": "node scripts/fetch-apache && gnode scripts/fetch-iana && node scripts/fetch-nginx", - "lint": "eslint --plugin markdown --ext js,md .", + "lint": "eslint .", "test": "mocha --reporter spec --bail --check-leaks test/", "test-ci": "nyc --reporter=lcov --reporter=text npm test", "test-cov": "nyc --reporter=html --reporter=text npm test", diff --git a/deps/npm/node_modules/mime-types/HISTORY.md b/deps/npm/node_modules/mime-types/HISTORY.md index 2e50fc84a4d883..38472bee131e46 100644 --- a/deps/npm/node_modules/mime-types/HISTORY.md +++ b/deps/npm/node_modules/mime-types/HISTORY.md @@ -1,3 +1,11 @@ +2.1.30 / 2021-04-02 +=================== + + * deps: mime-db@1.47.0 + - Add extension `.amr` to `audio/amr` + - Remove ambigious extensions from IANA for `application/*+xml` types + - Update primary extension to `.es` for `application/ecmascript` + 2.1.29 / 2021-02-17 =================== diff --git a/deps/npm/node_modules/mime-types/package.json b/deps/npm/node_modules/mime-types/package.json index 9ed59e843e7261..ea53dd22aa1d38 100644 --- a/deps/npm/node_modules/mime-types/package.json +++ b/deps/npm/node_modules/mime-types/package.json @@ -1,7 +1,7 @@ { "name": "mime-types", "description": "The ultimate javascript content-type utility.", - "version": "2.1.29", + "version": "2.1.30", "contributors": [ "Douglas Christopher Wilson ", "Jeremiah Senkpiel (https://searchbeam.jit.su)", @@ -14,17 +14,17 @@ ], "repository": "jshttp/mime-types", "dependencies": { - "mime-db": "1.46.0" + "mime-db": "1.47.0" }, "devDependencies": { - "eslint": "7.20.0", + "eslint": "7.23.0", "eslint-config-standard": "14.1.1", "eslint-plugin-import": "2.22.1", "eslint-plugin-markdown": "2.0.0", "eslint-plugin-node": "11.1.0", "eslint-plugin-promise": "4.3.1", "eslint-plugin-standard": "4.1.0", - "mocha": "8.3.0", + "mocha": "8.3.2", "nyc": "15.1.0" }, "files": [ diff --git a/deps/npm/package.json b/deps/npm/package.json index 965f029aaab1ab..8d45f7c3e6cdfb 100644 --- a/deps/npm/package.json +++ b/deps/npm/package.json @@ -1,5 +1,5 @@ { - "version": "7.9.0", + "version": "7.10.0", "name": "npm", "description": "a package manager for JavaScript", "keywords": [ @@ -74,7 +74,7 @@ "libnpmpublish": "^4.0.0", "libnpmsearch": "^3.1.0", "libnpmteam": "^2.0.2", - "libnpmversion": "^1.1.0", + "libnpmversion": "^1.2.0", "make-fetch-happen": "^8.0.14", "minipass": "^3.1.3", "minipass-pipeline": "^1.2.4", @@ -188,8 +188,7 @@ "jsdom": "^16.5.2", "licensee": "^8.1.0", "marked-man": "^0.7.0", - "require-inject": "^1.4.4", - "tap": "^14.11.0", + "tap": "^15.0.2", "yaml": "^1.10.2" }, "scripts": { @@ -219,7 +218,6 @@ "files": "test/{lib,bin}", "coverage-map": "test/coverage-map.js", "check-coverage": true, - "esm": false, "timeout": 600 }, "license": "Artistic-2.0", diff --git a/deps/npm/tap-snapshots/smoke-tests-index.js-TAP.test.js b/deps/npm/tap-snapshots/smoke-tests/index.js.test.cjs similarity index 98% rename from deps/npm/tap-snapshots/smoke-tests-index.js-TAP.test.js rename to deps/npm/tap-snapshots/smoke-tests/index.js.test.cjs index 5c3fb8231114db..7337728a5aff70 100644 --- a/deps/npm/tap-snapshots/smoke-tests-index.js-TAP.test.js +++ b/deps/npm/tap-snapshots/smoke-tests/index.js.test.cjs @@ -32,7 +32,7 @@ All commands: unstar, update, version, view, whoami Specify configs in the ini-formatted file: - {CWD}/smoke-tests/index/.npmrc + {CWD}/smoke-tests/tap-testdir-index/.npmrc or on the command line via: npm --key=value More configuration info: npm help config @@ -313,7 +313,7 @@ project@1.0.0 ` exports[`smoke-tests/index.js TAP npm init > should have successful npm init result 1`] = ` -Wrote to {CWD}/smoke-tests/index/project/package.json: +Wrote to {CWD}/smoke-tests/tap-testdir-index/project/package.json: { "name": "project", @@ -469,7 +469,7 @@ exports[`smoke-tests/index.js TAP npm install prodDep@version > should have expe ` exports[`smoke-tests/index.js TAP npm ls > should have expected ls output 1`] = ` -project@1.0.0 {CWD}/smoke-tests/index/project +project@1.0.0 {CWD}/smoke-tests/tap-testdir-index/project +-- abbrev@1.0.4 \`-- promise-all-reject-late@1.0.1 @@ -483,7 +483,7 @@ abbrev 1.0.4 1.1.1 1.1.1 node_modules/abbrev project ` exports[`smoke-tests/index.js TAP npm prefix > should have expected prefix output 1`] = ` -{CWD}/smoke-tests/index/project +{CWD}/smoke-tests/tap-testdir-index/project ` diff --git a/deps/npm/tap-snapshots/test-lib-link.js-TAP.test.js b/deps/npm/tap-snapshots/test-lib-link.js-TAP.test.js deleted file mode 100644 index ab1d5c6b830fbe..00000000000000 --- a/deps/npm/tap-snapshots/test-lib-link.js-TAP.test.js +++ /dev/null @@ -1,30 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/link.js TAP link global linked pkg to local nm when using args > should create a local symlink to global pkg 1`] = ` -{CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/@myscope/bar -> {CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/global-prefix/lib/node_modules/@myscope/bar -{CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/@myscope/linked -> {CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/scoped-linked -{CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/a -> {CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/global-prefix/lib/node_modules/a -{CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/link-me-too -> {CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/link-me-too -{CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/test-pkg-link -> {CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/test-pkg-link - -` - -exports[`test/lib/link.js TAP link pkg already in global space > should create a local symlink to global pkg 1`] = ` -{CWD}/test/lib/link-link-pkg-already-in-global-space/my-project/node_modules/@myscope/linked -> {CWD}/test/lib/link-link-pkg-already-in-global-space/scoped-linked - -` - -exports[`test/lib/link.js TAP link pkg already in global space when prefix is a symlink > should create a local symlink to global pkg 1`] = ` -{CWD}/test/lib/link-link-pkg-already-in-global-space-when-prefix-is-a-symlink/my-project/node_modules/@myscope/linked -> {CWD}/test/lib/link-link-pkg-already-in-global-space-when-prefix-is-a-symlink/scoped-linked - -` - -exports[`test/lib/link.js TAP link to globalDir when in current working dir of pkg and no args > should create a global link to current pkg 1`] = ` -{CWD}/test/lib/link-link-to-globalDir-when-in-current-working-dir-of-pkg-and-no-args/global-prefix/lib/node_modules/test-pkg-link -> {CWD}/test/lib/link-link-to-globalDir-when-in-current-working-dir-of-pkg-and-no-args/test-pkg-link - -` diff --git a/deps/npm/tap-snapshots/test-lib-outdated.js-TAP.test.js b/deps/npm/tap-snapshots/test-lib-outdated.js-TAP.test.js deleted file mode 100644 index 7f245b09ed9200..00000000000000 --- a/deps/npm/tap-snapshots/test-lib-outdated.js-TAP.test.js +++ /dev/null @@ -1,154 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/outdated.js TAP should display outdated deps outdated --all > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps -beta 1.0.0 1.0.1 1.0.1 node_modules/beta outdated-should-display-outdated-deps -gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps -theta MISSING 1.0.1 1.0.1 - outdated-should-display-outdated-deps -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --json --long > must match snapshot 1`] = ` - -{ - "alpha": { - "current": "1.0.0", - "wanted": "1.0.1", - "latest": "1.0.1", - "dependent": "outdated-should-display-outdated-deps", - "location": "{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/alpha", - "type": "dependencies" - }, - "beta": { - "current": "1.0.0", - "wanted": "1.0.1", - "latest": "1.0.1", - "dependent": "outdated-should-display-outdated-deps", - "location": "{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/beta", - "type": "peerDependencies" - }, - "gamma": { - "current": "1.0.1", - "wanted": "1.0.1", - "latest": "2.0.0", - "dependent": "outdated-should-display-outdated-deps", - "location": "{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/gamma", - "type": "dependencies" - }, - "theta": { - "wanted": "1.0.1", - "latest": "1.0.1", - "dependent": "outdated-should-display-outdated-deps", - "type": "dependencies" - } -} -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --json > must match snapshot 1`] = ` - -{ - "alpha": { - "current": "1.0.0", - "wanted": "1.0.1", - "latest": "1.0.1", - "dependent": "outdated-should-display-outdated-deps", - "location": "{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/alpha" - }, - "beta": { - "current": "1.0.0", - "wanted": "1.0.1", - "latest": "1.0.1", - "dependent": "outdated-should-display-outdated-deps", - "location": "{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/beta" - }, - "gamma": { - "current": "1.0.1", - "wanted": "1.0.1", - "latest": "2.0.0", - "dependent": "outdated-should-display-outdated-deps", - "location": "{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/gamma" - }, - "theta": { - "wanted": "1.0.1", - "latest": "1.0.1", - "dependent": "outdated-should-display-outdated-deps" - } -} -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --long > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by Package Type Homepage -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps dependencies -beta 1.0.0 1.0.1 1.0.1 node_modules/beta outdated-should-display-outdated-deps peerDependencies -gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps dependencies -theta MISSING 1.0.1 1.0.1 - outdated-should-display-outdated-deps dependencies -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --omit=dev --omit=peer > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps -gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps -theta MISSING 1.0.1 1.0.1 - outdated-should-display-outdated-deps -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --omit=dev > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps -beta 1.0.0 1.0.1 1.0.1 node_modules/beta outdated-should-display-outdated-deps -gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps -theta MISSING 1.0.1 1.0.1 - outdated-should-display-outdated-deps -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --omit=prod > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps -beta 1.0.0 1.0.1 1.0.1 node_modules/beta outdated-should-display-outdated-deps -gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --parseable --long > must match snapshot 1`] = ` - -{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/alpha:alpha@1.0.1:alpha@1.0.0:alpha@1.0.1:outdated-should-display-outdated-deps:dependencies: -{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/beta:beta@1.0.1:beta@1.0.0:beta@1.0.1:outdated-should-display-outdated-deps:peerDependencies: -{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/gamma:gamma@1.0.1:gamma@1.0.1:gamma@2.0.0:outdated-should-display-outdated-deps:dependencies: -:theta@1.0.1:MISSING:theta@1.0.1:outdated-should-display-outdated-deps:dependencies: -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --parseable > must match snapshot 1`] = ` - -{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/alpha:alpha@1.0.1:alpha@1.0.0:alpha@1.0.1:outdated-should-display-outdated-deps -{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/beta:beta@1.0.1:beta@1.0.0:beta@1.0.1:outdated-should-display-outdated-deps -{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/gamma:gamma@1.0.1:gamma@1.0.1:gamma@2.0.0:outdated-should-display-outdated-deps -:theta@1.0.1:MISSING:theta@1.0.1:outdated-should-display-outdated-deps -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps -beta 1.0.0 1.0.1 1.0.1 node_modules/beta outdated-should-display-outdated-deps -gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps -theta MISSING 1.0.1 1.0.1 - outdated-should-display-outdated-deps -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated global > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha global -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated specific dep > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps -` diff --git a/deps/npm/tap-snapshots/test-tap-repo.js-TAP.test.js b/deps/npm/tap-snapshots/test-tap-repo.js-TAP.test.js deleted file mode 100644 index 3fba79edb8d42b..00000000000000 --- a/deps/npm/tap-snapshots/test-tap-repo.js-TAP.test.js +++ /dev/null @@ -1,21 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/tap/repo.js TAP npm repo underscore --json > should print json result 1`] = ` -{ - "title": "repository available at the following URL", - "url": "https://github.com/jashkenas/underscore" -} - -` - -exports[`test/tap/repo.js TAP npm repo underscore --no-browser > should print alternative msg 1`] = ` -repository available at the following URL: - -https://github.com/jashkenas/underscore - -` diff --git a/deps/npm/tap-snapshots/test-lib-config.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/config.js.test.cjs similarity index 90% rename from deps/npm/tap-snapshots/test-lib-config.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/config.js.test.cjs index d62969145d1d98..68c50d699a430c 100644 --- a/deps/npm/tap-snapshots/test-lib-config.js-TAP.test.js +++ b/deps/npm/tap-snapshots/test/lib/config.js.test.cjs @@ -88,10 +88,10 @@ exports[`test/lib/config.js TAP config edit > should write config file 2`] = ` exports[`test/lib/config.js TAP config get no args > should list configs on config get no args 1`] = ` ; "cli" config from command line options -editor = "vi" -global = false -json = false -long = false +editor = "vi" +global = false +json = false +long = false ; node bin location = /path/to/node ; cwd = {CWD} @@ -102,26 +102,26 @@ long = false exports[`test/lib/config.js TAP config list --long > should list all configs 1`] = ` ; "default" config from default values -init-author-name = "" -init-version = "1.0.0" -init.author.name = "" -init.version = "1.0.0" +init-author-name = "" +init-version = "1.0.0" +init.author.name = "" +init.version = "1.0.0" ; "cli" config from command line options -editor = "vi" -global = false -json = false +editor = "vi" +global = false +json = false long = true ` exports[`test/lib/config.js TAP config list > should list configs 1`] = ` ; "cli" config from command line options -editor = "vi" -global = false -json = false -long = false +editor = "vi" +global = false +json = false +long = false ; node bin location = /path/to/node ; cwd = {CWD} @@ -132,11 +132,11 @@ long = false exports[`test/lib/config.js TAP config list overrides > should list overridden configs 1`] = ` ; "cli" config from command line options -editor = "vi" -global = false -init.author.name = "Bar" -json = false -long = false +editor = "vi" +global = false +init.author.name = "Bar" +json = false +long = false ; "user" config from ~/.npmrc diff --git a/deps/npm/tap-snapshots/test-lib-dist-tag.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/dist-tag.js.test.cjs similarity index 92% rename from deps/npm/tap-snapshots/test-lib-dist-tag.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/dist-tag.js.test.cjs index ea25b568b06626..34fbba89d987ab 100644 --- a/deps/npm/tap-snapshots/test-lib-dist-tag.js-TAP.test.js +++ b/deps/npm/tap-snapshots/test/lib/dist-tag.js.test.cjs @@ -16,7 +16,8 @@ npm dist-tag rm npm dist-tag ls [] Options: -[-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] +[-w|--workspace [-w|--workspace ...]] +[-ws|--workspaces] alias: dist-tags @@ -34,7 +35,8 @@ npm dist-tag rm npm dist-tag ls [] Options: -[-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] +[-w|--workspace [-w|--workspace ...]] +[-ws|--workspaces] alias: dist-tags @@ -46,7 +48,7 @@ exports[`test/lib/dist-tag.js TAP add new tag > should return success msg 1`] = ` exports[`test/lib/dist-tag.js TAP add using valid semver range as name > should return success msg 1`] = ` -dist-tag add 1.0.0 to @scoped/another@7.7.7 +dist-tag add 1.0.0 to @scoped/another@7.7.7 ` @@ -61,7 +63,8 @@ npm dist-tag rm npm dist-tag ls [] Options: -[-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] +[-w|--workspace [-w|--workspace ...]] +[-ws|--workspaces] alias: dist-tags @@ -85,7 +88,8 @@ npm dist-tag rm npm dist-tag ls [] Options: -[-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] +[-w|--workspace [-w|--workspace ...]] +[-ws|--workspaces] alias: dist-tags @@ -93,7 +97,7 @@ Run "npm help dist-tag" for more info ` exports[`test/lib/dist-tag.js TAP ls on missing package > should log no dist-tag found msg 1`] = ` -dist-tag ls Couldn't get dist-tag data for foo@latest +dist-tag ls Couldn't get dist-tag data for foo@latest ` @@ -120,7 +124,7 @@ latest: 2.0.0 ` exports[`test/lib/dist-tag.js TAP remove existing tag > should log remove info 1`] = ` -dist-tag del c from @scoped/another +dist-tag del c from @scoped/another ` @@ -139,7 +143,8 @@ npm dist-tag rm npm dist-tag ls [] Options: -[-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] +[-w|--workspace [-w|--workspace ...]] +[-ws|--workspaces] alias: dist-tags @@ -147,14 +152,14 @@ Run "npm help dist-tag" for more info ` exports[`test/lib/dist-tag.js TAP remove non-existing tag > should log error msg 1`] = ` -dist-tag del nonexistent from @scoped/another -dist-tag del nonexistent is not a dist-tag on @scoped/another +dist-tag del nonexistent from @scoped/another +dist-tag del nonexistent is not a dist-tag on @scoped/another ` exports[`test/lib/dist-tag.js TAP set existing version > should log warn msg 1`] = ` -dist-tag add b to @scoped/another@0.6.0 -dist-tag add b is already set to version 0.6.0 +dist-tag add b to @scoped/another@0.6.0 +dist-tag add b is already set to version 0.6.0 ` diff --git a/deps/npm/tap-snapshots/test-lib-fund.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/fund.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-fund.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/fund.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-init.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/init.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-init.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/init.js.test.cjs diff --git a/deps/npm/tap-snapshots/test/lib/link.js.test.cjs b/deps/npm/tap-snapshots/test/lib/link.js.test.cjs new file mode 100644 index 00000000000000..d6dd376593b4df --- /dev/null +++ b/deps/npm/tap-snapshots/test/lib/link.js.test.cjs @@ -0,0 +1,30 @@ +/* IMPORTANT + * This snapshot file is auto-generated, but designed for humans. + * It should be checked into source control and tracked carefully. + * Re-generate by setting TAP_SNAPSHOT=1 and running tests. + * Make sure to inspect the output below. Do not ignore changes! + */ +'use strict' +exports[`test/lib/link.js TAP link global linked pkg to local nm when using args > should create a local symlink to global pkg 1`] = ` +{CWD}/test/lib/tap-testdir-link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/@myscope/bar -> {CWD}/test/lib/tap-testdir-link-link-global-linked-pkg-to-local-nm-when-using-args/global-prefix/lib/node_modules/@myscope/bar +{CWD}/test/lib/tap-testdir-link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/@myscope/linked -> {CWD}/test/lib/tap-testdir-link-link-global-linked-pkg-to-local-nm-when-using-args/scoped-linked +{CWD}/test/lib/tap-testdir-link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/a -> {CWD}/test/lib/tap-testdir-link-link-global-linked-pkg-to-local-nm-when-using-args/global-prefix/lib/node_modules/a +{CWD}/test/lib/tap-testdir-link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/link-me-too -> {CWD}/test/lib/tap-testdir-link-link-global-linked-pkg-to-local-nm-when-using-args/link-me-too +{CWD}/test/lib/tap-testdir-link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/test-pkg-link -> {CWD}/test/lib/tap-testdir-link-link-global-linked-pkg-to-local-nm-when-using-args/test-pkg-link + +` + +exports[`test/lib/link.js TAP link pkg already in global space > should create a local symlink to global pkg 1`] = ` +{CWD}/test/lib/tap-testdir-link-link-pkg-already-in-global-space/my-project/node_modules/@myscope/linked -> {CWD}/test/lib/tap-testdir-link-link-pkg-already-in-global-space/scoped-linked + +` + +exports[`test/lib/link.js TAP link pkg already in global space when prefix is a symlink > should create a local symlink to global pkg 1`] = ` +{CWD}/test/lib/tap-testdir-link-link-pkg-already-in-global-space-when-prefix-is-a-symlink/my-project/node_modules/@myscope/linked -> {CWD}/test/lib/tap-testdir-link-link-pkg-already-in-global-space-when-prefix-is-a-symlink/scoped-linked + +` + +exports[`test/lib/link.js TAP link to globalDir when in current working dir of pkg and no args > should create a global link to current pkg 1`] = ` +{CWD}/test/lib/tap-testdir-link-link-to-globalDir-when-in-current-working-dir-of-pkg-and-no-args/global-prefix/lib/node_modules/test-pkg-link -> {CWD}/test/lib/tap-testdir-link-link-to-globalDir-when-in-current-working-dir-of-pkg-and-no-args/test-pkg-link + +` diff --git a/deps/npm/tap-snapshots/test-lib-ls.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/ls.js.test.cjs similarity index 51% rename from deps/npm/tap-snapshots/test-lib-ls.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/ls.js.test.cjs index 120a65baffae93..9e5b68e797d699 100644 --- a/deps/npm/tap-snapshots/test-lib-ls.js-TAP.test.js +++ b/deps/npm/tap-snapshots/test/lib/ls.js.test.cjs @@ -6,14 +6,14 @@ */ 'use strict' exports[`test/lib/ls.js TAP ls --depth=0 > should output tree containing only top-level dependencies 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--depth-0 +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls---depth-0 +-- foo@1.0.0 \`-- lorem@1.0.0 ` exports[`test/lib/ls.js TAP ls --depth=1 > should output tree containing top-level deps and their deps only 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--depth-1 +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls---depth-1 +-- a@1.0.0 | \`-- b@1.0.0 \`-- e@1.0.0 @@ -21,7 +21,7 @@ test-npm-ls@1.0.0 {CWD}/ls-ls--depth-1 ` exports[`test/lib/ls.js TAP ls --dev > should output tree containing dev deps 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--dev +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls---dev \`-- dev-dep@1.0.0 \`-- foo@1.0.0 \`-- bar@1.0.0 @@ -29,19 +29,19 @@ test-npm-ls@1.0.0 {CWD}/ls-ls--dev ` exports[`test/lib/ls.js TAP ls --link > should output tree containing linked deps 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--link -\`-- linked-dep@1.0.0 -> {CWD}/ls-ls--link/linked-dep +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls---link +\`-- linked-dep@1.0.0 -> {CWD}/tap-testdir-ls-ls---link/linked-dep ` exports[`test/lib/ls.js TAP ls --long --depth=0 > should output tree containing top-level deps with descriptions 1`] = ` test-npm-ls@1.0.0 -| {CWD}/ls-ls--long-depth-0 -| +| {CWD}/tap-testdir-ls-ls---long---depth-0 +| +-- dev-dep@1.0.0 | A DEV dep kind of dep +-- lorem@1.0.0 -| +| +-- optional-dep@1.0.0 | Maybe a dep? +-- peer-dep@1.0.0 @@ -53,16 +53,16 @@ test-npm-ls@1.0.0 exports[`test/lib/ls.js TAP ls --long > should output tree info with descriptions 1`] = ` test-npm-ls@1.0.0 -| {CWD}/ls-ls--long -| +| {CWD}/tap-testdir-ls-ls---long +| +-- dev-dep@1.0.0 | | A DEV dep kind of dep | \`-- foo@1.0.0 -| | +| | | \`-- bar@1.0.0 -| +| +-- lorem@1.0.0 -| +| +-- optional-dep@1.0.0 | Maybe a dep? +-- peer-dep@1.0.0 @@ -75,7 +75,7 @@ test-npm-ls@1.0.0 ` exports[`test/lib/ls.js TAP ls --only=development > should output tree containing only development deps 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--only-development +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls---only-development \`-- dev-dep@1.0.0 \`-- foo@1.0.0 \`-- bar@1.0.0 @@ -83,7 +83,7 @@ test-npm-ls@1.0.0 {CWD}/ls-ls--only-development ` exports[`test/lib/ls.js TAP ls --only=prod > should output tree containing only prod deps 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--only-prod +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls---only-prod +-- lorem@1.0.0 +-- optional-dep@1.0.0 \`-- prod-dep@1.0.0 @@ -92,207 +92,207 @@ test-npm-ls@1.0.0 {CWD}/ls-ls--only-prod ` exports[`test/lib/ls.js TAP ls --parseable --depth=0 > should output tree containing only top-level dependencies 1`] = ` -{CWD}/ls-ls-parseable--depth-0 -{CWD}/ls-ls-parseable--depth-0/node_modules/foo -{CWD}/ls-ls-parseable--depth-0/node_modules/lorem +{CWD}/tap-testdir-ls-ls---parseable---depth-0 +{CWD}/tap-testdir-ls-ls---parseable---depth-0/node_modules/foo +{CWD}/tap-testdir-ls-ls---parseable---depth-0/node_modules/lorem ` exports[`test/lib/ls.js TAP ls --parseable --depth=1 > should output parseable containing top-level deps and their deps only 1`] = ` -{CWD}/ls-ls-parseable--depth-1 -{CWD}/ls-ls-parseable--depth-1/node_modules/foo -{CWD}/ls-ls-parseable--depth-1/node_modules/lorem -{CWD}/ls-ls-parseable--depth-1/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable---depth-1 +{CWD}/tap-testdir-ls-ls---parseable---depth-1/node_modules/foo +{CWD}/tap-testdir-ls-ls---parseable---depth-1/node_modules/lorem +{CWD}/tap-testdir-ls-ls---parseable---depth-1/node_modules/bar ` exports[`test/lib/ls.js TAP ls --parseable --dev > should output tree containing dev deps 1`] = ` -{CWD}/ls-ls-parseable--dev -{CWD}/ls-ls-parseable--dev/node_modules/dev-dep -{CWD}/ls-ls-parseable--dev/node_modules/foo -{CWD}/ls-ls-parseable--dev/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable---dev +{CWD}/tap-testdir-ls-ls---parseable---dev/node_modules/dev-dep +{CWD}/tap-testdir-ls-ls---parseable---dev/node_modules/foo +{CWD}/tap-testdir-ls-ls---parseable---dev/node_modules/bar ` exports[`test/lib/ls.js TAP ls --parseable --link > should output tree containing linked deps 1`] = ` -{CWD}/ls-ls-parseable--link -{CWD}/ls-ls-parseable--link/node_modules/linked-dep +{CWD}/tap-testdir-ls-ls---parseable---link +{CWD}/tap-testdir-ls-ls---parseable---link/node_modules/linked-dep ` exports[`test/lib/ls.js TAP ls --parseable --long --depth=0 > should output tree containing top-level deps with descriptions 1`] = ` -{CWD}/ls-ls-parseable--long-depth-0:test-npm-ls@1.0.0 -{CWD}/ls-ls-parseable--long-depth-0/node_modules/dev-dep:dev-dep@1.0.0 -{CWD}/ls-ls-parseable--long-depth-0/node_modules/lorem:lorem@1.0.0 -{CWD}/ls-ls-parseable--long-depth-0/node_modules/optional-dep:optional-dep@1.0.0 -{CWD}/ls-ls-parseable--long-depth-0/node_modules/peer-dep:peer-dep@1.0.0 -{CWD}/ls-ls-parseable--long-depth-0/node_modules/prod-dep:prod-dep@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long---depth-0:test-npm-ls@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long---depth-0/node_modules/dev-dep:dev-dep@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long---depth-0/node_modules/lorem:lorem@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long---depth-0/node_modules/optional-dep:optional-dep@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long---depth-0/node_modules/peer-dep:peer-dep@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long---depth-0/node_modules/prod-dep:prod-dep@1.0.0 ` exports[`test/lib/ls.js TAP ls --parseable --long > should output tree info with descriptions 1`] = ` -{CWD}/ls-ls-parseable--long:test-npm-ls@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/dev-dep:dev-dep@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/lorem:lorem@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/optional-dep:optional-dep@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/peer-dep:peer-dep@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/prod-dep:prod-dep@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/foo:foo@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/prod-dep/node_modules/bar:bar@2.0.0 -{CWD}/ls-ls-parseable--long/node_modules/bar:bar@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long:test-npm-ls@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long/node_modules/dev-dep:dev-dep@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long/node_modules/lorem:lorem@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long/node_modules/optional-dep:optional-dep@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long/node_modules/peer-dep:peer-dep@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long/node_modules/prod-dep:prod-dep@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long/node_modules/foo:foo@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long/node_modules/prod-dep/node_modules/bar:bar@2.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long/node_modules/bar:bar@1.0.0 ` exports[`test/lib/ls.js TAP ls --parseable --long missing/invalid/extraneous > should output parseable result containing EXTRANEOUS/INVALID labels 1`] = ` -{CWD}/ls-ls-parseable--long-missing-invalid-extraneous:test-npm-ls@1.0.0 -{CWD}/ls-ls-parseable--long-missing-invalid-extraneous/node_modules/foo:foo@1.0.0:INVALID -{CWD}/ls-ls-parseable--long-missing-invalid-extraneous/node_modules/lorem:lorem@1.0.0:EXTRANEOUS -{CWD}/ls-ls-parseable--long-missing-invalid-extraneous/node_modules/bar:bar@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-missing-invalid-extraneous:test-npm-ls@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-missing-invalid-extraneous/node_modules/foo:foo@1.0.0:INVALID +{CWD}/tap-testdir-ls-ls---parseable---long-missing-invalid-extraneous/node_modules/lorem:lorem@1.0.0:EXTRANEOUS +{CWD}/tap-testdir-ls-ls---parseable---long-missing-invalid-extraneous/node_modules/bar:bar@1.0.0 ` exports[`test/lib/ls.js TAP ls --parseable --long print symlink target location > should output parseable results with symlink targets 1`] = ` -{CWD}/ls-ls-parseable--long-print-symlink-target-location:test-npm-ls@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/dev-dep:dev-dep@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/linked-dep:linked-dep@1.0.0:{CWD}/ls-ls-parseable--long-print-symlink-target-location/linked-dep -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/lorem:lorem@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/optional-dep:optional-dep@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/peer-dep:peer-dep@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/prod-dep:prod-dep@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/foo:foo@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/prod-dep/node_modules/bar:bar@2.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/bar:bar@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-print-symlink-target-location:test-npm-ls@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-print-symlink-target-location/node_modules/dev-dep:dev-dep@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-print-symlink-target-location/node_modules/linked-dep:linked-dep@1.0.0:{CWD}/tap-testdir-ls-ls---parseable---long-print-symlink-target-location/linked-dep +{CWD}/tap-testdir-ls-ls---parseable---long-print-symlink-target-location/node_modules/lorem:lorem@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-print-symlink-target-location/node_modules/optional-dep:optional-dep@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-print-symlink-target-location/node_modules/peer-dep:peer-dep@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-print-symlink-target-location/node_modules/prod-dep:prod-dep@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-print-symlink-target-location/node_modules/foo:foo@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-print-symlink-target-location/node_modules/prod-dep/node_modules/bar:bar@2.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-print-symlink-target-location/node_modules/bar:bar@1.0.0 ` exports[`test/lib/ls.js TAP ls --parseable --long with extraneous deps > should output long parseable output with extraneous info 1`] = ` -{CWD}/ls-ls-parseable--long-with-extraneous-deps:test-npm-ls@1.0.0 -{CWD}/ls-ls-parseable--long-with-extraneous-deps/node_modules/foo:foo@1.0.0 -{CWD}/ls-ls-parseable--long-with-extraneous-deps/node_modules/lorem:lorem@1.0.0:EXTRANEOUS -{CWD}/ls-ls-parseable--long-with-extraneous-deps/node_modules/bar:bar@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-with-extraneous-deps:test-npm-ls@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-with-extraneous-deps/node_modules/foo:foo@1.0.0 +{CWD}/tap-testdir-ls-ls---parseable---long-with-extraneous-deps/node_modules/lorem:lorem@1.0.0:EXTRANEOUS +{CWD}/tap-testdir-ls-ls---parseable---long-with-extraneous-deps/node_modules/bar:bar@1.0.0 ` exports[`test/lib/ls.js TAP ls --parseable --only=development > should output tree containing only development deps 1`] = ` -{CWD}/ls-ls-parseable--only-development -{CWD}/ls-ls-parseable--only-development/node_modules/dev-dep -{CWD}/ls-ls-parseable--only-development/node_modules/foo -{CWD}/ls-ls-parseable--only-development/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable---only-development +{CWD}/tap-testdir-ls-ls---parseable---only-development/node_modules/dev-dep +{CWD}/tap-testdir-ls-ls---parseable---only-development/node_modules/foo +{CWD}/tap-testdir-ls-ls---parseable---only-development/node_modules/bar ` exports[`test/lib/ls.js TAP ls --parseable --only=prod > should output tree containing only prod deps 1`] = ` -{CWD}/ls-ls-parseable--only-prod -{CWD}/ls-ls-parseable--only-prod/node_modules/lorem -{CWD}/ls-ls-parseable--only-prod/node_modules/optional-dep -{CWD}/ls-ls-parseable--only-prod/node_modules/prod-dep -{CWD}/ls-ls-parseable--only-prod/node_modules/prod-dep/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable---only-prod +{CWD}/tap-testdir-ls-ls---parseable---only-prod/node_modules/lorem +{CWD}/tap-testdir-ls-ls---parseable---only-prod/node_modules/optional-dep +{CWD}/tap-testdir-ls-ls---parseable---only-prod/node_modules/prod-dep +{CWD}/tap-testdir-ls-ls---parseable---only-prod/node_modules/prod-dep/node_modules/bar ` exports[`test/lib/ls.js TAP ls --parseable --production > should output tree containing production deps 1`] = ` -{CWD}/ls-ls-parseable--production -{CWD}/ls-ls-parseable--production/node_modules/lorem -{CWD}/ls-ls-parseable--production/node_modules/optional-dep -{CWD}/ls-ls-parseable--production/node_modules/prod-dep -{CWD}/ls-ls-parseable--production/node_modules/prod-dep/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable---production +{CWD}/tap-testdir-ls-ls---parseable---production/node_modules/lorem +{CWD}/tap-testdir-ls-ls---parseable---production/node_modules/optional-dep +{CWD}/tap-testdir-ls-ls---parseable---production/node_modules/prod-dep +{CWD}/tap-testdir-ls-ls---parseable---production/node_modules/prod-dep/node_modules/bar ` exports[`test/lib/ls.js TAP ls --parseable cycle deps > should print tree output omitting deduped ref 1`] = ` -{CWD}/ls-ls-parseable-cycle-deps -{CWD}/ls-ls-parseable-cycle-deps/node_modules/a -{CWD}/ls-ls-parseable-cycle-deps/node_modules/b +{CWD}/tap-testdir-ls-ls---parseable-cycle-deps +{CWD}/tap-testdir-ls-ls---parseable-cycle-deps/node_modules/a +{CWD}/tap-testdir-ls-ls---parseable-cycle-deps/node_modules/b ` exports[`test/lib/ls.js TAP ls --parseable default --depth value should be 0 > should output parseable output containing only top-level dependencies 1`] = ` -{CWD}/ls-ls-parseable-default-depth-value-should-be-0 -{CWD}/ls-ls-parseable-default-depth-value-should-be-0/node_modules/foo -{CWD}/ls-ls-parseable-default-depth-value-should-be-0/node_modules/lorem +{CWD}/tap-testdir-ls-ls---parseable-default---depth-value-should-be-0 +{CWD}/tap-testdir-ls-ls---parseable-default---depth-value-should-be-0/node_modules/foo +{CWD}/tap-testdir-ls-ls---parseable-default---depth-value-should-be-0/node_modules/lorem ` exports[`test/lib/ls.js TAP ls --parseable empty location > should print empty result 1`] = ` -{CWD}/ls-ls-parseable-empty-location +{CWD}/tap-testdir-ls-ls---parseable-empty-location ` exports[`test/lib/ls.js TAP ls --parseable extraneous deps > should output containing problems info 1`] = ` -{CWD}/ls-ls-parseable-extraneous-deps -{CWD}/ls-ls-parseable-extraneous-deps/node_modules/foo -{CWD}/ls-ls-parseable-extraneous-deps/node_modules/lorem -{CWD}/ls-ls-parseable-extraneous-deps/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable-extraneous-deps +{CWD}/tap-testdir-ls-ls---parseable-extraneous-deps/node_modules/foo +{CWD}/tap-testdir-ls-ls---parseable-extraneous-deps/node_modules/lorem +{CWD}/tap-testdir-ls-ls---parseable-extraneous-deps/node_modules/bar ` exports[`test/lib/ls.js TAP ls --parseable from and resolved properties > should not be printed in tree output 1`] = ` -{CWD}/ls-ls-parseable-from-and-resolved-properties -{CWD}/ls-ls-parseable-from-and-resolved-properties/node_modules/simple-output +{CWD}/tap-testdir-ls-ls---parseable-from-and-resolved-properties +{CWD}/tap-testdir-ls-ls---parseable-from-and-resolved-properties/node_modules/simple-output ` exports[`test/lib/ls.js TAP ls --parseable global > should print parseable output for global deps 1`] = ` -{CWD}/ls-ls-parseable-global -{CWD}/ls-ls-parseable-global/node_modules/a -{CWD}/ls-ls-parseable-global/node_modules/b -{CWD}/ls-ls-parseable-global/node_modules/b/node_modules/c +{CWD}/tap-testdir-ls-ls---parseable-global +{CWD}/tap-testdir-ls-ls---parseable-global/node_modules/a +{CWD}/tap-testdir-ls-ls---parseable-global/node_modules/b +{CWD}/tap-testdir-ls-ls---parseable-global/node_modules/b/node_modules/c ` exports[`test/lib/ls.js TAP ls --parseable json read problems > should print empty result 1`] = ` -{CWD}/ls-ls-parseable-json-read-problems +{CWD}/tap-testdir-ls-ls---parseable-json-read-problems ` exports[`test/lib/ls.js TAP ls --parseable missing package.json > should log all extraneous deps on error msg 1`] = ` -extraneous: bar@1.0.0 {CWD}/ls-ls-parseable-missing-package-json/node_modules/bar -extraneous: foo@1.0.0 {CWD}/ls-ls-parseable-missing-package-json/node_modules/foo -extraneous: lorem@1.0.0 {CWD}/ls-ls-parseable-missing-package-json/node_modules/lorem +extraneous: bar@1.0.0 {CWD}/tap-testdir-ls-ls---parseable-missing-package.json/node_modules/bar +extraneous: foo@1.0.0 {CWD}/tap-testdir-ls-ls---parseable-missing-package.json/node_modules/foo +extraneous: lorem@1.0.0 {CWD}/tap-testdir-ls-ls---parseable-missing-package.json/node_modules/lorem ` exports[`test/lib/ls.js TAP ls --parseable missing package.json > should output parseable missing name/version of top-level package 1`] = ` -{CWD}/ls-ls-parseable-missing-package-json -{CWD}/ls-ls-parseable-missing-package-json/node_modules/bar -{CWD}/ls-ls-parseable-missing-package-json/node_modules/foo -{CWD}/ls-ls-parseable-missing-package-json/node_modules/lorem +{CWD}/tap-testdir-ls-ls---parseable-missing-package.json +{CWD}/tap-testdir-ls-ls---parseable-missing-package.json/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable-missing-package.json/node_modules/foo +{CWD}/tap-testdir-ls-ls---parseable-missing-package.json/node_modules/lorem ` exports[`test/lib/ls.js TAP ls --parseable missing/invalid/extraneous > should output parseable containing top-level deps and their deps only 1`] = ` -{CWD}/ls-ls-parseable-missing-invalid-extraneous -{CWD}/ls-ls-parseable-missing-invalid-extraneous/node_modules/foo -{CWD}/ls-ls-parseable-missing-invalid-extraneous/node_modules/lorem -{CWD}/ls-ls-parseable-missing-invalid-extraneous/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable-missing-invalid-extraneous +{CWD}/tap-testdir-ls-ls---parseable-missing-invalid-extraneous/node_modules/foo +{CWD}/tap-testdir-ls-ls---parseable-missing-invalid-extraneous/node_modules/lorem +{CWD}/tap-testdir-ls-ls---parseable-missing-invalid-extraneous/node_modules/bar ` exports[`test/lib/ls.js TAP ls --parseable no args > should output parseable representation of dependencies structure 1`] = ` -{CWD}/ls-ls-parseable-no-args -{CWD}/ls-ls-parseable-no-args/node_modules/foo -{CWD}/ls-ls-parseable-no-args/node_modules/lorem -{CWD}/ls-ls-parseable-no-args/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable-no-args +{CWD}/tap-testdir-ls-ls---parseable-no-args/node_modules/foo +{CWD}/tap-testdir-ls-ls---parseable-no-args/node_modules/lorem +{CWD}/tap-testdir-ls-ls---parseable-no-args/node_modules/bar ` exports[`test/lib/ls.js TAP ls --parseable resolved points to git ref > should output tree containing git refs 1`] = ` -{CWD}/ls-ls-parseable-resolved-points-to-git-ref -{CWD}/ls-ls-parseable-resolved-points-to-git-ref/node_modules/abbrev +{CWD}/tap-testdir-ls-ls---parseable-resolved-points-to-git-ref +{CWD}/tap-testdir-ls-ls---parseable-resolved-points-to-git-ref/node_modules/abbrev ` exports[`test/lib/ls.js TAP ls --parseable unmet optional dep > should output parseable with empty entry for missing optional deps 1`] = ` -{CWD}/ls-ls-parseable-unmet-optional-dep -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/dev-dep -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/lorem -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/optional-dep -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/peer-dep -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/prod-dep -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/foo -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/prod-dep/node_modules/bar -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable-unmet-optional-dep +{CWD}/tap-testdir-ls-ls---parseable-unmet-optional-dep/node_modules/dev-dep +{CWD}/tap-testdir-ls-ls---parseable-unmet-optional-dep/node_modules/lorem +{CWD}/tap-testdir-ls-ls---parseable-unmet-optional-dep/node_modules/optional-dep +{CWD}/tap-testdir-ls-ls---parseable-unmet-optional-dep/node_modules/peer-dep +{CWD}/tap-testdir-ls-ls---parseable-unmet-optional-dep/node_modules/prod-dep +{CWD}/tap-testdir-ls-ls---parseable-unmet-optional-dep/node_modules/foo +{CWD}/tap-testdir-ls-ls---parseable-unmet-optional-dep/node_modules/prod-dep/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable-unmet-optional-dep/node_modules/bar ` exports[`test/lib/ls.js TAP ls --parseable unmet peer dep > should output parseable signaling missing peer dep in problems 1`] = ` -{CWD}/ls-ls-parseable-unmet-peer-dep -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/dev-dep -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/lorem -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/optional-dep -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/peer-dep -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/prod-dep -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/foo -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/prod-dep/node_modules/bar -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable-unmet-peer-dep +{CWD}/tap-testdir-ls-ls---parseable-unmet-peer-dep/node_modules/dev-dep +{CWD}/tap-testdir-ls-ls---parseable-unmet-peer-dep/node_modules/lorem +{CWD}/tap-testdir-ls-ls---parseable-unmet-peer-dep/node_modules/optional-dep +{CWD}/tap-testdir-ls-ls---parseable-unmet-peer-dep/node_modules/peer-dep +{CWD}/tap-testdir-ls-ls---parseable-unmet-peer-dep/node_modules/prod-dep +{CWD}/tap-testdir-ls-ls---parseable-unmet-peer-dep/node_modules/foo +{CWD}/tap-testdir-ls-ls---parseable-unmet-peer-dep/node_modules/prod-dep/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable-unmet-peer-dep/node_modules/bar ` exports[`test/lib/ls.js TAP ls --parseable using aliases > should output tree containing aliases 1`] = ` -{CWD}/ls-ls-parseable-using-aliases -{CWD}/ls-ls-parseable-using-aliases/node_modules/a +{CWD}/tap-testdir-ls-ls---parseable-using-aliases +{CWD}/tap-testdir-ls-ls---parseable-using-aliases/node_modules/a ` exports[`test/lib/ls.js TAP ls --parseable with filter arg > should output parseable contaning only occurrences of filtered by package 1`] = ` -{CWD}/ls-ls-parseable-with-filter-arg/node_modules/lorem +{CWD}/tap-testdir-ls-ls---parseable-with-filter-arg/node_modules/lorem ` exports[`test/lib/ls.js TAP ls --parseable with filter arg nested dep > should output parseable contaning only occurrences of filtered package 1`] = ` -{CWD}/ls-ls-parseable-with-filter-arg-nested-dep/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable-with-filter-arg-nested-dep/node_modules/bar ` exports[`test/lib/ls.js TAP ls --parseable with missing filter arg > should output parseable output containing no dependencies info 1`] = ` @@ -300,12 +300,12 @@ exports[`test/lib/ls.js TAP ls --parseable with missing filter arg > should outp ` exports[`test/lib/ls.js TAP ls --parseable with multiple filter args > should output parseable contaning only occurrences of multiple filtered packages and their ancestors 1`] = ` -{CWD}/ls-ls-parseable-with-multiple-filter-args/node_modules/lorem -{CWD}/ls-ls-parseable-with-multiple-filter-args/node_modules/bar +{CWD}/tap-testdir-ls-ls---parseable-with-multiple-filter-args/node_modules/lorem +{CWD}/tap-testdir-ls-ls---parseable-with-multiple-filter-args/node_modules/bar ` exports[`test/lib/ls.js TAP ls --production > should output tree containing production deps 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--production +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls---production +-- lorem@1.0.0 +-- optional-dep@1.0.0 \`-- prod-dep@1.0.0 @@ -314,13 +314,13 @@ test-npm-ls@1.0.0 {CWD}/ls-ls--production ` exports[`test/lib/ls.js TAP ls broken resolved field > should NOT print git refs in output tree 1`] = ` -npm-broken-resolved-field-test@1.0.0 {CWD}/ls-ls-broken-resolved-field +npm-broken-resolved-field-test@1.0.0 {CWD}/tap-testdir-ls-ls-broken-resolved-field \`-- a@1.0.1 ` exports[`test/lib/ls.js TAP ls colored output > should output tree containing color info 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-colored-output +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-colored-output +-- foo@1.0.0 invalid | \`-- bar@1.0.0 +-- UNMET DEPENDENCY ipsum@^1.0.0 @@ -329,7 +329,7 @@ exports[`test/lib/ls.js TAP ls colored output > should output tree containing co ` exports[`test/lib/ls.js TAP ls cycle deps > should print tree output containing deduped ref 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-cycle-deps +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-cycle-deps \`-- a@1.0.0 \`-- b@1.0.0 \`-- a@1.0.0 deduped @@ -337,7 +337,7 @@ test-npm-ls@1.0.0 {CWD}/ls-ls-cycle-deps ` exports[`test/lib/ls.js TAP ls cycle deps with filter args > should print tree output containing deduped ref 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-cycle-deps-with-filter-args +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-cycle-deps-with-filter-args \`-- a@1.0.0  \`-- b@1.0.0  \`-- a@1.0.0 deduped @@ -345,7 +345,7 @@ exports[`test/lib/ls.js TAP ls cycle deps with filter args > should print tree o ` exports[`test/lib/ls.js TAP ls deduped missing dep > should output parseable signaling missing peer dep in problems 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-deduped-missing-dep +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-deduped-missing-dep +-- a@1.0.0 | \`-- UNMET DEPENDENCY b@^1.0.0 deduped \`-- UNMET DEPENDENCY b@^1.0.0 @@ -353,20 +353,20 @@ test-npm-ls@1.0.0 {CWD}/ls-ls-deduped-missing-dep ` exports[`test/lib/ls.js TAP ls default --depth value should be 0 > should output tree containing only top-level dependencies 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-default-depth-value-should-be-0 +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-default---depth-value-should-be-0 +-- foo@1.0.0 \`-- lorem@1.0.0 ` exports[`test/lib/ls.js TAP ls empty location > should print empty result 1`] = ` -{CWD}/ls-ls-empty-location +{CWD}/tap-testdir-ls-ls-empty-location \`-- (empty) ` exports[`test/lib/ls.js TAP ls extraneous deps > should output containing problems info 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-extraneous-deps +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-extraneous-deps +-- foo@1.0.0 | \`-- bar@1.0.0 \`-- lorem@1.0.0 extraneous @@ -374,19 +374,19 @@ test-npm-ls@1.0.0 {CWD}/ls-ls-extraneous-deps ` exports[`test/lib/ls.js TAP ls filter pkg arg using depth option > should list a in top-level only 1`] = ` -test-pkg-arg-filter-with-depth-opt@1.0.0 {CWD}/ls-ls-filter-pkg-arg-using-depth-option +test-pkg-arg-filter-with-depth-opt@1.0.0 {CWD}/tap-testdir-ls-ls-filter-pkg-arg-using-depth-option \`-- a@1.0.0 ` exports[`test/lib/ls.js TAP ls filter pkg arg using depth option > should print empty results msg 1`] = ` -test-pkg-arg-filter-with-depth-opt@1.0.0 {CWD}/ls-ls-filter-pkg-arg-using-depth-option +test-pkg-arg-filter-with-depth-opt@1.0.0 {CWD}/tap-testdir-ls-ls-filter-pkg-arg-using-depth-option \`-- (empty) ` exports[`test/lib/ls.js TAP ls filter pkg arg using depth option > should print expected result 1`] = ` -test-pkg-arg-filter-with-depth-opt@1.0.0 {CWD}/ls-ls-filter-pkg-arg-using-depth-option +test-pkg-arg-filter-with-depth-opt@1.0.0 {CWD}/tap-testdir-ls-ls-filter-pkg-arg-using-depth-option \`-- b@1.0.0 \`-- c@1.0.0 \`-- d@1.0.0 @@ -394,7 +394,7 @@ test-pkg-arg-filter-with-depth-opt@1.0.0 {CWD}/ls-ls-filter-pkg-arg-using-depth- ` exports[`test/lib/ls.js TAP ls filtering by child of missing dep > should print tree and not duplicate child of missing items 1`] = ` -filter-by-child-of-missing-dep@1.0.0 {CWD}/ls-ls-filtering-by-child-of-missing-dep +filter-by-child-of-missing-dep@1.0.0 {CWD}/tap-testdir-ls-ls-filtering-by-child-of-missing-dep +-- b@1.0.0 extraneous | \`-- c@1.0.0 deduped +-- c@1.0.0 extraneous @@ -404,13 +404,13 @@ filter-by-child-of-missing-dep@1.0.0 {CWD}/ls-ls-filtering-by-child-of-missing-d ` exports[`test/lib/ls.js TAP ls from and resolved properties > should not be printed in tree output 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-from-and-resolved-properties +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-from-and-resolved-properties \`-- simple-output@2.1.1 ` exports[`test/lib/ls.js TAP ls global > should print tree and not mark top-level items extraneous 1`] = ` -{CWD}/ls-ls-global +{CWD}/tap-testdir-ls-ls-global +-- a@1.0.0 \`-- b@1.0.0 \`-- c@1.0.0 @@ -418,7 +418,7 @@ exports[`test/lib/ls.js TAP ls global > should print tree and not mark top-level ` exports[`test/lib/ls.js TAP ls invalid deduped dep > should output tree signaling mismatching peer dep in problems 1`] = ` -invalid-deduped-dep@1.0.0 {CWD}/ls-ls-invalid-deduped-dep +invalid-deduped-dep@1.0.0 {CWD}/tap-testdir-ls-ls-invalid-deduped-dep +-- a@1.0.0 | \`-- b@1.0.0 deduped invalid \`-- b@1.0.0 invalid @@ -426,7 +426,7 @@ exports[`test/lib/ls.js TAP ls invalid deduped dep > should output tree signalin ` exports[`test/lib/ls.js TAP ls invalid peer dep > should output tree signaling mismatching peer dep in problems 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-invalid-peer-dep +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-invalid-peer-dep +-- dev-dep@1.0.0 | \`-- foo@1.0.0 | \`-- bar@1.0.0 @@ -439,33 +439,33 @@ test-npm-ls@1.0.0 {CWD}/ls-ls-invalid-peer-dep ` exports[`test/lib/ls.js TAP ls json read problems > should print empty result 1`] = ` -{CWD}/ls-ls-json-read-problems +{CWD}/tap-testdir-ls-ls-json-read-problems \`-- (empty) ` exports[`test/lib/ls.js TAP ls loading a tree containing workspaces > should filter single workspace 1`] = ` -filter-by-child-of-missing-dep@1.0.0 {CWD}/ls-ls-loading-a-tree-containing-workspaces -\`-- a@1.0.0 -> {CWD}/ls-ls-loading-a-tree-containing-workspaces/a +filter-by-child-of-missing-dep@1.0.0 {CWD}/tap-testdir-ls-ls-loading-a-tree-containing-workspaces +\`-- a@1.0.0 -> {CWD}/tap-testdir-ls-ls-loading-a-tree-containing-workspaces/a ` exports[`test/lib/ls.js TAP ls loading a tree containing workspaces > should list workspaces properly 1`] = ` -filter-by-child-of-missing-dep@1.0.0 {CWD}/ls-ls-loading-a-tree-containing-workspaces -+-- a@1.0.0 -> {CWD}/ls-ls-loading-a-tree-containing-workspaces/a +filter-by-child-of-missing-dep@1.0.0 {CWD}/tap-testdir-ls-ls-loading-a-tree-containing-workspaces ++-- a@1.0.0 -> {CWD}/tap-testdir-ls-ls-loading-a-tree-containing-workspaces/a | \`-- c@1.0.0 -\`-- b@1.0.0 -> {CWD}/ls-ls-loading-a-tree-containing-workspaces/b +\`-- b@1.0.0 -> {CWD}/tap-testdir-ls-ls-loading-a-tree-containing-workspaces/b ` exports[`test/lib/ls.js TAP ls missing package.json > should log all extraneous deps on error msg 1`] = ` -extraneous: bar@1.0.0 {CWD}/ls-ls-missing-package-json/node_modules/bar -extraneous: foo@1.0.0 {CWD}/ls-ls-missing-package-json/node_modules/foo -extraneous: lorem@1.0.0 {CWD}/ls-ls-missing-package-json/node_modules/lorem +extraneous: bar@1.0.0 {CWD}/tap-testdir-ls-ls-missing-package.json/node_modules/bar +extraneous: foo@1.0.0 {CWD}/tap-testdir-ls-ls-missing-package.json/node_modules/foo +extraneous: lorem@1.0.0 {CWD}/tap-testdir-ls-ls-missing-package.json/node_modules/lorem ` exports[`test/lib/ls.js TAP ls missing package.json > should output tree missing name/version of top-level package 1`] = ` -{CWD}/ls-ls-missing-package-json +{CWD}/tap-testdir-ls-ls-missing-package.json +-- bar@1.0.0 extraneous +-- foo@1.0.0 extraneous | \`-- bar@1.0.0 deduped @@ -474,7 +474,7 @@ exports[`test/lib/ls.js TAP ls missing package.json > should output tree missing ` exports[`test/lib/ls.js TAP ls missing/invalid/extraneous > should output tree containing missing, invalid, extraneous labels 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-missing-invalid-extraneous +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-missing-invalid-extraneous +-- foo@1.0.0 invalid | \`-- bar@1.0.0 +-- UNMET DEPENDENCY ipsum@^1.0.0 @@ -483,7 +483,7 @@ test-npm-ls@1.0.0 {CWD}/ls-ls-missing-invalid-extraneous ` exports[`test/lib/ls.js TAP ls no args > should output tree representation of dependencies structure 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-no-args +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-no-args +-- foo@1.0.0 | \`-- bar@1.0.0 \`-- lorem@1.0.0 @@ -491,21 +491,21 @@ test-npm-ls@1.0.0 {CWD}/ls-ls-no-args ` exports[`test/lib/ls.js TAP ls print deduped symlinks > should output tree containing linked deps 1`] = ` -print-deduped-symlinks@1.0.0 {CWD}/ls-ls-print-deduped-symlinks +print-deduped-symlinks@1.0.0 {CWD}/tap-testdir-ls-ls-print-deduped-symlinks +-- a@1.0.0 -| \`-- b@1.0.0 deduped -> {CWD}/ls-ls-print-deduped-symlinks/b -\`-- b@1.0.0 -> {CWD}/ls-ls-print-deduped-symlinks/b +| \`-- b@1.0.0 deduped -> {CWD}/tap-testdir-ls-ls-print-deduped-symlinks/b +\`-- b@1.0.0 -> {CWD}/tap-testdir-ls-ls-print-deduped-symlinks/b ` exports[`test/lib/ls.js TAP ls resolved points to git ref > should output tree containing git refs 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-resolved-points-to-git-ref +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-resolved-points-to-git-ref \`-- abbrev@1.1.1 (git+ssh://git@github.com/isaacs/abbrev-js.git#b8f3a2fc0c3bb8ffd8b0d0072cc6b5a3667e963c) ` exports[`test/lib/ls.js TAP ls unmet optional dep > should output tree with empty entry for missing optional deps 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-unmet-optional-dep +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-unmet-optional-dep +-- dev-dep@1.0.0 | \`-- foo@1.0.0 | \`-- bar@1.0.0 @@ -519,19 +519,19 @@ exports[`test/lib/ls.js TAP ls unmet optional dep > should output tree with empt ` exports[`test/lib/ls.js TAP ls unmet peer dep > should output tree signaling missing peer dep in problems 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-unmet-peer-dep +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-unmet-peer-dep \`-- UNMET DEPENDENCY peer-dep@* ` exports[`test/lib/ls.js TAP ls using aliases > should output tree containing aliases 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-using-aliases +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-using-aliases \`-- a@npm:b@1.0.0 ` exports[`test/lib/ls.js TAP ls with args and dedupe entries > should print tree output containing deduped ref 1`] = ` -dedupe-entries@1.0.0 {CWD}/ls-ls-with-args-and-dedupe-entries +dedupe-entries@1.0.0 {CWD}/tap-testdir-ls-ls-with-args-and-dedupe-entries +-- @npmcli/a@1.0.0 | \`-- @npmcli/b@1.1.2 deduped +-- @npmcli/b@1.1.2 @@ -541,7 +541,7 @@ exports[`test/lib/ls.js TAP ls with args and dedupe entries > should print tree ` exports[`test/lib/ls.js TAP ls with args and different order of items > should print tree output containing deduped ref 1`] = ` -dedupe-entries@1.0.0 {CWD}/ls-ls-with-args-and-different-order-of-items +dedupe-entries@1.0.0 {CWD}/tap-testdir-ls-ls-with-args-and-different-order-of-items +-- @npmcli/a@1.0.0 | \`-- @npmcli/c@1.0.0 deduped +-- @npmcli/b@1.1.2 @@ -551,32 +551,32 @@ dedupe-entries@1.0.0 {CWD}/ls-ls-with-args-and-different-order-of-items ` exports[`test/lib/ls.js TAP ls with dot filter arg > should output tree contaning only occurrences of filtered by package and colored output 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-with-dot-filter-arg +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-with-dot-filter-arg \`-- (empty) ` exports[`test/lib/ls.js TAP ls with filter arg > should output tree contaning only occurrences of filtered by package and colored output 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-with-filter-arg +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-with-filter-arg \`-- lorem@1.0.0  ` exports[`test/lib/ls.js TAP ls with filter arg nested dep > should output tree contaning only occurrences of filtered package and its ancestors 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-with-filter-arg-nested-dep +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-with-filter-arg-nested-dep \`-- foo@1.0.0 \`-- bar@1.0.0 ` exports[`test/lib/ls.js TAP ls with missing filter arg > should output tree containing no dependencies info 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-with-missing-filter-arg +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-with-missing-filter-arg \`-- (empty) ` exports[`test/lib/ls.js TAP ls with multiple filter args > should output tree contaning only occurrences of multiple filtered packages and their ancestors 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-with-multiple-filter-args +test-npm-ls@1.0.0 {CWD}/tap-testdir-ls-ls-with-multiple-filter-args +-- foo@1.0.0 | \`-- bar@1.0.0 \`-- lorem@1.0.0 @@ -584,7 +584,7 @@ test-npm-ls@1.0.0 {CWD}/ls-ls-with-multiple-filter-args ` exports[`test/lib/ls.js TAP ls with no args dedupe entries > should print tree output containing deduped ref 1`] = ` -dedupe-entries@1.0.0 {CWD}/ls-ls-with-no-args-dedupe-entries +dedupe-entries@1.0.0 {CWD}/tap-testdir-ls-ls-with-no-args-dedupe-entries +-- @npmcli/a@1.0.0 | \`-- @npmcli/b@1.1.2 deduped +-- @npmcli/b@1.1.2 @@ -594,7 +594,7 @@ dedupe-entries@1.0.0 {CWD}/ls-ls-with-no-args-dedupe-entries ` exports[`test/lib/ls.js TAP ls with no args dedupe entries and not displaying all > should print tree output containing deduped ref 1`] = ` -dedupe-entries@1.0.0 {CWD}/ls-ls-with-no-args-dedupe-entries-and-not-displaying-all +dedupe-entries@1.0.0 {CWD}/tap-testdir-ls-ls-with-no-args-dedupe-entries-and-not-displaying-all +-- @npmcli/a@1.0.0 +-- @npmcli/b@1.1.2 \`-- @npmcli/c@1.0.0 diff --git a/deps/npm/tap-snapshots/test/lib/outdated.js.test.cjs b/deps/npm/tap-snapshots/test/lib/outdated.js.test.cjs new file mode 100644 index 00000000000000..e57d7110b2275a --- /dev/null +++ b/deps/npm/tap-snapshots/test/lib/outdated.js.test.cjs @@ -0,0 +1,154 @@ +/* IMPORTANT + * This snapshot file is auto-generated, but designed for humans. + * It should be checked into source control and tracked carefully. + * Re-generate by setting TAP_SNAPSHOT=1 and running tests. + * Make sure to inspect the output below. Do not ignore changes! + */ +'use strict' +exports[`test/lib/outdated.js TAP should display outdated deps outdated --all > must match snapshot 1`] = ` + +Package Current Wanted Latest Location Depended by +alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha tap-testdir-outdated-should-display-outdated-deps +beta 1.0.0 1.0.1 1.0.1 node_modules/beta tap-testdir-outdated-should-display-outdated-deps +gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma tap-testdir-outdated-should-display-outdated-deps +theta MISSING 1.0.1 1.0.1 - tap-testdir-outdated-should-display-outdated-deps +` + +exports[`test/lib/outdated.js TAP should display outdated deps outdated --json --long > must match snapshot 1`] = ` + +{ + "alpha": { + "current": "1.0.0", + "wanted": "1.0.1", + "latest": "1.0.1", + "dependent": "tap-testdir-outdated-should-display-outdated-deps", + "location": "{CWD}/test/lib/tap-testdir-outdated-should-display-outdated-deps/node_modules/alpha", + "type": "dependencies" + }, + "beta": { + "current": "1.0.0", + "wanted": "1.0.1", + "latest": "1.0.1", + "dependent": "tap-testdir-outdated-should-display-outdated-deps", + "location": "{CWD}/test/lib/tap-testdir-outdated-should-display-outdated-deps/node_modules/beta", + "type": "peerDependencies" + }, + "gamma": { + "current": "1.0.1", + "wanted": "1.0.1", + "latest": "2.0.0", + "dependent": "tap-testdir-outdated-should-display-outdated-deps", + "location": "{CWD}/test/lib/tap-testdir-outdated-should-display-outdated-deps/node_modules/gamma", + "type": "dependencies" + }, + "theta": { + "wanted": "1.0.1", + "latest": "1.0.1", + "dependent": "tap-testdir-outdated-should-display-outdated-deps", + "type": "dependencies" + } +} +` + +exports[`test/lib/outdated.js TAP should display outdated deps outdated --json > must match snapshot 1`] = ` + +{ + "alpha": { + "current": "1.0.0", + "wanted": "1.0.1", + "latest": "1.0.1", + "dependent": "tap-testdir-outdated-should-display-outdated-deps", + "location": "{CWD}/test/lib/tap-testdir-outdated-should-display-outdated-deps/node_modules/alpha" + }, + "beta": { + "current": "1.0.0", + "wanted": "1.0.1", + "latest": "1.0.1", + "dependent": "tap-testdir-outdated-should-display-outdated-deps", + "location": "{CWD}/test/lib/tap-testdir-outdated-should-display-outdated-deps/node_modules/beta" + }, + "gamma": { + "current": "1.0.1", + "wanted": "1.0.1", + "latest": "2.0.0", + "dependent": "tap-testdir-outdated-should-display-outdated-deps", + "location": "{CWD}/test/lib/tap-testdir-outdated-should-display-outdated-deps/node_modules/gamma" + }, + "theta": { + "wanted": "1.0.1", + "latest": "1.0.1", + "dependent": "tap-testdir-outdated-should-display-outdated-deps" + } +} +` + +exports[`test/lib/outdated.js TAP should display outdated deps outdated --long > must match snapshot 1`] = ` + +Package Current Wanted Latest Location Depended by Package Type Homepage +alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha tap-testdir-outdated-should-display-outdated-deps dependencies +beta 1.0.0 1.0.1 1.0.1 node_modules/beta tap-testdir-outdated-should-display-outdated-deps peerDependencies +gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma tap-testdir-outdated-should-display-outdated-deps dependencies +theta MISSING 1.0.1 1.0.1 - tap-testdir-outdated-should-display-outdated-deps dependencies +` + +exports[`test/lib/outdated.js TAP should display outdated deps outdated --omit=dev --omit=peer > must match snapshot 1`] = ` + +Package Current Wanted Latest Location Depended by +alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha tap-testdir-outdated-should-display-outdated-deps +gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma tap-testdir-outdated-should-display-outdated-deps +theta MISSING 1.0.1 1.0.1 - tap-testdir-outdated-should-display-outdated-deps +` + +exports[`test/lib/outdated.js TAP should display outdated deps outdated --omit=dev > must match snapshot 1`] = ` + +Package Current Wanted Latest Location Depended by +alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha tap-testdir-outdated-should-display-outdated-deps +beta 1.0.0 1.0.1 1.0.1 node_modules/beta tap-testdir-outdated-should-display-outdated-deps +gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma tap-testdir-outdated-should-display-outdated-deps +theta MISSING 1.0.1 1.0.1 - tap-testdir-outdated-should-display-outdated-deps +` + +exports[`test/lib/outdated.js TAP should display outdated deps outdated --omit=prod > must match snapshot 1`] = ` + +Package Current Wanted Latest Location Depended by +alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha tap-testdir-outdated-should-display-outdated-deps +beta 1.0.0 1.0.1 1.0.1 node_modules/beta tap-testdir-outdated-should-display-outdated-deps +gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma tap-testdir-outdated-should-display-outdated-deps +` + +exports[`test/lib/outdated.js TAP should display outdated deps outdated --parseable --long > must match snapshot 1`] = ` + +{CWD}/test/lib/tap-testdir-outdated-should-display-outdated-deps/node_modules/alpha:alpha@1.0.1:alpha@1.0.0:alpha@1.0.1:tap-testdir-outdated-should-display-outdated-deps:dependencies: +{CWD}/test/lib/tap-testdir-outdated-should-display-outdated-deps/node_modules/beta:beta@1.0.1:beta@1.0.0:beta@1.0.1:tap-testdir-outdated-should-display-outdated-deps:peerDependencies: +{CWD}/test/lib/tap-testdir-outdated-should-display-outdated-deps/node_modules/gamma:gamma@1.0.1:gamma@1.0.1:gamma@2.0.0:tap-testdir-outdated-should-display-outdated-deps:dependencies: +:theta@1.0.1:MISSING:theta@1.0.1:tap-testdir-outdated-should-display-outdated-deps:dependencies: +` + +exports[`test/lib/outdated.js TAP should display outdated deps outdated --parseable > must match snapshot 1`] = ` + +{CWD}/test/lib/tap-testdir-outdated-should-display-outdated-deps/node_modules/alpha:alpha@1.0.1:alpha@1.0.0:alpha@1.0.1:tap-testdir-outdated-should-display-outdated-deps +{CWD}/test/lib/tap-testdir-outdated-should-display-outdated-deps/node_modules/beta:beta@1.0.1:beta@1.0.0:beta@1.0.1:tap-testdir-outdated-should-display-outdated-deps +{CWD}/test/lib/tap-testdir-outdated-should-display-outdated-deps/node_modules/gamma:gamma@1.0.1:gamma@1.0.1:gamma@2.0.0:tap-testdir-outdated-should-display-outdated-deps +:theta@1.0.1:MISSING:theta@1.0.1:tap-testdir-outdated-should-display-outdated-deps +` + +exports[`test/lib/outdated.js TAP should display outdated deps outdated > must match snapshot 1`] = ` + +Package Current Wanted Latest Location Depended by +alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha tap-testdir-outdated-should-display-outdated-deps +beta 1.0.0 1.0.1 1.0.1 node_modules/beta tap-testdir-outdated-should-display-outdated-deps +gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma tap-testdir-outdated-should-display-outdated-deps +theta MISSING 1.0.1 1.0.1 - tap-testdir-outdated-should-display-outdated-deps +` + +exports[`test/lib/outdated.js TAP should display outdated deps outdated global > must match snapshot 1`] = ` + +Package Current Wanted Latest Location Depended by +alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha global +` + +exports[`test/lib/outdated.js TAP should display outdated deps outdated specific dep > must match snapshot 1`] = ` + +Package Current Wanted Latest Location Depended by +alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha tap-testdir-outdated-should-display-outdated-deps +` diff --git a/deps/npm/tap-snapshots/test-lib-owner.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/owner.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-owner.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/owner.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-profile.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/profile.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-profile.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/profile.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-publish.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/publish.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-publish.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/publish.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-search.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/search.js.test.cjs similarity index 95% rename from deps/npm/tap-snapshots/test-lib-search.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/search.js.test.cjs index 4b4dc75ea3e896..6544426ed5795f 100644 --- a/deps/npm/tap-snapshots/test-lib-search.js-TAP.test.js +++ b/deps/npm/tap-snapshots/test/lib/search.js.test.cjs @@ -11,10 +11,10 @@ No matches found for "foo" exports[`test/lib/search.js TAP search --searchexclude --searchopts > should have filtered expected search results 1`] = ` NAME | AUTHOR | DATE | VERSION | KEYWORDS -foo | =foo | prehistoric | 1.0.0 | +foo | =foo | prehistoric | 1.0.0 | ` exports[`test/lib/search.js TAP search > should have expected search results 1`] = ` -NAME | AUTHOR | DATE | VERSION | KEYWORDS -libnpm | =nlf… | 2019-07-16 | 3.0.1 | npm api package manager liblibnpmaccess | =nlf… | 2020-11-03 | 4.0.1 | @evocateur/libnpmaccess | =evocateur | 2019-07-16 | 3.1.2 | @evocateur/libnpmpublish | =evocateur | 2019-07-16 | 1.2.2 | libnpmorg | =nlf… | 2020-11-03 | 2.0.1 | libnpm npm package manager api orgs teamslibnpmsearch | =nlf… | 2020-12-08 | 3.1.0 | npm search api libnpmlibnpmteam | =nlf… | 2020-11-03 | 2.0.2 | libnpmhook | =nlf… | 2020-11-03 | 6.0.1 | npm hooks registry npm apilibnpmpublish | =nlf… | 2020-11-03 | 4.0.0 | libnpmfund | =nlf… | 2020-12-08 | 1.0.2 | npm npmcli libnpm cli git fund gitfund@npmcli/map-workspaces | =nlf… | 2020-09-30 | 1.0.1 | npm npmcli libnpm cli workspaces map-workspaceslibnpmversion | =nlf… | 2020-11-04 | 1.0.7 | @types/libnpmsearch | =types | 2019-09-26 | 2.0.1 | +NAME | AUTHOR | DATE | VERSION | KEYWORDS +libnpm | =nlf… | 2019-07-16 | 3.0.1 | npm api package manager liblibnpmaccess | =nlf… | 2020-11-03 | 4.0.1 | @evocateur/libnpmaccess | =evocateur | 2019-07-16 | 3.1.2 | @evocateur/libnpmpublish | =evocateur | 2019-07-16 | 1.2.2 | libnpmorg | =nlf… | 2020-11-03 | 2.0.1 | libnpm npm package manager api orgs teamslibnpmsearch | =nlf… | 2020-12-08 | 3.1.0 | npm search api libnpmlibnpmteam | =nlf… | 2020-11-03 | 2.0.2 | libnpmhook | =nlf… | 2020-11-03 | 6.0.1 | npm hooks registry npm apilibnpmpublish | =nlf… | 2020-11-03 | 4.0.0 | libnpmfund | =nlf… | 2020-12-08 | 1.0.2 | npm npmcli libnpm cli git fund gitfund@npmcli/map-workspaces | =nlf… | 2020-09-30 | 1.0.1 | npm npmcli libnpm cli workspaces map-workspaceslibnpmversion | =nlf… | 2020-11-04 | 1.0.7 | @types/libnpmsearch | =types | 2019-09-26 | 2.0.1 | ` diff --git a/deps/npm/tap-snapshots/test-lib-stars.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/stars.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-stars.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/stars.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-team.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/team.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-team.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/team.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-utils-cmd-list.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/utils/cmd-list.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-utils-cmd-list.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/utils/cmd-list.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-utils-config-definition.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/utils/config/definition.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-utils-config-definition.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/utils/config/definition.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-utils-config-definitions.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-utils-config-definitions.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-utils-config-index.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/utils/config/index.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-utils-config-index.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/utils/config/index.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-utils-error-handler.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/utils/error-handler.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-utils-error-handler.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/utils/error-handler.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-utils-error-message.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/utils/error-message.js.test.cjs similarity index 67% rename from deps/npm/tap-snapshots/test-lib-utils-error-message.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/utils/error-message.js.test.cjs index bcf5144499f244..18101f67b7374f 100644 --- a/deps/npm/tap-snapshots/test-lib-utils-error-message.js-TAP.test.js +++ b/deps/npm/tap-snapshots/test/lib/utils/error-message.js.test.cjs @@ -28,7 +28,10 @@ Object { ], Array [ "404", - "\\nNote that you can also install from a", + String( + + Note that you can also install from a + ), ], Array [ "404", @@ -67,7 +70,10 @@ Object { ], Array [ "404", - "\\nNote that you can also install from a", + String( + + Note that you can also install from a + ), ], Array [ "404", @@ -113,7 +119,10 @@ Object { ], Array [ "404", - "\\nNote that you can also install from a", + String( + + Note that you can also install from a + ), ], Array [ "404", @@ -134,7 +143,11 @@ Object { "detail": Array [ Array [ "notsup", - "Not compatible with your version of node/npm: some@package\\nRequired: undefined\\nActual: {\\"npm\\":\\"123.69.420-npm\\",\\"node\\":\\"99.99.99\\"}", + String( + Not compatible with your version of node/npm: some@package + Required: undefined + Actual: {"npm":"123.69.420-npm","node":"99.99.99"} + ), ], ], "summary": Array [ @@ -155,7 +168,12 @@ Object { "detail": Array [ Array [ "notsup", - "Valid OS: !yours,mine\\nValid Arch: x420,x69\\nActual OS: posix\\nActual Arch: x64", + String( + Valid OS: !yours,mine + Valid Arch: x420,x69 + Actual OS: posix + Actual Arch: x64 + ), ], ], "summary": Array [ @@ -172,7 +190,12 @@ Object { "detail": Array [ Array [ "notsup", - "Valid OS: !yours\\nValid Arch: x420\\nActual OS: posix\\nActual Arch: x64", + String( + Valid OS: !yours + Valid Arch: x420 + Actual OS: posix + Actual Arch: x64 + ), ], ], "summary": Array [ @@ -246,7 +269,15 @@ Object { "detail": Array [ Array [ "", - "\\nThe operation was rejected by your operating system.\\nIt is likely you do not have the permissions to access this file as the current user\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", + String( + + The operation was rejected by your operating system. + It is likely you do not have the permissions to access this file as the current user + + If you believe this might be a permissions issue, please double-check the + permissions of the file and its containing directories, or try running + the command again as root/Administrator. + ), ], ], "summary": Array [ @@ -271,7 +302,15 @@ Object { "detail": Array [ Array [ "", - "\\nThe operation was rejected by your operating system.\\nIt is likely you do not have the permissions to access this file as the current user\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", + String( + + The operation was rejected by your operating system. + It is likely you do not have the permissions to access this file as the current user + + If you believe this might be a permissions issue, please double-check the + permissions of the file and its containing directories, or try running + the command again as root/Administrator. + ), ], ], "summary": Array [ @@ -296,7 +335,15 @@ Object { "detail": Array [ Array [ "", - "\\nThe operation was rejected by your operating system.\\nIt is likely you do not have the permissions to access this file as the current user\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", + String( + + The operation was rejected by your operating system. + It is likely you do not have the permissions to access this file as the current user + + If you believe this might be a permissions issue, please double-check the + permissions of the file and its containing directories, or try running + the command again as root/Administrator. + ), ], ], "summary": Array [ @@ -321,7 +368,15 @@ Object { "detail": Array [ Array [ "", - "\\nThe operation was rejected by your operating system.\\nIt is likely you do not have the permissions to access this file as the current user\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", + String( + + The operation was rejected by your operating system. + It is likely you do not have the permissions to access this file as the current user + + If you believe this might be a permissions issue, please double-check the + permissions of the file and its containing directories, or try running + the command again as root/Administrator. + ), ], ], "summary": Array [ @@ -346,7 +401,15 @@ Object { "detail": Array [ Array [ "", - "\\nThe operation was rejected by your operating system.\\nIt is likely you do not have the permissions to access this file as the current user\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", + String( + + The operation was rejected by your operating system. + It is likely you do not have the permissions to access this file as the current user + + If you believe this might be a permissions issue, please double-check the + permissions of the file and its containing directories, or try running + the command again as root/Administrator. + ), ], ], "summary": Array [ @@ -372,7 +435,14 @@ Object { "summary": Array [ Array [ "", - "\\nYour cache folder contains root-owned files, due to a bug in\\nprevious versions of npm which has since been addressed.\\n\\nTo permanently fix this problem, please run:\\n sudo chown -R 69:420 \\"/some/cache/dir\\"", + String( + + Your cache folder contains root-owned files, due to a bug in + previous versions of npm which has since been addressed. + + To permanently fix this problem, please run: + sudo chown -R 69:420 "/some/cache/dir" + ), ], ], } @@ -392,7 +462,14 @@ Object { "summary": Array [ Array [ "", - "\\nYour cache folder contains root-owned files, due to a bug in\\nprevious versions of npm which has since been addressed.\\n\\nTo permanently fix this problem, please run:\\n sudo chown -R 69:420 \\"/some/cache/dir\\"", + String( + + Your cache folder contains root-owned files, due to a bug in + previous versions of npm which has since been addressed. + + To permanently fix this problem, please run: + sudo chown -R 69:420 "/some/cache/dir" + ), ], ], } @@ -412,7 +489,14 @@ Object { "summary": Array [ Array [ "", - "\\nYour cache folder contains root-owned files, due to a bug in\\nprevious versions of npm which has since been addressed.\\n\\nTo permanently fix this problem, please run:\\n sudo chown -R 69:420 \\"/some/cache/dir\\"", + String( + + Your cache folder contains root-owned files, due to a bug in + previous versions of npm which has since been addressed. + + To permanently fix this problem, please run: + sudo chown -R 69:420 "/some/cache/dir" + ), ], ], } @@ -431,7 +515,16 @@ Object { "detail": Array [ Array [ "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", + String( + + The operation was rejected by your operating system. + It's possible that the file was already in use (by a text editor or antivirus), + or that you lack permissions to access it. + + If you believe this might be a permissions issue, please double-check the + permissions of the file and its containing directories, or try running + the command again as root/Administrator. + ), ], ], "summary": Array [ @@ -456,7 +549,16 @@ Object { "detail": Array [ Array [ "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", + String( + + The operation was rejected by your operating system. + It's possible that the file was already in use (by a text editor or antivirus), + or that you lack permissions to access it. + + If you believe this might be a permissions issue, please double-check the + permissions of the file and its containing directories, or try running + the command again as root/Administrator. + ), ], ], "summary": Array [ @@ -481,7 +583,16 @@ Object { "detail": Array [ Array [ "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", + String( + + The operation was rejected by your operating system. + It's possible that the file was already in use (by a text editor or antivirus), + or that you lack permissions to access it. + + If you believe this might be a permissions issue, please double-check the + permissions of the file and its containing directories, or try running + the command again as root/Administrator. + ), ], ], "summary": Array [ @@ -506,7 +617,16 @@ Object { "detail": Array [ Array [ "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", + String( + + The operation was rejected by your operating system. + It's possible that the file was already in use (by a text editor or antivirus), + or that you lack permissions to access it. + + If you believe this might be a permissions issue, please double-check the + permissions of the file and its containing directories, or try running + the command again as root/Administrator. + ), ], ], "summary": Array [ @@ -531,7 +651,16 @@ Object { "detail": Array [ Array [ "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", + String( + + The operation was rejected by your operating system. + It's possible that the file was already in use (by a text editor or antivirus), + or that you lack permissions to access it. + + If you believe this might be a permissions issue, please double-check the + permissions of the file and its containing directories, or try running + the command again as root/Administrator. + ), ], ], "summary": Array [ @@ -556,7 +685,16 @@ Object { "detail": Array [ Array [ "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", + String( + + The operation was rejected by your operating system. + It's possible that the file was already in use (by a text editor or antivirus), + or that you lack permissions to access it. + + If you believe this might be a permissions issue, please double-check the + permissions of the file and its containing directories, or try running + the command again as root/Administrator. + ), ], ], "summary": Array [ @@ -581,7 +719,16 @@ Object { "detail": Array [ Array [ "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", + String( + + The operation was rejected by your operating system. + It's possible that the file was already in use (by a text editor or antivirus), + or that you lack permissions to access it. + + If you believe this might be a permissions issue, please double-check the + permissions of the file and its containing directories, or try running + the command again as root/Administrator. + ), ], ], "summary": Array [ @@ -606,7 +753,16 @@ Object { "detail": Array [ Array [ "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", + String( + + The operation was rejected by your operating system. + It's possible that the file was already in use (by a text editor or antivirus), + or that you lack permissions to access it. + + If you believe this might be a permissions issue, please double-check the + permissions of the file and its containing directories, or try running + the command again as root/Administrator. + ), ], ], "summary": Array [ @@ -695,7 +851,11 @@ Object { "detail": Array [ Array [ "", - "You can provide a one-time password by passing --otp= to the command you ran.\\nIf you already provided a one-time password then it is likely that you either typoed\\nit, or it timed out. Please try again.", + String( + You can provide a one-time password by passing --otp= to the command you ran. + If you already provided a one-time password then it is likely that you either typoed + it, or it timed out. Please try again. + ), ], ], "summary": Array [ @@ -712,7 +872,11 @@ Object { "detail": Array [ Array [ "", - "You can provide a one-time password by passing --otp= to the command you ran.\\nIf you already provided a one-time password then it is likely that you either typoed\\nit, or it timed out. Please try again.", + String( + You can provide a one-time password by passing --otp= to the command you ran. + If you already provided a one-time password then it is likely that you either typoed + it, or it timed out. Please try again. + ), ], ], "summary": Array [ @@ -729,7 +893,17 @@ Object { "detail": Array [ Array [ "", - "If you were trying to login, change your password, create an\\nauthentication token or enable two-factor authentication then\\nthat means you likely typed your password in incorrectly.\\nPlease try again, or recover your password at:\\n https://www.npmjs.com/forgot\\n\\nIf you were doing some other operation then your saved credentials are\\nprobably out of date. To correct this please try logging in again with:\\n npm login", + String( + If you were trying to login, change your password, create an + authentication token or enable two-factor authentication then + that means you likely typed your password in incorrectly. + Please try again, or recover your password at: + https://www.npmjs.com/forgot + + If you were doing some other operation then your saved credentials are + probably out of date. To correct this please try logging in again with: + npm login + ), ], ], "summary": Array [ @@ -746,7 +920,10 @@ Object { "detail": Array [ Array [ "", - "To correct this please trying logging in again with:\\n npm login", + String( + To correct this please trying logging in again with: + npm login + ), ], ], "summary": Array [ @@ -820,7 +997,13 @@ Object { "detail": Array [ Array [ "network", - "This is a problem related to network connectivity.\\nIn most cases you are behind a proxy or have bad network settings.\\n\\nIf you are behind a proxy, please make sure that the\\n'proxy' config is set properly. See: 'npm help config'", + String( + This is a problem related to network connectivity. + In most cases you are behind a proxy or have bad network settings. + + If you are behind a proxy, please make sure that the + 'proxy' config is set properly. See: 'npm help config' + ), ], ], "summary": Array [ @@ -837,7 +1020,13 @@ Object { "detail": Array [ Array [ "network", - "This is a problem related to network connectivity.\\nIn most cases you are behind a proxy or have bad network settings.\\n\\nIf you are behind a proxy, please make sure that the\\n'proxy' config is set properly. See: 'npm help config'", + String( + This is a problem related to network connectivity. + In most cases you are behind a proxy or have bad network settings. + + If you are behind a proxy, please make sure that the + 'proxy' config is set properly. See: 'npm help config' + ), ], ], "summary": Array [ @@ -854,7 +1043,13 @@ Object { "detail": Array [ Array [ "network", - "This is a problem related to network connectivity.\\nIn most cases you are behind a proxy or have bad network settings.\\n\\nIf you are behind a proxy, please make sure that the\\n'proxy' config is set properly. See: 'npm help config'", + String( + This is a problem related to network connectivity. + In most cases you are behind a proxy or have bad network settings. + + If you are behind a proxy, please make sure that the + 'proxy' config is set properly. See: 'npm help config' + ), ], ], "summary": Array [ @@ -871,7 +1066,11 @@ Object { "detail": Array [ Array [ "notsup", - "Not compatible with your version of node/npm: some@package\\nRequired: undefined\\nActual: {\\"npm\\":\\"123.69.420-npm\\",\\"node\\":\\"123.69.420-node\\"}", + String( + Not compatible with your version of node/npm: some@package + Required: undefined + Actual: {"npm":"123.69.420-npm","node":"123.69.420-node"} + ), ], ], "summary": Array [ @@ -892,7 +1091,10 @@ Object { "detail": Array [ Array [ "nospc", - "There appears to be insufficient space on your system to finish.\\nClear up some disk space and try again.", + String( + There appears to be insufficient space on your system to finish. + Clear up some disk space and try again. + ), ], ], "summary": Array [ @@ -909,7 +1111,10 @@ Object { "detail": Array [ Array [ "rofs", - "Often virtualized file systems, or other file systems\\nthat don't support symlinks, give this error.", + String( + Often virtualized file systems, or other file systems + that don't support symlinks, give this error. + ), ], ], "summary": Array [ @@ -926,7 +1131,11 @@ Object { "detail": Array [ Array [ "enoent", - "This is related to npm not being able to find a file.\\n\\nCheck if the file '/some/file' is present.", + String( + This is related to npm not being able to find a file. + + Check if the file '/some/file' is present. + ), ], ], "summary": Array [ @@ -943,7 +1152,10 @@ Object { "detail": Array [ Array [ "typeerror", - "This is an error with npm itself. Please report this error at:\\n https://github.com/npm/cli/issues", + String( + This is an error with npm itself. Please report this error at: + https://github.com/npm/cli/issues + ), ], ], "summary": Array [ @@ -960,7 +1172,10 @@ Object { "detail": Array [ Array [ "typeerror", - "This is an error with npm itself. Please report this error at:\\n https://github.com/npm/cli/issues", + String( + This is an error with npm itself. Please report this error at: + https://github.com/npm/cli/issues + ), ], ], "summary": Array [ @@ -977,7 +1192,10 @@ Object { "detail": Array [ Array [ "typeerror", - "This is an error with npm itself. Please report this error at:\\n https://github.com/npm/cli/issues", + String( + This is an error with npm itself. Please report this error at: + https://github.com/npm/cli/issues + ), ], ], "summary": Array [ @@ -1015,7 +1233,10 @@ Object { "detail": Array [ Array [ "typeerror", - "This is an error with npm itself. Please report this error at:\\n https://github.com/npm/cli/issues", + String( + This is an error with npm itself. Please report this error at: + https://github.com/npm/cli/issues + ), ], ], "summary": Array [ @@ -1032,7 +1253,10 @@ Object { "detail": Array [ Array [ "notarget", - "In most cases you or one of your dependencies are requesting\\na package version that doesn't exist.", + String( + In most cases you or one of your dependencies are requesting + a package version that doesn't exist. + ), ], ], "summary": Array [ @@ -1049,7 +1273,11 @@ Object { "detail": Array [ Array [ "403", - "In most cases, you or one of your dependencies are requesting\\na package version that is forbidden by your security policy, or\\non a server you do not have access to.", + String( + In most cases, you or one of your dependencies are requesting + a package version that is forbidden by your security policy, or + on a server you do not have access to. + ), ], ], "summary": Array [ @@ -1066,7 +1294,11 @@ Object { "detail": Array [ Array [ "", - "\\nIf you are behind a proxy, please make sure that the\\n'proxy' config is set properly. See: 'npm help config'", + String( + + If you are behind a proxy, please make sure that the + 'proxy' config is set properly. See: 'npm help config' + ), ], ], "summary": Array [ @@ -1088,7 +1320,11 @@ Object { "detail": Array [ Array [ "", - "\\nFailed using git.\\nPlease check if you have git installed and in your PATH.", + String( + + Failed using git. + Please check if you have git installed and in your PATH. + ), ], ], "summary": Array [ @@ -1134,7 +1370,10 @@ Object { "detail": Array [ Array [ "git", - "Refusing to remove it. Update manually,\\nor move it out of the way first.", + String( + Refusing to remove it. Update manually, + or move it out of the way first. + ), ], ], "summary": Array [ @@ -1197,7 +1436,13 @@ Object { "detail": Array [ Array [ "network", - "This is a problem related to network connectivity.\\nIn most cases you are behind a proxy or have bad network settings.\\n\\nIf you are behind a proxy, please make sure that the\\n'proxy' config is set properly. See: 'npm help config'", + String( + This is a problem related to network connectivity. + In most cases you are behind a proxy or have bad network settings. + + If you are behind a proxy, please make sure that the + 'proxy' config is set properly. See: 'npm help config' + ), ], ], "summary": Array [ @@ -1226,7 +1471,10 @@ Object { "detail": Array [ Array [ "JSON.parse", - "Failed to parse JSON data.\\nNote: package.json must be actual JSON, not just JavaScript.", + String( + Failed to parse JSON data. + Note: package.json must be actual JSON, not just JavaScript. + ), ], ], "summary": Array [ @@ -1243,7 +1491,10 @@ Object { "detail": Array [ Array [ "JSON.parse", - "Failed to parse JSON data.\\nNote: package.json must be actual JSON, not just JavaScript.", + String( + Failed to parse JSON data. + Note: package.json must be actual JSON, not just JavaScript. + ), ], ], "summary": Array [ @@ -1260,7 +1511,13 @@ Object { "detail": Array [ Array [ "", - "Merge conflict detected in your package.json.\\n\\nPlease resolve the package.json conflict and retry the command:\\n\\n$ arg v", + String( + Merge conflict detected in your package.json. + + Please resolve the package.json conflict and retry the command: + + $ arg v + ), ], ], "summary": Array [], diff --git a/deps/npm/tap-snapshots/test-lib-utils-explain-dep.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/utils/explain-dep.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-utils-explain-dep.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/utils/explain-dep.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-utils-explain-eresolve.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/utils/explain-eresolve.js.test.cjs similarity index 100% rename from deps/npm/tap-snapshots/test-lib-utils-explain-eresolve.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/utils/explain-eresolve.js.test.cjs diff --git a/deps/npm/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js b/deps/npm/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs similarity index 81% rename from deps/npm/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js rename to deps/npm/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs index 2f5a479dbc4700..3247453549a0b2 100644 --- a/deps/npm/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js +++ b/deps/npm/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs @@ -166,9 +166,9 @@ npm help npm more involved overview All commands: access npm access - + Set access level on published packages - + Usage: npm access public [] npm access restricted [] @@ -179,62 +179,63 @@ All commands: npm access ls-packages [||] npm access ls-collaborators [ []] npm access edit [] - + Run "npm help access" for more info adduser npm adduser - + Add a registry user account - + Usage: npm adduser - + Options: [--registry ] [--scope <@scope>] [--always-auth] - + aliases: login, add-user - + Run "npm help adduser" for more info audit npm audit - + Run a security audit - + Usage: npm audit [fix] - + Options: - [--audit-level ] [--dry-run] [-f|--force] [--json] [--package-lock-only] [--production] - + [--audit-level ] [--dry-run] [-f|--force] + [--json] [--package-lock-only] [--production] + Run "npm help audit" for more info bin npm bin - + Display npm bin folder - + Usage: npm bin - + Options: [-g|--global] - + Run "npm help bin" for more info bugs npm bugs - + Report bugs for a package in a web browser - + Usage: npm bugs [] - + alias: issues - + Run "npm help bugs" for more info cache npm cache - + Manipulates packages cache - + Usage: npm cache add npm cache add @@ -243,232 +244,237 @@ All commands: npm cache add @ npm cache clean npm cache verify - + Run "npm help cache" for more info ci npm ci - + Install a project with a clean slate - + Usage: npm ci - + aliases: clean-install, ic, install-clean, isntall-clean - + Run "npm help ci" for more info completion npm completion - + Tab Completion for npm - + Usage: npm completion - + Run "npm help completion" for more info config npm config - + Manage the npm configuration files - + Usage: npm config set = [= ...] npm config get [ [ ...]] npm config delete [ ...] npm config list [--json] npm config edit - + alias: c - + Run "npm help config" for more info dedupe npm dedupe - + Reduce duplication in the package tree - + Usage: npm dedupe - + alias: ddp - + Run "npm help dedupe" for more info deprecate npm deprecate - + Deprecate a version of a package - + Usage: npm deprecate [@] - + Run "npm help deprecate" for more info diff npm diff - + The registry diff command - + Usage: npm diff [...] npm diff --diff= [...] npm diff --diff= [--diff=] [...] npm diff --diff= [--diff=] [...] npm diff [--diff-ignore-all-space] [--diff-name-only] [...] [...] - + Run "npm help diff" for more info dist-tag npm dist-tag - + Modify package distribution tags - + Usage: npm dist-tag add @ [] npm dist-tag rm npm dist-tag ls [] - + Options: - [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] + [-w|--workspace [-w|--workspace ...]] + [-ws|--workspaces] alias: dist-tags - + Run "npm help dist-tag" for more info docs npm docs - + Open documentation for a package in a web browser - + Usage: npm docs [ [ ...]] - + Options: - [--browser|--browser ] [--registry ] [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] + [--browser|--browser ] [--registry ] + [-w|--workspace [-w|--workspace ...]] + [-ws|--workspaces] alias: home - + Run "npm help docs" for more info doctor npm doctor - + Check your npm environment - + Usage: npm doctor - + Run "npm help doctor" for more info edit npm edit - + Edit an installed package - + Usage: npm edit [/...] - + Run "npm help edit" for more info exec npm exec - + Run a command from a local or remote npm package - + Usage: npm exec -- [@] [args...] npm exec --package=[@] -- [args...] npm exec -c ' [args...]' npm exec --package=foo -c ' [args...]' - + Options: - [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] + [-w|--workspace [-w|--workspace ...]] + [-ws|--workspaces] alias: x - + Run "npm help exec" for more info explain npm explain - + Explain installed packages - + Usage: npm explain - + alias: why - + Run "npm help explain" for more info explore npm explore - + Browse an installed package - + Usage: npm explore [ -- ] - + Run "npm help explore" for more info find-dupes npm find-dupes - + Find duplication in the package tree - + Usage: npm find-dupes - + Run "npm help find-dupes" for more info fund npm fund - + Retrieve funding information - + Usage: npm fund [[<@scope>/]] - + Options: - [--json] [--browser|--browser ] [--unicode] [--which ] - + [--json] [--browser|--browser ] [--unicode] + [--which ] + Run "npm help fund" for more info get npm get - + Get a value from the npm configuration - + Usage: npm get [ ...] (See \`npm config\`) - + Run "npm help get" for more info help npm help - + Get help on npm - + Usage: npm help [] - + alias: hlep - + Run "npm help help" for more info hook npm hook - + Manage registry hooks - + Usage: npm hook add [--type=] npm hook ls [pkg] npm hook rm npm hook update - + Run "npm help hook" for more info init npm init - + Create a package.json file - + Usage: npm init [--force|-f|--yes|-y|--scope] npm init <@scope> (same as \`npx <@scope>/create\`) npm init [<@scope>/] (same as \`npx [<@scope>/]create-\`) - + aliases: create, innit - + Run "npm help init" for more info install npm install - + Install a package - + Usage: npm install [<@scope>/] npm install [<@scope>/]@ @@ -480,29 +486,30 @@ All commands: npm install npm install npm install / - + Options: - [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer] [-E|--save-exact] - + [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer] + [-E|--save-exact] + aliases: i, in, ins, inst, insta, instal, isnt, isnta, isntal, add - + Run "npm help install" for more info install-ci-test npm install-ci-test - + Install a project with a clean slate and run tests - + Usage: npm install-ci-test - + alias: cit - + Run "npm help install-ci-test" for more info install-test npm install-test - + Install package(s) and run tests - + Usage: npm install-test [<@scope>/] npm install-test [<@scope>/]@ @@ -514,432 +521,446 @@ All commands: npm install-test npm install-test npm install-test / - + Options: - [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer] [-E|--save-exact] - + [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer] + [-E|--save-exact] + alias: it - + Run "npm help install-test" for more info link npm link - + Symlink a package folder - + Usage: npm link (in package dir) npm link [<@scope>/][@] - + alias: ln - + Run "npm help link" for more info ll npm ll - + List installed packages - + Usage: npm ll [[<@scope>/] ...] - + alias: la - + Run "npm help ll" for more info login npm adduser - + Add a registry user account - + Usage: npm adduser - + Options: [--registry ] [--scope <@scope>] [--always-auth] - + aliases: login, add-user - + Run "npm help adduser" for more info logout npm logout - + Log out of the registry - + Usage: npm logout - + Options: [--registry ] [--scope <@scope>] - + Run "npm help logout" for more info ls npm ls - + List installed packages - + Usage: npm ls npm ls [[<@scope>/] ...] - + alias: list - + Run "npm help ls" for more info org npm org - + Manage orgs - + Usage: npm org set orgname username [developer | admin | owner] npm org rm orgname username npm org ls orgname [] - + alias: ogr - + Run "npm help org" for more info outdated npm outdated - + Check for outdated packages - + Usage: npm outdated [[<@scope>/] ...] - + Run "npm help outdated" for more info owner npm owner - + Manage package owners - + Usage: npm owner add [<@scope>/] npm owner rm [<@scope>/] npm owner ls [<@scope>/] - + alias: author - + Run "npm help owner" for more info pack npm pack - + Create a tarball from a package - + Usage: npm pack [[<@scope>/]...] - + Options: - [--dry-run] [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] - + [--dry-run] + [-w|--workspace [-w|--workspace ...]] + [-ws|--workspaces] + Run "npm help pack" for more info ping npm ping - + Ping npm registry - + Usage: npm ping - + Options: [--registry ] - + Run "npm help ping" for more info prefix npm prefix - + Display prefix - + Usage: npm prefix [-g] - + Run "npm help prefix" for more info profile npm profile - + Change settings on your registry profile - + Usage: npm profile enable-2fa [auth-only|auth-and-writes] npm profile disable-2fa npm profile get [] npm profile set - + Run "npm help profile" for more info prune npm prune - + Remove extraneous packages - + Usage: npm prune [[<@scope>/]...] - + Options: [--production] - + Run "npm help prune" for more info publish npm publish - + Publish a package - + Usage: npm publish [] - + Options: [--tag ] [--access ] [--dry-run] - + Run "npm help publish" for more info rebuild npm rebuild - + Rebuild a package - + Usage: npm rebuild [[<@scope>/][@] ...] - + alias: rb - + Run "npm help rebuild" for more info repo npm repo - + Open package repository page in the browser - + Usage: npm repo [ [ ...]] - + Options: - [--browser|--browser ] [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] + [--browser|--browser ] + [-w|--workspace [-w|--workspace ...]] + [-ws|--workspaces] Run "npm help repo" for more info restart npm restart - + Restart a package - + Usage: npm restart [-- ] - + Run "npm help restart" for more info root npm root - + Display npm root - + Usage: npm root - + Options: [-g|--global] - + Run "npm help root" for more info run-script npm run-script - + Run arbitrary package scripts - + Usage: npm run-script [-- ] - + Options: - [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] + [-w|--workspace [-w|--workspace ...]] + [-ws|--workspaces] aliases: run, rum, urn - + Run "npm help run-script" for more info search npm search - + Search for pacakges - + Usage: npm search [search terms ...] - + Options: [-l|--long] [--json] [-p|--parseable] [--no-description] - + aliases: s, se, find - + Run "npm help search" for more info set npm set - + Set a value in the npm configuration - + Usage: npm set = [= ...] (See \`npm config\`) - + Run "npm help set" for more info set-script npm set-script - + Set tasks in the scripts section of package.json - + Usage: npm set-script [