@rhizogrip/spore-cli 1.12.1 → 1.13.0

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/dispatch.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhizogrip/spore-cli",
3
- "version": "1.12.1",
3
+ "version": "1.13.0",
4
4
  "author": {
5
5
  "name": "Christophe Le Bars",
6
6
  "email": "clb@toort.net"
@@ -50,7 +50,7 @@
50
50
  "tui": "node bin/spore.js tui"
51
51
  },
52
52
  "dependencies": {
53
- "@rhizogrip/spore": "1.12.1",
53
+ "@rhizogrip/spore": "1.13.0",
54
54
  "chalk": "^6.0.1",
55
55
  "minimist": "^1.2.8"
56
56
  },
package/src/dispatch.js CHANGED
@@ -175,10 +175,10 @@ function renderShow (result) {
175
175
  if (result.history) line('history', historyLine(result.history))
176
176
  line('spend', unmetered(result.billing) ? `not metered · ${result.billing.label}` : `$${result.treeUsd.toFixed(6)}`)
177
177
  line('work', `${result.workUnits} units (${result.workUnitsOwn} own rounds, ${result.workUnitsChildren} in cells)`)
178
- if (result.produced.length) {
179
- const shown = result.produced.slice(0, 5).map(f => `${f.path} (${f.mime}, ${f.bytes}b)`)
180
- const rest = result.produced.length - shown.length + result.producedMore
181
- line('produced', shown.join('\n' + ' '.repeat(13)) + (rest ? `\n${' '.repeat(13)}…and ${rest} more` : ''))
178
+ if (result.deliverables.length) {
179
+ const shown = result.deliverables.slice(0, 5).map(f => `${f.path} (${f.mime}, ${f.bytes}b)`)
180
+ const rest = result.deliverables.length - shown.length + result.deliverablesMore
181
+ line('delivered', shown.join('\n' + ' '.repeat(13)) + (rest ? `\n${' '.repeat(13)}…and ${rest} more` : ''))
182
182
  }
183
183
  if (result.precursors.length) line('precursors', result.precursors.join(', '))
184
184
  if (result.plugins.length) line('plugins', result.plugins.join(', '))