@pnpm/list
Advanced tools
Comparing version 5.0.4 to 5.0.5
# @pnpm/list | ||
## 5.0.5 | ||
### Patch Changes | ||
- aa21a2df3: Print the legend only once. | ||
## 5.0.4 | ||
@@ -4,0 +10,0 @@ |
@@ -18,3 +18,6 @@ "use strict"; | ||
async function default_1(packages, opts) { | ||
return (await Promise.all(packages.map((pkg) => renderTreeForPackage(pkg, opts)))).filter(Boolean).join('\n\n'); | ||
const output = (await Promise.all(packages.map((pkg) => renderTreeForPackage(pkg, opts)))) | ||
.filter(Boolean) | ||
.join('\n\n'); | ||
return `${(opts.depth > -1 && output ? LEGEND : '')}${output}`; | ||
} | ||
@@ -39,3 +42,3 @@ exports.default = default_1; | ||
label += pkg.path; | ||
let output = (opts.depth > -1 ? LEGEND : '') + label + '\n'; | ||
let output = `${label}\n`; | ||
const useColumns = opts.depth === 0 && opts.long === false && !opts.search; | ||
@@ -42,0 +45,0 @@ for (let dependenciesField of [...types_1.DEPENDENCIES_FIELDS.sort(), 'unsavedDependencies']) { |
{ | ||
"name": "@pnpm/list", | ||
"version": "5.0.4", | ||
"version": "5.0.5", | ||
"description": "List installed packages in a symlinked `node_modules`", | ||
@@ -47,3 +47,3 @@ "main": "lib/index.js", | ||
"p-limit": "^3.0.2", | ||
"ramda": "^0.27.0", | ||
"ramda": "^0.27.1", | ||
"semver": "^7.3.2" | ||
@@ -55,3 +55,3 @@ }, | ||
"@types/archy": "0.0.31", | ||
"@types/ramda": "^0.27.11", | ||
"@types/ramda": "^0.27.14", | ||
"@types/semver": "^7.3.1" | ||
@@ -58,0 +58,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21862
430
Updatedramda@^0.27.1