@capgo/cli 4.11.0 → 4.11.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 +82 -83
- package/package.json +1 -1
- package/src/utils.ts +1 -2
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.11.1](https://github.com/Cap-go/CLI/compare/v4.11.0...v4.11.1) (2024-06-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* use JSZip for all windows ([c5bff16](https://github.com/Cap-go/CLI/commit/c5bff169cb401dc50167214c886cba375c99c986))
|
|
11
|
+
|
|
5
12
|
## [4.11.0](https://github.com/Cap-go/CLI/compare/v4.10.77...v4.11.0) (2024-06-23)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.js
CHANGED
|
@@ -64743,86 +64743,6 @@ var require_adm_zip = __commonJS({
|
|
|
64743
64743
|
}
|
|
64744
64744
|
});
|
|
64745
64745
|
|
|
64746
|
-
// node_modules/is-inside-container/node_modules/is-docker/index.js
|
|
64747
|
-
function hasDockerEnv() {
|
|
64748
|
-
try {
|
|
64749
|
-
import_node_fs.default.statSync("/.dockerenv");
|
|
64750
|
-
return true;
|
|
64751
|
-
} catch {
|
|
64752
|
-
return false;
|
|
64753
|
-
}
|
|
64754
|
-
}
|
|
64755
|
-
function hasDockerCGroup() {
|
|
64756
|
-
try {
|
|
64757
|
-
return import_node_fs.default.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
|
|
64758
|
-
} catch {
|
|
64759
|
-
return false;
|
|
64760
|
-
}
|
|
64761
|
-
}
|
|
64762
|
-
function isDocker() {
|
|
64763
|
-
if (isDockerCached === void 0) {
|
|
64764
|
-
isDockerCached = hasDockerEnv() || hasDockerCGroup();
|
|
64765
|
-
}
|
|
64766
|
-
return isDockerCached;
|
|
64767
|
-
}
|
|
64768
|
-
var import_node_fs, isDockerCached;
|
|
64769
|
-
var init_is_docker = __esm({
|
|
64770
|
-
"node_modules/is-inside-container/node_modules/is-docker/index.js"() {
|
|
64771
|
-
import_node_fs = __toESM(require("node:fs"), 1);
|
|
64772
|
-
}
|
|
64773
|
-
});
|
|
64774
|
-
|
|
64775
|
-
// node_modules/is-inside-container/index.js
|
|
64776
|
-
function isInsideContainer() {
|
|
64777
|
-
if (cachedResult === void 0) {
|
|
64778
|
-
cachedResult = hasContainerEnv() || isDocker();
|
|
64779
|
-
}
|
|
64780
|
-
return cachedResult;
|
|
64781
|
-
}
|
|
64782
|
-
var import_node_fs2, cachedResult, hasContainerEnv;
|
|
64783
|
-
var init_is_inside_container = __esm({
|
|
64784
|
-
"node_modules/is-inside-container/index.js"() {
|
|
64785
|
-
import_node_fs2 = __toESM(require("node:fs"), 1);
|
|
64786
|
-
init_is_docker();
|
|
64787
|
-
hasContainerEnv = () => {
|
|
64788
|
-
try {
|
|
64789
|
-
import_node_fs2.default.statSync("/run/.containerenv");
|
|
64790
|
-
return true;
|
|
64791
|
-
} catch {
|
|
64792
|
-
return false;
|
|
64793
|
-
}
|
|
64794
|
-
};
|
|
64795
|
-
}
|
|
64796
|
-
});
|
|
64797
|
-
|
|
64798
|
-
// node_modules/is-wsl/index.js
|
|
64799
|
-
var import_node_process3, import_node_os, import_node_fs3, isWsl, is_wsl_default;
|
|
64800
|
-
var init_is_wsl = __esm({
|
|
64801
|
-
"node_modules/is-wsl/index.js"() {
|
|
64802
|
-
import_node_process3 = __toESM(require("node:process"), 1);
|
|
64803
|
-
import_node_os = __toESM(require("node:os"), 1);
|
|
64804
|
-
import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
64805
|
-
init_is_inside_container();
|
|
64806
|
-
isWsl = () => {
|
|
64807
|
-
if (import_node_process3.default.platform !== "linux") {
|
|
64808
|
-
return false;
|
|
64809
|
-
}
|
|
64810
|
-
if (import_node_os.default.release().toLowerCase().includes("microsoft")) {
|
|
64811
|
-
if (isInsideContainer()) {
|
|
64812
|
-
return false;
|
|
64813
|
-
}
|
|
64814
|
-
return true;
|
|
64815
|
-
}
|
|
64816
|
-
try {
|
|
64817
|
-
return import_node_fs3.default.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
|
|
64818
|
-
} catch {
|
|
64819
|
-
return false;
|
|
64820
|
-
}
|
|
64821
|
-
};
|
|
64822
|
-
is_wsl_default = import_node_process3.default.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
64823
|
-
}
|
|
64824
|
-
});
|
|
64825
|
-
|
|
64826
64746
|
// node_modules/process-nextick-args/index.js
|
|
64827
64747
|
var require_process_nextick_args = __commonJS({
|
|
64828
64748
|
"node_modules/process-nextick-args/index.js"(exports2, module2) {
|
|
@@ -74532,6 +74452,86 @@ var require_lib12 = __commonJS({
|
|
|
74532
74452
|
}
|
|
74533
74453
|
});
|
|
74534
74454
|
|
|
74455
|
+
// node_modules/is-inside-container/node_modules/is-docker/index.js
|
|
74456
|
+
function hasDockerEnv() {
|
|
74457
|
+
try {
|
|
74458
|
+
import_node_fs.default.statSync("/.dockerenv");
|
|
74459
|
+
return true;
|
|
74460
|
+
} catch {
|
|
74461
|
+
return false;
|
|
74462
|
+
}
|
|
74463
|
+
}
|
|
74464
|
+
function hasDockerCGroup() {
|
|
74465
|
+
try {
|
|
74466
|
+
return import_node_fs.default.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
|
|
74467
|
+
} catch {
|
|
74468
|
+
return false;
|
|
74469
|
+
}
|
|
74470
|
+
}
|
|
74471
|
+
function isDocker() {
|
|
74472
|
+
if (isDockerCached === void 0) {
|
|
74473
|
+
isDockerCached = hasDockerEnv() || hasDockerCGroup();
|
|
74474
|
+
}
|
|
74475
|
+
return isDockerCached;
|
|
74476
|
+
}
|
|
74477
|
+
var import_node_fs, isDockerCached;
|
|
74478
|
+
var init_is_docker = __esm({
|
|
74479
|
+
"node_modules/is-inside-container/node_modules/is-docker/index.js"() {
|
|
74480
|
+
import_node_fs = __toESM(require("node:fs"), 1);
|
|
74481
|
+
}
|
|
74482
|
+
});
|
|
74483
|
+
|
|
74484
|
+
// node_modules/is-inside-container/index.js
|
|
74485
|
+
function isInsideContainer() {
|
|
74486
|
+
if (cachedResult === void 0) {
|
|
74487
|
+
cachedResult = hasContainerEnv() || isDocker();
|
|
74488
|
+
}
|
|
74489
|
+
return cachedResult;
|
|
74490
|
+
}
|
|
74491
|
+
var import_node_fs2, cachedResult, hasContainerEnv;
|
|
74492
|
+
var init_is_inside_container = __esm({
|
|
74493
|
+
"node_modules/is-inside-container/index.js"() {
|
|
74494
|
+
import_node_fs2 = __toESM(require("node:fs"), 1);
|
|
74495
|
+
init_is_docker();
|
|
74496
|
+
hasContainerEnv = () => {
|
|
74497
|
+
try {
|
|
74498
|
+
import_node_fs2.default.statSync("/run/.containerenv");
|
|
74499
|
+
return true;
|
|
74500
|
+
} catch {
|
|
74501
|
+
return false;
|
|
74502
|
+
}
|
|
74503
|
+
};
|
|
74504
|
+
}
|
|
74505
|
+
});
|
|
74506
|
+
|
|
74507
|
+
// node_modules/is-wsl/index.js
|
|
74508
|
+
var import_node_process3, import_node_os, import_node_fs3, isWsl, is_wsl_default;
|
|
74509
|
+
var init_is_wsl = __esm({
|
|
74510
|
+
"node_modules/is-wsl/index.js"() {
|
|
74511
|
+
import_node_process3 = __toESM(require("node:process"), 1);
|
|
74512
|
+
import_node_os = __toESM(require("node:os"), 1);
|
|
74513
|
+
import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
74514
|
+
init_is_inside_container();
|
|
74515
|
+
isWsl = () => {
|
|
74516
|
+
if (import_node_process3.default.platform !== "linux") {
|
|
74517
|
+
return false;
|
|
74518
|
+
}
|
|
74519
|
+
if (import_node_os.default.release().toLowerCase().includes("microsoft")) {
|
|
74520
|
+
if (isInsideContainer()) {
|
|
74521
|
+
return false;
|
|
74522
|
+
}
|
|
74523
|
+
return true;
|
|
74524
|
+
}
|
|
74525
|
+
try {
|
|
74526
|
+
return import_node_fs3.default.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
|
|
74527
|
+
} catch {
|
|
74528
|
+
return false;
|
|
74529
|
+
}
|
|
74530
|
+
};
|
|
74531
|
+
is_wsl_default = import_node_process3.default.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
74532
|
+
}
|
|
74533
|
+
});
|
|
74534
|
+
|
|
74535
74535
|
// node_modules/define-lazy-prop/index.js
|
|
74536
74536
|
function defineLazyProperty(object, propertyName, valueGetter) {
|
|
74537
74537
|
const define2 = (value) => Object.defineProperty(object, propertyName, { value, enumerable: true, writable: true });
|
|
@@ -118903,7 +118903,7 @@ var {
|
|
|
118903
118903
|
// package.json
|
|
118904
118904
|
var package_default = {
|
|
118905
118905
|
name: "@capgo/cli",
|
|
118906
|
-
version: "4.11.
|
|
118906
|
+
version: "4.11.1",
|
|
118907
118907
|
description: "A CLI to upload to capgo servers",
|
|
118908
118908
|
author: "github.com/riderx",
|
|
118909
118909
|
license: "Apache 2.0",
|
|
@@ -120090,7 +120090,6 @@ var findPackageManagerRunner = (path3 = ".", defaultPackageManagerRunner = "npx"
|
|
|
120090
120090
|
|
|
120091
120091
|
// src/utils.ts
|
|
120092
120092
|
var import_adm_zip = __toESM(require_adm_zip());
|
|
120093
|
-
init_is_wsl();
|
|
120094
120093
|
var import_jszip = __toESM(require_lib12());
|
|
120095
120094
|
var baseKey = ".capgo_key";
|
|
120096
120095
|
var baseKeyPub = `${baseKey}.pub`;
|
|
@@ -120442,7 +120441,7 @@ async function prepareMultipart(supabase, appId, name) {
|
|
|
120442
120441
|
}
|
|
120443
120442
|
}
|
|
120444
120443
|
async function zipFile(filePath) {
|
|
120445
|
-
if ((0, import_node_os2.release)().toLowerCase().includes("microsoft")
|
|
120444
|
+
if ((0, import_node_os2.release)().toLowerCase().includes("microsoft")) {
|
|
120446
120445
|
return zipFileWindows(filePath);
|
|
120447
120446
|
} else {
|
|
120448
120447
|
return zipFileUnix(filePath);
|
package/package.json
CHANGED
package/src/utils.ts
CHANGED
|
@@ -16,7 +16,6 @@ import { findRootSync } from '@manypkg/find-root'
|
|
|
16
16
|
import type { InstallCommand, PackageManagerRunner, PackageManagerType } from '@capgo/find-package-manager'
|
|
17
17
|
import { findInstallCommand, findPackageManagerRunner, findPackageManagerType } from '@capgo/find-package-manager'
|
|
18
18
|
import AdmZip from 'adm-zip'
|
|
19
|
-
import isWsl from 'is-wsl'
|
|
20
19
|
import JSZip from 'jszip'
|
|
21
20
|
import type { Database } from './types/supabase.types'
|
|
22
21
|
|
|
@@ -520,7 +519,7 @@ async function prepareMultipart(supabase: SupabaseClient<Database>, appId: strin
|
|
|
520
519
|
}
|
|
521
520
|
|
|
522
521
|
export async function zipFile(filePath: string): Promise<Buffer> {
|
|
523
|
-
if (osRelease().toLowerCase().includes('microsoft')
|
|
522
|
+
if (osRelease().toLowerCase().includes('microsoft')) {
|
|
524
523
|
return zipFileWindows(filePath)
|
|
525
524
|
}
|
|
526
525
|
else {
|