@bunbase-ae/js 2.14.2-next.329.398c8fe → 2.14.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/storage.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunbase-ae/js",
3
- "version": "2.14.2-next.329.398c8fe",
3
+ "version": "2.14.2",
4
4
  "type": "module",
5
5
  "description": "TypeScript/JavaScript SDK for BunBase",
6
6
  "license": "UNLICENSED",
package/src/storage.ts CHANGED
@@ -202,7 +202,11 @@ export class StorageClient {
202
202
  }
203
203
 
204
204
  async list(): Promise<FileRecord[]> {
205
- return this.http.request<FileRecord[]>("GET", "/api/v1/storage");
205
+ const res = await this.http.request<{ items: FileRecord[]; total: number }>(
206
+ "GET",
207
+ "/api/v1/storage",
208
+ );
209
+ return res.items;
206
210
  }
207
211
 
208
212
  async delete(id: string): Promise<void> {