@supabase/storage-js 3.0.0-next.8 → 3.0.0-next.9
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/README.md +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/umd/supabase.js +1 -1
- package/package.json +1 -1
- package/src/StorageClient.ts +2 -2
- package/src/lib/version.ts +1 -1
- package/src/packages/StorageAnalyticsClient.ts +1 -1
- package/src/packages/StorageVectorsClient.ts +1 -1
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ If you're already using `@supabase/supabase-js`, access storage through the clie
|
|
|
67
67
|
```js
|
|
68
68
|
import { createClient } from '@supabase/supabase-js'
|
|
69
69
|
|
|
70
|
-
// Use publishable
|
|
70
|
+
// Use publishable key for frontend applications
|
|
71
71
|
const supabase = createClient('https://<project_ref>.supabase.co', '<your-publishable-key>')
|
|
72
72
|
|
|
73
73
|
// Access storage
|
package/dist/index.cjs
CHANGED
|
@@ -1486,7 +1486,7 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1486
1486
|
|
|
1487
1487
|
//#endregion
|
|
1488
1488
|
//#region src/lib/version.ts
|
|
1489
|
-
const version = "3.0.0-next.
|
|
1489
|
+
const version = "3.0.0-next.9";
|
|
1490
1490
|
|
|
1491
1491
|
//#endregion
|
|
1492
1492
|
//#region src/lib/constants.ts
|
|
@@ -1812,7 +1812,7 @@ var StorageAnalyticsClient = class extends BaseApiClient {
|
|
|
1812
1812
|
* ```typescript
|
|
1813
1813
|
* import { createClient } from '@supabase/supabase-js'
|
|
1814
1814
|
*
|
|
1815
|
-
* const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-
|
|
1815
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
|
|
1816
1816
|
* const { data, error } = await supabase.storage.analytics.listBuckets()
|
|
1817
1817
|
* ```
|
|
1818
1818
|
*
|
|
@@ -2347,7 +2347,7 @@ var StorageVectorsClient = class extends VectorBucketApi {
|
|
|
2347
2347
|
* ```typescript
|
|
2348
2348
|
* import { createClient } from '@supabase/supabase-js'
|
|
2349
2349
|
*
|
|
2350
|
-
* const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-
|
|
2350
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
|
|
2351
2351
|
* const bucket = supabase.storage.vectors.from('embeddings-prod')
|
|
2352
2352
|
* ```
|
|
2353
2353
|
*
|
|
@@ -2844,7 +2844,7 @@ var StorageClient = class extends StorageBucketApi {
|
|
|
2844
2844
|
* ```ts
|
|
2845
2845
|
* import { createClient } from '@supabase/supabase-js'
|
|
2846
2846
|
*
|
|
2847
|
-
* const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-
|
|
2847
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
|
|
2848
2848
|
* const avatars = supabase.storage.from('avatars')
|
|
2849
2849
|
* ```
|
|
2850
2850
|
*
|
|
@@ -2853,7 +2853,7 @@ var StorageClient = class extends StorageBucketApi {
|
|
|
2853
2853
|
* import { StorageClient } from '@supabase/storage-js'
|
|
2854
2854
|
*
|
|
2855
2855
|
* const storage = new StorageClient('https://xyzcompany.supabase.co/storage/v1', {
|
|
2856
|
-
* apikey: 'publishable-
|
|
2856
|
+
* apikey: 'your-publishable-key',
|
|
2857
2857
|
* })
|
|
2858
2858
|
* const avatars = storage.from('avatars')
|
|
2859
2859
|
* ```
|