8000 deps: upgrade npm to 8.5.3 · nodejs/node@70c0758 · GitHub
[go: up one dir, main page]

Skip to content

Commit 70c0758

Browse files
npm-robotbengl
authored andcommitted
deps: upgrade npm to 8.5.3
PR-URL: #42205 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent f3c6c00 commit 70c0758

File tree

243 files changed

+2363
-2447
lines changed

Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ <h3 id="description">Description</h3>
166166
the results to only the paths to the packages named. Note that nested
167167
packages will <em>also</em> show the paths to the specified packages. For
168168
example, running <code>npm ls promzard</code> in npm's source tree will show:</p>
169-
<pre lang="bash"><code>npm@8.5.2 /path/to/npm
169+
<pre lang="bash"><code>npm@8.5.3 /path/to/npm
170170
└─┬ init-package-json@0.0.4
171171
└── promzard@0.1.5
172172
</code></pre>

Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ <h2 id="table-of-contents">Table of contents</h2>
149149
<!-- raw HTML omitted -->
150150
<!-- raw HTML omitted -->
151151
<h3 id="version">Version</h3>
152-
<p>8.5.2</p>
152+
<p>8.5.3</p>
153153
<h3 id="description">Description</h3>
154154
<p>npm is the package manager for the Node JavaScript platform. It puts
155155
modules in place so that node can find them, and manages dependency

Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class ArboristCmd extends BaseCommand {
1414
'include-workspace-root',
1515
]
1616

17+
static ignoreImplicitWorkspace = false
18+
1719
async execWorkspaces (args, filters) {
1820
await this.setWorkspaces(filters)
1921
return this.exec(args)

Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ class BaseCommand {
2020
return this.constructor.description
2121
}
2222

23+
get ignoreImplicitWorkspace () {
24+
return this.constructor.ignoreImplicitWorkspace
25+
}
26+
2327
get usage () {
2428
let usage = `npm ${this.constructor.name}\n\n`
2529
if (this.constructor.description) {

Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class Access extends BaseCommand {
2727
'otp',
2828
]
2929

30+
static ignoreImplicitWorkspace = true
31+
3032
static usage = [
3133
'public [<package>]',
3234
'restricted [<package>]',

Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class AddUser extends BaseCommand {
1616
'scope',
1717
]
1818

19+
static ignoreImplicitWorkspace = true
20+
1921
async exec (args) {
2022
const { scope } = this.npm.flatOptions
2123
const registry = this.getRegistry(this.npm.flatOptions)

Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class Bin extends BaseCommand {
55
static description = 'Display npm bin folder'
66
static name = 'bin'
77
static params = ['global']
8+
static ignoreImplicitWorkspace = true
89

910
async exec (args) {
1011
const b = this.npm.bin

Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ const BaseCommand = require('../base-command.js')
22

33
class Birthday extends BaseCommand {
44
static name = 'birthday'
5+
static ignoreImplicitWorkspace = true
6+
57
async exec () {
68
this.npm.config.set('yes', true)
79
return this.npm.exec('exec', ['@npmcli/npm-birthday'])

Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class Bugs extends BaseCommand {
99
static name = 'bugs'
1010
static usage = ['[<pkgname>]']
1111
static params = ['browser', 'registry']
12+
static ignoreImplicitWorkspace = true
1213

1314
async exec (args) {
1415
if (!args || !args.length) {

Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ class Cache extends BaseCommand {
8181
'verify',
8282
]
8383

84+
static ignoreImplicitWorkspace = true
85+
8486
async completion (opts) {
8587
const argv = opts.conf.argv.remain
8688
if (argv.length === 2) {