GeezerVison is showing github.com — deps: upgrade npm to 8.5.0 · nodejs/node@74c0464
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: deps/npm/docs/content/commands/npm-exec.md +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -388,3 +388,4 @@ project. | 388 | 388 | * [npm stop](/commands/npm-stop) | 389 | 389 | * [npm config](/commands/npm-config) | 390 | 390 | * [npm workspaces](/using-npm/workspaces) | | 391 | +* [npx](/commands/npx) |
Collapse file Copy file name to clipboardExpand all lines: deps/npm/docs/content/commands/npx.md +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -175,3 +175,4 @@ This resulted in some shifts in its functionality: | 175 | 175 | * [npm restart](/commands/npm-restart) | 176 | 176 | * [npm stop](/commands/npm-stop) | 177 | 177 | * [npm config](/commands/npm-config) | | 178 | +* [npm exec](/commands/npm-exec) |
Collapse file Copy file name to clipboardExpand all lines: deps/npm/docs/content/using-npm/config.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1351,7 +1351,7 @@ If a package would be saved at install time by the use of `--save`, | 1351 | 1351 | `--save-dev`, or `--save-optional`, then also put it in the | 1352 | 1352 | `bundleDependencies` list. | 1353 | 1353 |
| 1354 | | -Ignore if `--save-peer` is set, since peerDependencies cannot be bundled. | | 1354 | +Ignored if `--save-peer` is set, since peerDependencies cannot be bundled. | 1355 | 1355 |
| 1356 | 1356 | <!-- automatically generated, do not edit manually --> | 1357 | 1357 | <!-- see lib/utils/config/definitions.js --> | |
Collapse file Copy file name to clipboardExpand all lines: deps/npm/docs/output/commands/npm-exec.html +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -440,6 +440,7 @@ <h3 id="see-also">See Also</h3> | 440 | 440 | <li><a href="../commands/npm-stop.html">npm stop</a></li> | 441 | 441 | <li><a href="../commands/npm-config.html">npm config</a></li> | 442 | 442 | <li><a href="../using-npm/workspaces.html">npm workspaces</a></li> | | 443 | +<li><a href="../commands/npx.html">npx</a></li> | 443 | 444 | </ul> | 444 | 445 | </div> | 445 | 446 |
| |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -160,7 +160,7 @@ <h3 id="description">Description</h3> | 160 | 160 | the results to only the paths to the packages named. Note that nested | 161 | 161 | packages will <em>also</em> show the paths to the specified packages. For | 162 | 162 | example, running <code>npm ls promzard</code> in npm's source tree will show:</p> | 163 | | -<pre lang="bash"><code>npm@8.4.1 /path/to/npm | | 163 | +<pre lang="bash"><code>npm@8.5.0 /path/to/npm | 164 | 164 | | 165 | 165 | | 166 | 166 | </code></pre> | |
Collapse file Copy file name to clipboardExpand all lines: deps/npm/docs/output/commands/npm.html +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -149,7 +149,7 @@ <h2 id="table-of-contents">Table of contents</h2> | 149 | 149 | <pre lang="bash"><code>npm <command> [args] | 150 | 150 | </code></pre> | 151 | 151 | <h3 id="version">Version</h3> | 152 | | -<p>8.4.1</p> | | 152 | +<p>8.5.0</p> | 153 | 153 | <h3 id="description">Description</h3> | 154 | 154 | <p>npm is the package manager for the Node JavaScript platform. It puts | 155 | 155 | modules in place so that node can find them, and manages dependency | |
Collapse file Copy file name to clipboardExpand all lines: deps/npm/docs/output/commands/npx.html +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -277,6 +277,7 @@ <h3 id="see-also">See Also</h3> | 277 | 277 | <li><a href="../commands/npm-restart.html">npm restart</a></li> | 278 | 278 | <li><a href="../commands/npm-stop.html">npm stop</a></li> | 279 | 279 | <li><a href="../commands/npm-config.html">npm config</a></li> | | 280 | +<li><a href="../commands/npm-exec.html">npm exec</a></li> | 280 | 281 | </ul> | 281 | 282 | </div> | 282 | 283 |
| |
Collapse file Copy file name to clipboardExpand all lines: deps/npm/docs/output/using-npm/config.html +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -1229,7 +1229,7 @@ <h4 id="save-bundle"><code>save-bundle</code></h4> | 1229 | 1229 | <p>If a package would be saved at install time by the use of <code>--save</code>, | 1230 | 1230 | <code>--save-dev</code>, or <code>--save-optional</code>, then also put it in the | 1231 | 1231 | <code>bundleDependencies</code> list.</p> | 1232 | | -<p>Ignore if <code>--save-peer</code> is set, since peerDependencies cannot be bundled.</p> | | 1232 | +<p>Ignored if <code>--save-peer</code> is set, since peerDependencies cannot be bundled.</p> | 1233 | 1233 | <!-- raw HTML omitted --> | 1234 | 1234 | <!-- raw HTML omitted --> | 1235 | 1235 | <h4 id="save-dev"><code>save-dev</code></h4> | |
Collapse file Copy file name to clipboardExpand all lines: deps/npm/lib/commands/org.js +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,6 +2,7 @@ const liborg = require('libnpmorg') | 2 | 2 | const otplease = require('../utils/otplease.js') | 3 | 3 | const Table = require('cli-table3') | 4 | 4 | const BaseCommand = require('../base-command.js') | | 5 | +const log = require('../utils/log-shim.js') | 5 | 6 |
| 6 | 7 | class Org extends BaseCommand { | 7 | 8 | static description = 'Manage orgs' | @@ -32,7 +33,10 @@ class Org extends BaseCommand { | 32 | 33 | } | 33 | 34 |
| 34 | 35 | async exec ([cmd, orgname, username, role], cb) { | 35 | | - return otplease(this.npm.flatOptions, opts => { | | 36 | + return otplease({ | | 37 | + ...this.npm.flatOptions, | | 38 | + log, | | 39 | + }, opts => { | 36 | 40 | switch (cmd) { | 37 | 41 | case 'add': | 38 | 42 | case 'set': | |
Collapse file Copy file name to clipboardExpand all lines: deps/npm/lib/commands/pack.js +2-15Lines changed: 2 additions & 15 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -const util = require('util') | 2 | 1 | const pacote = require('pacote') | 3 | 2 | const libpack = require('libnpmpack') | 4 | 3 | const npa = require('npm-package-arg') | 5 | | -const path = require('path') | 6 | 4 | const log = require('../utils/log-shim') | 7 | 5 | const { getContents, logTar } = require('../utils/tar.js') | 8 | | -const writeFile = util.promisify(require('fs').writeFile) | 9 | 6 | const BaseCommand = require('../base-command.js') | 10 | 7 |
| 11 | 8 | class Pack extends BaseCommand { | @@ -28,7 +25,6 @@ class Pack extends BaseCommand { | 28 | 25 | } | 29 | 26 |
| 30 | 27 | const unicode = this.npm.config.get('unicode') | 31 | | - const dryRun = this.npm.config.get('dry-run') | 32 | 28 | const json = this.npm.config.get('json') | 33 | 29 |
| 34 | 30 | // Get the manifests and filenames first so we can bail early on manifest | @@ -40,24 +36,15 @@ class Pack extends BaseCommand { | 40 | 36 | if (!manifest._id) { | 41 | 37 | throw new Error('Invalid package, must have name and version') | 42 | 38 | } | 43 | | - | 44 | | - const filename = `${manifest.name}-${manifest.version}.tgz` | 45 | | - .replace(/^@/, '').replace(/\//, '-') | 46 | | - manifests.push({ arg, filename, manifest }) | | 39 | + manifests.push({ arg, manifest }) | 47 | 40 | } | 48 | 41 |
| 49 | 42 | // Load tarball names up for printing afterward to isolate from the | 50 | 43 | // noise generated during packing | 51 | 44 | const tarballs = [] | 52 | | - for (const { arg, filename, manifest } of manifests) { | | 45 | + for (const { arg, manifest } of manifests) { | 53 | 46 | const tarballData = await libpack(arg, this.npm.flatOptions) | 54 | 47 | const pkgContents = await getContents(manifest, tarballData) | 55 | | - const tarballFilename = path.resolve(this.npm.config.get('pack-destination'), filename) | 56 | | - | 57 | | - if (!dryRun) { | 58 | | - await writeFile(tarballFilename, tarballData) | 59 | | - } | 60 | | - | 61 | 48 | tarballs.push(pkgContents) | 62 | 49 | } | 63 | 50 |
| |
|