Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8fd5a35

Browse filesBrowse files
npm-cli-botrichardlau
authored andcommitted
deps: upgrade npm to 10.5.2
PR-URL: #52458 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
1 parent 71616e8 commit 8fd5a35
Copy full SHA for 8fd5a35

89 files changed

+3,333-2,609Lines changed: 3333 additions & 2609 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: deps/npm/docs/content/commands/npm-audit.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ The `sig` is generated using the following template: `${package.name}@${package.
9090

9191
Keys response:
9292

93-
- `expires`: null or a simplified extended [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601"): `YYYY-MM-DDTHH:mm:ss.sssZ`
93+
- `expires`: null or a simplified extended [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601): `YYYY-MM-DDTHH:mm:ss.sssZ`
9494
- `keydid`: sha256 fingerprint of the public key
9595
- `keytype`: only `ecdsa-sha2-nistp256` is currently supported by the npm CLI
9696
- `scheme`: only `ecdsa-sha2-nistp256` is currently supported by the npm CLI
Collapse file

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

Copy file name to clipboardExpand all lines: deps/npm/docs/content/commands/npm-ls.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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-
npm@10.5.1 /path/to/npm
30+
npm@10.5.2 /path/to/npm
3131
└─┬ init-package-json@0.0.4
3232
└── promzard@0.1.5
3333
```
Collapse file

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

Copy file name to clipboardExpand all lines: deps/npm/docs/content/commands/npm.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Note: This command is unaware of workspaces.
1414

1515
### Version
1616

17-
10.5.1
17+
10.5.2
1818

1919
### Description
2020

Collapse file

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

Copy file name to clipboardExpand all lines: deps/npm/docs/output/commands/npm-audit.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ <h3 id="audit-signatures">Audit Signatures</h3>
209209
</code></pre>
210210
<p>Keys response:</p>
211211
<ul>
212-
<li><code>expires</code>: null or a simplified extended <a href="https://en.wikipedia.org/wiki/ISO_8601%22">ISO 8601 format</a>: <code>YYYY-MM-DDTHH:mm:ss.sssZ</code></li>
212+
<li><code>expires</code>: null or a simplified extended <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO 8601 format</a>: <code>YYYY-MM-DDTHH:mm:ss.sssZ</code></li>
213213
<li><code>keydid</code>: sha256 fingerprint of the public key</li>
214214
<li><code>keytype</code>: only <code>ecdsa-sha2-nistp256</code> is currently supported by the npm CLI</li>
215215
<li><code>scheme</code>: only <code>ecdsa-sha2-nistp256</code> is currently supported by the npm CLI</li>
Collapse file

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

Copy file name to clipboardExpand all lines: deps/npm/docs/output/commands/npm-ls.html
+1-1Lines 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><code class="language-bash">npm@10.5.1 /path/to/npm
163+
<pre><code class="language-bash">npm@10.5.2 /path/to/npm
164164
└─┬ init-package-json@0.0.4
165165
└── promzard@0.1.5
166166
</code></pre>
Collapse file

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

Copy file name to clipboardExpand all lines: deps/npm/docs/output/commands/npm.html
+1-1Lines 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
<h3 id="version">Version</h3>
153-
<p>10.5.1</p>
153+
<p>10.5.2</p>
154154
<h3 id="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
Collapse file

‎deps/npm/lib/base-command.js‎

Copy file name to clipboardExpand all lines: deps/npm/lib/base-command.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
const { relative } = require('path')
44

55
const { definitions } = require('@npmcli/config/lib/definitions')
6-
const getWorkspaces = require('./workspaces/get-workspaces.js')
76
const { aliases: cmdAliases } = require('./utils/cmd-list')
87
const log = require('./utils/log-shim.js')
98

@@ -170,6 +169,7 @@ class BaseCommand {
170169
const relativeFrom = prefixInsideCwd ? this.npm.localPrefix : process.cwd()
171170

172171
const filters = this.npm.config.get('workspace')
172+
const getWorkspaces = require('./workspaces/get-workspaces.js')
173173
const ws = await getWorkspaces(filters, {
174174
path: this.npm.localPrefix,
175175
includeWorkspaceRoot,
Collapse file

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

Copy file name to clipboardExpand all lines: deps/npm/lib/commands/owner.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const log = require('../utils/log-shim')
55
const otplease = require('../utils/otplease.js')
66
const pkgJson = require('@npmcli/package-json')
77
const BaseCommand = require('../base-command.js')
8+
const { redact } = require('@npmcli/redact')
89

910
const readJson = async (path) => {
1011
try {
@@ -119,7 +120,7 @@ class Owner extends BaseCommand {
119120
this.npm.output(maintainers.map(m => `${m.name} <${m.email}>`).join('\n'))
120121
}
121122
} catch (err) {
122-
log.error('owner ls', "Couldn't get owner data", npmFetch.cleanUrl(pkg))
123+
log.error('owner ls', "Couldn't get owner data", redact(pkg))
123124
throw err
124125
}
125126
}
Collapse file

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

Copy file name to clipboardExpand all lines: deps/npm/lib/commands/ping.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { cleanUrl } = require('npm-registry-fetch')
1+
const { redact } = require('@npmcli/redact')
22
const log = require('../utils/log-shim')
33
const pingUtil = require('../utils/ping.js')
44
const BaseCommand = require('../base-command.js')
@@ -9,7 +9,7 @@ class Ping extends BaseCommand {
99
static name = 'ping'
1010

1111
async exec (args) {
12-
const cleanRegistry = cleanUrl(this.npm.config.get('registry'))
12+
const cleanRegistry = redact(this.npm.config.get('registry'))
1313
log.notice('PING', cleanRegistry)
1414
const start = Date.now()
1515
const details = await pingUtil({ ...this.npm.flatOptions })
Collapse file

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

Copy file name to clipboardExpand all lines: deps/npm/lib/commands/publish.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,12 @@ class Publish extends BaseCommand {
220220
})
221221
}
222222
if (manifest.publishConfig) {
223-
flatten(manifest.publishConfig, opts)
223+
const cliFlags = this.npm.config.data.get('cli').raw
224+
// Filter out properties set in CLI flags to prioritize them over
225+
// corresponding `publishConfig` settings
226+
const filteredPublishConfig = Object.fromEntries(
227+
Object.entries(manifest.publishConfig).filter(([key]) => !(key in cliFlags)))
228+
flatten(filteredPublishConfig, opts)
224229
}
225230
return manifest
226231
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.