@hot-updater/supabase 0.6.2 → 0.6.3
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/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -3447,8 +3447,8 @@ const supabaseStorage = (config, hooks)=>(_)=>{
|
|
|
3447
3447
|
const upload = await bucket.upload(Key, Body, {
|
|
3448
3448
|
contentType: ContentType
|
|
3449
3449
|
});
|
|
3450
|
-
|
|
3451
|
-
|
|
3450
|
+
if (upload.error) throw upload.error;
|
|
3451
|
+
const fullPath = upload.data.fullPath;
|
|
3452
3452
|
hooks?.onStorageUploaded?.();
|
|
3453
3453
|
const fileUrl = new URL(`storage/v1/object/public/${fullPath}`, config.supabaseUrl).toString();
|
|
3454
3454
|
return {
|
package/dist/index.js
CHANGED
|
@@ -3399,8 +3399,8 @@ const supabaseStorage = (config, hooks)=>(_)=>{
|
|
|
3399
3399
|
const upload = await bucket.upload(Key, Body, {
|
|
3400
3400
|
contentType: ContentType
|
|
3401
3401
|
});
|
|
3402
|
-
|
|
3403
|
-
|
|
3402
|
+
if (upload.error) throw upload.error;
|
|
3403
|
+
const fullPath = upload.data.fullPath;
|
|
3404
3404
|
hooks?.onStorageUploaded?.();
|
|
3405
3405
|
const fileUrl = new URL(`storage/v1/object/public/${fullPath}`, config.supabaseUrl).toString();
|
|
3406
3406
|
return {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/supabase",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.3",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"package.json"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@hot-updater/core": "0.6.
|
|
34
|
-
"@hot-updater/plugin-core": "0.6.
|
|
33
|
+
"@hot-updater/core": "0.6.3",
|
|
34
|
+
"@hot-updater/plugin-core": "0.6.3",
|
|
35
35
|
"@supabase/supabase-js": "^2.47.10"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"picocolors": "^1.0.0",
|
|
39
|
-
"@hot-updater/postgres": "0.6.
|
|
39
|
+
"@hot-updater/postgres": "0.6.3",
|
|
40
40
|
"dayjs": "^1.11.13",
|
|
41
41
|
"mime": "^4.0.4"
|
|
42
42
|
},
|