@quatrain/storage-supabase 1.2.8 → 1.2.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.
|
@@ -231,7 +231,11 @@ class SupabaseStorageAdapter extends storage_1.AbstractStorageAdapter {
|
|
|
231
231
|
if (error !== null) {
|
|
232
232
|
throw new Error(`Unable to get signed url: ${error}`);
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
let signedUrl = data === null || data === void 0 ? void 0 : data.signedUrl;
|
|
235
|
+
if (signedUrl && download === false) {
|
|
236
|
+
signedUrl += '&play=true';
|
|
237
|
+
}
|
|
238
|
+
return { url: signedUrl, expiresIn };
|
|
235
239
|
});
|
|
236
240
|
}
|
|
237
241
|
/**
|
package/package.json
CHANGED
|
@@ -241,7 +241,12 @@ export class SupabaseStorageAdapter extends AbstractStorageAdapter {
|
|
|
241
241
|
throw new Error(`Unable to get signed url: ${error}`)
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
|
|
244
|
+
let signedUrl = data?.signedUrl
|
|
245
|
+
if (signedUrl && download === false) {
|
|
246
|
+
signedUrl += '&play=true'
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
return { url: signedUrl, expiresIn }
|
|
245
250
|
}
|
|
246
251
|
|
|
247
252
|
/**
|