Skip to content

Commit 8e3e1db

Browse files
npm-robotxtx1130
authored andcommitted
deps: upgrade npm to 8.5.3
PR-URL: nodejs#42205 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent 1653685 commit 8e3e1db

File tree

243 files changed

+2363
-2447
lines changed

Some content is hidden

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

243 files changed

+2363
-2447
lines changed

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

+1-1
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>[email protected].2 /path/to/npm
169+
<pre lang="bash"><code>[email protected].3 /path/to/npm
170170
171171
172172
</code></pre>

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

+1-1
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

deps/npm/lib/arborist-cmd.js

+2
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)

deps/npm/lib/base-command.js

+4
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) {

deps/npm/lib/commands/access.js

+2
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>]',

deps/npm/lib/commands/adduser.js

+2
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)

deps/npm/lib/commands/bin.js

+1
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

deps/npm/lib/commands/birthday.js

+2
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'])

deps/npm/lib/commands/bugs.js

+1
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) {

deps/npm/lib/commands/cache.js

+2
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) {

deps/npm/lib/commands/completion.js

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const BaseCommand = require('../base-command.js')
4747
class Completion extends BaseCommand {
4848
static description = 'Tab Completion for npm'
4949
static name = 'completion'
50+
static ignoreImplicitWorkspace = false
5051

5152
// completion for the completion command
5253
async completion (opts) {

deps/npm/lib/commands/config.js

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ class Config extends BaseCommand {
6161
'long',
6262
]
6363

64+
static ignoreImplicitWorkspace = false
65+
6466
async completion (opts) {
6567
const argv = opts.conf.argv.remain
6668
if (argv[1] !== 'config') {

deps/npm/lib/commands/deprecate.js

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class Deprecate extends BaseCommand {
1515
'otp',
1616
]
1717

18+
static ignoreImplicitWorkspace = false
19+
1820
async completion (opts) {
1921
if (opts.conf.argv.remain.length > 1) {
2022
return []

deps/npm/lib/commands/diff.js

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class Diff extends BaseCommand {
3232
'include-workspace-root',
3333
]
3434

35+
static ignoreImplicitWorkspace = false
36+
3537
async exec (args) {
3638
const specs = this.npm.config.get('diff').filter(d => d)
3739
if (specs.length > 2) {

deps/npm/lib/commands/dist-tag.js

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class DistTag extends BaseCommand {
1616
'ls [<pkg>]',
1717
]
1818

19+
static ignoreImplicitWorkspace = false
20+
1921
async completion (opts) {
2022
const argv = opts.conf.argv.remain
2123
if (argv.length === 2) {

deps/npm/lib/commands/docs.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class Docs extends BaseCommand {
1515
]
1616

1717
static usage = ['[<pkgname> [<pkgname> ...]]']
18+
static ignoreImplicitWorkspace = false
1819

1920
async exec (args) {
2021
if (!args || !args.length) {

deps/npm/lib/commands/doctor.js

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class Doctor extends BaseCommand {
4141
static description = 'Check your npm environment'
4242
static name = 'doctor'
4343
static params = ['registry']
44+
static ignoreImplicitWorkspace = false
4445

4546
async exec (args) {
4647
log.info('Running checkup')

deps/npm/lib/commands/edit.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Edit extends BaseCommand {
1313
static name = 'edit'
1414
static usage = ['<pkg>[/<subpkg>...]']
1515
static params = ['editor']
16+
static ignoreImplicitWorkspace = false
1617

1718
// TODO
1819
/* istanbul ignore next */

deps/npm/lib/commands/exec.js

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ class Exec extends BaseCommand {
4545
'--package=foo -c \'<cmd> [args...]\'',
4646
]
4747

48+
static ignoreImplicitWorkspace = false
49+
4850
async exec (_args, { locationMsg, path, runPath } = {}) {
4951
if (!path) {
5052
path = this.npm.localPrefix

deps/npm/lib/commands/explain.js

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class Explain extends ArboristWorkspaceCmd {
1616
'workspace',
1717
]
1818

19+
static ignoreImplicitWorkspace = false
20+
1921
// TODO
2022
/* istanbul ignore next */
2123
async completion (opts) {

deps/npm/lib/commands/explore.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Explore extends BaseCommand {
1313
static name = 'explore'
1414
static usage = ['<pkg> [ -- <command>]']
1515
static params = ['shell']
16+
static ignoreImplicitWorkspace = false
1617

1718
// TODO
1819
/* istanbul ignore next */

deps/npm/lib/commands/get.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ class Get extends BaseCommand {
44
static description = 'Get a value from the npm configuration'
55
static name = 'get'
66
static usage = ['[<key> ...] (See `npm config`)']
7+
static ignoreImplicitWorkspace = false
78

89
// TODO
910
/* istanbul ignore next */

deps/npm/lib/commands/help-search.js

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class HelpSearch extends BaseCommand {
1111
static name = 'help-search'
1212
static usage = ['<text>']
1313
static params = ['long']
14+
static ignoreImplicitWorkspace = true
1415

1516
async exec (args) {
1617
if (!args.length) {

deps/npm/lib/commands/help.js

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Help extends BaseCommand {
1717
static name = 'help'
1818
static usage = ['<term> [<terms..>]']
1919
static params = ['viewer']
20+
static ignoreImplicitWorkspace = true
2021

2122
async completion (opts) {
2223
if (opts.conf.argv.remain.length > 2) {

deps/npm/lib/commands/hook.js

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class Hook extends BaseCommand {
1919
'update <id> <url> <secret>',
2020
]
2121

22+
static ignoreImplicitWorkspace = true
23+
2224
async exec (args) {
2325
return otplease({
2426
...this.npm.flatOptions,

deps/npm/lib/commands/init.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class Init extends BaseCommand {
2222
'[<@scope>/]<name> (same as `npx [<@scope>/]create-<name>`)',
2323
]
2424

25+
static ignoreImplicitWorkspace = false
26+
2527
async exec (args) {
2628
// npm exec style
2729
if (args.length) {

deps/npm/lib/commands/logout.js

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class Logout extends BaseCommand {
1111
'scope',
1212
]
1313

14+
static ignoreImplicitWorkspace = true
15+
1416
async exec (args) {
1517
const registry = this.npm.config.get('registry')
1618
const scope = this.npm.config.get('scope')

deps/npm/lib/commands/ls.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,15 @@ class LS extends ArboristWorkspaceCmd {
9595
return true
9696
}
9797

98+
if (this.npm.flatOptions.includeWorkspaceRoot
99+
&& !edge.to.isWorkspace) {
100+
return true
101+
}
102+
98103
if (edge.from.isProjectRoot) {
99-
return edge.to &&
100-
edge.to.isWorkspace &&
101-
wsNodes.includes(edge.to.target)
104+
return (edge.to
105+
&& edge.to.isWorkspace
106+
&& wsNodes.includes(edge.to.target))
102107
}
103108

104109
return true

deps/npm/lib/commands/org.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Org extends BaseCommand {
1313
]
1414

1515
static params = ['registry', 'otp', 'json', 'parseable']
16+
static ignoreImplicitWorkspace = true
1617

1718
async completion (opts) {
1819
const argv = opts.conf.argv.remain

deps/npm/lib/commands/owner.js

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class Owner extends BaseCommand {
2020
'ls [<@scope>/]<pkg>',
2121
]
2222

23+
static ignoreImplicitWorkspace = false
24+
2325
async completion (opts) {
2426
const argv = opts.conf.argv.remain
2527
if (argv.length > 3) {

deps/npm/lib/commands/pack.js

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class Pack extends BaseCommand {
1818
]
1919

2020
static usage = ['[[<@scope>/]<pkg>...]']
21+
static ignoreImplicitWorkspace = false
2122

2223
async exec (args) {
2324
if (args.length === 0) {

deps/npm/lib/commands/ping.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class Ping extends BaseCommand {
66
static description = 'Ping npm registry'
77
static params = ['registry']
88
static name = 'ping'
9+
static ignoreImplicitWorkspace = true
910

1011
async exec (args) {
1112
log.notice('PING', this.npm.config.get('registry'))

deps/npm/lib/commands/pkg.js

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class Pkg extends BaseCommand {
2020
'workspaces',
2121
]
2222

23+
static ignoreImplicitWorkspace = false
24+
2325
async exec (args, { prefix } = {}) {
2426
if (!prefix) {
2527
this.prefix = this.npm.localPrefix

deps/npm/lib/commands/prefix.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class Prefix extends BaseCommand {
55
static name = 'prefix'
66
static params = ['global']
77
static usage = ['[-g]']
8+
static ignoreImplicitWorkspace = true
89

910
async exec (args) {
1011
return this.npm.output(this.npm.prefix)

deps/npm/lib/commands/profile.js

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ class Profile extends BaseCommand {
5454
'otp',
5555
]
5656

57+
static ignoreImplicitWorkspace = true
58+
5759
async completion (opts) {
5860
var argv = opts.conf.argv.remain
5961

deps/npm/lib/commands/publish.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class Publish extends BaseCommand {
3939
]
4040

4141
static usage = ['[<folder>]']
42+
static ignoreImplicitWorkspace = false
4243

4344
async exec (args) {
4445
if (args.length === 0) {
@@ -195,7 +196,11 @@ class Publish extends BaseCommand {
195196
if (spec.type === 'directory') {
196197
return readJson(`${spec.fetchSpec}/package.json`)
197198
}
198-
return pacote.manifest(spec, { ...opts, fullMetadata: true })
199+
return pacote.manifest(spec, {
200+
...opts,
201+
fullMetadata: true,
202+
fullReadJson: true,
203+
})
199204
}
200205
}
201206
module.exports = Publish

deps/npm/lib/commands/repo.js

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class Repo extends BaseCommand {
1010
static name = 'repo'
1111
static params = ['browser', 'workspace', 'workspaces', 'include-workspace-root']
1212
static usage = ['[<pkgname> [<pkgname> ...]]']
13+
static ignoreImplicitWorkspace = false
1314

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

deps/npm/lib/commands/restart.js

+2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ class Restart extends LifecycleCmd {
88
'ignore-scripts',
99
'script-shell',
1010
]
11+
12+
static ignoreImplicitWorkspace = false
1113
}
1214
module.exports = Restart

deps/npm/lib/commands/root.js

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ class Root extends BaseCommand {
33
static description = 'Display npm root'
44
static name = 'root'
55
static params = ['global']
6+
static ignoreImplicitWorkspace = true
67

78
async exec () {
89
this.npm.output(this.npm.dir)

deps/npm/lib/commands/run-script.js

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class RunScript extends BaseCommand {
4040

4141
static name = 'run-script'
4242
static usage = ['<command> [-- <args>]']
43+
static ignoreImplicitWorkspace = false
4344

4445
async completion (opts) {
4546
const argv = opts.conf.argv.remain

deps/npm/lib/commands/search.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class Search extends BaseCommand {
4444
]
4545

4646
static usage = ['[search terms ...]']
47+
static ignoreImplicitWorkspace = true
4748

4849
async exec (args) {
4950
const opts = {

deps/npm/lib/commands/set-script.js

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class SetScript extends BaseCommand {
99
static params = ['workspace', 'workspaces', 'include-workspace-root']
1010
static name = 'set-script'
1111
static usage = ['[<script>] [<command>]']
12+
static ignoreImplicitWorkspace = false
1213

1314
async completion (opts) {
1415
const argv = opts.conf.argv.remain

deps/npm/lib/commands/set.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ class Set extends BaseCommand {
44
static description = 'Set a value in the npm configuration'
55
static name = 'set'
66
static usage = ['<key>=<value> [<key>=<value> ...] (See `npm config`)']
7+
static ignoreImplicitWorkspace = false
78

89
// TODO
910
/* istanbul ignore next */

deps/npm/lib/commands/shrinkwrap.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const BaseCommand = require('../base-command.js')
66
class Shrinkwrap extends BaseCommand {
77
static description = 'Lock down dependency versions for publication'
88
static name = 'shrinkwrap'
9+
static ignoreImplicitWorkspace = false
910

1011
async exec () {
1112
// if has a npm-shrinkwrap.json, nothing to do

0 commit comments

Comments
 (0)