@wix/cli-app 1.1.173 → 1.1.175
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/build/{AddPermissionCommand-5FDTBKCR.js → AddPermissionCommand-RWBU44OM.js} +2 -2
- package/build/{DevCommand-LL7CQXUK.js → DevCommand-OQHOZN67.js} +10 -10
- package/build/{GenerateCommand-7Q67YDZZ.js → GenerateCommand-ABOT3Q26.js} +7 -7
- package/build/{LogsCommand-B724DBBD.js → LogsCommand-FTZRIGVP.js} +3 -3
- package/build/PreviewCommand-UK6NX4QM.js +19 -0
- package/build/ReleaseCommand-CPCFDIPZ.js +23 -0
- package/build/{ServeCommand-TO27P65W.js → ServeCommand-C46XSVL5.js} +3 -3
- package/build/{build-S3UUTPEU.js → build-B4Y4BL4W.js} +6 -6
- package/build/{chunk-IYUF4GV7.js → chunk-4ITNW54U.js} +2 -2
- package/build/{chunk-U4RY757N.js → chunk-6SXASZFX.js} +3 -3
- package/build/{chunk-KPULNUHX.js → chunk-D23EPZHF.js} +2 -2
- package/build/{chunk-RCVBJAYZ.js → chunk-HW27624Y.js} +6 -18
- package/build/chunk-HW27624Y.js.map +1 -0
- package/build/{chunk-HY2ZVDSE.js → chunk-I2CLVTPD.js} +2 -2
- package/build/{chunk-SNDRTZ2H.js → chunk-LHQVBGBR.js} +6 -6
- package/build/{chunk-G4SZ4YRN.js → chunk-LIQJKT6H.js} +9 -166
- package/build/chunk-LIQJKT6H.js.map +1 -0
- package/build/{chunk-YKQFQ3FZ.js → chunk-P3V3DSIX.js} +2 -2
- package/build/{chunk-HKJUQPIH.js → chunk-QOFTYMHB.js} +293 -250
- package/build/{chunk-HKJUQPIH.js.map → chunk-QOFTYMHB.js.map} +1 -1
- package/build/{chunk-LWZGVJAX.js → chunk-R2JHCPOL.js} +2 -2
- package/build/{chunk-VOODRJFT.js → chunk-TIZ63I54.js} +4 -4
- package/build/{chunk-RLCIEZTZ.js → chunk-UMXUTCVQ.js} +3 -3
- package/build/{chunk-K7QTZQ6H.js → chunk-USBG2AEA.js} +2 -2
- package/build/{chunk-FINFTVSL.js → chunk-WRPCUGPF.js} +2 -2
- package/build/{chunk-LKTK42IV.js → chunk-YIZMKNT2.js} +2 -2
- package/build/{chunk-YULS3Z75.js → chunk-ZEZOI6GH.js} +6 -6
- package/build/{chunk-266QKUFO.js → chunk-ZF6KYBWR.js} +4 -4
- package/build/index.js +23 -23
- package/build/{preview-FZSIX4FU.js → preview-WBDU2QVM.js} +12 -12
- package/build/{release-AVIUEBQ5.js → release-KKIPLU2I.js} +14 -14
- package/build/{render-command-TURGZ36M.js → render-command-DXQCRFJ7.js} +5 -5
- package/package.json +2 -2
- package/build/PreviewCommand-ZQBNL4FI.js +0 -19
- package/build/ReleaseCommand-Q6QDFTSG.js +0 -23
- package/build/chunk-G4SZ4YRN.js.map +0 -1
- package/build/chunk-RCVBJAYZ.js.map +0 -1
- /package/build/{AddPermissionCommand-5FDTBKCR.js.map → AddPermissionCommand-RWBU44OM.js.map} +0 -0
- /package/build/{DevCommand-LL7CQXUK.js.map → DevCommand-OQHOZN67.js.map} +0 -0
- /package/build/{GenerateCommand-7Q67YDZZ.js.map → GenerateCommand-ABOT3Q26.js.map} +0 -0
- /package/build/{LogsCommand-B724DBBD.js.map → LogsCommand-FTZRIGVP.js.map} +0 -0
- /package/build/{PreviewCommand-ZQBNL4FI.js.map → PreviewCommand-UK6NX4QM.js.map} +0 -0
- /package/build/{ReleaseCommand-Q6QDFTSG.js.map → ReleaseCommand-CPCFDIPZ.js.map} +0 -0
- /package/build/{ServeCommand-TO27P65W.js.map → ServeCommand-C46XSVL5.js.map} +0 -0
- /package/build/{build-S3UUTPEU.js.map → build-B4Y4BL4W.js.map} +0 -0
- /package/build/{chunk-IYUF4GV7.js.map → chunk-4ITNW54U.js.map} +0 -0
- /package/build/{chunk-U4RY757N.js.map → chunk-6SXASZFX.js.map} +0 -0
- /package/build/{chunk-KPULNUHX.js.map → chunk-D23EPZHF.js.map} +0 -0
- /package/build/{chunk-HY2ZVDSE.js.map → chunk-I2CLVTPD.js.map} +0 -0
- /package/build/{chunk-SNDRTZ2H.js.map → chunk-LHQVBGBR.js.map} +0 -0
- /package/build/{chunk-YKQFQ3FZ.js.map → chunk-P3V3DSIX.js.map} +0 -0
- /package/build/{chunk-LWZGVJAX.js.map → chunk-R2JHCPOL.js.map} +0 -0
- /package/build/{chunk-VOODRJFT.js.map → chunk-TIZ63I54.js.map} +0 -0
- /package/build/{chunk-RLCIEZTZ.js.map → chunk-UMXUTCVQ.js.map} +0 -0
- /package/build/{chunk-K7QTZQ6H.js.map → chunk-USBG2AEA.js.map} +0 -0
- /package/build/{chunk-FINFTVSL.js.map → chunk-WRPCUGPF.js.map} +0 -0
- /package/build/{chunk-LKTK42IV.js.map → chunk-YIZMKNT2.js.map} +0 -0
- /package/build/{chunk-YULS3Z75.js.map → chunk-ZEZOI6GH.js.map} +0 -0
- /package/build/{chunk-266QKUFO.js.map → chunk-ZF6KYBWR.js.map} +0 -0
- /package/build/{preview-FZSIX4FU.js.map → preview-WBDU2QVM.js.map} +0 -0
- /package/build/{release-AVIUEBQ5.js.map → release-KKIPLU2I.js.map} +0 -0
- /package/build/{render-command-TURGZ36M.js.map → render-command-DXQCRFJ7.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
useAsync,
|
|
9
9
|
useDevCenterClient,
|
|
10
10
|
useProjectModel
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QOFTYMHB.js";
|
|
12
12
|
import {
|
|
13
13
|
__toESM,
|
|
14
14
|
init_esm_shims
|
|
@@ -40,4 +40,4 @@ var AddPermissionCommand = ({ permissionId }) => {
|
|
|
40
40
|
export {
|
|
41
41
|
AddPermissionCommand
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=AddPermissionCommand-
|
|
43
|
+
//# sourceMappingURL=AddPermissionCommand-RWBU44OM.js.map
|
|
@@ -18,23 +18,23 @@ import {
|
|
|
18
18
|
useResolveDashboardExtensionDevUrl,
|
|
19
19
|
useResolvePlatformDevUrl,
|
|
20
20
|
useSite
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LIQJKT6H.js";
|
|
22
22
|
import {
|
|
23
23
|
useWixCliAppBi
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YIZMKNT2.js";
|
|
25
25
|
import {
|
|
26
26
|
useBackendComponents
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-USBG2AEA.js";
|
|
28
|
+
import "./chunk-D23EPZHF.js";
|
|
29
29
|
import "./chunk-P7IRRCF7.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-HW27624Y.js";
|
|
31
31
|
import {
|
|
32
32
|
createLogger
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4ITNW54U.js";
|
|
34
34
|
import {
|
|
35
35
|
createCustomElementConfig
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-UMXUTCVQ.js";
|
|
37
|
+
import "./chunk-P3V3DSIX.js";
|
|
38
38
|
import {
|
|
39
39
|
Alert,
|
|
40
40
|
Box_default,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
use_input_default,
|
|
76
76
|
userConfigSchema,
|
|
77
77
|
writeJson
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-QOFTYMHB.js";
|
|
79
79
|
import {
|
|
80
80
|
__toESM,
|
|
81
81
|
init_esm_shims
|
|
@@ -1348,4 +1348,4 @@ var DevCommand = ({ https, origin, port }) => {
|
|
|
1348
1348
|
export {
|
|
1349
1349
|
DevCommand
|
|
1350
1350
|
};
|
|
1351
|
-
//# sourceMappingURL=DevCommand-
|
|
1351
|
+
//# sourceMappingURL=DevCommand-OQHOZN67.js.map
|
|
@@ -3,21 +3,21 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
createPackageManager,
|
|
5
5
|
getRepoType
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WRPCUGPF.js";
|
|
7
7
|
import {
|
|
8
8
|
createI18nT,
|
|
9
9
|
getGenerateFlowByDocsExtensionType,
|
|
10
10
|
useGenerateFlows
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-R2JHCPOL.js";
|
|
12
12
|
import "./chunk-VJQHGLIW.js";
|
|
13
13
|
import {
|
|
14
14
|
useWixCliAppBi
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YIZMKNT2.js";
|
|
16
16
|
import {
|
|
17
17
|
componentGenerator,
|
|
18
18
|
dependenciesUpdater,
|
|
19
19
|
useBackendComponents
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-USBG2AEA.js";
|
|
21
21
|
import "./chunk-P7IRRCF7.js";
|
|
22
22
|
import {
|
|
23
23
|
getEcomRequiredApps,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
require_setToArray,
|
|
35
35
|
require_toSource,
|
|
36
36
|
useExtensionDataClient
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-P3V3DSIX.js";
|
|
38
38
|
import {
|
|
39
39
|
AsyncCallbackStatus,
|
|
40
40
|
BACKEND_DIR,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
use_input_default,
|
|
115
115
|
uuidValidation,
|
|
116
116
|
writeJson
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-QOFTYMHB.js";
|
|
118
118
|
import {
|
|
119
119
|
__commonJS,
|
|
120
120
|
__dirname,
|
|
@@ -5174,4 +5174,4 @@ var GenerateCommand = ({
|
|
|
5174
5174
|
export {
|
|
5175
5175
|
GenerateCommand
|
|
5176
5176
|
};
|
|
5177
|
-
//# sourceMappingURL=GenerateCommand-
|
|
5177
|
+
//# sourceMappingURL=GenerateCommand-ABOT3Q26.js.map
|
|
@@ -2,7 +2,7 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
useTunnel
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D23EPZHF.js";
|
|
6
6
|
import "./chunk-P7IRRCF7.js";
|
|
7
7
|
import {
|
|
8
8
|
Box_default,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
useHttpClient,
|
|
24
24
|
useProjectModel,
|
|
25
25
|
useTranslation
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QOFTYMHB.js";
|
|
27
27
|
import {
|
|
28
28
|
__toESM,
|
|
29
29
|
init_esm_shims
|
|
@@ -279,4 +279,4 @@ var LogsCommand = ({ version }) => {
|
|
|
279
279
|
export {
|
|
280
280
|
LogsCommand
|
|
281
281
|
};
|
|
282
|
-
//# sourceMappingURL=LogsCommand-
|
|
282
|
+
//# sourceMappingURL=LogsCommand-FTZRIGVP.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
PreviewCommand
|
|
5
|
+
} from "./chunk-ZEZOI6GH.js";
|
|
6
|
+
import "./chunk-6SXASZFX.js";
|
|
7
|
+
import "./chunk-LIQJKT6H.js";
|
|
8
|
+
import "./chunk-USBG2AEA.js";
|
|
9
|
+
import "./chunk-D23EPZHF.js";
|
|
10
|
+
import "./chunk-P7IRRCF7.js";
|
|
11
|
+
import "./chunk-HW27624Y.js";
|
|
12
|
+
import "./chunk-UMXUTCVQ.js";
|
|
13
|
+
import "./chunk-P3V3DSIX.js";
|
|
14
|
+
import "./chunk-QOFTYMHB.js";
|
|
15
|
+
import "./chunk-4EFJZ3GQ.js";
|
|
16
|
+
export {
|
|
17
|
+
PreviewCommand
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=PreviewCommand-UK6NX4QM.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
ReleaseCommand,
|
|
5
|
+
ReleaseVersionType
|
|
6
|
+
} from "./chunk-LHQVBGBR.js";
|
|
7
|
+
import "./chunk-ZEZOI6GH.js";
|
|
8
|
+
import "./chunk-6SXASZFX.js";
|
|
9
|
+
import "./chunk-LIQJKT6H.js";
|
|
10
|
+
import "./chunk-YIZMKNT2.js";
|
|
11
|
+
import "./chunk-USBG2AEA.js";
|
|
12
|
+
import "./chunk-D23EPZHF.js";
|
|
13
|
+
import "./chunk-P7IRRCF7.js";
|
|
14
|
+
import "./chunk-HW27624Y.js";
|
|
15
|
+
import "./chunk-UMXUTCVQ.js";
|
|
16
|
+
import "./chunk-P3V3DSIX.js";
|
|
17
|
+
import "./chunk-QOFTYMHB.js";
|
|
18
|
+
import "./chunk-4EFJZ3GQ.js";
|
|
19
|
+
export {
|
|
20
|
+
ReleaseCommand,
|
|
21
|
+
ReleaseVersionType
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=ReleaseCommand-CPCFDIPZ.js.map
|
|
@@ -3,14 +3,14 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
createPackageManager,
|
|
5
5
|
getRepoType
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WRPCUGPF.js";
|
|
7
7
|
import "./chunk-P7IRRCF7.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError,
|
|
10
10
|
CliErrorCode,
|
|
11
11
|
useAsync,
|
|
12
12
|
useProjectModel
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QOFTYMHB.js";
|
|
14
14
|
import {
|
|
15
15
|
init_esm_shims
|
|
16
16
|
} from "./chunk-4EFJZ3GQ.js";
|
|
@@ -40,4 +40,4 @@ var ServeCommandDeprecated = () => {
|
|
|
40
40
|
export {
|
|
41
41
|
ServeCommandDeprecated
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=ServeCommand-
|
|
43
|
+
//# sourceMappingURL=ServeCommand-C46XSVL5.js.map
|
|
@@ -2,10 +2,10 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
writeAppManifestFile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6SXASZFX.js";
|
|
6
6
|
import {
|
|
7
7
|
createLogger
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4ITNW54U.js";
|
|
9
9
|
import {
|
|
10
10
|
createAppManifest,
|
|
11
11
|
getComponentBuildSourceBuilder,
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
getViteConfig7 as getViteConfig5,
|
|
17
17
|
getViteConfig8 as getViteConfig6,
|
|
18
18
|
validateComponents
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-UMXUTCVQ.js";
|
|
20
|
+
import "./chunk-P3V3DSIX.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError,
|
|
23
23
|
CliErrorCode,
|
|
24
24
|
DevCenterComponent,
|
|
25
25
|
getDistFolder,
|
|
26
26
|
require_lib
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QOFTYMHB.js";
|
|
28
28
|
import {
|
|
29
29
|
__toESM,
|
|
30
30
|
init_esm_shims
|
|
@@ -182,4 +182,4 @@ async function build(projectModel) {
|
|
|
182
182
|
export {
|
|
183
183
|
build
|
|
184
184
|
};
|
|
185
|
-
//# sourceMappingURL=build-
|
|
185
|
+
//# sourceMappingURL=build-B4Y4BL4W.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
createRendererToString,
|
|
6
6
|
isCliError,
|
|
7
7
|
require_react
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QOFTYMHB.js";
|
|
9
9
|
import {
|
|
10
10
|
__toESM,
|
|
11
11
|
init_esm_shims
|
|
@@ -61,4 +61,4 @@ function createLogger({
|
|
|
61
61
|
export {
|
|
62
62
|
createLogger
|
|
63
63
|
};
|
|
64
|
-
//# sourceMappingURL=chunk-
|
|
64
|
+
//# sourceMappingURL=chunk-4ITNW54U.js.map
|
|
@@ -2,11 +2,11 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readAppManifest
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UMXUTCVQ.js";
|
|
6
6
|
import {
|
|
7
7
|
getAppManifestPath,
|
|
8
8
|
writeJson
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QOFTYMHB.js";
|
|
10
10
|
import {
|
|
11
11
|
init_esm_shims
|
|
12
12
|
} from "./chunk-4EFJZ3GQ.js";
|
|
@@ -29,4 +29,4 @@ export {
|
|
|
29
29
|
writeAppManifestFile,
|
|
30
30
|
readAppManifestFile
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-6SXASZFX.js.map
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
useHttpClient,
|
|
19
19
|
usePanoramaMethodLogger,
|
|
20
20
|
wixCliAppsFlowTunnelCreationStatusSrc11Evid5233
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QOFTYMHB.js";
|
|
22
22
|
import {
|
|
23
23
|
__commonJS,
|
|
24
24
|
__dirname,
|
|
@@ -906,4 +906,4 @@ init_esm_shims();
|
|
|
906
906
|
export {
|
|
907
907
|
useTunnel
|
|
908
908
|
};
|
|
909
|
-
//# sourceMappingURL=chunk-
|
|
909
|
+
//# sourceMappingURL=chunk-D23EPZHF.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
extractHttpError,
|
|
5
5
|
require_react,
|
|
6
6
|
require_verror
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QOFTYMHB.js";
|
|
8
8
|
import {
|
|
9
9
|
__toESM,
|
|
10
10
|
init_esm_shims
|
|
@@ -13,22 +13,10 @@ import {
|
|
|
13
13
|
// ../cli-debug-log/src/index.tsx
|
|
14
14
|
init_esm_shims();
|
|
15
15
|
var import_react = __toESM(require_react(), 1);
|
|
16
|
-
var
|
|
16
|
+
var import_verror = __toESM(require_verror(), 1);
|
|
17
17
|
import { dirname } from "node:path";
|
|
18
18
|
import { appendFileSync, mkdirSync } from "node:fs";
|
|
19
19
|
|
|
20
|
-
// ../cli-http-client/src/extract-error.ts
|
|
21
|
-
init_esm_shims();
|
|
22
|
-
var import_http_client = __toESM(require_index_node(), 1);
|
|
23
|
-
var import_verror = __toESM(require_verror(), 1);
|
|
24
|
-
function extractHttpError(error) {
|
|
25
|
-
if (import_http_client.HttpClient.isHttpError(error)) {
|
|
26
|
-
return error;
|
|
27
|
-
}
|
|
28
|
-
const nestedError = error instanceof Error ? import_verror.default.cause(error) : null;
|
|
29
|
-
return nestedError ? extractHttpError(nestedError) : null;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
20
|
// ../cli-http-client/src/error-info.ts
|
|
33
21
|
init_esm_shims();
|
|
34
22
|
function getHttpErrorInfo(httpError) {
|
|
@@ -58,11 +46,11 @@ function writeCrashReport(reportPath, error, occurredAt) {
|
|
|
58
46
|
if (error instanceof Error) {
|
|
59
47
|
content += `Error Trace
|
|
60
48
|
`;
|
|
61
|
-
content += `${
|
|
49
|
+
content += `${import_verror.default.fullStack(error)}
|
|
62
50
|
`;
|
|
63
51
|
content += `Error Info
|
|
64
52
|
`;
|
|
65
|
-
content += `${JSON.stringify(
|
|
53
|
+
content += `${JSON.stringify(import_verror.default.info(error), null, 2)}
|
|
66
54
|
`;
|
|
67
55
|
const httpError = extractHttpError(error);
|
|
68
56
|
if (httpError) {
|
|
@@ -99,4 +87,4 @@ export {
|
|
|
99
87
|
DebugLogProvider,
|
|
100
88
|
useDebugLog
|
|
101
89
|
};
|
|
102
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-HW27624Y.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../cli-debug-log/src/index.tsx","../../cli-http-client/src/error-info.ts"],"sourcesContent":["import { dirname } from 'node:path';\nimport { appendFileSync, mkdirSync } from 'node:fs';\nimport React, { createContext, useContext, useCallback } from 'react';\nimport type { FC, ReactNode } from 'react';\nimport VError from 'verror';\nimport { extractHttpError, getHttpErrorInfo } from '@wix/cli-http-client';\n\nexport function writeCrashReport(\n reportPath: string,\n error: unknown,\n occurredAt: Date\n) {\n try {\n let content = `----- CLI crash report at ${occurredAt.toISOString()}\\n`;\n if (error instanceof Error) {\n content += `Error Trace\\n`;\n content += `${VError.fullStack(error)}\\n`;\n content += `Error Info\\n`;\n content += `${JSON.stringify(VError.info(error), null, 2)}\\n`;\n\n const httpError = extractHttpError(error);\n if (httpError) {\n content += `Request Info\\n`;\n content += `${JSON.stringify(getHttpErrorInfo(httpError), null, 2)}\\n`;\n }\n }\n mkdirSync(dirname(reportPath), { recursive: true });\n appendFileSync(reportPath, content);\n } catch {\n // well there is so much we can do...\n }\n}\n\nexport type WriteDebugLogFn = (error: unknown) => void;\n\nconst DebugLogContext = createContext<WriteDebugLogFn | null>(null);\n\ninterface Props {\n filePath: string;\n children: ReactNode;\n}\n\nexport const DebugLogProvider: FC<Props> = ({ filePath, children }) => {\n const writeToDebugLog = useCallback<WriteDebugLogFn>(\n (error) => writeCrashReport(filePath, error, new Date()),\n [filePath]\n );\n\n return (\n <DebugLogContext.Provider value={writeToDebugLog}>\n {children}\n </DebugLogContext.Provider>\n );\n};\n\nexport const useDebugLog = (): WriteDebugLogFn => {\n const context = useContext(DebugLogContext);\n if (context == null) {\n throw new Error(\n 'useDebugLog() cannot be used without an <DebugLogProvider>'\n );\n }\n return context;\n};\n","import type { IHttpError } from '@wix/http-client';\n\nexport function getHttpErrorInfo(httpError: IHttpError) {\n return {\n request: {\n baseURL: httpError.config.baseURL,\n url: httpError.config.url,\n method: httpError.config.method,\n headers: httpError.config.headers,\n data: httpError.config.data,\n },\n response: {\n code: httpError.code,\n message: httpError.message,\n status: httpError.response?.status,\n headers: httpError.response?.headers,\n data: httpError.response?.data,\n },\n };\n}\n"],"mappings":";;;;;;;;;;;;;AAAA;AAEA,mBAA8D;AAE9D,oBAAmB;AAJnB,SAAS,eAAe;AACxB,SAAS,gBAAgB,iBAAiB;;;ACD1C;AAEO,SAAS,iBAAiB,WAAuB;AACtD,SAAO;AAAA,IACL,SAAS;AAAA,MACP,SAAS,UAAU,OAAO;AAAA,MAC1B,KAAK,UAAU,OAAO;AAAA,MACtB,QAAQ,UAAU,OAAO;AAAA,MACzB,SAAS,UAAU,OAAO;AAAA,MAC1B,MAAM,UAAU,OAAO;AAAA,IACzB;AAAA,IACA,UAAU;AAAA,MACR,MAAM,UAAU;AAAA,MAChB,SAAS,UAAU;AAAA,MACnB,QAAQ,UAAU,UAAU;AAAA,MAC5B,SAAS,UAAU,UAAU;AAAA,MAC7B,MAAM,UAAU,UAAU;AAAA,IAC5B;AAAA,EACF;AACF;;;ADZO,SAAS,iBACd,YACA,OACA,YACA;AACA,MAAI;AACF,QAAI,UAAU,6BAA6B,WAAW,YAAY,CAAC;AAAA;AACnE,QAAI,iBAAiB,OAAO;AAC1B,iBAAW;AAAA;AACX,iBAAW,GAAG,cAAAA,QAAO,UAAU,KAAK,CAAC;AAAA;AACrC,iBAAW;AAAA;AACX,iBAAW,GAAG,KAAK,UAAU,cAAAA,QAAO,KAAK,KAAK,GAAG,MAAM,CAAC,CAAC;AAAA;AAEzD,YAAM,YAAY,iBAAiB,KAAK;AACxC,UAAI,WAAW;AACb,mBAAW;AAAA;AACX,mBAAW,GAAG,KAAK,UAAU,iBAAiB,SAAS,GAAG,MAAM,CAAC,CAAC;AAAA;AAAA,MACpE;AAAA,IACF;AACA,cAAU,QAAQ,UAAU,GAAG,EAAE,WAAW,KAAK,CAAC;AAClD,mBAAe,YAAY,OAAO;AAAA,EACpC,QAAQ;AAAA,EAER;AACF;AAIA,IAAM,sBAAkB,4BAAsC,IAAI;AAO3D,IAAM,mBAA8B,CAAC,EAAE,UAAU,SAAS,MAAM;AACrE,QAAM,sBAAkB;AAAA,IACtB,CAAC,UAAU,iBAAiB,UAAU,OAAO,oBAAI,KAAK,CAAC;AAAA,IACvD,CAAC,QAAQ;AAAA,EACX;AAEA,SACE,6BAAAC,QAAA,cAAC,gBAAgB,UAAhB,EAAyB,OAAO,mBAC9B,QACH;AAEJ;AAEO,IAAM,cAAc,MAAuB;AAChD,QAAM,cAAU,yBAAW,eAAe;AAC1C,MAAI,WAAW,MAAM;AACnB,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,SAAO;AACT;","names":["VError","React"]}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
isCliSystemError,
|
|
6
6
|
wixCliCliCommand,
|
|
7
7
|
wixCliCliCommandStatus
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QOFTYMHB.js";
|
|
9
9
|
import {
|
|
10
10
|
__commonJS,
|
|
11
11
|
__toESM,
|
|
@@ -594,4 +594,4 @@ export {
|
|
|
594
594
|
addUserFields,
|
|
595
595
|
reportCommandStartEvent
|
|
596
596
|
};
|
|
597
|
-
//# sourceMappingURL=chunk-
|
|
597
|
+
//# sourceMappingURL=chunk-I2CLVTPD.js.map
|
|
@@ -3,16 +3,16 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PreviewCommand,
|
|
5
5
|
assertBuildOutputExists
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZEZOI6GH.js";
|
|
7
7
|
import {
|
|
8
8
|
useARMClient
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LIQJKT6H.js";
|
|
10
10
|
import {
|
|
11
11
|
useWixCliAppBi
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YIZMKNT2.js";
|
|
13
13
|
import {
|
|
14
14
|
useBackendComponents
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-USBG2AEA.js";
|
|
16
16
|
import {
|
|
17
17
|
Alert,
|
|
18
18
|
Box_default,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
useAsyncCallback,
|
|
37
37
|
useProjectModel,
|
|
38
38
|
useTranslation
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-QOFTYMHB.js";
|
|
40
40
|
import {
|
|
41
41
|
__toESM,
|
|
42
42
|
init_esm_shims
|
|
@@ -399,4 +399,4 @@ export {
|
|
|
399
399
|
ReleaseVersionType,
|
|
400
400
|
ReleaseCommand
|
|
401
401
|
};
|
|
402
|
-
//# sourceMappingURL=chunk-
|
|
402
|
+
//# sourceMappingURL=chunk-LHQVBGBR.js.map
|
|
@@ -3,13 +3,13 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
componentGenerator,
|
|
5
5
|
useBackendComponents
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-USBG2AEA.js";
|
|
7
7
|
import {
|
|
8
8
|
useTunnel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D23EPZHF.js";
|
|
10
10
|
import {
|
|
11
11
|
useDebugLog
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HW27624Y.js";
|
|
13
13
|
import {
|
|
14
14
|
createAppManifest,
|
|
15
15
|
getComponentDevSourceBuilder,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
getViteConfig3,
|
|
19
19
|
getViteServerUrl,
|
|
20
20
|
updateAppManifestComponents
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UMXUTCVQ.js";
|
|
22
22
|
import {
|
|
23
23
|
useExtensionDataClient
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-P3V3DSIX.js";
|
|
25
25
|
import {
|
|
26
26
|
APP_CONFIG_PATH,
|
|
27
27
|
Alert,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
use_input_default,
|
|
86
86
|
wixCliAction,
|
|
87
87
|
wixCliAppFlowStepsAnswers
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-QOFTYMHB.js";
|
|
89
89
|
import {
|
|
90
90
|
__commonJS,
|
|
91
91
|
__dirname,
|
|
@@ -25208,131 +25208,6 @@ function promoteAppVersionFromDraftToProduction(payload) {
|
|
|
25208
25208
|
return __promoteAppVersionFromDraftToProduction;
|
|
25209
25209
|
}
|
|
25210
25210
|
|
|
25211
|
-
// ../../node_modules/@wix/ambassador-ctp-gradual-rollout-v1-baas-release/es/build/http.impl.js
|
|
25212
|
-
init_esm_shims();
|
|
25213
|
-
var _releaseRequest = {};
|
|
25214
|
-
var _releaseResponse = {};
|
|
25215
|
-
function resolveComWixCtpAppsReleaseManagerBassServiceUrl(opts) {
|
|
25216
|
-
var domainToMappings = {
|
|
25217
|
-
"api._api_base_domain_": [
|
|
25218
|
-
{
|
|
25219
|
-
srcPath: "/apps-release-manager-service-web",
|
|
25220
|
-
destPath: ""
|
|
25221
|
-
}
|
|
25222
|
-
],
|
|
25223
|
-
"bo._base_domain_": [
|
|
25224
|
-
{
|
|
25225
|
-
srcPath: "/apps-release-manager-service-web",
|
|
25226
|
-
destPath: ""
|
|
25227
|
-
}
|
|
25228
|
-
],
|
|
25229
|
-
"wixbo.ai": [
|
|
25230
|
-
{
|
|
25231
|
-
srcPath: "/apps-release-manager-service-web",
|
|
25232
|
-
destPath: ""
|
|
25233
|
-
}
|
|
25234
|
-
],
|
|
25235
|
-
"wix-bo.com": [
|
|
25236
|
-
{
|
|
25237
|
-
srcPath: "/apps-release-manager-service-web",
|
|
25238
|
-
destPath: ""
|
|
25239
|
-
}
|
|
25240
|
-
],
|
|
25241
|
-
"www._base_domain_": [
|
|
25242
|
-
{
|
|
25243
|
-
srcPath: "/apps-release-manager-service-web/artifacts-release-manager/app-releases",
|
|
25244
|
-
destPath: "/artifacts-release-manager/app-releases"
|
|
25245
|
-
},
|
|
25246
|
-
{
|
|
25247
|
-
srcPath: "/_api/apps-release-manager-service-web/artifacts-release-manager/app-releases",
|
|
25248
|
-
destPath: "/artifacts-release-manager/app-releases"
|
|
25249
|
-
},
|
|
25250
|
-
{
|
|
25251
|
-
srcPath: "/apps-release-manager-service-web/apps/create",
|
|
25252
|
-
destPath: "/apps/create"
|
|
25253
|
-
},
|
|
25254
|
-
{
|
|
25255
|
-
srcPath: "/apps-release-manager-service-web/apps/promote",
|
|
25256
|
-
destPath: "/apps/promote"
|
|
25257
|
-
},
|
|
25258
|
-
{
|
|
25259
|
-
srcPath: "/apps-release-manager-service-web/apps/tags",
|
|
25260
|
-
destPath: "/apps/tags"
|
|
25261
|
-
},
|
|
25262
|
-
{
|
|
25263
|
-
srcPath: "/apps-release-manager-service-web/apps/create-components",
|
|
25264
|
-
destPath: "/apps/create-components"
|
|
25265
|
-
},
|
|
25266
|
-
{
|
|
25267
|
-
srcPath: "/apps-release-manager-service-web/apps/commit",
|
|
25268
|
-
destPath: "/apps/commit"
|
|
25269
|
-
},
|
|
25270
|
-
{
|
|
25271
|
-
srcPath: "/apps-release-manager-service-web/apps/promote-app-version",
|
|
25272
|
-
destPath: "/apps/promote-app-version"
|
|
25273
|
-
}
|
|
25274
|
-
],
|
|
25275
|
-
"manage._base_domain_": [
|
|
25276
|
-
{
|
|
25277
|
-
srcPath: "/apps-release-manager-service-web/apps/promote",
|
|
25278
|
-
destPath: "/apps/promote"
|
|
25279
|
-
},
|
|
25280
|
-
{
|
|
25281
|
-
srcPath: "/apps-release-manager-service-web/apps/create",
|
|
25282
|
-
destPath: "/apps/create"
|
|
25283
|
-
},
|
|
25284
|
-
{
|
|
25285
|
-
srcPath: "/apps-release-manager-service-web/apps/tags",
|
|
25286
|
-
destPath: "/apps/tags"
|
|
25287
|
-
},
|
|
25288
|
-
{
|
|
25289
|
-
srcPath: "/apps-release-manager-service-web/apps/create-components",
|
|
25290
|
-
destPath: "/apps/create-components"
|
|
25291
|
-
},
|
|
25292
|
-
{
|
|
25293
|
-
srcPath: "/apps-release-manager-service-web/apps/commit",
|
|
25294
|
-
destPath: "/apps/commit"
|
|
25295
|
-
},
|
|
25296
|
-
{
|
|
25297
|
-
srcPath: "/apps-release-manager-service-web/apps/promote-app-version",
|
|
25298
|
-
destPath: "/apps/promote-app-version"
|
|
25299
|
-
},
|
|
25300
|
-
{
|
|
25301
|
-
srcPath: "/apps-release-manager-service-web/apps/release",
|
|
25302
|
-
destPath: "/apps/release"
|
|
25303
|
-
}
|
|
25304
|
-
]
|
|
25305
|
-
};
|
|
25306
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
25307
|
-
}
|
|
25308
|
-
function release(payload) {
|
|
25309
|
-
var _a = serializer(_releaseRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
|
|
25310
|
-
var fromRes = serializer(_releaseResponse, {}).fromJSON;
|
|
25311
|
-
function __release(_a2) {
|
|
25312
|
-
var host = _a2.host;
|
|
25313
|
-
var serializedData = toReq(payload);
|
|
25314
|
-
var metadata = {
|
|
25315
|
-
entityFqdn: "wix.ctp.gradual_rollout.v1.baas_release",
|
|
25316
|
-
method: "POST",
|
|
25317
|
-
methodFqn: "com.wix.ctp.AppsReleaseManagerBassService.Release",
|
|
25318
|
-
migrationOptions: {
|
|
25319
|
-
optInTransformResponse: true
|
|
25320
|
-
},
|
|
25321
|
-
url: resolveComWixCtpAppsReleaseManagerBassServiceUrl({
|
|
25322
|
-
protoPath: "/apps/release/{appId}/{componentOverrideId}",
|
|
25323
|
-
data: serializedData,
|
|
25324
|
-
host
|
|
25325
|
-
}),
|
|
25326
|
-
data: serializedData,
|
|
25327
|
-
transformResponse: fromRes
|
|
25328
|
-
};
|
|
25329
|
-
return metadata;
|
|
25330
|
-
}
|
|
25331
|
-
__release.fromReq = fromReq;
|
|
25332
|
-
__release.__isAmbassador = true;
|
|
25333
|
-
return __release;
|
|
25334
|
-
}
|
|
25335
|
-
|
|
25336
25211
|
// ../arm-client/src/client.ts
|
|
25337
25212
|
var import_variant9 = __toESM(require_lib(), 1);
|
|
25338
25213
|
|
|
@@ -25367,9 +25242,6 @@ var commitComponentOverrideSchema = external_exports.object({
|
|
|
25367
25242
|
var createAppReleaseSchema = external_exports.object({
|
|
25368
25243
|
tag: external_exports.string()
|
|
25369
25244
|
});
|
|
25370
|
-
var releaseArm2Schema = external_exports.object({
|
|
25371
|
-
releaseBaseUrl: external_exports.string()
|
|
25372
|
-
});
|
|
25373
25245
|
|
|
25374
25246
|
// ../arm-client/src/client.ts
|
|
25375
25247
|
var { AppPermissionDenied } = CliErrorCode;
|
|
@@ -25430,9 +25302,7 @@ var ARMClient = class {
|
|
|
25430
25302
|
if (e.response?.status === 400 && isHttpValidationError(e)) {
|
|
25431
25303
|
throw new CliError({
|
|
25432
25304
|
cause: e,
|
|
25433
|
-
code: CliErrorCode.AppReleaseConfigViolations(
|
|
25434
|
-
violations: e.response.data.details.validationError.fieldViolations
|
|
25435
|
-
})
|
|
25305
|
+
code: CliErrorCode.AppReleaseConfigViolations()
|
|
25436
25306
|
});
|
|
25437
25307
|
}
|
|
25438
25308
|
}
|
|
@@ -25448,9 +25318,6 @@ var ARMClient = class {
|
|
|
25448
25318
|
});
|
|
25449
25319
|
}
|
|
25450
25320
|
};
|
|
25451
|
-
createLooseAppRelease = async (manifest, projectId) => {
|
|
25452
|
-
return this.createAppRelease(manifest, projectId);
|
|
25453
|
-
};
|
|
25454
25321
|
updateAppRelease = async (manifest, tag) => {
|
|
25455
25322
|
try {
|
|
25456
25323
|
await pRetry(
|
|
@@ -25478,9 +25345,7 @@ var ARMClient = class {
|
|
|
25478
25345
|
if (e.response?.status === 400 && isHttpValidationError(e)) {
|
|
25479
25346
|
throw new CliError({
|
|
25480
25347
|
cause: e,
|
|
25481
|
-
code: CliErrorCode.AppReleaseConfigViolations(
|
|
25482
|
-
violations: e.response.data.details.validationError.fieldViolations
|
|
25483
|
-
})
|
|
25348
|
+
code: CliErrorCode.AppReleaseConfigViolations()
|
|
25484
25349
|
});
|
|
25485
25350
|
}
|
|
25486
25351
|
}
|
|
@@ -25496,9 +25361,6 @@ var ARMClient = class {
|
|
|
25496
25361
|
});
|
|
25497
25362
|
}
|
|
25498
25363
|
};
|
|
25499
|
-
updateLooseAppRelease = async (manifest, tag) => {
|
|
25500
|
-
return this.updateAppRelease(manifest, tag);
|
|
25501
|
-
};
|
|
25502
25364
|
createDraftVersion = async (appId, tag) => {
|
|
25503
25365
|
try {
|
|
25504
25366
|
const { data } = await this.httpClient.request(
|
|
@@ -25534,25 +25396,6 @@ var ARMClient = class {
|
|
|
25534
25396
|
});
|
|
25535
25397
|
}
|
|
25536
25398
|
};
|
|
25537
|
-
release = async (appId, componentOverrideId, options) => {
|
|
25538
|
-
try {
|
|
25539
|
-
const { comment, createMinorVersion } = options;
|
|
25540
|
-
const { data } = await this.httpClient.request(
|
|
25541
|
-
release({
|
|
25542
|
-
appId,
|
|
25543
|
-
componentOverrideId,
|
|
25544
|
-
createMinorVersion,
|
|
25545
|
-
notes: comment
|
|
25546
|
-
})
|
|
25547
|
-
);
|
|
25548
|
-
return releaseArm2Schema.parse(data).releaseBaseUrl;
|
|
25549
|
-
} catch (e) {
|
|
25550
|
-
throw new CliError({
|
|
25551
|
-
cause: e,
|
|
25552
|
-
code: CliErrorCode.FailedToReleaseHeadlessProject()
|
|
25553
|
-
});
|
|
25554
|
-
}
|
|
25555
|
-
};
|
|
25556
25399
|
};
|
|
25557
25400
|
|
|
25558
25401
|
// ../arm-client/src/useARMClient.ts
|
|
@@ -30980,4 +30823,4 @@ xmlhttprequest-ssl/lib/XMLHttpRequest.js:
|
|
|
30980
30823
|
* @license MIT
|
|
30981
30824
|
*)
|
|
30982
30825
|
*/
|
|
30983
|
-
//# sourceMappingURL=chunk-
|
|
30826
|
+
//# sourceMappingURL=chunk-LIQJKT6H.js.map
|