@hot-updater/supabase 0.6.2 → 0.6.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.
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
- const fullPath = upload.data?.fullPath;
3451
- if (!fullPath) throw new Error("Upload failed. The Supabase key might be incorrect. Please verify the key using the `hot-updater get-plugin-env` command.");
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
- const fullPath = upload.data?.fullPath;
3403
- if (!fullPath) throw new Error("Upload failed. The Supabase key might be incorrect. Please verify the key using the `hot-updater get-plugin-env` command.");
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.2",
4
+ "version": "0.6.4",
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.2",
34
- "@hot-updater/plugin-core": "0.6.2",
33
+ "@hot-updater/core": "0.6.4",
34
+ "@hot-updater/plugin-core": "0.6.4",
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.2",
39
+ "@hot-updater/postgres": "0.6.4",
40
40
  "dayjs": "^1.11.13",
41
41
  "mime": "^4.0.4"
42
42
  },