@supabase/storage-js 2.81.2-canary.1 → 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.
- package/dist/main/lib/types.d.ts +1 -1
- package/dist/main/lib/types.d.ts.map +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/main/packages/StorageAnalyticsApi.d.ts +2 -2
- package/dist/main/packages/StorageAnalyticsApi.d.ts.map +1 -1
- package/dist/main/packages/StorageAnalyticsApi.js +3 -3
- package/dist/main/packages/StorageAnalyticsApi.js.map +1 -1
- package/dist/module/lib/types.d.ts +1 -1
- package/dist/module/lib/types.d.ts.map +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.js +1 -1
- package/dist/module/packages/StorageAnalyticsApi.d.ts +2 -2
- package/dist/module/packages/StorageAnalyticsApi.d.ts.map +1 -1
- package/dist/module/packages/StorageAnalyticsApi.js +3 -3
- package/dist/module/packages/StorageAnalyticsApi.js.map +1 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/supabase.js +1 -1
- package/package.json +1 -1
- package/src/lib/types.ts +1 -1
- package/src/lib/version.ts +1 -1
- package/src/packages/StorageAnalyticsApi.ts +4 -4
package/src/lib/version.ts
CHANGED
|
@@ -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.
|
|
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
|
|
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
|
|
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(
|
|
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/${
|
|
183
|
+
`${this.url}/bucket/${bucketName}`,
|
|
184
184
|
{},
|
|
185
185
|
{ headers: this.headers }
|
|
186
186
|
)
|