@capgo/cli 4.10.20 → 4.10.21
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 +7 -0
- package/dist/index.js +2 -7
- package/package.json +1 -1
- package/src/bundle/upload.ts +0 -8
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.10.21](https://github.com/Cap-go/CLI/compare/v4.10.20...v4.10.21) (2024-06-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* remove old headers ([4d0c4b2](https://github.com/Cap-go/CLI/commit/4d0c4b24c5608034f948e0ce07d1e6fb5b9bb75d))
|
|
11
|
+
|
|
5
12
|
### [4.10.20](https://github.com/Cap-go/CLI/compare/v4.10.19...v4.10.20) (2024-06-18)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.js
CHANGED
|
@@ -110508,7 +110508,7 @@ async function getUserId(options) {
|
|
|
110508
110508
|
// package.json
|
|
110509
110509
|
var package_default = {
|
|
110510
110510
|
name: "@capgo/cli",
|
|
110511
|
-
version: "4.10.
|
|
110511
|
+
version: "4.10.21",
|
|
110512
110512
|
description: "A CLI to upload to capgo servers",
|
|
110513
110513
|
author: "github.com/riderx",
|
|
110514
110514
|
license: "Apache 2.0",
|
|
@@ -111319,7 +111319,6 @@ async function uploadBundle(appid, options, shouldExit = true) {
|
|
|
111319
111319
|
const snag = useLogSnag();
|
|
111320
111320
|
channel2 = channel2 || "dev";
|
|
111321
111321
|
const config = await getConfig();
|
|
111322
|
-
const localS3 = (config?.app?.extConfig?.plugins && config?.app?.extConfig?.plugins?.CapacitorUpdater && config?.app?.extConfig?.plugins?.CapacitorUpdater?.localS3) === true;
|
|
111323
111322
|
const checkNotifyAppReady = options.codeCheck;
|
|
111324
111323
|
appid = appid || config?.app?.appId;
|
|
111325
111324
|
const uuid = (0, import_node_crypto3.randomUUID)().split("-")[0];
|
|
@@ -111562,11 +111561,7 @@ The app size is ${mbSize} Mb, this may take a while to download for users
|
|
|
111562
111561
|
await distribution_default.put(url, {
|
|
111563
111562
|
timeout: options.timeout || UPLOAD_TIMEOUT,
|
|
111564
111563
|
retry: 5,
|
|
111565
|
-
body: zipped
|
|
111566
|
-
headers: !localS3 ? {
|
|
111567
|
-
"Content-Type": "application/octet-stream",
|
|
111568
|
-
"Cache-Control": "public, max-age=456789, immutable"
|
|
111569
|
-
} : void 0
|
|
111564
|
+
body: zipped
|
|
111570
111565
|
});
|
|
111571
111566
|
}
|
|
111572
111567
|
} catch (errorUpload) {
|
package/package.json
CHANGED
package/src/bundle/upload.ts
CHANGED
|
@@ -100,8 +100,6 @@ export async function uploadBundle(appid: string, options: Options, shouldExit =
|
|
|
100
100
|
channel = channel || 'dev'
|
|
101
101
|
|
|
102
102
|
const config = await getConfig()
|
|
103
|
-
const localS3: boolean = (config?.app?.extConfig?.plugins && config?.app?.extConfig?.plugins?.CapacitorUpdater
|
|
104
|
-
&& config?.app?.extConfig?.plugins?.CapacitorUpdater?.localS3) === true
|
|
105
103
|
|
|
106
104
|
const checkNotifyAppReady = options.codeCheck
|
|
107
105
|
appid = appid || config?.app?.appId
|
|
@@ -400,12 +398,6 @@ It will be also visible in your dashboard\n`)
|
|
|
400
398
|
timeout: options.timeout || UPLOAD_TIMEOUT,
|
|
401
399
|
retry: 5,
|
|
402
400
|
body: zipped,
|
|
403
|
-
headers: (!localS3
|
|
404
|
-
? {
|
|
405
|
-
'Content-Type': 'application/octet-stream',
|
|
406
|
-
'Cache-Control': 'public, max-age=456789, immutable',
|
|
407
|
-
}
|
|
408
|
-
: undefined),
|
|
409
401
|
})
|
|
410
402
|
}
|
|
411
403
|
}
|