insta 0.0.74 → 0.0.75

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.
@@ -15,7 +15,9 @@ export function searchLines(results) {
15
15
  const w = Math.max(...results.map((r) => r.domainName.length));
16
16
  return results.map((r) => r.purchasable
17
17
  ? ` ${r.domainName.padEnd(w)} ${usd(r.priceCents)}${r.renewalPriceCents !== undefined ? ` (renews ${usd(r.renewalPriceCents)}/yr)` : ''}`
18
- : ` ${r.domainName.padEnd(w)} unavailable${r.reason ? ` — ${r.reason}` : ''}`);
18
+ // The platform's default reason for every unpurchasable row IS `unavailable`, so passing it
19
+ // through prints the word twice.
20
+ : ` ${r.domainName.padEnd(w)} unavailable${r.reason && r.reason !== 'unavailable' ? ` — ${r.reason}` : ''}`);
19
21
  }
20
22
  export async function domainSearch(keyword, opts, deps) {
21
23
  const { api, orgId } = await orgDeps(opts, deps);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "insta",
3
- "version": "0.0.74",
3
+ "version": "0.0.75",
4
4
  "type": "module",
5
5
  "description": "InstaCloud CLI — a thin client of the platform control-plane API.",
6
6
  "keywords": [