@crimson-education/sdk 0.2.2 → 0.2.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.
@@ -38,8 +38,9 @@ class AccountApi {
38
38
  */
39
39
  getMyStudents() {
40
40
  return __awaiter(this, void 0, void 0, function* () {
41
- const response = yield this.client.fetch("/api/v1/account/me/students");
42
- return response.data;
41
+ // Note: client.fetch() automatically unwraps { data: [...] } responses,
42
+ // so we get StudentSummary[] directly
43
+ return this.client.fetch("/api/v1/account/me/students");
43
44
  });
44
45
  }
45
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crimson-education/sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Crimson SDK for accessing Crimson App APIs",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",