@capgo/cli 4.12.0 → 4.12.1
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 +4 -2
- package/package.json +1 -1
- package/src/types/supabase.types.ts +5 -0
- package/src/utils.ts +3 -1
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.12.1](https://github.com/Cap-go/CLI/compare/v4.12.0...v4.12.1) (2024-07-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* types ([3ee5a38](https://github.com/Cap-go/CLI/commit/3ee5a3872d2b74894e42b26c492a572edae2baa3))
|
|
11
|
+
|
|
5
12
|
## [4.12.0](https://github.com/Cap-go/CLI/compare/v4.11.7...v4.12.0) (2024-07-08)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.js
CHANGED
|
@@ -87381,7 +87381,7 @@ var {
|
|
|
87381
87381
|
// package.json
|
|
87382
87382
|
var package_default = {
|
|
87383
87383
|
name: "@capgo/cli",
|
|
87384
|
-
version: "4.12.
|
|
87384
|
+
version: "4.12.1",
|
|
87385
87385
|
description: "A CLI to upload to capgo servers",
|
|
87386
87386
|
author: "github.com/riderx",
|
|
87387
87387
|
license: "Apache 2.0",
|
|
@@ -89188,7 +89188,9 @@ async function getLocalDepenencies() {
|
|
|
89188
89188
|
return dependenciesObject;
|
|
89189
89189
|
}
|
|
89190
89190
|
async function getRemoteChecksums(supabase, appId, channel2) {
|
|
89191
|
-
const { data, error } = await supabase.from("channels").select(`version (
|
|
89191
|
+
const { data, error } = await supabase.from("channels").select(`version (
|
|
89192
|
+
checksum
|
|
89193
|
+
)`).eq("name", channel2).eq("app_id", appId).single();
|
|
89192
89194
|
if (error || data === null || !data.version || !data.version.checksum) {
|
|
89193
89195
|
f2.error(`Cannot get remote checksum for channel ${channel2}`);
|
|
89194
89196
|
f2.error(`Error: ${error?.message}`);
|
package/package.json
CHANGED
|
@@ -1053,6 +1053,7 @@ export interface Database {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
users: {
|
|
1055
1055
|
Row: {
|
|
1056
|
+
ban_time: string | null
|
|
1056
1057
|
billing_email: string | null
|
|
1057
1058
|
country: string | null
|
|
1058
1059
|
created_at: string | null
|
|
@@ -1068,6 +1069,7 @@ export interface Database {
|
|
|
1068
1069
|
updated_at: string | null
|
|
1069
1070
|
}
|
|
1070
1071
|
Insert: {
|
|
1072
|
+
ban_time?: string | null
|
|
1071
1073
|
billing_email?: string | null
|
|
1072
1074
|
country?: string | null
|
|
1073
1075
|
created_at?: string | null
|
|
@@ -1083,6 +1085,7 @@ export interface Database {
|
|
|
1083
1085
|
updated_at?: string | null
|
|
1084
1086
|
}
|
|
1085
1087
|
Update: {
|
|
1088
|
+
ban_time?: string | null
|
|
1086
1089
|
billing_email?: string | null
|
|
1087
1090
|
country?: string | null
|
|
1088
1091
|
created_at?: string | null
|
|
@@ -1985,6 +1988,8 @@ export interface Database {
|
|
|
1985
1988
|
| 'cannotGetBundle'
|
|
1986
1989
|
| 'checksum_fail'
|
|
1987
1990
|
| 'NoChannelOrOverride'
|
|
1991
|
+
| 'setChannel'
|
|
1992
|
+
| 'getChannel'
|
|
1988
1993
|
stripe_status:
|
|
1989
1994
|
| 'created'
|
|
1990
1995
|
| 'succeeded'
|
package/src/utils.ts
CHANGED
|
@@ -920,7 +920,9 @@ export async function getLocalDepenencies() {
|
|
|
920
920
|
export async function getRemoteChecksums(supabase: SupabaseClient<Database>, appId: string, channel: string) {
|
|
921
921
|
const { data, error } = await supabase
|
|
922
922
|
.from('channels')
|
|
923
|
-
.select(`version (
|
|
923
|
+
.select(`version (
|
|
924
|
+
checksum
|
|
925
|
+
)`)
|
|
924
926
|
.eq('name', channel)
|
|
925
927
|
.eq('app_id', appId)
|
|
926
928
|
.single()
|