summaryrefslogtreecommitdiff
path: root/deps/npm
diff options
context:
space:
mode:
authornpm-robot <ops+robot@npmjs.com>2022-02-19 05:11:58 +0200
committerGitHub <noreply@github.com>2022-02-19 03:11:58 +0000
commit406ffd26137af6751e539abe196af3faaa99b66b (patch)
tree0451cbc57b8fadc9af55dac49e7ae40826f14a0f /deps/npm
parent8843381d9fed232921ce875d4fdd38810471a703 (diff)
downloadnode-new-406ffd26137af6751e539abe196af3faaa99b66b.tar.gz
deps: upgrade npm to 8.5.1
PR-URL: https://github.com/nodejs/node/pull/42039 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'deps/npm')
-rw-r--r--deps/npm/docs/content/commands/npm-install.md17
-rw-r--r--deps/npm/docs/content/commands/npm-ping.md9
-rw-r--r--deps/npm/docs/content/using-npm/workspaces.md18
-rw-r--r--deps/npm/docs/output/commands/npm-install.html15
-rw-r--r--deps/npm/docs/output/commands/npm-ls.html2
-rw-r--r--deps/npm/docs/output/commands/npm-ping.html9
-rw-r--r--deps/npm/docs/output/commands/npm.html2
-rw-r--r--deps/npm/docs/output/using-npm/workspaces.html18
-rw-r--r--deps/npm/lib/commands/pkg.js2
-rw-r--r--deps/npm/man/man1/npm-install.120
-rw-r--r--deps/npm/man/man1/npm-ls.12
-rw-r--r--deps/npm/man/man1/npm-ping.19
-rw-r--r--deps/npm/man/man1/npm.12
-rw-r--r--deps/npm/man/man7/workspaces.718
-rw-r--r--deps/npm/node_modules/@npmcli/arborist/lib/audit-report.js2
-rw-r--r--deps/npm/node_modules/@npmcli/ci-detect/lib/index.js (renamed from deps/npm/node_modules/@npmcli/ci-detect/index.js)1
-rw-r--r--deps/npm/node_modules/@npmcli/ci-detect/package.json25
-rw-r--r--deps/npm/node_modules/gauge/lib/themes.js4
-rw-r--r--deps/npm/node_modules/gauge/package.json11
-rw-r--r--deps/npm/node_modules/libnpmexec/package.json2
-rw-r--r--deps/npm/node_modules/make-fetch-happen/lib/agent.js2
-rw-r--r--deps/npm/node_modules/make-fetch-happen/package.json5
-rw-r--r--deps/npm/package.json6
-rw-r--r--deps/npm/tap-snapshots/test/lib/load-all-commands.js.test.cjs2
-rw-r--r--deps/npm/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs2
25 files changed, 137 insertions, 68 deletions
diff --git a/deps/npm/docs/content/commands/npm-install.md b/deps/npm/docs/content/commands/npm-install.md
index 83b9af1e4d..f83ff51199 100644
--- a/deps/npm/docs/content/commands/npm-install.md
+++ b/deps/npm/docs/content/commands/npm-install.md
@@ -78,11 +78,20 @@ into a tarball (b).
* `npm install <folder>`:
- Install the package in the directory as a symlink in the current
- project. Its dependencies will be installed before it's linked. If
- `<folder>` sits inside the root of your project, its dependencies may
+ If `<folder>` sits inside the root of your project, its dependencies will be installed and may
be hoisted to the top-level `node_modules` as they would for other
- types of dependencies.
+ types of dependencies. If `<folder>` sits outside the root of your project,
+ *npm will not install the package dependencies* in the directory `<folder>`,
+ but it will create a symlink to `<folder>`.
+
+ > NOTE: If you want to install the content of a directory like a package from the registry instead of creating a link, you would need to use [`npm pack`](/commands/npm-pack) while in the `<folder>` directory, and then install the resulting tarball instead of the `<folder>` using `npm install <tarball file>`
+
+ Example:
+
+ ```bash
+ npm install ../../other-package
+ npm install ./sub-package
+ ```
* `npm install <tarball file>`:
diff --git a/deps/npm/docs/content/commands/npm-ping.md b/deps/npm/docs/content/commands/npm-ping.md
index 6f1c4582f0..c59a56e611 100644
--- a/deps/npm/docs/content/commands/npm-ping.md
+++ b/deps/npm/docs/content/commands/npm-ping.md
@@ -18,11 +18,14 @@ Ping the configured or given npm registry and verify authentication.
If it works it will output something like:
```bash
-Ping success: {*Details about registry*}
+npm notice PING https://registry.npmjs.org/
+npm notice PONG 255ms
```
-otherwise you will get:
+otherwise you will get an error:
```bash
-Ping error: {*Detail about error}
+npm notice PING http://foo.com/
+npm ERR! code E404
+npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true
```
### Configuration
diff --git a/deps/npm/docs/content/using-npm/workspaces.md b/deps/npm/docs/content/using-npm/workspaces.md
index c2ecce5ef4..26d6a5d755 100644
--- a/deps/npm/docs/content/using-npm/workspaces.md
+++ b/deps/npm/docs/content/using-npm/workspaces.md
@@ -30,24 +30,25 @@ Workspaces are usually defined via the `workspaces` property of the
{
"name": "my-workspaces-powered-project",
"workspaces": [
- "workspace-a"
+ "packages/a"
]
}
```
Given the above `package.json` example living at a current working
-directory `.` that contains a folder named `workspace-a` that itself contains
+directory `.` that contains a folder named `packages/a` that itself contains
a `package.json` inside it, defining a Node.js package, e.g:
```
.
+-- package.json
-`-- workspace-a
- `-- package.json
+`-- packages
+ +-- a
+ | `-- package.json
```
The expected result once running `npm install` in this current working
-directory `.` is that the folder `workspace-a` will get symlinked to the
+directory `.` is that the folder `packages/a` will get symlinked to the
`node_modules` folder of the current working dir.
Below is a post `npm install` example, given that same previous example
@@ -56,11 +57,12 @@ structure of files and folders:
```
.
+-- node_modules
-| `-- workspace-a -> ../workspace-a
+| `-- packages/a -> ../packages/a
+-- package-lock.json
+-- package.json
-`-- workspace-a
- `-- package.json
+`-- packages
+ +-- a
+ | `-- package.json
```
### Getting started with workspaces
diff --git a/deps/npm/docs/output/commands/npm-install.html b/deps/npm/docs/output/commands/npm-install.html
index 657e13ad02..5a4f9670fc 100644
--- a/deps/npm/docs/output/commands/npm-install.html
+++ b/deps/npm/docs/output/commands/npm-install.html
@@ -211,11 +211,18 @@ dependency to a project.</p>
</li>
<li>
<p><code>npm install &lt;folder&gt;</code>:</p>
-<p>Install the package in the directory as a symlink in the current
-project. Its dependencies will be installed before it's linked. If
-<code>&lt;folder&gt;</code> sits inside the root of your project, its dependencies may
+<p>If <code>&lt;folder&gt;</code> sits inside the root of your project, its dependencies will be installed and may
be hoisted to the top-level <code>node_modules</code> as they would for other
-types of dependencies.</p>
+types of dependencies. If <code>&lt;folder&gt;</code> sits outside the root of your project,
+<em>npm will not install the package dependencies</em> in the directory <code>&lt;folder&gt;</code>,
+but it will create a symlink to <code>&lt;folder&gt;</code>.</p>
+<blockquote>
+<p>NOTE: If you want to install the content of a directory like a package from the registry instead of creating a link, you would need to use <a href="../commands/npm-pack.html"><code>npm pack</code></a> while in the <code>&lt;folder&gt;</code> directory, and then install the resulting tarball instead of the <code>&lt;folder&gt;</code> using <code>npm install &lt;tarball file&gt;</code></p>
+</blockquote>
+<p>Example:</p>
+<pre lang="bash"><code>npm install ../../other-package
+npm install ./sub-package
+</code></pre>
</li>
<li>
<p><code>npm install &lt;tarball file&gt;</code>:</p>
diff --git a/deps/npm/docs/output/commands/npm-ls.html b/deps/npm/docs/output/commands/npm-ls.html
index aad51caaa7..1dbee93d4b 100644
--- a/deps/npm/docs/output/commands/npm-ls.html
+++ b/deps/npm/docs/output/commands/npm-ls.html
@@ -160,7 +160,7 @@ tree at all, use <a href="../commands/npm-explain.html"><code>npm explain</code>
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 lang="bash"><code>npm@8.5.0 /path/to/npm
+<pre lang="bash"><code>npm@8.5.1 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
</code></pre>
diff --git a/deps/npm/docs/output/commands/npm-ping.html b/deps/npm/docs/output/commands/npm-ping.html
index 38ffb34043..40637a8e78 100644
--- a/deps/npm/docs/output/commands/npm-ping.html
+++ b/deps/npm/docs/output/commands/npm-ping.html
@@ -152,10 +152,13 @@ npm command-line interface
<h3 id="description">Description</h3>
<p>Ping the configured or given npm registry and verify authentication.
If it works it will output something like:</p>
-<pre lang="bash"><code>Ping success: {*Details about registry*}
+<pre lang="bash"><code>npm notice PING https://registry.npmjs.org/
+npm notice PONG 255ms
</code></pre>
-<p>otherwise you will get:</p>
-<pre lang="bash"><code>Ping error: {*Detail about error}
+<p>otherwise you will get an error:</p>
+<pre lang="bash"><code>npm notice PING http://foo.com/
+npm ERR! code E404
+npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true
</code></pre>
<h3 id="configuration">Configuration</h3>
<!-- raw HTML omitted -->
diff --git a/deps/npm/docs/output/commands/npm.html b/deps/npm/docs/output/commands/npm.html
index 6ec841a55e..1fd3337b2c 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
<pre lang="bash"><code>npm &lt;command&gt; [args]
</code></pre>
<h3 id="version">Version</h3>
-<p>8.5.0</p>
+<p>8.5.1</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
diff --git a/deps/npm/docs/output/using-npm/workspaces.html b/deps/npm/docs/output/using-npm/workspaces.html
index 42f10e5f3d..a1613b782f 100644
--- a/deps/npm/docs/output/using-npm/workspaces.html
+++ b/deps/npm/docs/output/using-npm/workspaces.html
@@ -164,30 +164,32 @@ file system that is explicitly defined in the <a href="../configuring-npm/packag
<pre lang="json"><code>{
"name": "my-workspaces-powered-project",
"workspaces": [
- "workspace-a"
+ "packages/a"
]
}
</code></pre>
<p>Given the above <code>package.json</code> example living at a current working
-directory <code>.</code> that contains a folder named <code>workspace-a</code> that itself contains
+directory <code>.</code> that contains a folder named <code>packages/a</code> that itself contains
a <code>package.json</code> inside it, defining a Node.js package, e.g:</p>
<pre><code>.
+-- package.json
-`-- workspace-a
- `-- package.json
+`-- packages
+ +-- a
+ | `-- package.json
</code></pre>
<p>The expected result once running <code>npm install</code> in this current working
-directory <code>.</code> is that the folder <code>workspace-a</code> will get symlinked to the
+directory <code>.</code> is that the folder <code>packages/a</code> will get symlinked to the
<code>node_modules</code> folder of the current working dir.</p>
<p>Below is a post <code>npm install</code> example, given that same previous example
structure of files and folders:</p>
<pre><code>.
+-- node_modules
-| `-- workspace-a -&gt; ../workspace-a
+| `-- packages/a -&gt; ../packages/a
+-- package-lock.json
+-- package.json
-`-- workspace-a
- `-- package.json
+`-- packages
+ +-- a
+ | `-- package.json
</code></pre>
<h3 id="getting-started-with-workspaces">Getting started with workspaces</h3>
<p>You may automate the required steps to define a new workspace using
diff --git a/deps/npm/lib/commands/pkg.js b/deps/npm/lib/commands/pkg.js
index 007932429d..6ca892293c 100644
--- a/deps/npm/lib/commands/pkg.js
+++ b/deps/npm/lib/commands/pkg.js
@@ -9,6 +9,8 @@ class Pkg extends BaseCommand {
'set <key>=<value> [<key>=<value> ...]',
'get [<key> [<key> ...]]',
'delete <key> [<key> ...]',
+ 'set [<array>[<index>].<key>=<value> ...]',
+ 'set [<array>[].<key>=<value> ...]',
]
static params = [
diff --git a/deps/npm/man/man1/npm-install.1 b/deps/npm/man/man1/npm-install.1
index c77e379e5a..d8085ee231 100644
--- a/deps/npm/man/man1/npm-install.1
+++ b/deps/npm/man/man1/npm-install.1
@@ -87,11 +87,23 @@ NOTE: The \fB\-\-production\fP flag has no particular meaning when adding a
.
.IP \(bu 2
\fBnpm install <folder>\fP:
- Install the package in the directory as a symlink in the current
- project\. Its dependencies will be installed before it's linked\. If
- \fB<folder>\fP sits inside the root of your project, its dependencies may
+ If \fB<folder>\fP sits inside the root of your project, its dependencies will be installed and may
be hoisted to the top\-level \fBnode_modules\fP as they would for other
- types of dependencies\.
+ types of dependencies\. If \fB<folder>\fP sits outside the root of your project,
+ \fInpm will not install the package dependencies\fR in the directory \fB<folder>\fP,
+ but it will create a symlink to \fB<folder>\fP\|\.
+.QP
+NOTE: If you want to install the content of a directory like a package from the registry instead of creating a link, you would need to use npm help \fBpack\fP while in the \fB<folder>\fP directory, and then install the resulting tarball instead of the \fB<folder>\fP using \fBnpm install <tarball file>\fP
+
+.
+ Example:
+.P
+.RS 2
+.nf
+ npm install \.\./\.\./other\-package
+ npm install \./sub\-package
+.fi
+.RE
.IP \(bu 2
\fBnpm install <tarball file>\fP:
Install a package that is sitting on the filesystem\. Note: if you just
diff --git a/deps/npm/man/man1/npm-ls.1 b/deps/npm/man/man1/npm-ls.1
index ff44f277e9..03bb885ece 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@8\.5\.0 /path/to/npm
+npm@8\.5\.1 /path/to/npm
└─┬ init\-package\-json@0\.0\.4
└── promzard@0\.1\.5
.fi
diff --git a/deps/npm/man/man1/npm-ping.1 b/deps/npm/man/man1/npm-ping.1
index 410c2e3dd0..2441892a6a 100644
--- a/deps/npm/man/man1/npm-ping.1
+++ b/deps/npm/man/man1/npm-ping.1
@@ -17,15 +17,18 @@ If it works it will output something like:
.P
.RS 2
.nf
-Ping success: {*Details about registry*}
+npm notice PING https://registry\.npmjs\.org/
+npm notice PONG 255ms
.fi
.RE
.P
-otherwise you will get:
+otherwise you will get an error:
.P
.RS 2
.nf
-Ping error: {*Detail about error}
+npm notice PING http://foo\.com/
+npm ERR! code E404
+npm ERR! 404 Not Found \- GET http://www\.foo\.com/\-/ping?write=true
.fi
.RE
.SS Configuration
diff --git a/deps/npm/man/man1/npm.1 b/deps/npm/man/man1/npm.1
index 45a7a14040..47c78a6959 100644
--- a/deps/npm/man/man1/npm.1
+++ b/deps/npm/man/man1/npm.1
@@ -10,7 +10,7 @@ npm <command> [args]
.RE
.SS Version
.P
-8\.5\.0
+8\.5\.1
.SS Description
.P
npm is the package manager for the Node JavaScript platform\. It puts
diff --git a/deps/npm/man/man7/workspaces.7 b/deps/npm/man/man7/workspaces.7
index 9928675e89..af88f91b9b 100644
--- a/deps/npm/man/man7/workspaces.7
+++ b/deps/npm/man/man7/workspaces.7
@@ -27,27 +27,28 @@ npm help \fBpackage\.json\fP file, e\.g:
{
"name": "my\-workspaces\-powered\-project",
"workspaces": [
- "workspace\-a"
+ "packages/a"
]
}
.fi
.RE
.P
Given the above \fBpackage\.json\fP example living at a current working
-directory \fB\|\.\fP that contains a folder named \fBworkspace\-a\fP that itself contains
+directory \fB\|\.\fP that contains a folder named \fBpackages/a\fP that itself contains
a \fBpackage\.json\fP inside it, defining a Node\.js package, e\.g:
.P
.RS 2
.nf
\|\.
+\-\- package\.json
-`\-\- workspace\-a
- `\-\- package\.json
+`\-\- packages
+ +\-\- a
+ | `\-\- package\.json
.fi
.RE
.P
The expected result once running \fBnpm install\fP in this current working
-directory \fB\|\.\fP is that the folder \fBworkspace\-a\fP will get symlinked to the
+directory \fB\|\.\fP is that the folder \fBpackages/a\fP will get symlinked to the
\fBnode_modules\fP folder of the current working dir\.
.P
Below is a post \fBnpm install\fP example, given that same previous example
@@ -57,11 +58,12 @@ structure of files and folders:
.nf
\|\.
+\-\- node_modules
-| `\-\- workspace\-a \-> \.\./workspace\-a
+| `\-\- packages/a \-> \.\./packages/a
+\-\- package\-lock\.json
+\-\- package\.json
-`\-\- workspace\-a
- `\-\- package\.json
+`\-\- packages
+ +\-\- a
+ | `\-\- package\.json
.fi
.RE
.SS Getting started with workspaces
diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/audit-report.js b/deps/npm/node_modules/@npmcli/arborist/lib/audit-report.js
index 53fc5b17ad..b7d8249b12 100644
--- a/deps/npm/node_modules/@npmcli/arborist/lib/audit-report.js
+++ b/deps/npm/node_modules/@npmcli/arborist/lib/audit-report.js
@@ -304,7 +304,7 @@ class AuditReport extends Map {
async [_getReport] () {
// if we're not auditing, just return false
- if (this.options.audit === false || this.tree.inventory.size === 1) {
+ if (this.options.audit === false || this.options.offline === true || this.tree.inventory.size === 1) {
return null
}
diff --git a/deps/npm/node_modules/@npmcli/ci-detect/index.js b/deps/npm/node_modules/@npmcli/ci-detect/lib/index.js
index df9318d658..8be8fe2e6d 100644
--- a/deps/npm/node_modules/@npmcli/ci-detect/index.js
+++ b/deps/npm/node_modules/@npmcli/ci-detect/lib/index.js
@@ -13,6 +13,7 @@ module.exports = () =>
: process.env.DSARI ? 'dsari'
: process.env.GITHUB_ACTION ? 'github-actions'
: process.env.TDDIUM ? 'tddium'
+ : process.env.SCREWDRIVER ? 'screwdriver'
: process.env.STRIDER ? 'strider'
: process.env.TASKCLUSTER_ROOT_URL ? 'taskcluster'
: process.env.JENKINS_URL ? 'jenkins'
diff --git a/deps/npm/node_modules/@npmcli/ci-detect/package.json b/deps/npm/node_modules/@npmcli/ci-detect/package.json
index 1c01f7a9f6..c1cf9dc889 100644
--- a/deps/npm/node_modules/@npmcli/ci-detect/package.json
+++ b/deps/npm/node_modules/@npmcli/ci-detect/package.json
@@ -1,26 +1,41 @@
{
"name": "@npmcli/ci-detect",
- "version": "1.4.0",
+ "version": "2.0.0",
"description": "Detect what kind of CI environment the program is in",
- "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",
+ "author": "GitHub Inc.",
"license": "ISC",
+ "main": "./lib",
"scripts": {
"test": "tap",
"preversion": "npm test",
"postversion": "npm publish",
- "prepublishOnly": "git push origin --follow-tags"
+ "prepublishOnly": "git push origin --follow-tags",
+ "lint": "eslint '**/*.js'",
+ "postlint": "npm-template-check",
+ "template-copy": "npm-template-copy --force",
+ "lintfix": "npm run lint -- --fix",
+ "snap": "tap",
+ "posttest": "npm run lint"
},
"tap": {
"check-coverage": true
},
"devDependencies": {
- "tap": "^14.10.2"
+ "@npmcli/template-oss": "^2.7.1",
+ "tap": "^15.1.6"
},
"files": [
- "index.js"
+ "bin",
+ "lib"
],
"repository": {
"type": "git",
"url": "git+https://github.com/npm/ci-detect.git"
+ },
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16"
+ },
+ "templateOSS": {
+ "version": "2.7.1"
}
}
diff --git a/deps/npm/node_modules/gauge/lib/themes.js b/deps/npm/node_modules/gauge/lib/themes.js
index 1098ca0e48..d2e62bbccb 100644
--- a/deps/npm/node_modules/gauge/lib/themes.js
+++ b/deps/npm/node_modules/gauge/lib/themes.js
@@ -27,8 +27,8 @@ themes.addTheme('colorASCII', themes.getTheme('ASCII'), {
})
themes.addTheme('brailleSpinner', {
- preProgressbar: '⸨',
- postProgressbar: '⸩',
+ preProgressbar: '(',
+ postProgressbar: ')',
progressbarTheme: {
complete: '#',
remaining: '⠂',
diff --git a/deps/npm/node_modules/gauge/package.json b/deps/npm/node_modules/gauge/package.json
index 433958760e..c51c2b13fb 100644
--- a/deps/npm/node_modules/gauge/package.json
+++ b/deps/npm/node_modules/gauge/package.json
@@ -1,6 +1,6 @@
{
"name": "gauge",
- "version": "4.0.0",
+ "version": "4.0.1",
"description": "A terminal based horizontal gauge",
"main": "lib",
"scripts": {
@@ -12,7 +12,8 @@
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"snap": "tap",
- "posttest": "npm run lint"
+ "posttest": "npm run lint",
+ "template-copy": "npm-template-copy --force"
},
"repository": {
"type": "git",
@@ -41,7 +42,7 @@
"wide-align": "^1.1.2"
},
"devDependencies": {
- "@npmcli/template-oss": "^2.3.0",
+ "@npmcli/template-oss": "^2.7.1",
"readable-stream": "^3.6.0",
"tap": "^15.0.10"
},
@@ -58,5 +59,7 @@
"functions": 92,
"lines": 90
},
- "templateVersion": "2.3.0"
+ "templateOSS": {
+ "version": "2.7.1"
+ }
}
diff --git a/deps/npm/node_modules/libnpmexec/package.json b/deps/npm/node_modules/libnpmexec/package.json
index 1de0cdfe26..4410f187ec 100644
--- a/deps/npm/node_modules/libnpmexec/package.json
+++ b/deps/npm/node_modules/libnpmexec/package.json
@@ -51,7 +51,7 @@
},
"dependencies": {
"@npmcli/arborist": "^4.0.0",
- "@npmcli/ci-detect": "^1.3.0",
+ "@npmcli/ci-detect": "^2.0.0",
"@npmcli/run-script": "^2.0.0",
"chalk": "^4.1.0",
"mkdirp-infer-owner": "^2.0.0",
diff --git a/deps/npm/node_modules/make-fetch-happen/lib/agent.js b/deps/npm/node_modules/make-fetch-happen/lib/agent.js
index b87427755e..cc1d388691 100644
--- a/deps/npm/node_modules/make-fetch-happen/lib/agent.js
+++ b/deps/npm/node_modules/make-fetch-happen/lib/agent.js
@@ -76,10 +76,12 @@ function getAgent (uri, opts) {
localAddress: opts.localAddress,
rejectUnauthorized: opts.rejectUnauthorized,
timeout: agentTimeout,
+ freeSocketTimeout: 15000,
}) : new HttpAgent({
maxSockets: agentMaxSockets,
localAddress: opts.localAddress,
timeout: agentTimeout,
+ freeSocketTimeout: 15000,
})
AGENT_CACHE.set(key, agent)
return agent
diff --git a/deps/npm/node_modules/make-fetch-happen/package.json b/deps/npm/node_modules/make-fetch-happen/package.json
index bd11b7cddb..c01a09ac5d 100644
--- a/deps/npm/node_modules/make-fetch-happen/package.json
+++ b/deps/npm/node_modules/make-fetch-happen/package.json
@@ -1,6 +1,6 @@
{
"name": "make-fetch-happen",
- "version": "10.0.2",
+ "version": "10.0.3",
"description": "Opinionated, caching, retrying fetch client",
"main": "lib/index.js",
"files": [
@@ -52,10 +52,9 @@
},
"devDependencies": {
"@npmcli/template-oss": "^2.7.1",
- "eslint": "^8.8.0",
+ "eslint": "^8.9.0",
"mkdirp": "^1.0.4",
"nock": "^13.2.4",
- "npmlog": "^6.0.1",
"rimraf": "^3.0.2",
"safe-buffer": "^5.2.1",
"standard-version": "^9.3.2",
diff --git a/deps/npm/package.json b/deps/npm/package.json
index ef564abd0a..c407a66ae1 100644
--- a/deps/npm/package.json
+++ b/deps/npm/package.json
@@ -1,5 +1,5 @@
{
- "version": "8.5.0",
+ "version": "8.5.1",
"name": "npm",
"description": "a package manager for JavaScript",
"workspaces": [
@@ -56,7 +56,7 @@
"dependencies": {
"@isaacs/string-locale-compare": "^1.1.0",
"@npmcli/arborist": "^4.3.1",
- "@npmcli/ci-detect": "^1.4.0",
+ "@npmcli/ci-detect": "^2.0.0",
"@npmcli/config": "^3.0.0",
"@npmcli/map-workspaces": "^2.0.0",
"@npmcli/package-json": "^1.0.1",
@@ -90,7 +90,7 @@
"libnpmsearch": "^4.0.1",
"libnpmteam": "^3.0.1",
"libnpmversion": "^2.0.2",
- "make-fetch-happen": "^10.0.2",
+ "make-fetch-happen": "^10.0.3",
"minipass": "^3.1.6",
"minipass-pipeline": "^1.2.4",
"mkdirp": "^1.0.4",
diff --git a/deps/npm/tap-snapshots/test/lib/load-all-commands.js.test.cjs b/deps/npm/tap-snapshots/test/lib/load-all-commands.js.test.cjs
index c9da1e2367..d84cdfb305 100644
--- a/deps/npm/tap-snapshots/test/lib/load-all-commands.js.test.cjs
+++ b/deps/npm/tap-snapshots/test/lib/load-all-commands.js.test.cjs
@@ -690,6 +690,8 @@ Usage:
npm pkg set <key>=<value> [<key>=<value> ...]
npm pkg get [<key> [<key> ...]]
npm pkg delete <key> [<key> ...]
+npm pkg set [<array>[<index>].<key>=<value> ...]
+npm pkg set [<array>[].<key>=<value> ...]
Options:
[-f|--force] [--json]
diff --git a/deps/npm/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs b/deps/npm/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs
index 62307020cc..d2001f4da8 100644
--- a/deps/npm/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs
+++ b/deps/npm/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs
@@ -773,6 +773,8 @@ All commands:
npm pkg set <key>=<value> [<key>=<value> ...]
npm pkg get [<key> [<key> ...]]
npm pkg delete <key> [<key> ...]
+ npm pkg set [<array>[<index>].<key>=<value> ...]
+ npm pkg set [<array>[].<key>=<value> ...]
Options:
[-f|--force] [--json]