coherence-cli 0.8.2 → 0.8.3

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.
@@ -12,7 +12,7 @@ function truncate(str, len) {
12
12
  export async function listAssets(args) {
13
13
  const limit = parseInt(args[0]) || 20;
14
14
  const raw = await get("/api/assets", { limit });
15
- const data = Array.isArray(raw) ? raw : raw?.assets;
15
+ const data = Array.isArray(raw) ? raw : (raw?.items || raw?.assets);
16
16
  if (!data || !Array.isArray(data)) {
17
17
  console.log("Could not fetch assets.");
18
18
  return;
@@ -12,7 +12,7 @@ function truncate(str, len) {
12
12
  export async function listContributors(args) {
13
13
  const limit = parseInt(args[0]) || 20;
14
14
  const raw = await get("/api/contributors", { limit });
15
- const data = Array.isArray(raw) ? raw : raw?.contributors;
15
+ const data = Array.isArray(raw) ? raw : (raw?.items || raw?.contributors);
16
16
  if (!data || !Array.isArray(data)) {
17
17
  console.log("Could not fetch contributors.");
18
18
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coherence-cli",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Coherence Network CLI \u2014 trace ideas from inception to payout, with fair attribution, coherence scoring, and 37 identity providers. No signup needed.",
5
5
  "type": "module",
6
6
  "bin": {