| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c003ba1 commit 3805b80
15 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -987,7 +987,7 @@ When passed to `npm config` this refers to which config file to use. | |||
| 987 | 987 | ||
| 988 | 988 | * Default: Version 2 if no lockfile or current lockfile version less than or | |
| 989 | 989 | equal to 2, otherwise maintain current lockfile version | |
| 990 | - * Type: null, 1, 2, or 3 | ||
| 990 | + * Type: null, 1, 2, 3, "1", "2", or "3" | ||
| 991 | 991 | ||
| 992 | 992 | Set the lockfile format version to be used in package-lock.json and | |
| 993 | 993 | npm-shrinkwrap-json files. Possible options are: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -159,7 +159,7 @@ <h3 id="description">Description</h3> | |||
| 159 | 159 | the results to only the paths to the packages named. Note that nested | |
| 160 | 160 | packages will <em>also</em> show the paths to the specified packages. For | |
| 161 | 161 | example, running <code>npm ls promzard</code> in npm’s source tree will show:</p> | |
| 162 | - <pre lang="bash"><code>npm@8.1.1 /path/to/npm | ||
| 162 | + <pre lang="bash"><code>npm@8.1.2 /path/to/npm | ||
| 163 | 163 | └─┬ init-package-json@0.0.4 | |
| 164 | 164 | └── promzard@0.1.5 | |
| 165 | 165 | </code></pre> | |
| 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 | <pre lang="bash"><code>npm <command> [args] | |
| 149 | 149 | </code></pre> | |
| 150 | 150 | <h3 id="version">Version</h3> | |
| 151 | - <p>8.1.1</p> | ||
| 151 | + <p>8.1.2</p> | ||
| 152 | 152 | <h3 id="description">Description</h3> | |
| 153 | 153 | <p>npm is the package manager for the Node JavaScript platform. It puts | |
| 154 | 154 | modules in place so that node can find them, and manages dependency | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -939,7 +939,7 @@ <h4 id="lockfile-version"><code>lockfile-version</code></h4> | |||
| 939 | 939 | <ul> | |
| 940 | 940 | <li>Default: Version 2 if no lockfile or current lockfile version less than or | |
| 941 | 941 | equal to 2, otherwise maintain current lockfile version</li> | |
| 942 | - <li>Type: null, 1, 2, or 3</li> | ||
| 942 | + <li>Type: null, 1, 2, 3, “1”, “2”, or “3”</li> | ||
| 943 | 943 | </ul> | |
| 944 | 944 | <p>Set the lockfile format version to be used in package-lock.json and | |
| 945 | 945 | npm-shrinkwrap-json files. Possible options are:</p> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,7 @@ const pacote = require('pacote') | |||
| 8 | 8 | const npa = require('npm-package-arg') | |
| 9 | 9 | const npmFetch = require('npm-registry-fetch') | |
| 10 | 10 | const chalk = require('chalk') | |
| 11 | + const replaceInfo = require('./utils/replace-info.js') | ||
| 11 | 12 | ||
| 12 | 13 | const otplease = require('./utils/otplease.js') | |
| 13 | 14 | const { getContents, logTar } = require('./utils/tar.js') | |
@@ -68,7 +69,7 @@ class Publish extends BaseCommand { | |||
| 68 | 69 | if (args.length !== 1) | |
| 69 | 70 | throw this.usageError() | |
| 70 | 71 | ||
| 71 | - log.verbose('publish', args) | ||
| 72 | + log.verbose('publish', replaceInfo(args)) | ||
| 72 | 73 | ||
| 73 | 74 | const unicode = this.npm.config.get('unicode') | |
| 74 | 75 | const dryRun = this.npm.config.get('dry-run') | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1157,7 +1157,7 @@ define('location', { | |||
| 1157 | 1157 | ||
| 1158 | 1158 | define('lockfile-version', { | |
| 1159 | 1159 | default: null, | |
| 1160 | - type: [null, 1, 2, 3], | ||
| 1160 | + type: [null, 1, 2, 3, '1', '2', '3'], | ||
| 1161 | 1161 | defaultDescription: ` | |
| 1162 | 1162 | Version 2 if no lockfile or current lockfile version less than or equal to | |
| 1163 | 1163 | 2, otherwise maintain current lockfile version | |
@@ -1179,7 +1179,9 @@ define('lockfile-version', { | |||
| 1179 | 1179 | on disk than lockfile version 2, but not interoperable with older npm | |
| 1180 | 1180 | versions. Ideal if all users are on npm version 7 and higher. | |
| 1181 | 1181 | `, | |
| 1182 | - flatten, | ||
| 1182 | + flatten: (key, obj, flatOptions) => { | ||
| 1183 | + flatOptions.lockfileVersion = obj[key] && parseInt(obj[key], 10) | ||
| 1184 | + }, | ||
| 1183 | 1185 | }) | |
| 1184 | 1186 | ||
| 1185 | 1187 | define('loglevel', { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,7 +26,7 @@ example, running \fBnpm ls promzard\fP in npm's source tree will show: | |||
| 26 | 26 | .P | |
| 27 | 27 | .RS 2 | |
| 28 | 28 | .nf | |
| 29 | - npm@8\.1\.1 /path/to/npm | ||
| 29 | + npm@8\.1\.2 /path/to/npm | ||
| 30 | 30 | └─┬ init\-package\-json@0\.0\.4 | |
| 31 | 31 | └── promzard@0\.1\.5 | |
| 32 | 32 | .fi | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ npm <command> [args] | |||
| 10 | 10 | .RE | |
| 11 | 11 | .SS Version | |
| 12 | 12 | .P | |
| 13 | - 8\.1\.1 | ||
| 13 | + 8\.1\.2 | ||
| 14 | 14 | .SS Description | |
| 15 | 15 | .P | |
| 16 | 16 | npm is the package manager for the Node JavaScript platform\. It puts | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1254,7 +1254,7 @@ When passed to \fBnpm config\fP this refers to which config file to use\. | |||
| 1254 | 1254 | Default: Version 2 if no lockfile or current lockfile version less than or | |
| 1255 | 1255 | equal to 2, otherwise maintain current lockfile version | |
| 1256 | 1256 | .IP \(bu 2 | |
| 1257 | - Type: null, 1, 2, or 3 | ||
| 1257 | + Type: null, 1, 2, 3, "1", "2", or "3" | ||
| 1258 | 1258 | ||
| 1259 | 1259 | .RE | |
| 1260 | 1260 | .P | |
| Back | FazBrowse Home | New Git URL |
0 commit comments