@capgo/cli 4.10.17 → 4.10.20

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,22 @@
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.10.20](https://github.com/Cap-go/CLI/compare/v4.10.19...v4.10.20) (2024-06-18)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * lint issue ([df7867b](https://github.com/Cap-go/CLI/commit/df7867ba88b1c87a2a123caae68b5b9c4505487e))
11
+
12
+ ### [4.10.19](https://github.com/Cap-go/CLI/compare/v4.10.18...v4.10.19) (2024-06-18)
13
+
14
+ ### [4.10.18](https://github.com/Cap-go/CLI/compare/v4.10.17...v4.10.18) (2024-06-17)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * add log message for the user ([e8b7437](https://github.com/Cap-go/CLI/commit/e8b7437da81bf819d6765fab7659f5d975855693))
20
+
5
21
  ### [4.10.17](https://github.com/Cap-go/CLI/compare/v4.10.16...v4.10.17) (2024-06-13)
6
22
 
7
23
 
package/dist/index.js CHANGED
@@ -110508,7 +110508,7 @@ async function getUserId(options) {
110508
110508
  // package.json
110509
110509
  var package_default = {
110510
110510
  name: "@capgo/cli",
110511
- version: "4.10.17",
110511
+ version: "4.10.20",
110512
110512
  description: "A CLI to upload to capgo servers",
110513
110513
  author: "github.com/riderx",
110514
110514
  license: "Apache 2.0",
@@ -111551,6 +111551,7 @@ The app size is ${mbSize} Mb, this may take a while to download for users
111551
111551
  const startTime = import_node_perf_hooks.performance.now();
111552
111552
  try {
111553
111553
  if (options.multipart !== void 0 && options.multipart) {
111554
+ f2.info(`Uploading bundle as multipart`);
111554
111555
  await uploadMultipart(supabase, appid, bundle2, zipped, orgId);
111555
111556
  } else {
111556
111557
  const url = await uploadUrl(supabase, appid, bundle2);
@@ -112855,7 +112856,11 @@ async function deleteChannel(channelId, appId, options) {
112855
112856
  await checkAppExistsAndHasPermissionOrgErr(supabase, options.apikey, appId, 4 /* admin */);
112856
112857
  f2.info(`Deleting channel ${appId}#${channelId} from Capgo`);
112857
112858
  try {
112858
- await delChannel(supabase, channelId, appId, userId);
112859
+ const deleteStatus = await delChannel(supabase, channelId, appId, userId);
112860
+ if (deleteStatus.error) {
112861
+ f2.error(`Cannot delete Channel \u{1F640} ${formatError(deleteStatus.error)}`);
112862
+ program.error("");
112863
+ }
112859
112864
  const orgId = await getOrganizationId(supabase, appId);
112860
112865
  f2.success(`Channel deleted`);
112861
112866
  await snag.track({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
- "version": "4.10.17",
3
+ "version": "4.10.20",
4
4
  "description": "A CLI to upload to capgo servers",
5
5
  "author": "github.com/riderx",
6
6
  "license": "Apache 2.0",
@@ -387,6 +387,7 @@ It will be also visible in your dashboard\n`)
387
387
 
388
388
  try {
389
389
  if (options.multipart !== undefined && options.multipart) {
390
+ p.log.info(`Uploading bundle as multipart`)
390
391
  await uploadMultipart(supabase, appid, bundle, zipped, orgId)
391
392
  }
392
393
  else {
@@ -4,7 +4,7 @@ import * as p from '@clack/prompts'
4
4
  import { checkAppExistsAndHasPermissionOrgErr } from '../api/app'
5
5
  import { delChannel } from '../api/channels'
6
6
  import type { OptionsBase } from '../utils'
7
- import { OrganizationPerm, createSupabaseClient, findSavedKey, getConfig, getOrganizationId, useLogSnag, verifyUser } from '../utils'
7
+ import { OrganizationPerm, createSupabaseClient, findSavedKey, formatError, getConfig, getOrganizationId, useLogSnag, verifyUser } from '../utils'
8
8
 
9
9
  export async function deleteChannel(channelId: string, appId: string, options: OptionsBase) {
10
10
  p.intro(`Delete channel`)
@@ -29,7 +29,11 @@ export async function deleteChannel(channelId: string, appId: string, options: O
29
29
 
30
30
  p.log.info(`Deleting channel ${appId}#${channelId} from Capgo`)
31
31
  try {
32
- await delChannel(supabase, channelId, appId, userId)
32
+ const deleteStatus = await delChannel(supabase, channelId, appId, userId)
33
+ if (deleteStatus.error) {
34
+ p.log.error(`Cannot delete Channel 🙀 ${formatError(deleteStatus.error)}`)
35
+ program.error('')
36
+ }
33
37
  const orgId = await getOrganizationId(supabase, appId)
34
38
  p.log.success(`Channel deleted`)
35
39
  await snag.track({