@capgo/cli 4.0.0 → 4.0.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [4.0.2](https://github.com/Cap-go/capgo-cli/compare/v4.0.1...v4.0.2) (2024-02-17)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * add log when using custom supabase ([8a22378](https://github.com/Cap-go/capgo-cli/commit/8a223783cb95ec9a80555fb21f963fd9c38c311d))
11
+
12
+ ### [4.0.1](https://github.com/Cap-go/capgo-cli/compare/v4.0.0...v4.0.1) (2024-02-10)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * upload issue ([3dab88a](https://github.com/Cap-go/capgo-cli/commit/3dab88adab1072ce2a5976b2189828d754bdd45b))
18
+
5
19
  ## [4.0.0](https://github.com/Cap-go/capgo-cli/compare/v3.14.71...v4.0.0) (2024-02-10)
6
20
 
7
21
 
package/dist/index.js CHANGED
@@ -61661,7 +61661,7 @@ var import_get_latest_version = __toESM(require_src3());
61661
61661
  // package.json
61662
61662
  var package_default = {
61663
61663
  name: "@capgo/cli",
61664
- version: "4.0.0",
61664
+ version: "4.0.2",
61665
61665
  description: "A CLI to upload to capgo servers",
61666
61666
  main: "dist/index.js",
61667
61667
  bin: {
@@ -62326,6 +62326,7 @@ var getLocalConfig = async () => {
62326
62326
  hostWeb: config?.app?.extConfig?.plugins?.CapacitorUpdater?.localWebHost || defaultHostWeb
62327
62327
  };
62328
62328
  if (config?.app?.extConfig?.plugins?.CapacitorUpdater?.localSupa && config?.app?.extConfig?.plugins?.CapacitorUpdater?.localSupaAnon) {
62329
+ f2.info("Using custom supabase instance from capacitor.config.json");
62329
62330
  capConfig.supaKey = config?.app?.extConfig?.plugins?.CapacitorUpdater?.localSupaAnon;
62330
62331
  capConfig.supaHost = config?.app?.extConfig?.plugins?.CapacitorUpdater?.localSupa;
62331
62332
  }
@@ -62566,7 +62567,7 @@ async function uploadUrl(supabase, appId, bucketId) {
62566
62567
  bucket_id: bucketId
62567
62568
  };
62568
62569
  try {
62569
- const pathUploadLink = "private/upload_link";
62570
+ const pathUploadLink = "upload_link";
62570
62571
  const res = await supabase.functions.invoke(pathUploadLink, { body: JSON.stringify(data) });
62571
62572
  return res.data.url;
62572
62573
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "A CLI to upload to capgo servers",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/src/utils.ts CHANGED
@@ -43,6 +43,7 @@ export const getLocalConfig = async () => {
43
43
  }
44
44
  // eslint-disable-next-line max-len
45
45
  if (config?.app?.extConfig?.plugins?.CapacitorUpdater?.localSupa && config?.app?.extConfig?.plugins?.CapacitorUpdater?.localSupaAnon) {
46
+ p.log.info('Using custom supabase instance from capacitor.config.json')
46
47
  capConfig.supaKey = config?.app?.extConfig?.plugins?.CapacitorUpdater?.localSupaAnon
47
48
  capConfig.supaHost = config?.app?.extConfig?.plugins?.CapacitorUpdater?.localSupa
48
49
  }
@@ -404,7 +405,7 @@ export async function uploadUrl(supabase: SupabaseClient<Database>, appId: strin
404
405
  bucket_id: bucketId,
405
406
  }
406
407
  try {
407
- const pathUploadLink = 'private/upload_link'
408
+ const pathUploadLink = 'upload_link'
408
409
  // const pathUploadLink = 'private/upload_link' // TODO: switch to new endpoint when new backend released
409
410
  const res = await supabase.functions.invoke(pathUploadLink, { body: JSON.stringify(data) })
410
411
  return res.data.url