| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ description: Install a project with a clean slate and run tests | |||
| 9 | 9 | ```bash | |
| 10 | 10 | npm install-ci-test | |
| 11 | 11 | ||
| 12 | - alias: cit | ||
| 12 | + aliases: cit, clean-install-test, sit | ||
| 13 | 13 | ``` | |
| 14 | 14 | ||
| 15 | 15 | ### Description | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ packages will *also* show the paths to the specified packages. For | |||
| 27 | 27 | example, running `npm ls promzard` in npm's source tree will show: | |
| 28 | 28 | ||
| 29 | 29 | ```bash | |
| 30 | - npm@9.5.1 /path/to/npm | ||
| 30 | + npm@9.6.2 /path/to/npm | ||
| 31 | 31 | └─┬ init-package-json@0.0.4 | |
| 32 | 32 | └── promzard@0.1.5 | |
| 33 | 33 | ``` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ Note: This command is unaware of workspaces. | |||
| 14 | 14 | ||
| 15 | 15 | ### Version | |
| 16 | 16 | ||
| 17 | - 9.5.1 | ||
| 17 | + 9.6.2 | ||
| 18 | 18 | ||
| 19 | 19 | ### Description | |
| 20 | 20 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -112,12 +112,9 @@ the npm registry. Lockfiles generated by npm v7 will contain | |||
| 112 | 112 | * No version provided: an "ancient" shrinkwrap file from a version of npm | |
| 113 | 113 | prior to npm v5. | |
| 114 | 114 | * `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. | ||
| 121 | 118 | ||
| 122 | 119 | npm will always attempt to get whatever data it can out of a lockfile, even | |
| 123 | 120 | if it is not a version that it was designed to support. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -148,7 +148,7 @@ <h2 id="table-of-contents">Table of contents</h2> | |||
| 148 | 148 | <div id="_content"><h3 id="synopsis">Synopsis</h3> | |
| 149 | 149 | <pre><code class="language-bash">npm install-ci-test | |
| 150 | 150 | ||
| 151 | - alias: cit | ||
| 151 | + aliases: cit, clean-install-test, sit | ||
| 152 | 152 | </code></pre> | |
| 153 | 153 | <h3 id="description">Description</h3> | |
| 154 | 154 | <p>This command runs <code>npm ci</code> followed immediately by <code>npm test</code>.</p> | |
| 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><code class="language-bash">npm@9.5.1 /path/to/npm | ||
| 163 | + <pre><code class="language-bash">npm@9.6.2 /path/to/npm | ||
| 164 | 164 | └─┬ init-package-json@0.0.4 | |
| 165 | 165 | └── promzard@0.1.5 | |
| 166 | 166 | </code></pre> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -150,7 +150,7 @@ <h2 id="table-of-contents">Table of contents</h2> | |||
| 150 | 150 | </code></pre> | |
| 151 | 151 | <p>Note: This command is unaware of workspaces.</p> | |
| 152 | 152 | <h3 id="version">Version</h3> | |
| 153 | - <p>9.5.1</p> | ||
| 153 | + <p>9.6.2</p> | ||
| 154 | 154 | <h3 id="description">Description</h3> | |
| 155 | 155 | <p>npm is the package manager for the Node JavaScript platform. It puts | |
| 156 | 156 | modules in place so that node can find them, and manages dependency | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -239,12 +239,9 @@ <h4 id="lockfileversion"><code>lockfileVersion</code></h4> | |||
| 239 | 239 | <li>No version provided: an "ancient" shrinkwrap file from a version of npm | |
| 240 | 240 | prior to npm v5.</li> | |
| 241 | 241 | <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> | ||
| 248 | 245 | </ul> | |
| 249 | 246 | <p>npm will always attempt to get whatever data it can out of a lockfile, even | |
| 250 | 247 | if it is not a version that it was designed to support.</p> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,20 +53,22 @@ class Access extends BaseCommand { | |||
| 53 | 53 | return commands | |
| 54 | 54 | } | |
| 55 | 55 | ||
| 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 | + } | ||
| 70 | 72 | } | |
| 71 | 73 | } | |
| 72 | 74 | ||
@@ -116,11 +118,11 @@ class Access extends BaseCommand { | |||
| 116 | 118 | } | |
| 117 | 119 | ||
| 118 | 120 | async #grant (permissions, scope, pkg) { | |
| 119 | - await libnpmaccess.setPermissions(scope, pkg, permissions) | ||
| 121 | + await libnpmaccess.setPermissions(scope, pkg, permissions, this.npm.flatOptions) | ||
| 120 | 122 | } | |
| 121 | 123 | ||
| 122 | 124 | async #revoke (scope, pkg) { | |
| 123 | - await libnpmaccess.removePermissions(scope, pkg) | ||
| 125 | + await libnpmaccess.removePermissions(scope, pkg, this.npm.flatOptions) | ||
| 124 | 126 | } | |
| 125 | 127 | ||
| 126 | 128 | async #listPackages (owner, pkg) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -389,11 +389,12 @@ class Audit extends ArboristWorkspaceCmd { | |||
| 389 | 389 | const argv = opts.conf.argv.remain | |
| 390 | 390 | ||
| 391 | 391 | if (argv.length === 2) { | |
| 392 | - return ['fix'] | ||
| 392 | + return ['fix', 'signatures'] | ||
| 393 | 393 | } | |
| 394 | 394 | ||
| 395 | 395 | switch (argv[2]) { | |
| 396 | 396 | case 'fix': | |
| 397 | + case 'signatures': | ||
| 397 | 398 | return [] | |
| 398 | 399 | default: | |
| 399 | 400 | throw Object.assign(new Error(argv[2] + ' not recognized'), { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments