From e0d2bfd4840934154772f6fc769b5e39a5d226be Mon Sep 17 00:00:00 2001
From: npm CLI robot
public / restricted: +
public / restricted (deprecated): Set a package to be either publicly accessible or restricted.
grant / revoke: +
grant / revoke (deprecated): Add or remove the ability of users and teams to have read-only or read-write access to a package.
2fa-required / 2fa-not-required: +
2fa-required / 2fa-not-required (deprecated): Configure whether a package requires that anyone publishing it have two-factor authentication enabled on their account.
ls-packages: +
ls-packages (deprecated): Show all of the packages a user or a team is able to access, along with the access level, except for read-only public packages (it won't print the whole registry listing)
ls-collaborators: +
ls-collaborators (deprecated):
Show all of the access privileges for a package. Will only show permissions
for packages to which you have at least read access. If <user>
is passed in,
the list is filtered only to teams that user happens to belong to.
edit:
-Set the access privileges for a package at once using $EDITOR
.
edit (not implemented)
npm explain
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@8.18.0 /path/to/npm
+npm@8.19.1 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
diff --git a/deps/npm/docs/output/commands/npm-query.html b/deps/npm/docs/output/commands/npm-query.html
index 1a11fb9e8cd..d567d2b8731 100644
--- a/deps/npm/docs/output/commands/npm-query.html
+++ b/deps/npm/docs/output/commands/npm-query.html
@@ -344,7 +344,7 @@ the specified workspaces, and not on the root project.
See Also
diff --git a/deps/npm/docs/output/commands/npm.html b/deps/npm/docs/output/commands/npm.html
index 4c1f2a53eba..0abece728a1 100644
--- a/deps/npm/docs/output/commands/npm.html
+++ b/deps/npm/docs/output/commands/npm.html
@@ -149,7 +149,7 @@ npm command-line interface
Version
-8.18.0
+8.19.1
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/docs/output/configuring-npm/npmrc.html b/deps/npm/docs/output/configuring-npm/npmrc.html
index 1f158d8e081..be6d7a13c8c 100644
--- a/deps/npm/docs/output/configuring-npm/npmrc.html
+++ b/deps/npm/docs/output/configuring-npm/npmrc.html
@@ -142,7 +142,7 @@ npm command-line interface
Table of contents
-
+
Description
@@ -204,6 +204,29 @@ variables can be replaced as above.
consistent across updates. Set fields in here using the ./configure
script that comes with npm. This is primarily for distribution maintainers
to override default configs in a standard and consistent manner.
+Auth related configuration
+The settings _auth
, _authToken
, username
and _password
must all be
+scoped to a specific registry. This ensures that npm
will never send
+credentials to the wrong host.
+In order to scope these values, they must be prefixed by a URI fragment.
+If the credential is meant for any request to a registry on a single host,
+the scope may look like //registry.npmjs.org/:
. If it must be scoped to a
+specific path on the host that path may also be provided, such as
+//my-custom-registry.org/unique/path:
.
+; bad config
+_authToken=MYTOKEN
+
+; good config
+@myorg:registry=https://somewhere-else.com/myorg
+@another:registry=https://somewhere-else.com/another
+//registry.npmjs.org/:_authToken=MYTOKEN
+; would apply to both @myorg and @another
+; //somewhere-else.com/:_authToken=MYTOKEN
+; would apply only to @myorg
+//somewhere-else.com/myorg/:_authToken=MYTOKEN1
+; would apply only to @another
+//somewhere-else.com/another/:_authToken=MYTOKEN2
+
See also
- npm folders
diff --git a/deps/npm/docs/output/using-npm/dependency-selectors.html b/deps/npm/docs/output/using-npm/dependency-selectors.html
index e19499207da..31ab2bb5b7c 100644
--- a/deps/npm/docs/output/using-npm/dependency-selectors.html
+++ b/deps/npm/docs/output/using-npm/dependency-selectors.html
@@ -264,14 +264,14 @@ npm command-line interface
const arb = new Arborist({})
// root-level
-arb.loadActual((tree) => {
+arb.loadActual().then(async (tree) => {
// query all production dependencies
const results = await tree.querySelectorAll('.prod')
console.log(results)
})
// iterative
-arb.loadActual((tree) => {
+arb.loadActual().then(async (tree) => {
// query for the deduped version of react
const results = await tree.querySelectorAll('#react:not(:deduped)')
// query the deduped react for git deps
--
cgit v1.2.3