@quatrain/storage-supabase 1.2.3 → 1.2.4
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.
|
@@ -77,7 +77,7 @@ export declare class SupabaseStorageAdapter extends AbstractStorageAdapter {
|
|
|
77
77
|
* @returns A promise resolving to the signed URL payload.
|
|
78
78
|
* @throws {Error} If signature creation fails.
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
getUrl(file: FileType, expiresIn?: number, action?: any, extra?: any): Promise<{
|
|
81
81
|
url: string;
|
|
82
82
|
expiresIn: number;
|
|
83
83
|
}>;
|
|
@@ -197,7 +197,7 @@ class SupabaseStorageAdapter extends storage_1.AbstractStorageAdapter {
|
|
|
197
197
|
* @returns A promise resolving to the signed URL payload.
|
|
198
198
|
* @throws {Error} If signature creation fails.
|
|
199
199
|
*/
|
|
200
|
-
|
|
200
|
+
getUrl(file_1) {
|
|
201
201
|
return __awaiter(this, arguments, void 0, function* (file, expiresIn = 3600, action = 'read', extra = {}) {
|
|
202
202
|
storage_1.Storage.debug(`Getting signed url for file ${file.ref} in bucket ${file.bucket}`);
|
|
203
203
|
const cacheControl = extra.cacheControl || (this._params.config.publicCacheDuration ? `${this._params.config.publicCacheDuration}` : undefined);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quatrain/storage-supabase",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Storage adapter for Supabase Storage",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@quatrain/core": "^1.2.6",
|
|
35
|
-
"@quatrain/storage": "^1.2.
|
|
35
|
+
"@quatrain/storage": "^1.2.5",
|
|
36
36
|
"@supabase/storage-js": "^2.7.2",
|
|
37
37
|
"@supabase/supabase-js": "^2.87.3"
|
|
38
38
|
},
|
|
@@ -203,7 +203,7 @@ export class SupabaseStorageAdapter extends AbstractStorageAdapter {
|
|
|
203
203
|
* @returns A promise resolving to the signed URL payload.
|
|
204
204
|
* @throws {Error} If signature creation fails.
|
|
205
205
|
*/
|
|
206
|
-
async
|
|
206
|
+
async getUrl(file: FileType, expiresIn = 3600, action: any = 'read', extra: any = {}) {
|
|
207
207
|
Storage.debug(
|
|
208
208
|
`Getting signed url for file ${file.ref} in bucket ${file.bucket}`
|
|
209
209
|
)
|