Skip to content

Commit ab834ff

Browse files
authored
deps: upgrade npm to 9.8.1
PR-URL: #48838 Reviewed-By: Luke Karrys <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
1 parent 841b29c commit ab834ff

File tree

41 files changed

+580
-166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+580
-166
lines changed

‎deps/npm/docs/content/commands/npm-ls.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ packages will *also* show the paths to the specified packages. For
2727
example, running `npm ls promzard` in npm's source tree will show:
2828

2929
```bash
30-
[email protected].0 /path/to/npm
30+
[email protected].1 /path/to/npm
3131
3232
3333
```

‎deps/npm/docs/content/commands/npm.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Note: This command is unaware of workspaces.
1414

1515
### Version
1616

17-
9.8.0
17+
9.8.1
1818

1919
### Description
2020

‎deps/npm/docs/output/commands/npm-ls.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ <h3 id="description">Description</h3>
160160
the results to only the paths to the packages named. Note that nested
161161
packages will <em>also</em> show the paths to the specified packages. For
162162
example, running <code>npm ls promzard</code> in npm's source tree will show:</p>
163-
<pre><codeclass="language-bash">[email protected].0 /path/to/npm
163+
<pre><codeclass="language-bash">[email protected].1 /path/to/npm
164164
165165
166166
</code></pre>

‎deps/npm/docs/output/commands/npm.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ <h2 id="table-of-contents">Table of contents</h2>
150150
</code></pre>
151151
<p>Note: This command is unaware of workspaces.</p>
152152
<h3id="version">Version</h3>
153-
<p>9.8.0</p>
153+
<p>9.8.1</p>
154154
<h3id="description">Description</h3>
155155
<p>npm is the package manager for the Node JavaScript platform. It puts
156156
modules in place so that node can find them, and manages dependency

‎deps/npm/lib/commands/publish.js‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class Publish extends BaseCommand{
8989
// The purpose of re-reading the manifest is in case it changed,
9090
// so that we send the latest and greatest thing to the registry
9191
// note that publishConfig might have changed as well!
92-
manifest=awaitthis.getManifest(spec,opts)
92+
manifest=awaitthis.getManifest(spec,opts,true)
9393

9494
// JSON already has the package contents
9595
if(!json){
@@ -196,11 +196,18 @@ class Publish extends BaseCommand{
196196
// if it's a directory, read it from the file system
197197
// otherwise, get the full metadata from whatever it is
198198
// XXX can't pacote read the manifest from a directory?
199-
asyncgetManifest(spec,opts){
199+
asyncgetManifest(spec,opts,logWarnings=false){
200200
letmanifest
201201
if(spec.type==='directory'){
202+
constchanges=[]
203+
constpkg=awaitpkgJson.fix(spec.fetchSpec,{ changes })
204+
if(changes.length&&logWarnings){
205+
/* eslint-disable-next-line max-len */
206+
log.warn('publish','npm auto-corrected some errors in your package.json when publishing. Please run "npm pkg fix" to address these errors.')
207+
log.warn('publish',`errors corrected:\n${changes.join('\n')}`)
208+
}
202209
// Prepare is the special function for publishing, different than normalize
203-
const{ content }=awaitpkgJson.prepare(spec.fetchSpec)
210+
const{ content }=awaitpkg.prepare()
204211
manifest=content
205212
}else{
206213
manifest=awaitpacote.manifest(spec,{

‎deps/npm/man/man1/npm-ls.1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Positional arguments are \fBname@version-range\fR identifiers, which will limit
2020
.P
2121
.RS2
2222
.nf
23-
[email protected].0 /path/to/npm
23+
[email protected].1 /path/to/npm
2424
2525
2626
.fi

‎deps/npm/man/man1/npm.1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ npm
1212
Note: This command is unaware of workspaces.
1313
.SS "Version"
1414
.P
15-
9.8.0
15+
9.8.1
1616
.SS "Description"
1717
.P
1818
npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency conflicts intelligently.

‎deps/npm/node_modules/@npmcli/arborist/package.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎deps/npm/node_modules/@npmcli/config/package.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎deps/npm/node_modules/@npmcli/package-json/lib/index.js‎

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)