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 2700e70

Browse filesBrowse files
npm-cli-botdanielleadams
authored andcommitted
deps: upgrade npm to 9.6.2
PR-URL: #47108 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1e6fe56 commit 2700e70
Copy full SHA for 2700e70

File tree

Expand file treeCollapse file tree

260 files changed

+3377
-2191
lines changed
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

260 files changed

+3377
-2191
lines changed
Open diff view settings
Collapse file

‎deps/npm/docs/content/commands/npm-install-ci-test.md‎

Copy file name to clipboardExpand all lines: deps/npm/docs/content/commands/npm-install-ci-test.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: Install a project with a clean slate and run tests
99
```bash
1010
npm install-ci-test
1111

12-
alias: cit
12+
aliases: cit, clean-install-test, sit
1313
```
1414

1515
### Description
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@9.5.1 /path/to/npm
30+
npm@9.6.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-
9.5.1
17+
9.6.2
1818

1919
### Description
2020

Collapse file

‎deps/npm/docs/content/configuring-npm/package-lock-json.md‎

Copy file name to clipboardExpand all lines: deps/npm/docs/content/configuring-npm/package-lock-json.md
+3-6Lines changed: 3 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,9 @@ the npm registry. Lockfiles generated by npm v7 will contain
112112
* No version provided: an "ancient" shrinkwrap file from a version of npm
113113
prior to npm v5.
114114
* `1`: The lockfile version used by npm v5 and v6.
115-
* `2`: The lockfile version used by npm v7, which is backwards compatible
116-
to v1 lockfiles.
117-
* `3`: The lockfile version used by npm v7, _without_ backwards
118-
compatibility affordances. This is used for the hidden lockfile at
119-
`node_modules/.package-lock.json`, and will likely be used in a future
120-
version of npm, once support for npm v6 is no longer relevant.
115+
* `2`: The lockfile version used by npm v7 and v8. Backwards compatible to v1
116+
lockfiles.
117+
* `3`: The lockfile version used by npm v9. Backwards compatible to npm v7.
121118

122119
npm will always attempt to get whatever data it can out of a lockfile, even
123120
if it is not a version that it was designed to support.
Collapse file

‎deps/npm/docs/output/commands/npm-install-ci-test.html‎

Copy file name to clipboardExpand all lines: deps/npm/docs/output/commands/npm-install-ci-test.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ <h2 id="table-of-contents">Table of contents</h2>
148148
<div id="_content"><h3 id="synopsis">Synopsis</h3>
149149
<pre><code class="language-bash">npm install-ci-test
150150

151-
alias: cit
151+
aliases: cit, clean-install-test, sit
152152
</code></pre>
153153
<h3 id="description">Description</h3>
154154
<p>This command runs <code>npm ci</code> followed immediately by <code>npm test</code>.</p>
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@9.5.1 /path/to/npm
163+
<pre><code class="language-bash">npm@9.6.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>9.5.1</p>
153+
<p>9.6.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/docs/output/configuring-npm/package-lock-json.html‎

Copy file name to clipboardExpand all lines: deps/npm/docs/output/configuring-npm/package-lock-json.html
+3-6Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,9 @@ <h4 id="lockfileversion"><code>lockfileVersion</code></h4>
239239
<li>No version provided: an "ancient" shrinkwrap file from a version of npm
240240
prior to npm v5.</li>
241241
<li><code>1</code>: The lockfile version used by npm v5 and v6.</li>
242-
<li><code>2</code>: The lockfile version used by npm v7, which is backwards compatible
243-
to v1 lockfiles.</li>
244-
<li><code>3</code>: The lockfile version used by npm v7, <em>without</em> backwards
245-
compatibility affordances. This is used for the hidden lockfile at
246-
<code>node_modules/.package-lock.json</code>, and will likely be used in a future
247-
version of npm, once support for npm v6 is no longer relevant.</li>
242+
<li><code>2</code>: The lockfile version used by npm v7 and v8. Backwards compatible to v1
243+
lockfiles.</li>
244+
<li><code>3</code>: The lockfile version used by npm v9. Backwards compatible to npm v7.</li>
248245
</ul>
249246
<p>npm will always attempt to get whatever data it can out of a lockfile, even
250247
if it is not a version that it was designed to support.</p>
Collapse file

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

Copy file name to clipboardExpand all lines: deps/npm/lib/commands/access.js
+18-16Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,22 @@ class Access extends BaseCommand {
5353
return commands
5454
}
5555

56-
switch (argv[2]) {
57-
case 'grant':
58-
return ['read-only', 'read-write']
59-
case 'revoke':
60-
return []
61-
case 'list':
62-
case 'ls':
63-
return ['packages', 'collaborators']
64-
case 'get':
65-
return ['status']
66-
case 'set':
67-
return setCommands
68-
default:
69-
throw new Error(argv[2] + ' not recognized')
56+
if (argv.length === 3) {
57+
switch (argv[2]) {
58+
case 'grant':
59+
return ['read-only', 'read-write']
60+
case 'revoke':
61+
return []
62+
case 'list':
63+
case 'ls':
64+
return ['packages', 'collaborators']
65+
case 'get':
66+
return ['status']
67+
case 'set':
68+
return setCommands
69+
default:
70+
throw new Error(argv[2] + ' not recognized')
71+
}
7072
}
7173
}
7274

@@ -116,11 +118,11 @@ class Access extends BaseCommand {
116118
}
117119

118120
async #grant (permissions, scope, pkg) {
119-
await libnpmaccess.setPermissions(scope, pkg, permissions)
121+
await libnpmaccess.setPermissions(scope, pkg, permissions, this.npm.flatOptions)
120122
}
121123

122124
async #revoke (scope, pkg) {
123-
await libnpmaccess.removePermissions(scope, pkg)
125+
await libnpmaccess.removePermissions(scope, pkg, this.npm.flatOptions)
124126
}
125127

126128
async #listPackages (owner, pkg) {
Collapse file

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

Copy file name to clipboardExpand all lines: deps/npm/lib/commands/audit.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,12 @@ class Audit extends ArboristWorkspaceCmd {
389389
const argv = opts.conf.argv.remain
390390

391391
if (argv.length === 2) {
392-
return ['fix']
392+
return ['fix', 'signatures']
393393
}
394394

395395
switch (argv[2]) {
396396
case 'fix':
397+
case 'signatures':
397398
return []
398399
default:
399400
throw Object.assign(new Error(argv[2] + ' not recognized'), {

0 commit comments

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