@capgo/cli 4.2.3 → 4.2.4
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 +5 -3
- package/package.json +1 -1
- package/src/bundle/upload.ts +6 -2
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.4](https://github.com/Cap-go/CLI/compare/v4.2.3...v4.2.4) (2024-03-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* make no-key works ([11eed1a](https://github.com/Cap-go/CLI/commit/11eed1a515d44800ef369303dd14c5218b2164ca))
|
|
11
|
+
|
|
5
12
|
### [4.2.3](https://github.com/Cap-go/CLI/compare/v4.2.2...v4.2.3) (2024-03-12)
|
|
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.2.
|
|
61140
|
+
version: "4.2.4",
|
|
61141
61141
|
description: "A CLI to upload to capgo servers",
|
|
61142
61142
|
main: "dist/index.js",
|
|
61143
61143
|
bin: {
|
|
@@ -63463,7 +63463,7 @@ async function uploadBundle(appid, options, shouldExit = true) {
|
|
|
63463
63463
|
oe(`Uploading`);
|
|
63464
63464
|
await checkLatest();
|
|
63465
63465
|
let { bundle: bundle2, path: path3, channel: channel2 } = options;
|
|
63466
|
-
const { external, key: key2
|
|
63466
|
+
const { external, key: key2, displayIvSession, autoMinUpdateVersion, ignoreMetadataCheck } = options;
|
|
63467
63467
|
let { minUpdateVersion } = options;
|
|
63468
63468
|
options.apikey = options.apikey || findSavedKey();
|
|
63469
63469
|
const snag = useLogSnag();
|
|
@@ -63586,7 +63586,9 @@ Trial expires in ${isTrial2} days`);
|
|
|
63586
63586
|
s.start(`Calculating checksum`);
|
|
63587
63587
|
checksum = await (0, import_checksum2.checksum)(zipped, "crc32");
|
|
63588
63588
|
s.stop(`Checksum: ${checksum}`);
|
|
63589
|
-
if (key2
|
|
63589
|
+
if (key2 === false) {
|
|
63590
|
+
f2.info(`Encryption ignored`);
|
|
63591
|
+
} else if (key2 || (0, import_node_fs8.existsSync)(baseKeyPub)) {
|
|
63590
63592
|
const publicKey = typeof key2 === "string" ? key2 : baseKeyPub;
|
|
63591
63593
|
let keyData = options.keyData || "";
|
|
63592
63594
|
if (!keyData && !(0, import_node_fs8.existsSync)(publicKey)) {
|
package/package.json
CHANGED
package/src/bundle/upload.ts
CHANGED
|
@@ -60,7 +60,7 @@ export async function uploadBundle(appid: string, options: Options, shouldExit =
|
|
|
60
60
|
p.intro(`Uploading`)
|
|
61
61
|
await checkLatest()
|
|
62
62
|
let { bundle, path, channel } = options
|
|
63
|
-
const { external, key
|
|
63
|
+
const { external, key, displayIvSession, autoMinUpdateVersion, ignoreMetadataCheck } = options
|
|
64
64
|
let { minUpdateVersion } = options
|
|
65
65
|
options.apikey = options.apikey || findSavedKey()
|
|
66
66
|
const snag = useLogSnag()
|
|
@@ -227,7 +227,11 @@ export async function uploadBundle(appid: string, options: Options, shouldExit =
|
|
|
227
227
|
s.start(`Calculating checksum`)
|
|
228
228
|
checksum = await getChecksum(zipped, 'crc32')
|
|
229
229
|
s.stop(`Checksum: ${checksum}`)
|
|
230
|
-
|
|
230
|
+
// key should be undefined or a string if false it should ingore encryption
|
|
231
|
+
if (key === false) {
|
|
232
|
+
p.log.info(`Encryption ignored`)
|
|
233
|
+
}
|
|
234
|
+
else if (key || existsSync(baseKeyPub)) {
|
|
231
235
|
const publicKey = typeof key === 'string' ? key : baseKeyPub
|
|
232
236
|
let keyData = options.keyData || ''
|
|
233
237
|
// check if publicKey exist
|