@capgo/cli 4.12.4 → 4.12.5

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,14 @@
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.5](https://github.com/Cap-go/CLI/compare/v4.12.4...v4.12.5) (2024-07-09)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * lint ([01e0f31](https://github.com/Cap-go/CLI/commit/01e0f31b20232578e47cc886be729e7e4e4885ed))
11
+ * remove preprod url ([0d8672a](https://github.com/Cap-go/CLI/commit/0d8672a1534a5e88260cbbad7eb10821d07e6cba))
12
+
5
13
  ### [4.12.4](https://github.com/Cap-go/CLI/compare/v4.12.3...v4.12.4) (2024-07-09)
6
14
 
7
15
 
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.4",
86222
+ version: "4.12.5",
86223
86223
  description: "A CLI to upload to capgo servers",
86224
86224
  author: "github.com/riderx",
86225
86225
  license: "Apache 2.0",
@@ -88368,8 +88368,7 @@ async function cancelCommand(channel2, command, orgId, snag) {
88368
88368
  }
88369
88369
  async function getStats(apikey, query, after) {
88370
88370
  try {
88371
- const defaultApiHostPreprod = "https://api-preprod.capgo.app";
88372
- const dataD = await distribution_default.post(`${defaultApiHostPreprod}/private/stats`, {
88371
+ const dataD = await distribution_default.post(`${defaultApiHost}/private/stats`, {
88373
88372
  headers: {
88374
88373
  "Content-Type": "application/json",
88375
88374
  "capgkey": apikey
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
- "version": "4.12.4",
3
+ "version": "4.12.5",
4
4
  "description": "A CLI to upload to capgo servers",
5
5
  "author": "github.com/riderx",
6
6
  "license": "Apache 2.0",
package/src/app/debug.ts CHANGED
@@ -6,7 +6,7 @@ import type LogSnag from 'logsnag'
6
6
  import type { Database } from '../types/supabase.types'
7
7
  import { checkAppExistsAndHasPermissionOrgErr } from '../api/app'
8
8
  import { checkLatest } from '../api/update'
9
- import { OrganizationPerm, convertAppName, createSupabaseClient, findSavedKey, formatError, getConfig, getLocalConfig, getOrganizationId, useLogSnag, verifyUser } from '../utils'
9
+ import { OrganizationPerm, convertAppName, createSupabaseClient, defaultApiHost, findSavedKey, formatError, getConfig, getLocalConfig, getOrganizationId, useLogSnag, verifyUser } from '../utils'
10
10
 
11
11
  function wait(ms: number) {
12
12
  return new Promise((resolve) => {
@@ -60,9 +60,8 @@ interface LogData {
60
60
  }
61
61
  export async function getStats(apikey: string, query: QueryStats, after: string | null): Promise<LogData | null> {
62
62
  try {
63
- const defaultApiHostPreprod = 'https://api-preprod.capgo.app'
64
63
  const dataD = await ky
65
- .post(`${defaultApiHostPreprod}/private/stats`, {
64
+ .post(`${defaultApiHost}/private/stats`, {
66
65
  headers: {
67
66
  'Content-Type': 'application/json',
68
67
  'capgkey': apikey,