@proofchain/sdk 2.5.0 → 2.5.1

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 CHANGED
@@ -1789,7 +1789,7 @@ var CohortLeaderboardClient = class {
1789
1789
  "/cohorts/definitions",
1790
1790
  params
1791
1791
  );
1792
- return response.cohorts || [];
1792
+ return Array.isArray(response) ? response : response.cohorts || [];
1793
1793
  }
1794
1794
  /**
1795
1795
  * Get a cohort definition by ID
package/dist/index.mjs CHANGED
@@ -1735,7 +1735,7 @@ var CohortLeaderboardClient = class {
1735
1735
  "/cohorts/definitions",
1736
1736
  params
1737
1737
  );
1738
- return response.cohorts || [];
1738
+ return Array.isArray(response) ? response : response.cohorts || [];
1739
1739
  }
1740
1740
  /**
1741
1741
  * Get a cohort definition by ID
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proofchain/sdk",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Official JavaScript/TypeScript SDK for ProofChain - blockchain-anchored document attestation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",