@supabase/storage-js 2.81.2-canary.2 → 2.81.2-canary.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.
@@ -4,4 +4,4 @@
4
4
  // - Debugging and support (identifying which version is running)
5
5
  // - Telemetry and logging (version reporting in errors/analytics)
6
6
  // - Ensuring build artifacts match the published package version
7
- export const version = '2.81.2-canary.2'
7
+ export const version = '2.81.2-canary.3'
@@ -2,7 +2,7 @@ import { DEFAULT_HEADERS } from '../lib/constants'
2
2
  import { isStorageError, StorageError } from '../lib/errors'
3
3
  import { Fetch, get, post, remove } from '../lib/fetch'
4
4
  import { resolveFetch } from '../lib/helpers'
5
- import { AnalyticBucket, Bucket } from '../lib/types'
5
+ import { AnalyticBucket } from '../lib/types'
6
6
 
7
7
  /**
8
8
  * API class for managing Analytics Buckets using Iceberg tables
@@ -154,7 +154,7 @@ export default class StorageAnalyticsApi {
154
154
  * A bucket can't be deleted with existing objects inside it
155
155
  * You must first empty the bucket before deletion
156
156
  *
157
- * @param bucketId The unique identifier of the bucket you would like to delete
157
+ * @param bucketName The unique identifier of the bucket you would like to delete
158
158
  * @returns Promise with success message or error
159
159
  *
160
160
  * @example
@@ -167,7 +167,7 @@ export default class StorageAnalyticsApi {
167
167
  * }
168
168
  * ```
169
169
  */
170
- async deleteBucket(bucketId: string): Promise<
170
+ async deleteBucket(bucketName: string): Promise<
171
171
  | {
172
172
  data: { message: string }
173
173
  error: null
@@ -180,7 +180,7 @@ export default class StorageAnalyticsApi {
180
180
  try {
181
181
  const data = await remove(
182
182
  this.fetch,
183
- `${this.url}/bucket/${bucketId}`,
183
+ `${this.url}/bucket/${bucketName}`,
184
184
  {},
185
185
  { headers: this.headers }
186
186
  )