@oasis-path/gamma-sdk 1.0.23 → 1.0.24

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.
@@ -41,7 +41,12 @@ async function makeTrpcRequest(method, path, baseUrl, apiKey, options) {
41
41
  }
42
42
  const contentType = response.headers.get('content-type');
43
43
  if (contentType?.includes('application/json')) {
44
- return await response.json();
44
+ const jsonResponse = await response.json();
45
+ // Unwrap nested result.data structure if present
46
+ if (jsonResponse?.result?.data) {
47
+ return jsonResponse.result.data;
48
+ }
49
+ return jsonResponse;
45
50
  }
46
51
  return response;
47
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oasis-path/gamma-sdk",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "TypeScript SDK for Gamma Files API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",