@capgo/cli 4.9.1 → 4.9.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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
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.9.3](https://github.com/Cap-go/CLI/compare/v4.9.2...v4.9.3) (2024-05-14)
6
+
7
+ ### [4.9.2](https://github.com/Cap-go/CLI/compare/v4.9.1...v4.9.2) (2024-05-13)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * types ([84cc60b](https://github.com/Cap-go/CLI/commit/84cc60b1f64167978f7fbba6b6a2aafd9b585fda))
13
+
5
14
  ### [4.9.1](https://github.com/Cap-go/CLI/compare/v4.9.0...v4.9.1) (2024-05-13)
6
15
 
7
16
 
package/dist/index.js CHANGED
@@ -108043,7 +108043,7 @@ var {
108043
108043
  // package.json
108044
108044
  var package_default = {
108045
108045
  name: "@capgo/cli",
108046
- version: "4.9.1",
108046
+ version: "4.9.3",
108047
108047
  description: "A CLI to upload to capgo servers",
108048
108048
  author: "github.com/riderx",
108049
108049
  license: "Apache 2.0",
@@ -111128,11 +111128,9 @@ async function addAppInternal(appId, options, organization, throwErr = true) {
111128
111128
  const supabase = await createSupabaseClient(options.apikey);
111129
111129
  const userId = await verifyUser(supabase, options.apikey, ["write", "all"]);
111130
111130
  const appExist = await checkAppExists(supabase, appId);
111131
- if (throwErr && appExist) {
111131
+ if (appExist) {
111132
111132
  f2.error(`App ${appId} already exist`);
111133
111133
  program.error("");
111134
- } else if (appExist) {
111135
- return false;
111136
111134
  }
111137
111135
  if (!organization)
111138
111136
  organization = await getOrganization(supabase, ["admin", "super_admin"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
- "version": "4.9.1",
3
+ "version": "4.9.3",
4
4
  "description": "A CLI to upload to capgo servers",
5
5
  "author": "github.com/riderx",
6
6
  "license": "Apache 2.0",
package/src/app/add.ts CHANGED
@@ -53,13 +53,10 @@ export async function addAppInternal(appId: string, options: Options, organizati
53
53
 
54
54
  // Check we have app access to this appId
55
55
  const appExist = await checkAppExists(supabase, appId)
56
- if (throwErr && appExist) {
56
+ if (appExist) {
57
57
  p.log.error(`App ${appId} already exist`)
58
58
  program.error('')
59
59
  }
60
- else if (appExist) {
61
- return false
62
- }
63
60
 
64
61
  if (!organization)
65
62
  organization = await getOrganization(supabase, ['admin', 'super_admin'])
@@ -1212,7 +1212,7 @@ export interface Database {
1212
1212
  is_good_plan?: boolean | null
1213
1213
  plan_usage?: number | null
1214
1214
  price_id?: string | null
1215
- product_id?: string
1215
+ product_id: string
1216
1216
  status?: Database['public']['Enums']['stripe_status'] | null
1217
1217
  subscription_anchor_end?: string
1218
1218
  subscription_anchor_start?: string