@supabase/storage-js 2.76.2-canary.2 → 2.77.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supabase/storage-js",
3
- "version": "2.76.2-canary.2",
3
+ "version": "2.77.0",
4
4
  "description": "Isomorphic storage client for Supabase.",
5
5
  "keywords": [
6
6
  "javascript",
@@ -25,8 +25,7 @@
25
25
  "directory": "packages/core/storage-js"
26
26
  },
27
27
  "scripts": {
28
- "clean": "rimraf dist docs/v2",
29
- "build": "npm run clean && npm run build:main && npm run build:module && npm run build:umd",
28
+ "build": "npm run build:main && npm run build:module && npm run build:umd",
30
29
  "build:main": "tsc -p tsconfig.json",
31
30
  "build:module": "tsc -p tsconfig.module.json",
32
31
  "build:umd": "webpack",
@@ -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.76.2-canary.2'
7
+ export const version = '2.77.0'
@@ -135,11 +135,8 @@ export default class StorageAnalyticsApi {
135
135
  const url = queryString ? `${this.url}/bucket?${queryString}` : `${this.url}/bucket`
136
136
 
137
137
  const data = await get(this.fetch, url, { headers: this.headers })
138
- // Filter to only return analytics buckets
139
- const analyticsBuckets = Array.isArray(data)
140
- ? data.filter((bucket: Bucket) => bucket.type === 'ANALYTICS')
141
- : []
142
- return { data: analyticsBuckets, error: null }
138
+
139
+ return { data: data, error: null }
143
140
  } catch (error) {
144
141
  if (this.shouldThrowOnError) {
145
142
  throw error