@ikenga/cli 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9525,7 +9525,8 @@ async function listAvailable(opts) {
|
|
|
9525
9525
|
try {
|
|
9526
9526
|
const { index } = await fetchIndex2();
|
|
9527
9527
|
const installed = new Map(listInstalled().map((p2) => [p2.id, p2.version]));
|
|
9528
|
-
const
|
|
9528
|
+
const visiblePkgs = index.pkgs.filter((entry) => entry.visibility !== "hidden");
|
|
9529
|
+
const rows = visiblePkgs.map((entry) => {
|
|
9529
9530
|
const installedVersion = installed.get(npmNameToPkgId(entry.name));
|
|
9530
9531
|
let state = "available";
|
|
9531
9532
|
if (installedVersion) {
|
|
@@ -9545,7 +9546,7 @@ async function listAvailable(opts) {
|
|
|
9545
9546
|
`);
|
|
9546
9547
|
return 0;
|
|
9547
9548
|
}
|
|
9548
|
-
process.stdout.write(`${
|
|
9549
|
+
process.stdout.write(`${visiblePkgs.length} pkg(s) in registry \xB7 signed by minisign key on disk
|
|
9549
9550
|
|
|
9550
9551
|
`);
|
|
9551
9552
|
for (const r of rows) {
|
|
@@ -9733,7 +9734,7 @@ async function main() {
|
|
|
9733
9734
|
return 0;
|
|
9734
9735
|
}
|
|
9735
9736
|
if (sub === "--version" || sub === "-V") {
|
|
9736
|
-
process.stdout.write(`ikenga ${"0.3.
|
|
9737
|
+
process.stdout.write(`ikenga ${"0.3.2"}
|
|
9737
9738
|
`);
|
|
9738
9739
|
return 0;
|
|
9739
9740
|
}
|