@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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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