@capgo/cli 4.10.13 → 4.10.15
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 +14 -0
- package/dist/index.js +19 -14
- package/package.json +1 -1
- package/src/bundle/upload.ts +0 -1
- package/src/init.ts +19 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.15](https://github.com/Cap-go/CLI/compare/v4.10.14...v4.10.15) (2024-06-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* remove crc32 from presigned ([fb1c6b6](https://github.com/Cap-go/CLI/commit/fb1c6b62571c47f204f05b4dbf5d903fc2fc9d65))
|
|
11
|
+
|
|
12
|
+
### [4.10.14](https://github.com/Cap-go/CLI/compare/v4.10.13...v4.10.14) (2024-06-09)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* better report error in init command ([af3dbf9](https://github.com/Cap-go/CLI/commit/af3dbf9e882e1dceb5d0b0ffb15484c1d4e01764))
|
|
18
|
+
|
|
5
19
|
### [4.10.13](https://github.com/Cap-go/CLI/compare/v4.10.12...v4.10.13) (2024-06-08)
|
|
6
20
|
|
|
7
21
|
|
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.15",
|
|
110512
110512
|
description: "A CLI to upload to capgo servers",
|
|
110513
110513
|
author: "github.com/riderx",
|
|
110514
110514
|
license: "Apache 2.0",
|
|
@@ -111564,8 +111564,7 @@ The app size is ${mbSize} Mb, this may take a while to download for users
|
|
|
111564
111564
|
body: zipped,
|
|
111565
111565
|
headers: !localS3 ? {
|
|
111566
111566
|
"Content-Type": "application/octet-stream",
|
|
111567
|
-
"Cache-Control": "public, max-age=456789, immutable"
|
|
111568
|
-
"x-amz-meta-crc32": checksum
|
|
111567
|
+
"Cache-Control": "public, max-age=456789, immutable"
|
|
111569
111568
|
} : void 0
|
|
111570
111569
|
});
|
|
111571
111570
|
}
|
|
@@ -112222,17 +112221,23 @@ async function initApp(apikeyCommand, appId, options) {
|
|
|
112222
112221
|
await verifyUser(supabase, apikey, ["upload", "all", "read", "write"]);
|
|
112223
112222
|
const organization = await getOrganization(supabase, ["admin", "super_admin"]);
|
|
112224
112223
|
const orgId = organization.gid;
|
|
112225
|
-
|
|
112226
|
-
|
|
112227
|
-
|
|
112228
|
-
|
|
112229
|
-
|
|
112230
|
-
|
|
112231
|
-
|
|
112232
|
-
|
|
112233
|
-
|
|
112234
|
-
|
|
112235
|
-
|
|
112224
|
+
try {
|
|
112225
|
+
await markStep(orgId, snag, 1);
|
|
112226
|
+
await step2(organization, snag, appId, options);
|
|
112227
|
+
await step3(orgId, snag, apikey, appId);
|
|
112228
|
+
await step4(orgId, snag, apikey, appId);
|
|
112229
|
+
await step5(orgId, snag, apikey, appId);
|
|
112230
|
+
await step6(orgId, snag, apikey, appId);
|
|
112231
|
+
await step7(orgId, snag, apikey, appId);
|
|
112232
|
+
await step8(orgId, snag, apikey, appId);
|
|
112233
|
+
await step9(orgId, snag);
|
|
112234
|
+
await step10(orgId, snag, apikey, appId);
|
|
112235
|
+
await markStep(orgId, snag, 0);
|
|
112236
|
+
} catch (e2) {
|
|
112237
|
+
console.error(e2);
|
|
112238
|
+
f2.error(`Error during onboarding, please try again later`);
|
|
112239
|
+
import_node_process16.default.exit(1);
|
|
112240
|
+
}
|
|
112236
112241
|
f2.info(`Welcome onboard \u2708\uFE0F!`);
|
|
112237
112242
|
f2.info(`Your Capgo update system is setup`);
|
|
112238
112243
|
f2.info(`Next time use \`${pm2.runner} @capgo/cli@latest bundle upload\` to only upload your bundle`);
|
package/package.json
CHANGED
package/src/bundle/upload.ts
CHANGED
package/src/init.ts
CHANGED
|
@@ -319,19 +319,27 @@ export async function initApp(apikeyCommand: string, appId: string, options: Sup
|
|
|
319
319
|
const organization = await getOrganization(supabase, ['admin', 'super_admin'])
|
|
320
320
|
const orgId = organization.gid
|
|
321
321
|
|
|
322
|
-
|
|
322
|
+
try {
|
|
323
|
+
await markStep(orgId, snag, 1)
|
|
323
324
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
325
|
+
await step2(organization, snag, appId, options)
|
|
326
|
+
await step3(orgId, snag, apikey, appId)
|
|
327
|
+
await step4(orgId, snag, apikey, appId)
|
|
328
|
+
await step5(orgId, snag, apikey, appId)
|
|
329
|
+
await step6(orgId, snag, apikey, appId)
|
|
330
|
+
await step7(orgId, snag, apikey, appId)
|
|
331
|
+
await step8(orgId, snag, apikey, appId)
|
|
332
|
+
await step9(orgId, snag)
|
|
333
|
+
await step10(orgId, snag, apikey, appId)
|
|
334
|
+
|
|
335
|
+
await markStep(orgId, snag, 0)
|
|
336
|
+
}
|
|
337
|
+
catch (e) {
|
|
338
|
+
console.error(e)
|
|
339
|
+
p.log.error(`Error during onboarding, please try again later`)
|
|
340
|
+
process.exit(1)
|
|
341
|
+
}
|
|
333
342
|
|
|
334
|
-
await markStep(orgId, snag, 0)
|
|
335
343
|
p.log.info(`Welcome onboard ✈️!`)
|
|
336
344
|
p.log.info(`Your Capgo update system is setup`)
|
|
337
345
|
p.log.info(`Next time use \`${pm.runner} @capgo/cli@latest bundle upload\` to only upload your bundle`)
|