Skip to content

Commit

Permalink
deps: upgrade npm to 10.0.0
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#49423
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
  • Loading branch information
sercher committed Apr 24, 2024
1 parent f8d7de6 commit d50f275
Show file tree
Hide file tree
Showing 509 changed files with 23,728 additions and 4,061 deletions.
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/docs/content/commands/npm-ls.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ packages will *also* show the paths to the specified packages. For
example, running `npm ls promzard` in npm's source tree will show:

```bash
npm@9.8.1 /path/to/npm
npm@10.0.0 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
```
Expand Down
1 change: 0 additions & 1 deletion graal-nodejs/deps/npm/docs/content/commands/npm-pkg.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,5 +269,4 @@ This value is not exported to the environment for child processes.
* [npm install](/commands/npm-install)
* [npm init](/commands/npm-init)
* [npm config](/commands/npm-config)
* [npm set-script](/commands/npm-set-script)
* [workspaces](/using-npm/workspaces)
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/docs/content/commands/npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Note: This command is unaware of workspaces.

### Version

9.8.1
10.0.0

### Description

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ It should look like this:

```json
{
"url" : "https://github.com/owner/project/issues",
"email" : "project@hostname.com"
"bugs": {
"url": "https://github.com/owner/project/issues",
"email": "project@hostname.com"
}
}
```

Expand Down Expand Up @@ -285,6 +287,7 @@ Certain files are always included, regardless of settings:
* `README`
* `LICENSE` / `LICENCE`
* The file in the "main" field
* The file(s) in the "bin" field

`README` & `LICENSE` can have any case and extension.

Expand Down
28 changes: 0 additions & 28 deletions graal-nodejs/deps/npm/docs/content/using-npm/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1775,20 +1775,6 @@ registry-scoped "certfile" path like



#### `ci-name`

* Default: The name of the current CI system, or `null` when not on a known CI
platform.
* Type: null or String
* DEPRECATED: This config is deprecated and will not be changeable in future
version of npm.

