@supabase/storage-js 2.1.0-next.4 → 2.1.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/README.md
CHANGED
|
@@ -15,12 +15,12 @@ npm install @supabase/storage-js
|
|
|
15
15
|
### Connecting to the storage backend
|
|
16
16
|
|
|
17
17
|
```js
|
|
18
|
-
import {
|
|
18
|
+
import { StorageClient } from '@supabase/storage-js'
|
|
19
19
|
|
|
20
20
|
const STORAGE_URL = 'https://<project_ref>.supabase.co/storage/v1'
|
|
21
21
|
const SERVICE_KEY = '<service_role>' //! service key, not anon key
|
|
22
22
|
|
|
23
|
-
const storageClient = new
|
|
23
|
+
const storageClient = new StorageClient(STORAGE_URL, {
|
|
24
24
|
apikey: SERVICE_KEY,
|
|
25
25
|
Authorization: `Bearer ${SERVICE_KEY}`,
|
|
26
26
|
})
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.1.0
|
|
1
|
+
export declare const version = "2.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/main/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.1.0
|
|
1
|
+
export declare const version = "2.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
package/src/lib/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '2.1.0
|
|
2
|
+
export const version = '2.1.0'
|