@capgo/cli 4.0.10 → 4.0.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 +9 -0
- package/dist/index.js +3 -2
- package/package.json +1 -1
- package/src/bundle/zip.ts +2 -1
- package/src/utils.ts +1 -1
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.0.12](https://github.com/Cap-go/CLI/compare/v4.0.11...v4.0.12) (2024-02-26)
|
|
6
|
+
|
|
7
|
+
### [4.0.11](https://github.com/Cap-go/CLI/compare/v4.0.10...v4.0.11) (2024-02-25)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* deploy new is_good_plan_v5 ([38bc592](https://github.com/Cap-go/CLI/commit/38bc592312f5d6e351c7da3be3ea423e2747553e))
|
|
13
|
+
|
|
5
14
|
### [4.0.10](https://github.com/Cap-go/CLI/compare/v4.0.9...v4.0.10) (2024-02-24)
|
|
6
15
|
|
|
7
16
|
|
package/dist/index.js
CHANGED
|
@@ -61661,7 +61661,7 @@ var import_get_latest_version = __toESM(require_src3());
|
|
|
61661
61661
|
// package.json
|
|
61662
61662
|
var package_default = {
|
|
61663
61663
|
name: "@capgo/cli",
|
|
61664
|
-
version: "4.0.
|
|
61664
|
+
version: "4.0.12",
|
|
61665
61665
|
description: "A CLI to upload to capgo servers",
|
|
61666
61666
|
main: "dist/index.js",
|
|
61667
61667
|
bin: {
|
|
@@ -62794,10 +62794,11 @@ var checkIndexPosition = (dirPath) => {
|
|
|
62794
62794
|
// src/bundle/zip.ts
|
|
62795
62795
|
var alertMb = 20;
|
|
62796
62796
|
var zipBundle = async (appId, options) => {
|
|
62797
|
-
await checkLatest();
|
|
62798
62797
|
let { bundle: bundle2, path: path3 } = options;
|
|
62799
62798
|
const { json } = options;
|
|
62800
62799
|
const snag = useLogSnag();
|
|
62800
|
+
if (!json)
|
|
62801
|
+
await checkLatest();
|
|
62801
62802
|
const config = await getConfig();
|
|
62802
62803
|
appId = appId || config?.app?.appId;
|
|
62803
62804
|
const uuid = (0, import_node_crypto.randomUUID)().split("-")[0];
|
package/package.json
CHANGED
package/src/bundle/zip.ts
CHANGED
|
@@ -24,10 +24,11 @@ interface Options extends OptionsBase {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export const zipBundle = async (appId: string, options: Options) => {
|
|
27
|
-
await checkLatest();
|
|
28
27
|
let { bundle, path } = options;
|
|
29
28
|
const { json } = options
|
|
30
29
|
const snag = useLogSnag()
|
|
30
|
+
if (!json)
|
|
31
|
+
await checkLatest();
|
|
31
32
|
|
|
32
33
|
const config = await getConfig();
|
|
33
34
|
appId = appId || config?.app?.appId
|
package/src/utils.ts
CHANGED
|
@@ -119,7 +119,7 @@ export const checkKey = async (supabase: SupabaseClient<Database>, apikey: strin
|
|
|
119
119
|
|
|
120
120
|
export const isGoodPlan = async (supabase: SupabaseClient<Database>, userId: string): Promise<boolean> => {
|
|
121
121
|
const { data } = await supabase
|
|
122
|
-
.rpc('
|
|
122
|
+
.rpc('is_good_plan_v5', { userid: userId })
|
|
123
123
|
.single()
|
|
124
124
|
return data || false
|
|
125
125
|
}
|