@capgo/cli 4.3.4 → 4.3.5
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 +5 -1
- package/package.json +1 -1
- package/src/app/add.ts +6 -0
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.3.5](https://github.com/Cap-go/CLI/compare/v4.3.4...v4.3.5) (2024-04-18)
|
|
6
|
+
|
|
5
7
|
### [4.3.4](https://github.com/Cap-go/CLI/compare/v4.3.3...v4.3.4) (2024-04-17)
|
|
6
8
|
|
|
7
9
|
### [4.3.3](https://github.com/Cap-go/CLI/compare/v4.3.2...v4.3.3) (2024-04-16)
|
package/dist/index.js
CHANGED
|
@@ -91634,7 +91634,7 @@ var {
|
|
|
91634
91634
|
// package.json
|
|
91635
91635
|
var package_default = {
|
|
91636
91636
|
name: "@capgo/cli",
|
|
91637
|
-
version: "4.3.
|
|
91637
|
+
version: "4.3.5",
|
|
91638
91638
|
description: "A CLI to upload to capgo servers",
|
|
91639
91639
|
main: "dist/index.js",
|
|
91640
91640
|
bin: {
|
|
@@ -94493,6 +94493,10 @@ async function addApp(appId, options, throwErr = true) {
|
|
|
94493
94493
|
f2.error("Missing argument, you need to provide a appId, or be in a capacitor project");
|
|
94494
94494
|
program.error("");
|
|
94495
94495
|
}
|
|
94496
|
+
if (appId.includes("--")) {
|
|
94497
|
+
f2.error('The app id includes illegal symbols. You cannot use "--" in the app id');
|
|
94498
|
+
program.error("");
|
|
94499
|
+
}
|
|
94496
94500
|
const supabase = await createSupabaseClient(options.apikey);
|
|
94497
94501
|
let userId = await verifyUser(supabase, options.apikey, ["write", "all"]);
|
|
94498
94502
|
const appExist = await checkAppExists(supabase, appId);
|
package/package.json
CHANGED
package/src/app/add.ts
CHANGED
|
@@ -35,6 +35,12 @@ export async function addApp(appId: string, options: Options, throwErr = true) {
|
|
|
35
35
|
p.log.error('Missing argument, you need to provide a appId, or be in a capacitor project')
|
|
36
36
|
program.error('')
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
if (appId.includes('--')) {
|
|
40
|
+
p.log.error('The app id includes illegal symbols. You cannot use "--" in the app id')
|
|
41
|
+
program.error('')
|
|
42
|
+
}
|
|
43
|
+
|
|
38
44
|
const supabase = await createSupabaseClient(options.apikey)
|
|
39
45
|
|
|
40
46
|
let userId = await verifyUser(supabase, options.apikey, ['write', 'all'])
|