The name of a continuous integration system. If not set explicitly, npm will
detect the current CI environment using the
[`ci-info`](http://npm.im/ci-info) module.



#### `dev`

* Default: false
Expand Down Expand Up @@ -1949,20 +1935,6 @@ Alias for --package-lock



#### `tmp`

* Default: The value returned by the Node.js `os.tmpdir()` method
<https://nodejs.org/api/os.html#os_os_tmpdir>
* Type: Path
* DEPRECATED: This setting is no longer used. npm stores temporary files in a
special location in the cache, and they are managed by
[`cacache`](http://npm.im/cacache).

Historically, the location where temporary files were stored. No longer
relevant.



### See also

* [npm config](/commands/npm-config)
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/docs/output/commands/npm-ls.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ <h3 id="description">Description</h3>
the results to only the paths to the packages named. Note that nested
packages will <em>also</em> show the paths to the specified packages. For
example, running <code>npm ls promzard</code> in npm's source tree will show:</p>
<pre><code class="language-bash">npm@9.8.1 /path/to/npm
<pre><code class="language-bash">npm@10.0.0 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
</code></pre>
Expand Down
1 change: 0 additions & 1 deletion graal-nodejs/deps/npm/docs/output/commands/npm-pkg.html
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ <h2 id="see-also">See Also</h2>
<li><a href="../commands/npm-install.html">npm install</a></li>
<li><a href="../commands/npm-init.html">npm init</a></li>
<li><a href="../commands/npm-config.html">npm config</a></li>
<li><a href="../commands/npm-set-script.html">npm set-script</a></li>
<li><a href="../using-npm/workspaces.html">workspaces</a></li>
</ul></div>

Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/docs/output/commands/npm.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h2 id="table-of-contents">Table of contents</h2>
</code></pre>
<p>Note: This command is unaware of workspaces.</p>
<h3 id="version">Version</h3>
<p>9.8.1</p>
<p>10.0.0</p>
<h3 id="description">Description</h3>
<p>npm is the package manager for the Node JavaScript platform. It puts
modules in place so that node can find them, and manages dependency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,10 @@ <h3 id="bugs">bugs</h3>
issues with your package.</p>
<p>It should look like this:</p>
<pre><code class="language-json">{
"url" : "https://github.com/owner/project/issues",
"email" : "project@hostname.com"
"bugs": {
"url": "https://github.com/owner/project/issues",
"email": "project@hostname.com"
}
}
</code></pre>
<p>You can specify either one or both values. If you want to provide only a
Expand Down Expand Up @@ -359,6 +361,7 @@ <h3 id="files">files</h3>
<li><code>README</code></li>
<li><code>LICENSE</code> / <code>LICENCE</code></li>
<li>The file in the "main" field</li>
<li>The file(s) in the "bin" field</li>
</ul>
<p><code>README</code> &amp; <code>LICENSE</code> can have any case and extension.</p>
<p>Conversely, some files are always ignored:</p>
Expand Down
24 changes: 1 addition & 23 deletions graal-nodejs/deps/npm/docs/output/using-npm/config.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions graal-nodejs/deps/npm/lib/commands/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const localeCompare = require('@isaacs/string-locale-compare')('en')
const npa = require('npm-package-arg')
const pacote = require('pacote')
const pMap = require('p-map')
const { sigstore } = require('sigstore')
const tufClient = require('@sigstore/tuf')

const ArboristWorkspaceCmd = require('../arborist-cmd.js')
const auditError = require('../utils/audit-error.js')
Expand Down Expand Up @@ -38,8 +38,8 @@ class VerifySignatures {
throw new Error('found no installed dependencies to audit')
}

const tuf = await sigstore.tuf.client({
tufCachePath: this.opts.tufCache,
const tuf = await tufClient.initTUF({
cachePath: this.opts.tufCache,
retry: this.opts.retry,
timeout: this.opts.timeout,
})
Expand Down
16 changes: 1 addition & 15 deletions graal-nodejs/deps/npm/lib/commands/run-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,24 +207,10 @@ class RunScript extends BaseCommand {
log.error(err)
log.error(` in workspace: ${pkg._id || pkg.name}`)
log.error(` at location: ${workspacePath}`)

const scriptMissing = err.message.startsWith('Missing script')

// avoids exiting with error code in case there's scripts missing
// in some workspaces since other scripts might have succeeded
if (!scriptMissing) {
process.exitCode = 1
}

return scriptMissing
process.exitCode = 1
})
res.push(runResult)
}

// in case **all** tests are missing, then it should exit with error code
if (res.every(Boolean)) {
throw new Error(`Missing script: ${args[0]}`)
}
}

async listWorkspaces (args, filters) {
Expand Down
4 changes: 4 additions & 0 deletions graal-nodejs/deps/npm/lib/commands/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ class Search extends BaseCommand {
let anyOutput = false

class FilterStream extends Minipass {
constructor () {
super({ objectMode: true })
}

write (pkg) {
if (filter(pkg, opts.include, opts.exclude)) {
super.write(pkg)
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/lib/utils/format-search-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function highlightSearchTerms (str, terms) {
function normalizePackage (data, opts) {
return {
name: ansiTrim(data.name),
description: ansiTrim(data.description),
description: ansiTrim(data.description ?? ''),
author: data.maintainers.map((m) => `=${ansiTrim(m.username)}`).join(' '),
keywords: Array.isArray(data.keywords)
? data.keywords.map(ansiTrim).join(' ')
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-access.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-ACCESS" "1" "July 2023" "" ""
.TH "NPM-ACCESS" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-access\fR - Set access level on published packages
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-adduser.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-ADDUSER" "1" "July 2023" "" ""
.TH "NPM-ADDUSER" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-adduser\fR - Add a registry user account
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-audit.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-AUDIT" "1" "July 2023" "" ""
.TH "NPM-AUDIT" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-audit\fR - Run a security audit
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-bugs.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-BUGS" "1" "July 2023" "" ""
.TH "NPM-BUGS" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-bugs\fR - Report bugs for a package in a web browser
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-cache.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-CACHE" "1" "July 2023" "" ""
.TH "NPM-CACHE" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-cache\fR - Manipulates packages cache
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-ci.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-CI" "1" "July 2023" "" ""
.TH "NPM-CI" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-ci\fR - Clean install a project
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-completion.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-COMPLETION" "1" "July 2023" "" ""
.TH "NPM-COMPLETION" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-completion\fR - Tab Completion for npm
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-config.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-CONFIG" "1" "July 2023" "" ""
.TH "NPM-CONFIG" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-config\fR - Manage the npm configuration files
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-dedupe.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-DEDUPE" "1" "July 2023" "" ""
.TH "NPM-DEDUPE" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-dedupe\fR - Reduce duplication in the package tree
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-deprecate.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-DEPRECATE" "1" "July 2023" "" ""
.TH "NPM-DEPRECATE" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-deprecate\fR - Deprecate a version of a package
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-diff.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-DIFF" "1" "July 2023" "" ""
.TH "NPM-DIFF" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-diff\fR - The registry diff command
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-dist-tag.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-DIST-TAG" "1" "July 2023" "" ""
.TH "NPM-DIST-TAG" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-dist-tag\fR - Modify package distribution tags
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-docs.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-DOCS" "1" "July 2023" "" ""
.TH "NPM-DOCS" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-docs\fR - Open documentation for a package in a web browser
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-doctor.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-DOCTOR" "1" "July 2023" "" ""
.TH "NPM-DOCTOR" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-doctor\fR - Check your npm environment
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-edit.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-EDIT" "1" "July 2023" "" ""
.TH "NPM-EDIT" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-edit\fR - Edit an installed package
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-exec.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-EXEC" "1" "July 2023" "" ""
.TH "NPM-EXEC" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-exec\fR - Run a command from a local or remote npm package
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-explain.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-EXPLAIN" "1" "July 2023" "" ""
.TH "NPM-EXPLAIN" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-explain\fR - Explain installed packages
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-explore.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-EXPLORE" "1" "July 2023" "" ""
.TH "NPM-EXPLORE" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-explore\fR - Browse an installed package
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-find-dupes.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-FIND-DUPES" "1" "July 2023" "" ""
.TH "NPM-FIND-DUPES" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-find-dupes\fR - Find duplication in the package tree
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-fund.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-FUND" "1" "July 2023" "" ""
.TH "NPM-FUND" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-fund\fR - Retrieve funding information
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-help-search.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-HELP-SEARCH" "1" "July 2023" "" ""
.TH "NPM-HELP-SEARCH" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-help-search\fR - Search npm help documentation
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-help.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-HELP" "1" "July 2023" "" ""
.TH "NPM-HELP" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-help\fR - Get help on npm
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-hook.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-HOOK" "1" "July 2023" "" ""
.TH "NPM-HOOK" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-hook\fR - Manage registry hooks
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-init.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-INIT" "1" "July 2023" "" ""
.TH "NPM-INIT" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-init\fR - Create a package.json file
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-install-ci-test.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-INSTALL-CI-TEST" "1" "July 2023" "" ""
.TH "NPM-INSTALL-CI-TEST" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-install-ci-test\fR - Install a project with a clean slate and run tests
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-install-test.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-INSTALL-TEST" "1" "July 2023" "" ""
.TH "NPM-INSTALL-TEST" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-install-test\fR - Install package(s) and run tests
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-install.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-INSTALL" "1" "July 2023" "" ""
.TH "NPM-INSTALL" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-install\fR - Install a package
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-link.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-LINK" "1" "July 2023" "" ""
.TH "NPM-LINK" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-link\fR - Symlink a package folder
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-login.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-LOGIN" "1" "July 2023" "" ""
.TH "NPM-LOGIN" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-login\fR - Login to a registry user account
.SS "Synopsis"
Expand Down
2 changes: 1 addition & 1 deletion graal-nodejs/deps/npm/man/man1/npm-logout.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-LOGOUT" "1" "July 2023" "" ""
.TH "NPM-LOGOUT" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-logout\fR - Log out of the registry
.SS "Synopsis"
Expand Down
4 changes: 2 additions & 2 deletions graal-nodejs/deps/npm/man/man1/npm-ls.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "NPM-LS" "1" "July 2023" "" ""
.TH "NPM-LS" "1" "August 2023" "" ""
.SH "NAME"
\fBnpm-ls\fR - List installed packages
.SS "Synopsis"
Expand All @@ -20,7 +20,7 @@ Positional arguments are \fBname@version-range\fR identifiers, which will limit
.P
.RS 2
.nf
npm@9.8.1 /path/to/npm
npm@10.0.0 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
.fi
Expand Down
Loading

0 comments on commit d50f275

Please sign in to comment.