@capgo/cli 4.12.10 → 4.12.12

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,15 @@
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.12.12](https://github.com/Cap-go/CLI/compare/v4.12.11...v4.12.12) (2024-07-15)
6
+
7
+ ### [4.12.11](https://github.com/Cap-go/CLI/compare/v4.12.10...v4.12.11) (2024-07-14)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * external missing session key ([8fbee32](https://github.com/Cap-go/CLI/commit/8fbee329cd97b58a95c05b2209b54d948cab9639))
13
+
5
14
  ### [4.12.10](https://github.com/Cap-go/CLI/compare/v4.12.9...v4.12.10) (2024-07-12)
6
15
 
7
16
 
package/bun.lockb CHANGED
Binary file
package/dist/index.js CHANGED
@@ -86219,7 +86219,7 @@ var {
86219
86219
  // package.json
86220
86220
  var package_default = {
86221
86221
  name: "@capgo/cli",
86222
- version: "4.12.10",
86222
+ version: "4.12.12",
86223
86223
  description: "A CLI to upload to capgo servers",
86224
86224
  author: "github.com/riderx",
86225
86225
  license: "Apache 2.0",
@@ -86298,7 +86298,7 @@ var package_default = {
86298
86298
  "@typescript-eslint/eslint-plugin": "^7.13.0",
86299
86299
  "@typescript-eslint/parser": "^7.13.1",
86300
86300
  esbuild: "^0.21.5",
86301
- eslint: "9.6.0",
86301
+ eslint: "9.7.0",
86302
86302
  "git-format-staged": "3.1.1",
86303
86303
  husky: "^9.0.11",
86304
86304
  pkg: "5.8.1",
@@ -89218,6 +89218,18 @@ async function uploadBundle(preAppid, options, shouldExit = true) {
89218
89218
  if (!options.ignoreChecksumCheck) {
89219
89219
  await checkChecksum(supabase, appid, channel2, checksum);
89220
89220
  }
89221
+ } else {
89222
+ await snag.track({
89223
+ channel: "app",
89224
+ event: "App external",
89225
+ icon: "\u{1F4E4}",
89226
+ user_id: orgId,
89227
+ tags: {
89228
+ "app-id": appid
89229
+ },
89230
+ notify: false
89231
+ }).catch();
89232
+ versionData.session_key = options.ivSessionKey;
89221
89233
  }
89222
89234
  const { error: dbError } = await updateOrCreateVersion(supabase, versionData);
89223
89235
  if (dbError) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
- "version": "4.12.10",
3
+ "version": "4.12.12",
4
4
  "description": "A CLI to upload to capgo servers",
5
5
  "author": "github.com/riderx",
6
6
  "license": "Apache 2.0",
@@ -79,7 +79,7 @@
79
79
  "@typescript-eslint/eslint-plugin": "^7.13.0",
80
80
  "@typescript-eslint/parser": "^7.13.1",
81
81
  "esbuild": "^0.21.5",
82
- "eslint": "9.6.0",
82
+ "eslint": "9.7.0",
83
83
  "git-format-staged": "3.1.1",
84
84
  "husky": "^9.0.11",
85
85
  "pkg": "5.8.1",
@@ -211,6 +211,7 @@ async function checkTrial(supabase: SupabaseType, orgId: string, localConfig: lo
211
211
  async function checkVersionExists(supabase: SupabaseType, appid: string, bundle: string) {
212
212
  // check if app already exist
213
213
  // apikey is sooo legacy code, current prod does not use it
214
+ // TODO: remove apikey and create a new function who not need it
214
215
  const { data: appVersion, error: appVersionError } = await supabase
215
216
  .rpc('exist_app_versions', { appid, apikey: '', name_version: bundle })
216
217
  .single()
@@ -471,6 +472,19 @@ export async function uploadBundle(preAppid: string, options: Options, shouldExi
471
472
  await checkChecksum(supabase, appid, channel, checksum)
472
473
  }
473
474
  }
475
+ else {
476
+ await snag.track({
477
+ channel: 'app',
478
+ event: 'App external',
479
+ icon: '📤',
480
+ user_id: orgId,
481
+ tags: {
482
+ 'app-id': appid,
483
+ },
484
+ notify: false,
485
+ }).catch()
486
+ versionData.session_key = options.ivSessionKey
487
+ }
474
488
 
475
489
  const { error: dbError } = await updateOrCreateVersion(supabase, versionData)
476
490
  if (dbError) {