@capgo/cli 4.9.2 → 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 +2 -0
- package/dist/index.js +2 -4
- package/package.json +1 -1
- package/src/app/add.ts +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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
|
+
|
|
5
7
|
### [4.9.2](https://github.com/Cap-go/CLI/compare/v4.9.1...v4.9.2) (2024-05-13)
|
|
6
8
|
|
|
7
9
|
|
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.
|
|
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 (
|
|
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
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 (
|
|
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'])
|