@capgo/cli 4.3.3 → 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 CHANGED
@@ -2,6 +2,10 @@
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
+
7
+ ### [4.3.4](https://github.com/Cap-go/CLI/compare/v4.3.3...v4.3.4) (2024-04-17)
8
+
5
9
  ### [4.3.3](https://github.com/Cap-go/CLI/compare/v4.3.2...v4.3.3) (2024-04-16)
6
10
 
7
11
  ### [4.3.2](https://github.com/Cap-go/CLI/compare/v4.3.1...v4.3.2) (2024-04-14)
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.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);
@@ -95167,7 +95171,7 @@ async function deleteBundle(bundleId, appId, options) {
95167
95171
 
95168
95172
  // src/channel/set.ts
95169
95173
  var import_node_process23 = __toESM(require("node:process"));
95170
- var disableAutoUpdatesPossibleOptions = ["major", "minor", "metadata", "none"];
95174
+ var disableAutoUpdatesPossibleOptions = ["major", "minor", "metadata", "patch", "none"];
95171
95175
  async function setChannel(channel2, appId, options) {
95172
95176
  oe(`Set channel`);
95173
95177
  options.apikey = options.apikey || findSavedKey();
@@ -95734,7 +95738,7 @@ channel.command("add [channelId] [appId]").alias("a").description("Create channe
95734
95738
  channel.command("delete [channelId] [appId]").alias("d").description("Delete channel").action(deleteChannel).option("-a, --apikey <apikey>", "apikey to link to your account");
95735
95739
  channel.command("list [appId]").alias("l").description("List channel").action(listChannels).option("-a, --apikey <apikey>", "apikey to link to your account");
95736
95740
  channel.command("currentBundle [channel] [appId]").description("Get current bundle for specific channel in Capgo Cloud").action(currentBundle).option("-c, --channel <channel>", "channel to get the current bundle from").option("-a, --apikey <apikey>", "apikey to link to your account").option("--quiet", "only print the bundle version");
95737
- channel.command("set [channelId] [appId]").alias("s").description("Set channel").action(setChannel).option("-a, --apikey <apikey>", "apikey to link to your account").option("-b, --bundle <bundle>", "bundle version number of the file to set").option("-s, --state <state>", "set the state of the channel, default or normal").option("--latest", "get the latest version key in the package.json to set it to the channel").option("--downgrade", "Allow to downgrade to version under native one").option("--no-downgrade", "Disable downgrade to version under native one").option("--upgrade", "Allow to upgrade to version above native one").option("--no-upgrade", "Disable upgrade to version above native one").option("--ios", "Allow sending update to ios devices").option("--no-ios", "Disable sending update to ios devices").option("--android", "Allow sending update to android devices").option("--no-android", "Disable sending update to android devices").option("--self-assign", "Allow to device to self assign to this channel").option("--no-self-assign", "Disable devices to self assign to this channel").option("--disable-auto-update <disableAutoUpdate>", "Disable auto update strategy for this channel.The possible options are: major, minor, metadata, none");
95741
+ channel.command("set [channelId] [appId]").alias("s").description("Set channel").action(setChannel).option("-a, --apikey <apikey>", "apikey to link to your account").option("-b, --bundle <bundle>", "bundle version number of the file to set").option("-s, --state <state>", "set the state of the channel, default or normal").option("--latest", "get the latest version key in the package.json to set it to the channel").option("--downgrade", "Allow to downgrade to version under native one").option("--no-downgrade", "Disable downgrade to version under native one").option("--upgrade", "Allow to upgrade to version above native one").option("--no-upgrade", "Disable upgrade to version above native one").option("--ios", "Allow sending update to ios devices").option("--no-ios", "Disable sending update to ios devices").option("--android", "Allow sending update to android devices").option("--no-android", "Disable sending update to android devices").option("--self-assign", "Allow to device to self assign to this channel").option("--no-self-assign", "Disable devices to self assign to this channel").option("--disable-auto-update <disableAutoUpdate>", "Disable auto update strategy for this channel.The possible options are: major, minor, metadata, patch, none");
95738
95742
  var key = program.command("key").description("Manage key");
95739
95743
  key.command("save").description("Save base64 signing key in capacitor config, usefull for CI").action(saveKeyCommand).option("-f, --force", "force generate a new one").option("--key", "key path to save in capacitor config").option("--key-data", "key data to save in capacitor config");
95740
95744
  key.command("create").description("Create a new signing key").action(createKeyCommand).option("-f, --force", "force generate a new one");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
- "version": "4.3.3",
3
+ "version": "4.3.5",
4
4
  "description": "A CLI to upload to capgo servers",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
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'])
@@ -32,7 +32,7 @@ interface Options extends OptionsBase {
32
32
  channel?: string
33
33
  }
34
34
 
35
- const disableAutoUpdatesPossibleOptions = ['major', 'minor', 'metadata', 'none']
35
+ const disableAutoUpdatesPossibleOptions = ['major', 'minor', 'metadata', 'patch', 'none']
36
36
 
37
37
  export async function setChannel(channel: string, appId: string, options: Options) {
38
38
  p.intro(`Set channel`)
package/src/index.ts CHANGED
@@ -247,7 +247,7 @@ channel
247
247
  .option('--no-android', 'Disable sending update to android devices')
248
248
  .option('--self-assign', 'Allow to device to self assign to this channel')
249
249
  .option('--no-self-assign', 'Disable devices to self assign to this channel')
250
- .option('--disable-auto-update <disableAutoUpdate>', 'Disable auto update strategy for this channel.The possible options are: major, minor, metadata, none')
250
+ .option('--disable-auto-update <disableAutoUpdate>', 'Disable auto update strategy for this channel.The possible options are: major, minor, metadata, patch, none')
251
251
 
252
252
  const key = program
253
253
  .command('key')