@capgo/cli 4.1.0 → 4.2.0

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,13 @@
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.2.0](https://github.com/Cap-go/CLI/compare/v4.1.0...v4.2.0) (2024-03-04)
6
+
7
+
8
+ ### Features
9
+
10
+ * allow ussage of version in Capcitor config instead of package.json ([7b2084a](https://github.com/Cap-go/CLI/commit/7b2084ab6a8d1cede375cb393b6718f3a5aa23dc))
11
+
5
12
  ## [4.1.0](https://github.com/Cap-go/CLI/compare/v4.0.14...v4.1.0) (2024-02-27)
6
13
 
7
14
 
package/dist/index.js CHANGED
@@ -61137,7 +61137,7 @@ var {
61137
61137
  // package.json
61138
61138
  var package_default = {
61139
61139
  name: "@capgo/cli",
61140
- version: "4.1.0",
61140
+ version: "4.2.0",
61141
61141
  description: "A CLI to upload to capgo servers",
61142
61142
  main: "dist/index.js",
61143
61143
  bin: {
@@ -63469,7 +63469,7 @@ async function uploadBundle(appid, options, shouldExit = true) {
63469
63469
  const checkNotifyAppReady = options.codeCheck;
63470
63470
  appid = appid || config?.app?.appId;
63471
63471
  const uuid = (0, import_node_crypto3.randomUUID)().split("-")[0];
63472
- bundle2 = bundle2 || config?.app?.package?.version || `0.0.1-beta.${uuid}`;
63472
+ bundle2 = bundle2 || config?.app?.extConfig?.plugins?.CapacitorUpdater?.version || config?.app?.package?.version || `0.0.1-beta.${uuid}`;
63473
63473
  if (!regexSemver.test(bundle2)) {
63474
63474
  f2.error(`Your bundle name ${bundle2}, is not valid it should follow semver convention : https://semver.org/`);
63475
63475
  program.error("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "A CLI to upload to capgo servers",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -75,7 +75,7 @@ export async function uploadBundle(appid: string, options: Options, shouldExit =
75
75
  appid = appid || config?.app?.appId
76
76
  // create bundle name format : 1.0.0-beta.x where x is a uuid
77
77
  const uuid = randomUUID().split('-')[0]
78
- bundle = bundle || config?.app?.package?.version || `0.0.1-beta.${uuid}`
78
+ bundle = bundle || config?.app?.extConfig?.plugins?.CapacitorUpdater?.version || config?.app?.package?.version || `0.0.1-beta.${uuid}`
79
79
  // check if bundle is valid
80
80
  if (!regexSemver.test(bundle)) {
81
81
  p.log.error(`Your bundle name ${bundle}, is not valid it should follow semver convention : https://semver.org/`)
package/src/utils.ts CHANGED
@@ -363,16 +363,25 @@ interface Config {
363
363
  plugins: {
364
364
  extConfig: object
365
365
  CapacitorUpdater: {
366
+ appReadyTimeout?: number
367
+ responseTimeout?: number
368
+ autoDeleteFailed?: boolean
369
+ autoDeletePrevious?: boolean
366
370
  autoUpdate?: boolean
371
+ resetWhenUpdate?: boolean
372
+ updateUrl?: string
373
+ statsUrl?: string
374
+ privateKey?: string
375
+ version?: string
376
+ directUpdate?: boolean
377
+ periodCheckDelay?: number
367
378
  localS3?: boolean
368
379
  localHost?: string
369
380
  localWebHost?: string
370
381
  localSupa?: string
371
382
  localSupaAnon?: string
372
- statsUrl?: string
373
- channelUrl?: string
374
- updateUrl?: string
375
- privateKey?: string
383
+ allowModifyUrl?: boolean
384
+ defaultChannel?: string
376
385
  }
377
386
  }
378
387
  server: {