@wix/cli-app 1.1.162 → 1.1.163
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-TLJPLK3H.js → AddPermissionCommand-D6NNG7ZP.js} +2 -2
- package/build/{DevCommand-GIMQGA6K.js → DevCommand-LYNDRRHM.js} +10 -10
- package/build/{GenerateCommand-5PTZFFKX.js → GenerateCommand-LWBKUVYU.js} +7 -7
- package/build/{LogsCommand-4U6QFCFY.js → LogsCommand-P67SWTT2.js} +3 -3
- package/build/PreviewCommand-A5R5ASTK.js +19 -0
- package/build/ReleaseCommand-7FT76O26.js +23 -0
- package/build/{ServeCommand-CAJP6JOP.js → ServeCommand-H7C7D43N.js} +3 -3
- package/build/{build-TT3M4DVL.js → build-JTWRANOV.js} +6 -6
- package/build/{chunk-H5SCX7P5.js → chunk-2HWQ4YII.js} +2 -2
- package/build/{chunk-ZHJXW563.js → chunk-4NINGJ3F.js} +4 -4
- package/build/{chunk-5NFXDPTU.js → chunk-75Z5LBFL.js} +3 -3
- package/build/{chunk-6GK3N4QM.js → chunk-BGFMNCGU.js} +2 -2
- package/build/{chunk-6GK3N4QM.js.map → chunk-BGFMNCGU.js.map} +1 -1
- package/build/{chunk-RIMSNBZ5.js → chunk-BZDWFP4Z.js} +6 -6
- package/build/{chunk-56XZK4ZF.js → chunk-EDTLG4TU.js} +2 -2
- package/build/{chunk-JXAD6ETD.js → chunk-GYWEEFGW.js} +2 -2
- package/build/{chunk-YPQK7U4B.js → chunk-HQA5OJ4L.js} +2 -2
- package/build/{chunk-2K65ZISU.js → chunk-J4W7C76I.js} +2 -2
- package/build/{chunk-2LWVAY7N.js → chunk-JZDRXFYW.js} +3 -3
- package/build/{chunk-U6MJF3ZL.js → chunk-MSZYAHYH.js} +2 -2
- package/build/{chunk-3O67EJPY.js → chunk-MUIGB5S7.js} +2 -2
- package/build/{chunk-3O67EJPY.js.map → chunk-MUIGB5S7.js.map} +1 -1
- package/build/{chunk-PD6ZFKVS.js → chunk-NVOGTS4Y.js} +2 -2
- package/build/{chunk-QP6NEAC3.js → chunk-PCUCEY6F.js} +4 -4
- package/build/{chunk-SNE37RA3.js → chunk-QVR7YIDN.js} +6 -6
- package/build/{chunk-CVNXEPF5.js → chunk-VJYMWYUC.js} +2 -2
- package/build/{chunk-EVPB3FJU.js → chunk-XSE74543.js} +7 -7
- package/build/index.js +23 -23
- package/build/{preview-TUHKWUQK.js → preview-GU2K6IKE.js} +12 -12
- package/build/{release-7ZPUZZTH.js → release-PMP6MIW5.js} +14 -14
- package/build/{render-command-V2QF534E.js → render-command-B3V2OGTE.js} +5 -5
- package/package.json +2 -2
- package/build/PreviewCommand-D4IMNYNW.js +0 -19
- package/build/ReleaseCommand-PCBRPIHW.js +0 -23
- /package/build/{AddPermissionCommand-TLJPLK3H.js.map → AddPermissionCommand-D6NNG7ZP.js.map} +0 -0
- /package/build/{DevCommand-GIMQGA6K.js.map → DevCommand-LYNDRRHM.js.map} +0 -0
- /package/build/{GenerateCommand-5PTZFFKX.js.map → GenerateCommand-LWBKUVYU.js.map} +0 -0
- /package/build/{LogsCommand-4U6QFCFY.js.map → LogsCommand-P67SWTT2.js.map} +0 -0
- /package/build/{PreviewCommand-D4IMNYNW.js.map → PreviewCommand-A5R5ASTK.js.map} +0 -0
- /package/build/{ReleaseCommand-PCBRPIHW.js.map → ReleaseCommand-7FT76O26.js.map} +0 -0
- /package/build/{ServeCommand-CAJP6JOP.js.map → ServeCommand-H7C7D43N.js.map} +0 -0
- /package/build/{build-TT3M4DVL.js.map → build-JTWRANOV.js.map} +0 -0
- /package/build/{chunk-H5SCX7P5.js.map → chunk-2HWQ4YII.js.map} +0 -0
- /package/build/{chunk-ZHJXW563.js.map → chunk-4NINGJ3F.js.map} +0 -0
- /package/build/{chunk-5NFXDPTU.js.map → chunk-75Z5LBFL.js.map} +0 -0
- /package/build/{chunk-RIMSNBZ5.js.map → chunk-BZDWFP4Z.js.map} +0 -0
- /package/build/{chunk-56XZK4ZF.js.map → chunk-EDTLG4TU.js.map} +0 -0
- /package/build/{chunk-JXAD6ETD.js.map → chunk-GYWEEFGW.js.map} +0 -0
- /package/build/{chunk-YPQK7U4B.js.map → chunk-HQA5OJ4L.js.map} +0 -0
- /package/build/{chunk-2K65ZISU.js.map → chunk-J4W7C76I.js.map} +0 -0
- /package/build/{chunk-2LWVAY7N.js.map → chunk-JZDRXFYW.js.map} +0 -0
- /package/build/{chunk-U6MJF3ZL.js.map → chunk-MSZYAHYH.js.map} +0 -0
- /package/build/{chunk-PD6ZFKVS.js.map → chunk-NVOGTS4Y.js.map} +0 -0
- /package/build/{chunk-QP6NEAC3.js.map → chunk-PCUCEY6F.js.map} +0 -0
- /package/build/{chunk-SNE37RA3.js.map → chunk-QVR7YIDN.js.map} +0 -0
- /package/build/{chunk-CVNXEPF5.js.map → chunk-VJYMWYUC.js.map} +0 -0
- /package/build/{chunk-EVPB3FJU.js.map → chunk-XSE74543.js.map} +0 -0
- /package/build/{preview-TUHKWUQK.js.map → preview-GU2K6IKE.js.map} +0 -0
- /package/build/{release-7ZPUZZTH.js.map → release-PMP6MIW5.js.map} +0 -0
- /package/build/{render-command-V2QF534E.js.map → render-command-B3V2OGTE.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
useAsync,
|
|
9
9
|
useDevCenterClient,
|
|
10
10
|
useProjectModel
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MUIGB5S7.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-D6NNG7ZP.js.map
|
|
@@ -18,23 +18,23 @@ import {
|
|
|
18
18
|
useResolveDashboardExtensionDevUrl,
|
|
19
19
|
useResolvePlatformDevUrl,
|
|
20
20
|
useSite
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XSE74543.js";
|
|
22
22
|
import {
|
|
23
23
|
useWixCliAppBi
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NVOGTS4Y.js";
|
|
25
25
|
import {
|
|
26
26
|
useBackendComponents
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-2HWQ4YII.js";
|
|
28
|
+
import "./chunk-HQA5OJ4L.js";
|
|
29
29
|
import "./chunk-P7IRRCF7.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-BGFMNCGU.js";
|
|
31
31
|
import {
|
|
32
32
|
createLogger
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MSZYAHYH.js";
|
|
34
34
|
import {
|
|
35
35
|
createCustomElementConfig
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-JZDRXFYW.js";
|
|
37
|
+
import "./chunk-J4W7C76I.js";
|
|
38
38
|
import {
|
|
39
39
|
Alert,
|
|
40
40
|
Box_default,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
use_input_default,
|
|
77
77
|
userConfigSchema,
|
|
78
78
|
writeJson
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-MUIGB5S7.js";
|
|
80
80
|
import {
|
|
81
81
|
__toESM,
|
|
82
82
|
init_esm_shims
|
|
@@ -1349,4 +1349,4 @@ var DevCommand = ({ https, origin, port }) => {
|
|
|
1349
1349
|
export {
|
|
1350
1350
|
DevCommand
|
|
1351
1351
|
};
|
|
1352
|
-
//# sourceMappingURL=DevCommand-
|
|
1352
|
+
//# sourceMappingURL=DevCommand-LYNDRRHM.js.map
|
|
@@ -3,16 +3,16 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
createPackageManager,
|
|
5
5
|
getRepoType
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EDTLG4TU.js";
|
|
7
7
|
import {
|
|
8
8
|
createI18nT,
|
|
9
9
|
getGenerateFlowByDocsExtensionType,
|
|
10
10
|
useGenerateFlows
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GYWEEFGW.js";
|
|
12
12
|
import "./chunk-VJQHGLIW.js";
|
|
13
13
|
import {
|
|
14
14
|
useWixCliAppBi
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NVOGTS4Y.js";
|
|
16
16
|
import {
|
|
17
17
|
componentGenerator,
|
|
18
18
|
dependenciesUpdater,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
require_kebabCase,
|
|
21
21
|
require_toString,
|
|
22
22
|
useBackendComponents
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2HWQ4YII.js";
|
|
24
24
|
import "./chunk-P7IRRCF7.js";
|
|
25
25
|
import {
|
|
26
26
|
getEcomRequiredApps,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
require_setToArray,
|
|
38
38
|
require_toSource,
|
|
39
39
|
useExtensionDataClient
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-J4W7C76I.js";
|
|
41
41
|
import {
|
|
42
42
|
AsyncCallbackStatus,
|
|
43
43
|
BACKEND_DIR,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
use_input_default,
|
|
115
115
|
uuidValidation,
|
|
116
116
|
writeJson
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-MUIGB5S7.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-LWBKUVYU.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-HQA5OJ4L.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-MUIGB5S7.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-P67SWTT2.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-BZDWFP4Z.js";
|
|
6
|
+
import "./chunk-75Z5LBFL.js";
|
|
7
|
+
import "./chunk-XSE74543.js";
|
|
8
|
+
import "./chunk-2HWQ4YII.js";
|
|
9
|
+
import "./chunk-HQA5OJ4L.js";
|
|
10
|
+
import "./chunk-P7IRRCF7.js";
|
|
11
|
+
import "./chunk-BGFMNCGU.js";
|
|
12
|
+
import "./chunk-JZDRXFYW.js";
|
|
13
|
+
import "./chunk-J4W7C76I.js";
|
|
14
|
+
import "./chunk-MUIGB5S7.js";
|
|
15
|
+
import "./chunk-4EFJZ3GQ.js";
|
|
16
|
+
export {
|
|
17
|
+
PreviewCommand
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=PreviewCommand-A5R5ASTK.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-QVR7YIDN.js";
|
|
7
|
+
import "./chunk-BZDWFP4Z.js";
|
|
8
|
+
import "./chunk-75Z5LBFL.js";
|
|
9
|
+
import "./chunk-XSE74543.js";
|
|
10
|
+
import "./chunk-NVOGTS4Y.js";
|
|
11
|
+
import "./chunk-2HWQ4YII.js";
|
|
12
|
+
import "./chunk-HQA5OJ4L.js";
|
|
13
|
+
import "./chunk-P7IRRCF7.js";
|
|
14
|
+
import "./chunk-BGFMNCGU.js";
|
|
15
|
+
import "./chunk-JZDRXFYW.js";
|
|
16
|
+
import "./chunk-J4W7C76I.js";
|
|
17
|
+
import "./chunk-MUIGB5S7.js";
|
|
18
|
+
import "./chunk-4EFJZ3GQ.js";
|
|
19
|
+
export {
|
|
20
|
+
ReleaseCommand,
|
|
21
|
+
ReleaseVersionType
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=ReleaseCommand-7FT76O26.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-EDTLG4TU.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-MUIGB5S7.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-H7C7D43N.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-75Z5LBFL.js";
|
|
6
6
|
import {
|
|
7
7
|
createLogger
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MSZYAHYH.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-JZDRXFYW.js";
|
|
20
|
+
import "./chunk-J4W7C76I.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-MUIGB5S7.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-JTWRANOV.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
require_react,
|
|
18
18
|
useProjectModel,
|
|
19
19
|
writePackageJson
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MUIGB5S7.js";
|
|
21
21
|
import {
|
|
22
22
|
__commonJS,
|
|
23
23
|
__require,
|
|
@@ -4373,4 +4373,4 @@ ejs/lib/ejs.js:
|
|
|
4373
4373
|
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
4374
4374
|
*)
|
|
4375
4375
|
*/
|
|
4376
|
-
//# sourceMappingURL=chunk-
|
|
4376
|
+
//# sourceMappingURL=chunk-2HWQ4YII.js.map
|
|
@@ -3,13 +3,13 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
addUserFields,
|
|
5
5
|
reportCommandStartEvent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VJYMWYUC.js";
|
|
7
7
|
import {
|
|
8
8
|
messages_default
|
|
9
9
|
} from "./chunk-VJQHGLIW.js";
|
|
10
10
|
import {
|
|
11
11
|
DebugLogProvider
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BGFMNCGU.js";
|
|
13
13
|
import {
|
|
14
14
|
AccountAuthProvider,
|
|
15
15
|
BiProvider,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
package_default,
|
|
27
27
|
render,
|
|
28
28
|
require_react
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MUIGB5S7.js";
|
|
30
30
|
import {
|
|
31
31
|
__toESM,
|
|
32
32
|
init_esm_shims
|
|
@@ -125,4 +125,4 @@ export {
|
|
|
125
125
|
renderCommand,
|
|
126
126
|
runCommand
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=chunk-
|
|
128
|
+
//# sourceMappingURL=chunk-4NINGJ3F.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-JZDRXFYW.js";
|
|
6
6
|
import {
|
|
7
7
|
getAppManifestPath,
|
|
8
8
|
writeJson
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MUIGB5S7.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-75Z5LBFL.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
require_index_node,
|
|
5
5
|
require_react,
|
|
6
6
|
require_verror
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MUIGB5S7.js";
|
|
8
8
|
import {
|
|
9
9
|
__toESM,
|
|
10
10
|
init_esm_shims
|
|
@@ -99,4 +99,4 @@ export {
|
|
|
99
99
|
DebugLogProvider,
|
|
100
100
|
useDebugLog
|
|
101
101
|
};
|
|
102
|
-
//# sourceMappingURL=chunk-
|
|
102
|
+
//# sourceMappingURL=chunk-BGFMNCGU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../cli-debug-log/src/index.tsx","../../cli-http-client/src/extract-error.ts","../../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';\nimport { HttpClient } from '@wix/http-client';\nimport VError from 'verror';\n\nexport function extractHttpError(error: unknown): IHttpError | null {\n if (HttpClient.isHttpError(error)) {\n return error;\n }\n\n const nestedError = error instanceof Error ? VError.cause(error) : null;\n return nestedError ? extractHttpError(nestedError) : null;\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 }
|
|
1
|
+
{"version":3,"sources":["../../cli-debug-log/src/index.tsx","../../cli-http-client/src/extract-error.ts","../../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';\nimport { HttpClient } from '@wix/http-client';\nimport VError from 'verror';\n\nexport function extractHttpError(error: unknown): IHttpError | null {\n if (HttpClient.isHttpError(error)) {\n return error;\n }\n\n const nestedError = error instanceof Error ? VError.cause(error) : null;\n return nestedError ? extractHttpError(nestedError) : null;\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,IAAAA,iBAAmB;AAJnB,SAAS,eAAe;AACxB,SAAS,gBAAgB,iBAAiB;;;ACD1C;AACA,yBAA2B;AAC3B,oBAAmB;AAEZ,SAAS,iBAAiB,OAAmC;AAClE,MAAI,8BAAW,YAAY,KAAK,GAAG;AACjC,WAAO;AAAA,EACT;AAEA,QAAM,cAAc,iBAAiB,QAAQ,cAAAC,QAAO,MAAM,KAAK,IAAI;AACnE,SAAO,cAAc,iBAAiB,WAAW,IAAI;AACvD;;;ACXA;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;;;AFZO,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,eAAAC,QAAO,UAAU,KAAK,CAAC;AAAA;AACrC,iBAAW;AAAA;AACX,iBAAW,GAAG,KAAK,UAAU,eAAAA,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":["import_verror","VError","VError","React"]}
|
|
@@ -2,7 +2,7 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readAppManifestFile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-75Z5LBFL.js";
|
|
6
6
|
import {
|
|
7
7
|
ArmTagProvider,
|
|
8
8
|
ExtensionDataProvider,
|
|
@@ -16,16 +16,16 @@ import {
|
|
|
16
16
|
useResolvePlatformUrl,
|
|
17
17
|
useSite,
|
|
18
18
|
useSiteOverrideClient
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XSE74543.js";
|
|
20
20
|
import {
|
|
21
21
|
useBackendComponents
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2HWQ4YII.js";
|
|
23
23
|
import {
|
|
24
24
|
getMonitoringProvider,
|
|
25
25
|
updateAppManifestComponents,
|
|
26
26
|
updateMonitoring,
|
|
27
27
|
updateTopology
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JZDRXFYW.js";
|
|
29
29
|
import {
|
|
30
30
|
Alert,
|
|
31
31
|
Box_default,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
useHttpClient,
|
|
55
55
|
useProjectModel,
|
|
56
56
|
useTranslation
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-MUIGB5S7.js";
|
|
58
58
|
import {
|
|
59
59
|
__toESM,
|
|
60
60
|
init_esm_shims
|
|
@@ -282,4 +282,4 @@ export {
|
|
|
282
282
|
assertBuildOutputExists,
|
|
283
283
|
PreviewCommand
|
|
284
284
|
};
|
|
285
|
-
//# sourceMappingURL=chunk-
|
|
285
|
+
//# sourceMappingURL=chunk-BZDWFP4Z.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
readJson,
|
|
12
12
|
require_lib,
|
|
13
13
|
writeJson
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MUIGB5S7.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM,
|
|
17
17
|
init_esm_shims
|
|
@@ -351,4 +351,4 @@ export {
|
|
|
351
351
|
getRepoType,
|
|
352
352
|
createPackageManager
|
|
353
353
|
};
|
|
354
|
-
//# sourceMappingURL=chunk-
|
|
354
|
+
//# sourceMappingURL=chunk-EDTLG4TU.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
require_lib,
|
|
11
11
|
require_react,
|
|
12
12
|
useTranslation
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MUIGB5S7.js";
|
|
14
14
|
import {
|
|
15
15
|
__toESM,
|
|
16
16
|
init_esm_shims
|
|
@@ -179,4 +179,4 @@ export {
|
|
|
179
179
|
docsExtensionTypeSchema,
|
|
180
180
|
getGenerateFlowByDocsExtensionType
|
|
181
181
|
};
|
|
182
|
-
//# sourceMappingURL=chunk-
|
|
182
|
+
//# sourceMappingURL=chunk-GYWEEFGW.js.map
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
useHttpClient,
|
|
19
19
|
usePanoramaMethodLogger,
|
|
20
20
|
wixCliAppsFlowTunnelCreationStatusSrc11Evid5233
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MUIGB5S7.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-HQA5OJ4L.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
toURLSearchParams,
|
|
16
16
|
useHttpClient,
|
|
17
17
|
usePanoramaMethodLogger
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MUIGB5S7.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM,
|
|
@@ -4806,4 +4806,4 @@ export {
|
|
|
4806
4806
|
getBackendEventSlug,
|
|
4807
4807
|
useExtensionDataClient
|
|
4808
4808
|
};
|
|
4809
|
-
//# sourceMappingURL=chunk-
|
|
4809
|
+
//# sourceMappingURL=chunk-J4W7C76I.js.map
|
|
@@ -3,7 +3,7 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getBackendEventSlug,
|
|
5
5
|
require_baseUniq
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J4W7C76I.js";
|
|
7
7
|
import {
|
|
8
8
|
API_BASEURL_PLACEHOLDER,
|
|
9
9
|
AlgorithmType,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
virtualSiteComponentPreviewScriptAssets,
|
|
95
95
|
virtualSiteComponentScriptAssets,
|
|
96
96
|
virtualSiteComponentSdkScriptAssets
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-MUIGB5S7.js";
|
|
98
98
|
import {
|
|
99
99
|
__commonJS,
|
|
100
100
|
__esm,
|
|
@@ -42675,4 +42675,4 @@ export {
|
|
|
42675
42675
|
he/he.js:
|
|
42676
42676
|
(*! https://mths.be/he v1.2.0 by @mathias | MIT license *)
|
|
42677
42677
|
*/
|
|
42678
|
-
//# sourceMappingURL=chunk-
|
|
42678
|
+
//# sourceMappingURL=chunk-JZDRXFYW.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
createRendererToString,
|
|
6
6
|
isCliError,
|
|
7
7
|
require_react
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MUIGB5S7.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-MSZYAHYH.js.map
|
|
@@ -145306,7 +145306,7 @@ var require_chokidar = __commonJS({
|
|
|
145306
145306
|
var package_default = {
|
|
145307
145307
|
name: "@wix/cli-app",
|
|
145308
145308
|
description: "CLI tool for Wix apps",
|
|
145309
|
-
version: "1.1.
|
|
145309
|
+
version: "1.1.163",
|
|
145310
145310
|
author: "Amit Dahan",
|
|
145311
145311
|
dependencies: {
|
|
145312
145312
|
esbuild: "^0.25.0",
|
|
@@ -182212,4 +182212,4 @@ mustache/mustache.mjs:
|
|
|
182212
182212
|
* http://github.com/janl/mustache.js
|
|
182213
182213
|
*)
|
|
182214
182214
|
*/
|
|
182215
|
-
//# sourceMappingURL=chunk-
|
|
182215
|
+
//# sourceMappingURL=chunk-MUIGB5S7.js.map
|