@wix/cli 1.1.124 → 1.1.126
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/{DevCommand-CXJDFRC3.js → DevCommand-2AR5AGZK.js} +362 -293
- package/build/DevCommand-2AR5AGZK.js.map +1 -0
- package/build/{DevCommand-PGCNN5XY.js → DevCommand-HZI54NFQ.js} +19 -19
- package/build/{DevCommand-DJOVM34F.js → DevCommand-VIZALUOT.js} +15 -15
- package/build/{EnvPullCommand-HBM35KMD.js → EnvPullCommand-22XI4HMW.js} +12 -12
- package/build/{EnvRemoveCommand-UC2UQGM5.js → EnvRemoveCommand-4ML7VXFL.js} +11 -11
- package/build/{EnvSetCommand-GA35VHBX.js → EnvSetCommand-2KV3UGRJ.js} +11 -11
- package/build/{GenerateCommand-FPK4FS63.js → GenerateCommand-DNGIRAD7.js} +51 -11
- package/build/{GenerateCommand-FPK4FS63.js.map → GenerateCommand-DNGIRAD7.js.map} +1 -1
- package/build/{InstallCommand-Z6PVUDZ2.js → InstallCommand-37PCGW37.js} +17 -17
- package/build/{LoginCommand-CGPPDWO7.js → LoginCommand-RYV2EZ3O.js} +9 -9
- package/build/{LogoutCommand-YJIOC473.js → LogoutCommand-VNCZZS6X.js} +6 -6
- package/build/{PreviewCommand-LIUZ4V3Q.js → PreviewCommand-D63GYXRE.js} +21 -21
- package/build/{PreviewCommand-PMRWVEXH.js → PreviewCommand-ISAGPAVF.js} +20 -20
- package/build/{PreviewCommand-IWAGLDAW.js → PreviewCommand-Z7FG4KAG.js} +14 -14
- package/build/{PublishCommand-XH52PJUF.js → PublishCommand-ZM774NB3.js} +20 -20
- package/build/{ReleaseCommand-6FVPBTZY.js → ReleaseCommand-YXVAWQSZ.js} +14 -14
- package/build/{UninstallCommand-EDIVWWSN.js → UninstallCommand-OMZO4TO3.js} +17 -17
- package/build/{WhoamiCommand-ERE5KRK5.js → WhoamiCommand-L4QOPB5V.js} +3 -3
- package/build/{chunk-TXS6FIYJ.js → chunk-3IW46DW4.js} +2 -2
- package/build/{chunk-KONVQLDI.js → chunk-3UK7HEO7.js} +19 -6
- package/build/{chunk-KONVQLDI.js.map → chunk-3UK7HEO7.js.map} +1 -1
- package/build/{chunk-R5RJYQCX.js → chunk-5HJ4KZOB.js} +3 -3
- package/build/{chunk-JEYKAALI.js → chunk-674NNW4S.js} +2 -2
- package/build/{chunk-GWSOBE5K.js → chunk-BP5POX5I.js} +14 -11
- package/build/chunk-BP5POX5I.js.map +1 -0
- package/build/{chunk-ZUSQSFTR.js → chunk-CPMBNPHQ.js} +2 -2
- package/build/{chunk-AV2QWD2T.js → chunk-CRFUGA4G.js} +8 -8
- package/build/{chunk-73MIX2O2.js → chunk-CUVYUKQG.js} +3 -3
- package/build/{chunk-OA3CO5CH.js → chunk-E7LFMG6R.js} +5 -5
- package/build/{chunk-Z2CMHMLR.js → chunk-FLQRDNCG.js} +6 -6
- package/build/{chunk-2ODMSMLQ.js → chunk-G2RVVPFQ.js} +3 -3
- package/build/{chunk-N2KKXUSW.js → chunk-G6YF5HET.js} +2 -2
- package/build/{chunk-IWQIW4GL.js → chunk-HDC5RASK.js} +2 -2
- package/build/{chunk-O3R4SBGX.js → chunk-J7OU7VLS.js} +4 -4
- package/build/{chunk-AHOU27PT.js → chunk-JBBWXJ5L.js} +2 -2
- package/build/{chunk-OHMQSHHI.js → chunk-LNWXXV3S.js} +2 -2
- package/build/{chunk-DR4RSQZ7.js → chunk-LPCBJUYO.js} +3 -3
- package/build/{chunk-QDWLTWDB.js → chunk-LVK7RDJE.js} +2 -2
- package/build/{chunk-B5WA4Z63.js → chunk-MHXHG72V.js} +4 -4
- package/build/{chunk-E7EAMFQD.js → chunk-NBYRH2K3.js} +2 -2
- package/build/{chunk-7LCZ57SO.js → chunk-O7RMON5W.js} +1 -1
- package/build/{chunk-7LCZ57SO.js.map → chunk-O7RMON5W.js.map} +1 -1
- package/build/{chunk-Y7PQOTYY.js → chunk-OJSZSBAZ.js} +2 -2
- package/build/{chunk-6OV37XZP.js → chunk-OXVGVUGE.js} +7 -7
- package/build/{chunk-ZW47BBFN.js → chunk-P6OON2WE.js} +3 -3
- package/build/{chunk-7VPTAVJ3.js → chunk-PFWH2P5F.js} +8 -8
- package/build/{chunk-H7756NJ6.js → chunk-QLBQQS6S.js} +2 -2
- package/build/{chunk-WECNUB3K.js → chunk-RSIU62WM.js} +8 -8
- package/build/{chunk-MP3LAEMX.js → chunk-SARB4HJ4.js} +4 -4
- package/build/{chunk-MP3LAEMX.js.map → chunk-SARB4HJ4.js.map} +1 -1
- package/build/{chunk-46UBNWDE.js → chunk-TQV5A6I4.js} +9 -9
- package/build/{chunk-FHQ23JQX.js → chunk-U7DKHEQ4.js} +8 -8
- package/build/{chunk-EUL3GKZI.js → chunk-UAPG4EXD.js} +3 -3
- package/build/{chunk-6RW52R4D.js → chunk-UD4JXU3I.js} +6 -6
- package/build/{chunk-4DEIXE7K.js → chunk-ULK3FIJN.js} +5 -5
- package/build/{chunk-5QUCMYAK.js → chunk-UUJQSZAD.js} +8 -8
- package/build/{chunk-CM2XSGSM.js → chunk-V2LI6FEA.js} +9 -9
- package/build/{chunk-FUDRK2JS.js → chunk-VH5WBCL5.js} +4 -4
- package/build/{chunk-CDY6L7PA.js → chunk-VK7S6BHA.js} +3 -3
- package/build/{chunk-IUJ26DW6.js → chunk-VM6DHKSX.js} +2 -2
- package/build/{chunk-XIR6MEG2.js → chunk-W5CGW2XE.js} +7 -7
- package/build/{chunk-Q5OLGDLN.js → chunk-WAM3UD3O.js} +51 -21
- package/build/chunk-WAM3UD3O.js.map +1 -0
- package/build/{chunk-UBVEF7HP.js → chunk-WTKAZ7QB.js} +4 -4
- package/build/{chunk-EW4XNYNT.js → chunk-WZ3I5LND.js} +2 -1
- package/build/{chunk-EW4XNYNT.js.map → chunk-WZ3I5LND.js.map} +1 -1
- package/build/{chunk-E3K64ZZV.js → chunk-X4HGMMAH.js} +2 -2
- package/build/{chunk-KNBTUAEM.js → chunk-YUQ4VLUC.js} +3 -3
- package/build/{chunk-CPSZ7QTC.js → chunk-YYLHUGPP.js} +3 -3
- package/build/{dev-LDM6OLLM.js → dev-54FR2ECH.js} +22 -22
- package/build/{env-pull-FXU2A6VX.js → env-pull-IDGOTBJA.js} +14 -14
- package/build/index.js +24 -24
- package/build/{install-ZDOXIHH4.js → install-CQK2TNN4.js} +17 -17
- package/build/{preview-JYE7VIB5.js → preview-3MP35J2L.js} +16 -16
- package/build/{publish-VVW4FJOF.js → publish-4ZURQJGC.js} +18 -18
- package/build/{render-command-XWYG7PUO.js → render-command-GYOAL72V.js} +11 -11
- package/build/{render-command-KDGJXKKW.js → render-command-JLRG6I25.js} +11 -11
- package/build/{render-command-4MA6YZOY.js → render-command-LQQU64AL.js} +11 -11
- package/build/{render-command-EZBPW4K4.js → render-command-PQS7JG5Y.js} +12 -12
- package/build/{render-command-MISU5ZPA.js → render-command-QG6EXFYQ.js} +12 -12
- package/build/{run-command-YEACE77L.js → run-command-S4IKCZWZ.js} +7 -7
- package/build/{src-MAT27XAW.js → src-2TQFSKXB.js} +4 -4
- package/build/{src-UARJ67XZ.js → src-ERM2CMB7.js} +2 -2
- package/build/{src-3PJTNHRF.js → src-JIB65FYQ.js} +27 -27
- package/build/{src-ZBCEMLKE.js → src-O2WZX4ZT.js} +6 -6
- package/build/{src-KRCQLOLK.js → src-S6WBX4ZD.js} +6 -6
- package/build/{src-DKZYL2FY.js → src-VQIR66RL.js} +4 -4
- package/build/{src-NUAMLSQ2.js → src-X2QILKQZ.js} +14 -14
- package/build/{src-CX7XY6QB.js → src-Y4Z26UKB.js} +17 -17
- package/build/{sync-types-XZO4O6WO.js → sync-types-NBJPNYCC.js} +11 -11
- package/build/{uninstall-IR66L6TR.js → uninstall-WWI7D26J.js} +17 -17
- package/package.json +2 -2
- package/build/DevCommand-CXJDFRC3.js.map +0 -1
- package/build/chunk-GWSOBE5K.js.map +0 -1
- package/build/chunk-Q5OLGDLN.js.map +0 -1
- /package/build/{DevCommand-PGCNN5XY.js.map → DevCommand-HZI54NFQ.js.map} +0 -0
- /package/build/{DevCommand-DJOVM34F.js.map → DevCommand-VIZALUOT.js.map} +0 -0
- /package/build/{EnvPullCommand-HBM35KMD.js.map → EnvPullCommand-22XI4HMW.js.map} +0 -0
- /package/build/{EnvRemoveCommand-UC2UQGM5.js.map → EnvRemoveCommand-4ML7VXFL.js.map} +0 -0
- /package/build/{EnvSetCommand-GA35VHBX.js.map → EnvSetCommand-2KV3UGRJ.js.map} +0 -0
- /package/build/{InstallCommand-Z6PVUDZ2.js.map → InstallCommand-37PCGW37.js.map} +0 -0
- /package/build/{LoginCommand-CGPPDWO7.js.map → LoginCommand-RYV2EZ3O.js.map} +0 -0
- /package/build/{LogoutCommand-YJIOC473.js.map → LogoutCommand-VNCZZS6X.js.map} +0 -0
- /package/build/{PreviewCommand-LIUZ4V3Q.js.map → PreviewCommand-D63GYXRE.js.map} +0 -0
- /package/build/{PreviewCommand-PMRWVEXH.js.map → PreviewCommand-ISAGPAVF.js.map} +0 -0
- /package/build/{PreviewCommand-IWAGLDAW.js.map → PreviewCommand-Z7FG4KAG.js.map} +0 -0
- /package/build/{PublishCommand-XH52PJUF.js.map → PublishCommand-ZM774NB3.js.map} +0 -0
- /package/build/{ReleaseCommand-6FVPBTZY.js.map → ReleaseCommand-YXVAWQSZ.js.map} +0 -0
- /package/build/{UninstallCommand-EDIVWWSN.js.map → UninstallCommand-OMZO4TO3.js.map} +0 -0
- /package/build/{WhoamiCommand-ERE5KRK5.js.map → WhoamiCommand-L4QOPB5V.js.map} +0 -0
- /package/build/{chunk-TXS6FIYJ.js.map → chunk-3IW46DW4.js.map} +0 -0
- /package/build/{chunk-R5RJYQCX.js.map → chunk-5HJ4KZOB.js.map} +0 -0
- /package/build/{chunk-JEYKAALI.js.map → chunk-674NNW4S.js.map} +0 -0
- /package/build/{chunk-ZUSQSFTR.js.map → chunk-CPMBNPHQ.js.map} +0 -0
- /package/build/{chunk-AV2QWD2T.js.map → chunk-CRFUGA4G.js.map} +0 -0
- /package/build/{chunk-73MIX2O2.js.map → chunk-CUVYUKQG.js.map} +0 -0
- /package/build/{chunk-OA3CO5CH.js.map → chunk-E7LFMG6R.js.map} +0 -0
- /package/build/{chunk-Z2CMHMLR.js.map → chunk-FLQRDNCG.js.map} +0 -0
- /package/build/{chunk-2ODMSMLQ.js.map → chunk-G2RVVPFQ.js.map} +0 -0
- /package/build/{chunk-N2KKXUSW.js.map → chunk-G6YF5HET.js.map} +0 -0
- /package/build/{chunk-IWQIW4GL.js.map → chunk-HDC5RASK.js.map} +0 -0
- /package/build/{chunk-O3R4SBGX.js.map → chunk-J7OU7VLS.js.map} +0 -0
- /package/build/{chunk-AHOU27PT.js.map → chunk-JBBWXJ5L.js.map} +0 -0
- /package/build/{chunk-OHMQSHHI.js.map → chunk-LNWXXV3S.js.map} +0 -0
- /package/build/{chunk-DR4RSQZ7.js.map → chunk-LPCBJUYO.js.map} +0 -0
- /package/build/{chunk-QDWLTWDB.js.map → chunk-LVK7RDJE.js.map} +0 -0
- /package/build/{chunk-B5WA4Z63.js.map → chunk-MHXHG72V.js.map} +0 -0
- /package/build/{chunk-E7EAMFQD.js.map → chunk-NBYRH2K3.js.map} +0 -0
- /package/build/{chunk-Y7PQOTYY.js.map → chunk-OJSZSBAZ.js.map} +0 -0
- /package/build/{chunk-6OV37XZP.js.map → chunk-OXVGVUGE.js.map} +0 -0
- /package/build/{chunk-ZW47BBFN.js.map → chunk-P6OON2WE.js.map} +0 -0
- /package/build/{chunk-7VPTAVJ3.js.map → chunk-PFWH2P5F.js.map} +0 -0
- /package/build/{chunk-H7756NJ6.js.map → chunk-QLBQQS6S.js.map} +0 -0
- /package/build/{chunk-WECNUB3K.js.map → chunk-RSIU62WM.js.map} +0 -0
- /package/build/{chunk-46UBNWDE.js.map → chunk-TQV5A6I4.js.map} +0 -0
- /package/build/{chunk-FHQ23JQX.js.map → chunk-U7DKHEQ4.js.map} +0 -0
- /package/build/{chunk-EUL3GKZI.js.map → chunk-UAPG4EXD.js.map} +0 -0
- /package/build/{chunk-6RW52R4D.js.map → chunk-UD4JXU3I.js.map} +0 -0
- /package/build/{chunk-4DEIXE7K.js.map → chunk-ULK3FIJN.js.map} +0 -0
- /package/build/{chunk-5QUCMYAK.js.map → chunk-UUJQSZAD.js.map} +0 -0
- /package/build/{chunk-CM2XSGSM.js.map → chunk-V2LI6FEA.js.map} +0 -0
- /package/build/{chunk-FUDRK2JS.js.map → chunk-VH5WBCL5.js.map} +0 -0
- /package/build/{chunk-CDY6L7PA.js.map → chunk-VK7S6BHA.js.map} +0 -0
- /package/build/{chunk-IUJ26DW6.js.map → chunk-VM6DHKSX.js.map} +0 -0
- /package/build/{chunk-XIR6MEG2.js.map → chunk-W5CGW2XE.js.map} +0 -0
- /package/build/{chunk-UBVEF7HP.js.map → chunk-WTKAZ7QB.js.map} +0 -0
- /package/build/{chunk-E3K64ZZV.js.map → chunk-X4HGMMAH.js.map} +0 -0
- /package/build/{chunk-KNBTUAEM.js.map → chunk-YUQ4VLUC.js.map} +0 -0
- /package/build/{chunk-CPSZ7QTC.js.map → chunk-YYLHUGPP.js.map} +0 -0
- /package/build/{dev-LDM6OLLM.js.map → dev-54FR2ECH.js.map} +0 -0
- /package/build/{env-pull-FXU2A6VX.js.map → env-pull-IDGOTBJA.js.map} +0 -0
- /package/build/{install-ZDOXIHH4.js.map → install-CQK2TNN4.js.map} +0 -0
- /package/build/{preview-JYE7VIB5.js.map → preview-3MP35J2L.js.map} +0 -0
- /package/build/{publish-VVW4FJOF.js.map → publish-4ZURQJGC.js.map} +0 -0
- /package/build/{render-command-XWYG7PUO.js.map → render-command-GYOAL72V.js.map} +0 -0
- /package/build/{render-command-KDGJXKKW.js.map → render-command-JLRG6I25.js.map} +0 -0
- /package/build/{render-command-4MA6YZOY.js.map → render-command-LQQU64AL.js.map} +0 -0
- /package/build/{render-command-EZBPW4K4.js.map → render-command-PQS7JG5Y.js.map} +0 -0
- /package/build/{render-command-MISU5ZPA.js.map → render-command-QG6EXFYQ.js.map} +0 -0
- /package/build/{run-command-YEACE77L.js.map → run-command-S4IKCZWZ.js.map} +0 -0
- /package/build/{src-DKZYL2FY.js.map → src-2TQFSKXB.js.map} +0 -0
- /package/build/{src-KRCQLOLK.js.map → src-ERM2CMB7.js.map} +0 -0
- /package/build/{src-3PJTNHRF.js.map → src-JIB65FYQ.js.map} +0 -0
- /package/build/{src-ZBCEMLKE.js.map → src-O2WZX4ZT.js.map} +0 -0
- /package/build/{src-MAT27XAW.js.map → src-S6WBX4ZD.js.map} +0 -0
- /package/build/{src-UARJ67XZ.js.map → src-VQIR66RL.js.map} +0 -0
- /package/build/{src-NUAMLSQ2.js.map → src-X2QILKQZ.js.map} +0 -0
- /package/build/{src-CX7XY6QB.js.map → src-Y4Z26UKB.js.map} +0 -0
- /package/build/{sync-types-XZO4O6WO.js.map → sync-types-NBJPNYCC.js.map} +0 -0
- /package/build/{uninstall-IR66L6TR.js.map → uninstall-WWI7D26J.js.map} +0 -0
|
@@ -2,18 +2,18 @@ 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-UD4JXU3I.js";
|
|
6
6
|
import {
|
|
7
7
|
PlatformLink,
|
|
8
8
|
useARMClient,
|
|
9
9
|
useUpdateDeploymentTopology,
|
|
10
10
|
useUpdateManifest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RSIU62WM.js";
|
|
12
12
|
import "./chunk-YFLJHEC7.js";
|
|
13
13
|
import {
|
|
14
14
|
createPackageManager,
|
|
15
15
|
getRepoType
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-P6OON2WE.js";
|
|
17
17
|
import {
|
|
18
18
|
execa
|
|
19
19
|
} from "./chunk-RWTQFIPN.js";
|
|
@@ -25,20 +25,21 @@ import {
|
|
|
25
25
|
EmbedCategory,
|
|
26
26
|
EmbeddedScriptPlacement,
|
|
27
27
|
Width,
|
|
28
|
-
|
|
28
|
+
devMetadataSchema,
|
|
29
29
|
looseComponentSchema,
|
|
30
|
+
parseLooseAppManifest,
|
|
30
31
|
useProjectModel
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-WAM3UD3O.js";
|
|
32
33
|
import {
|
|
33
34
|
useHttpClient
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-LNWXXV3S.js";
|
|
36
|
+
import "./chunk-VM6DHKSX.js";
|
|
36
37
|
import {
|
|
37
38
|
SiteAuthProvider,
|
|
38
39
|
useDebugLog
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-3UK7HEO7.js";
|
|
40
41
|
import "./chunk-WZOSCHKD.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-G6YF5HET.js";
|
|
42
43
|
import "./chunk-KJ37XZQA.js";
|
|
43
44
|
import {
|
|
44
45
|
Box_default,
|
|
@@ -47,8 +48,9 @@ import {
|
|
|
47
48
|
Text,
|
|
48
49
|
createRendererToString,
|
|
49
50
|
useAsync,
|
|
51
|
+
useAsyncCallback,
|
|
50
52
|
useExit
|
|
51
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-JBBWXJ5L.js";
|
|
52
54
|
import {
|
|
53
55
|
require_react
|
|
54
56
|
} from "./chunk-NRAQAV6T.js";
|
|
@@ -60,20 +62,20 @@ import "./chunk-C4SUTB4O.js";
|
|
|
60
62
|
import {
|
|
61
63
|
readUserConfig,
|
|
62
64
|
updateUserConfig
|
|
63
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-HDC5RASK.js";
|
|
64
66
|
import "./chunk-II7O6SCF.js";
|
|
65
67
|
import "./chunk-RL7RA2JG.js";
|
|
66
68
|
import {
|
|
67
69
|
pathExists,
|
|
68
70
|
readJson,
|
|
69
71
|
writeJson
|
|
70
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-CPMBNPHQ.js";
|
|
71
73
|
import {
|
|
72
74
|
external_exports
|
|
73
75
|
} from "./chunk-F43XHKVL.js";
|
|
74
76
|
import {
|
|
75
77
|
require_lib
|
|
76
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-WZ3I5LND.js";
|
|
77
79
|
import {
|
|
78
80
|
__commonJS,
|
|
79
81
|
__dirname,
|
|
@@ -2994,9 +2996,9 @@ ${trace}`);
|
|
|
2994
2996
|
function isMemberExpressionLike(node) {
|
|
2995
2997
|
return (0, _index.isMemberExpression)(node) || (0, _index.isMetaProperty)(node);
|
|
2996
2998
|
}
|
|
2997
|
-
function matchesPattern(member,
|
|
2999
|
+
function matchesPattern(member, match3, allowPartial) {
|
|
2998
3000
|
if (!isMemberExpressionLike(member)) return false;
|
|
2999
|
-
const parts = Array.isArray(
|
|
3001
|
+
const parts = Array.isArray(match3) ? match3 : match3.split(".");
|
|
3000
3002
|
const nodes = [];
|
|
3001
3003
|
let node;
|
|
3002
3004
|
for (node = member; isMemberExpressionLike(node); node = (_object = node.object) != null ? _object : node.meta) {
|
|
@@ -3036,8 +3038,8 @@ ${trace}`);
|
|
|
3036
3038
|
});
|
|
3037
3039
|
exports2.default = buildMatchMemberExpression;
|
|
3038
3040
|
var _matchesPattern = require_matchesPattern();
|
|
3039
|
-
function buildMatchMemberExpression(
|
|
3040
|
-
const parts =
|
|
3041
|
+
function buildMatchMemberExpression(match3, allowPartial) {
|
|
3042
|
+
const parts = match3.split(".");
|
|
3041
3043
|
return (member) => (0, _matchesPattern.default)(member, parts, allowPartial);
|
|
3042
3044
|
}
|
|
3043
3045
|
}
|
|
@@ -3467,8 +3469,8 @@ ${trace}`);
|
|
|
3467
3469
|
default:
|
|
3468
3470
|
if (ch >= 48 && ch <= 55) {
|
|
3469
3471
|
const startPos = pos2 - 1;
|
|
3470
|
-
const
|
|
3471
|
-
let octalStr =
|
|
3472
|
+
const match3 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
|
|
3473
|
+
let octalStr = match3[0];
|
|
3472
3474
|
let octal = parseInt(octalStr, 8);
|
|
3473
3475
|
if (octal > 255) {
|
|
3474
3476
|
octalStr = octalStr.slice(0, -1);
|
|
@@ -4309,9 +4311,9 @@ ${errors.join("\n")}`);
|
|
|
4309
4311
|
}
|
|
4310
4312
|
}),
|
|
4311
4313
|
validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key2, node) {
|
|
4312
|
-
const
|
|
4313
|
-
if (!
|
|
4314
|
-
const [, parentKey] =
|
|
4314
|
+
const match3 = /\.(\w+)$/.exec(key2.toString());
|
|
4315
|
+
if (!match3) return;
|
|
4316
|
+
const [, parentKey] = match3;
|
|
4315
4317
|
const nonComp = {
|
|
4316
4318
|
computed: false
|
|
4317
4319
|
};
|
|
@@ -4599,9 +4601,9 @@ ${errors.join("\n")}`);
|
|
|
4599
4601
|
}
|
|
4600
4602
|
}),
|
|
4601
4603
|
validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key2) {
|
|
4602
|
-
const
|
|
4603
|
-
if (!
|
|
4604
|
-
const [, listKey, index] =
|
|
4604
|
+
const match3 = /(\w+)\[(\d+)\]/.exec(key2.toString());
|
|
4605
|
+
if (!match3) throw new Error("Internal Babel error: malformed key.");
|
|
4606
|
+
const [, listKey, index] = match3;
|
|
4605
4607
|
if (parent[listKey].length > +index + 1) {
|
|
4606
4608
|
throw new TypeError(`RestElement must be last element of ${listKey}`);
|
|
4607
4609
|
}
|
|
@@ -12308,7 +12310,7 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
|
12308
12310
|
name += (0, _helperValidatorIdentifier.isIdentifierChar)(c2.codePointAt(0)) ? c2 : "-";
|
|
12309
12311
|
}
|
|
12310
12312
|
name = name.replace(/^[-0-9]+/, "");
|
|
12311
|
-
name = name.replace(/[-\s]+(.)?/g, function(
|
|
12313
|
+
name = name.replace(/[-\s]+(.)?/g, function(match3, c2) {
|
|
12312
12314
|
return c2 ? c2.toUpperCase() : "";
|
|
12313
12315
|
});
|
|
12314
12316
|
if (!(0, _isValidIdentifier.default)(name)) {
|
|
@@ -19616,8 +19618,8 @@ ${str}
|
|
|
19616
19618
|
default:
|
|
19617
19619
|
if (ch >= 48 && ch <= 55) {
|
|
19618
19620
|
const startPos = pos2 - 1;
|
|
19619
|
-
const
|
|
19620
|
-
let octalStr =
|
|
19621
|
+
const match3 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
|
|
19622
|
+
let octalStr = match3[0];
|
|
19621
19623
|
let octal = parseInt(octalStr, 8);
|
|
19622
19624
|
if (octal > 255) {
|
|
19623
19625
|
octalStr = octalStr.slice(0, -1);
|
|
@@ -28748,16 +28750,16 @@ ${str}
|
|
|
28748
28750
|
value: true
|
|
28749
28751
|
});
|
|
28750
28752
|
exports2.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
|
|
28751
|
-
exports2.matchToToken = function(
|
|
28752
|
-
var token2 = { type: "invalid", value:
|
|
28753
|
-
if (
|
|
28754
|
-
else if (
|
|
28755
|
-
else if (
|
|
28756
|
-
else if (
|
|
28757
|
-
else if (
|
|
28758
|
-
else if (
|
|
28759
|
-
else if (
|
|
28760
|
-
else if (
|
|
28753
|
+
exports2.matchToToken = function(match3) {
|
|
28754
|
+
var token2 = { type: "invalid", value: match3[0], closed: void 0 };
|
|
28755
|
+
if (match3[1]) token2.type = "string", token2.closed = !!(match3[3] || match3[4]);
|
|
28756
|
+
else if (match3[5]) token2.type = "comment";
|
|
28757
|
+
else if (match3[6]) token2.type = "comment", token2.closed = !!match3[7];
|
|
28758
|
+
else if (match3[8]) token2.type = "regex";
|
|
28759
|
+
else if (match3[9]) token2.type = "number";
|
|
28760
|
+
else if (match3[10]) token2.type = "name";
|
|
28761
|
+
else if (match3[11]) token2.type = "punctuator";
|
|
28762
|
+
else if (match3[12]) token2.type = "whitespace";
|
|
28761
28763
|
return token2;
|
|
28762
28764
|
};
|
|
28763
28765
|
}
|
|
@@ -28822,11 +28824,11 @@ ${str}
|
|
|
28822
28824
|
return token2.type;
|
|
28823
28825
|
};
|
|
28824
28826
|
tokenize = function* (text) {
|
|
28825
|
-
let
|
|
28826
|
-
while (
|
|
28827
|
-
const token2 = jsTokens.matchToToken(
|
|
28827
|
+
let match3;
|
|
28828
|
+
while (match3 = jsTokens.default.exec(text)) {
|
|
28829
|
+
const token2 = jsTokens.matchToToken(match3);
|
|
28828
28830
|
yield {
|
|
28829
|
-
type: getTokenType(token2,
|
|
28831
|
+
type: getTokenType(token2, match3.index, text),
|
|
28830
28832
|
value: token2.value
|
|
28831
28833
|
};
|
|
28832
28834
|
}
|
|
@@ -31090,14 +31092,14 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
31090
31092
|
if (str.length > 100) {
|
|
31091
31093
|
return;
|
|
31092
31094
|
}
|
|
31093
|
-
var
|
|
31095
|
+
var match3 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
31094
31096
|
str
|
|
31095
31097
|
);
|
|
31096
|
-
if (!
|
|
31098
|
+
if (!match3) {
|
|
31097
31099
|
return;
|
|
31098
31100
|
}
|
|
31099
|
-
var n = parseFloat(
|
|
31100
|
-
var type = (
|
|
31101
|
+
var n = parseFloat(match3[1]);
|
|
31102
|
+
var type = (match3[2] || "ms").toLowerCase();
|
|
31101
31103
|
switch (type) {
|
|
31102
31104
|
case "years":
|
|
31103
31105
|
case "year":
|
|
@@ -31227,19 +31229,19 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
31227
31229
|
args.unshift("%O");
|
|
31228
31230
|
}
|
|
31229
31231
|
let index = 0;
|
|
31230
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (
|
|
31231
|
-
if (
|
|
31232
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match3, format) => {
|
|
31233
|
+
if (match3 === "%%") {
|
|
31232
31234
|
return "%";
|
|
31233
31235
|
}
|
|
31234
31236
|
index++;
|
|
31235
31237
|
const formatter = createDebug.formatters[format];
|
|
31236
31238
|
if (typeof formatter === "function") {
|
|
31237
31239
|
const val = args[index];
|
|
31238
|
-
|
|
31240
|
+
match3 = formatter.call(self2, val);
|
|
31239
31241
|
args.splice(index, 1);
|
|
31240
31242
|
index--;
|
|
31241
31243
|
}
|
|
31242
|
-
return
|
|
31244
|
+
return match3;
|
|
31243
31245
|
});
|
|
31244
31246
|
createDebug.formatArgs.call(self2, args);
|
|
31245
31247
|
const logFn = self2.log || createDebug.log;
|
|
@@ -31473,12 +31475,12 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
31473
31475
|
args.splice(1, 0, c2, "color: inherit");
|
|
31474
31476
|
let index = 0;
|
|
31475
31477
|
let lastC = 0;
|
|
31476
|
-
args[0].replace(/%[a-zA-Z%]/g, (
|
|
31477
|
-
if (
|
|
31478
|
+
args[0].replace(/%[a-zA-Z%]/g, (match3) => {
|
|
31479
|
+
if (match3 === "%%") {
|
|
31478
31480
|
return;
|
|
31479
31481
|
}
|
|
31480
31482
|
index++;
|
|
31481
|
-
if (
|
|
31483
|
+
if (match3 === "%c") {
|
|
31482
31484
|
lastC = index;
|
|
31483
31485
|
}
|
|
31484
31486
|
});
|
|
@@ -34100,13 +34102,13 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
34100
34102
|
return /^[.?#]/.test(input);
|
|
34101
34103
|
}
|
|
34102
34104
|
function parseAbsoluteUrl(input) {
|
|
34103
|
-
const
|
|
34104
|
-
return makeUrl(
|
|
34105
|
+
const match3 = urlRegex.exec(input);
|
|
34106
|
+
return makeUrl(match3[1], match3[2] || "", match3[3], match3[4] || "", match3[5] || "/", match3[6] || "", match3[7] || "");
|
|
34105
34107
|
}
|
|
34106
34108
|
function parseFileUrl(input) {
|
|
34107
|
-
const
|
|
34108
|
-
const path =
|
|
34109
|
-
return makeUrl("file:", "",
|
|
34109
|
+
const match3 = fileRegex.exec(input);
|
|
34110
|
+
const path = match3[2];
|
|
34111
|
+
return makeUrl("file:", "", match3[1] || "", "", isAbsolutePath(path) ? path : "/" + path, match3[3] || "", match3[4] || "");
|
|
34110
34112
|
}
|
|
34111
34113
|
function makeUrl(scheme, user, host, port, path, query, hash) {
|
|
34112
34114
|
return {
|
|
@@ -43522,13 +43524,13 @@ ${" ".repeat(indentSize)}`);
|
|
|
43522
43524
|
for (const prop of props) {
|
|
43523
43525
|
if (!prop.isProperty()) continue;
|
|
43524
43526
|
const key2 = prop.get("key");
|
|
43525
|
-
let
|
|
43527
|
+
let match3 = prop.isnt("computed") && key2.isIdentifier({
|
|
43526
43528
|
name: targetName
|
|
43527
43529
|
});
|
|
43528
|
-
|
|
43530
|
+
match3 = match3 || key2.isLiteral({
|
|
43529
43531
|
value: targetName
|
|
43530
43532
|
});
|
|
43531
|
-
if (
|
|
43533
|
+
if (match3) return prop.get("value").resolve(dangerous, resolved);
|
|
43532
43534
|
}
|
|
43533
43535
|
} else if (target.isArrayExpression() && !isNaN(+targetName)) {
|
|
43534
43536
|
const elems = target.get("elements");
|
|
@@ -45944,23 +45946,23 @@ ${" ".repeat(indentSize)}`);
|
|
|
45944
45946
|
return null;
|
|
45945
45947
|
}
|
|
45946
45948
|
options = options || {};
|
|
45947
|
-
var
|
|
45949
|
+
var match3 = null;
|
|
45948
45950
|
if (!options.rtl) {
|
|
45949
|
-
|
|
45951
|
+
match3 = version.match(safeRe[t.COERCE]);
|
|
45950
45952
|
} else {
|
|
45951
45953
|
var next;
|
|
45952
|
-
while ((next = safeRe[t.COERCERTL].exec(version)) && (!
|
|
45953
|
-
if (!
|
|
45954
|
-
|
|
45954
|
+
while ((next = safeRe[t.COERCERTL].exec(version)) && (!match3 || match3.index + match3[0].length !== version.length)) {
|
|
45955
|
+
if (!match3 || next.index + next[0].length !== match3.index + match3[0].length) {
|
|
45956
|
+
match3 = next;
|
|
45955
45957
|
}
|
|
45956
45958
|
safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
|
|
45957
45959
|
}
|
|
45958
45960
|
safeRe[t.COERCERTL].lastIndex = -1;
|
|
45959
45961
|
}
|
|
45960
|
-
if (
|
|
45962
|
+
if (match3 === null) {
|
|
45961
45963
|
return null;
|
|
45962
45964
|
}
|
|
45963
|
-
return parse3(
|
|
45965
|
+
return parse3(match3[2] + "." + (match3[3] || "0") + "." + (match3[4] || "0"), options);
|
|
45964
45966
|
}
|
|
45965
45967
|
}
|
|
45966
45968
|
});
|
|
@@ -51169,11 +51171,11 @@ ${" ".repeat(indentSize)}`);
|
|
|
51169
51171
|
}
|
|
51170
51172
|
for (var name in all) {
|
|
51171
51173
|
var type = all[name];
|
|
51172
|
-
var
|
|
51173
|
-
if (
|
|
51174
|
+
var match3 = query.match(type.regexp);
|
|
51175
|
+
if (match3) {
|
|
51174
51176
|
node.type = name;
|
|
51175
51177
|
for (var i = 0; i < type.matches.length; i++) {
|
|
51176
|
-
node[type.matches[i]] =
|
|
51178
|
+
node[type.matches[i]] = match3[i + 1];
|
|
51177
51179
|
}
|
|
51178
51180
|
return node;
|
|
51179
51181
|
}
|
|
@@ -54199,23 +54201,23 @@ ${" ".repeat(indentSize)}`);
|
|
|
54199
54201
|
return null;
|
|
54200
54202
|
}
|
|
54201
54203
|
options = options || {};
|
|
54202
|
-
var
|
|
54204
|
+
var match3 = null;
|
|
54203
54205
|
if (!options.rtl) {
|
|
54204
|
-
|
|
54206
|
+
match3 = version.match(safeRe[t.COERCE]);
|
|
54205
54207
|
} else {
|
|
54206
54208
|
var next;
|
|
54207
|
-
while ((next = safeRe[t.COERCERTL].exec(version)) && (!
|
|
54208
|
-
if (!
|
|
54209
|
-
|
|
54209
|
+
while ((next = safeRe[t.COERCERTL].exec(version)) && (!match3 || match3.index + match3[0].length !== version.length)) {
|
|
54210
|
+
if (!match3 || next.index + next[0].length !== match3.index + match3[0].length) {
|
|
54211
|
+
match3 = next;
|
|
54210
54212
|
}
|
|
54211
54213
|
safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
|
|
54212
54214
|
}
|
|
54213
54215
|
safeRe[t.COERCERTL].lastIndex = -1;
|
|
54214
54216
|
}
|
|
54215
|
-
if (
|
|
54217
|
+
if (match3 === null) {
|
|
54216
54218
|
return null;
|
|
54217
54219
|
}
|
|
54218
|
-
return parse3(
|
|
54220
|
+
return parse3(match3[2] + "." + (match3[3] || "0") + "." + (match3[4] || "0"), options);
|
|
54219
54221
|
}
|
|
54220
54222
|
}
|
|
54221
54223
|
});
|
|
@@ -58662,8 +58664,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
58662
58664
|
const lastComment = extractComments(EXTERNAL_SOURCEMAP_REGEX, ast);
|
|
58663
58665
|
if (typeof options.filename === "string" && lastComment) {
|
|
58664
58666
|
try {
|
|
58665
|
-
const
|
|
58666
|
-
const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename),
|
|
58667
|
+
const match3 = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment);
|
|
58668
|
+
const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match3[1]), "utf8");
|
|
58667
58669
|
inputMap = _convertSourceMap().fromJSON(inputMapContent);
|
|
58668
58670
|
} catch (err) {
|
|
58669
58671
|
debug("discarding unknown file input sourcemap", err);
|
|
@@ -63795,23 +63797,23 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
|
|
|
63795
63797
|
return null;
|
|
63796
63798
|
}
|
|
63797
63799
|
options = options || {};
|
|
63798
|
-
var
|
|
63800
|
+
var match3 = null;
|
|
63799
63801
|
if (!options.rtl) {
|
|
63800
|
-
|
|
63802
|
+
match3 = version.match(safeRe[t.COERCE]);
|
|
63801
63803
|
} else {
|
|
63802
63804
|
var next;
|
|
63803
|
-
while ((next = safeRe[t.COERCERTL].exec(version)) && (!
|
|
63804
|
-
if (!
|
|
63805
|
-
|
|
63805
|
+
while ((next = safeRe[t.COERCERTL].exec(version)) && (!match3 || match3.index + match3[0].length !== version.length)) {
|
|
63806
|
+
if (!match3 || next.index + next[0].length !== match3.index + match3[0].length) {
|
|
63807
|
+
match3 = next;
|
|
63806
63808
|
}
|
|
63807
63809
|
safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
|
|
63808
63810
|
}
|
|
63809
63811
|
safeRe[t.COERCERTL].lastIndex = -1;
|
|
63810
63812
|
}
|
|
63811
|
-
if (
|
|
63813
|
+
if (match3 === null) {
|
|
63812
63814
|
return null;
|
|
63813
63815
|
}
|
|
63814
|
-
return parse3(
|
|
63816
|
+
return parse3(match3[2] + "." + (match3[3] || "0") + "." + (match3[4] || "0"), options);
|
|
63815
63817
|
}
|
|
63816
63818
|
}
|
|
63817
63819
|
});
|
|
@@ -66581,13 +66583,13 @@ module.exports = function(api) {
|
|
|
66581
66583
|
var encodedSeparatorRegEx = /%2f|%5c/i;
|
|
66582
66584
|
var emittedPackageWarnings = /* @__PURE__ */ new Set();
|
|
66583
66585
|
var doubleSlashRegEx = /[/\\]{2}/;
|
|
66584
|
-
function emitInvalidSegmentDeprecation(target, request,
|
|
66586
|
+
function emitInvalidSegmentDeprecation(target, request, match3, packageJsonUrl, internal, base, isTarget) {
|
|
66585
66587
|
if (_process().noDeprecation) {
|
|
66586
66588
|
return;
|
|
66587
66589
|
}
|
|
66588
66590
|
const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl);
|
|
66589
66591
|
const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null;
|
|
66590
|
-
_process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request ===
|
|
66592
|
+
_process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match3 ? "" : `matched to "${match3}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
|
|
66591
66593
|
}
|
|
66592
66594
|
function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
66593
66595
|
if (_process().noDeprecation) {
|
|
@@ -66697,16 +66699,16 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
66697
66699
|
function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
66698
66700
|
return new ERR_PACKAGE_PATH_NOT_EXPORTED((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, base && (0, _url().fileURLToPath)(base));
|
|
66699
66701
|
}
|
|
66700
|
-
function throwInvalidSubpath(request,
|
|
66701
|
-
const reason = `request is not a valid match in pattern "${
|
|
66702
|
+
function throwInvalidSubpath(request, match3, packageJsonUrl, internal, base) {
|
|
66703
|
+
const reason = `request is not a valid match in pattern "${match3}" for the "${internal ? "imports" : "exports"}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`;
|
|
66702
66704
|
throw new ERR_INVALID_MODULE_SPECIFIER(request, reason, base && (0, _url().fileURLToPath)(base));
|
|
66703
66705
|
}
|
|
66704
66706
|
function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
66705
66707
|
target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
|
|
66706
66708
|
return new ERR_INVALID_PACKAGE_TARGET((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, target, internal, base && (0, _url().fileURLToPath)(base));
|
|
66707
66709
|
}
|
|
66708
|
-
function resolvePackageTargetString(target, subpath,
|
|
66709
|
-
if (subpath !== "" && !pattern && target[target.length - 1] !== "/") throw invalidPackageTarget(
|
|
66710
|
+
function resolvePackageTargetString(target, subpath, match3, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
|
|
66711
|
+
if (subpath !== "" && !pattern && target[target.length - 1] !== "/") throw invalidPackageTarget(match3, target, packageJsonUrl, internal, base);
|
|
66710
66712
|
if (!target.startsWith("./")) {
|
|
66711
66713
|
if (internal && !target.startsWith("../") && !target.startsWith("/")) {
|
|
66712
66714
|
let isURL2 = false;
|
|
@@ -66720,33 +66722,33 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
66720
66722
|
return packageResolve(exportTarget, packageJsonUrl, conditions);
|
|
66721
66723
|
}
|
|
66722
66724
|
}
|
|
66723
|
-
throw invalidPackageTarget(
|
|
66725
|
+
throw invalidPackageTarget(match3, target, packageJsonUrl, internal, base);
|
|
66724
66726
|
}
|
|
66725
66727
|
if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {
|
|
66726
66728
|
if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
|
|
66727
66729
|
if (!isPathMap) {
|
|
66728
|
-
const request = pattern ?
|
|
66730
|
+
const request = pattern ? match3.replace("*", () => subpath) : match3 + subpath;
|
|
66729
66731
|
const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
|
|
66730
|
-
emitInvalidSegmentDeprecation(resolvedTarget, request,
|
|
66732
|
+
emitInvalidSegmentDeprecation(resolvedTarget, request, match3, packageJsonUrl, internal, base, true);
|
|
66731
66733
|
}
|
|
66732
66734
|
} else {
|
|
66733
|
-
throw invalidPackageTarget(
|
|
66735
|
+
throw invalidPackageTarget(match3, target, packageJsonUrl, internal, base);
|
|
66734
66736
|
}
|
|
66735
66737
|
}
|
|
66736
66738
|
const resolved = new (_url()).URL(target, packageJsonUrl);
|
|
66737
66739
|
const resolvedPath = resolved.pathname;
|
|
66738
66740
|
const packagePath = new (_url()).URL(".", packageJsonUrl).pathname;
|
|
66739
|
-
if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(
|
|
66741
|
+
if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match3, target, packageJsonUrl, internal, base);
|
|
66740
66742
|
if (subpath === "") return resolved;
|
|
66741
66743
|
if (invalidSegmentRegEx.exec(subpath) !== null) {
|
|
66742
|
-
const request = pattern ?
|
|
66744
|
+
const request = pattern ? match3.replace("*", () => subpath) : match3 + subpath;
|
|
66743
66745
|
if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) {
|
|
66744
66746
|
if (!isPathMap) {
|
|
66745
66747
|
const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
|
|
66746
|
-
emitInvalidSegmentDeprecation(resolvedTarget, request,
|
|
66748
|
+
emitInvalidSegmentDeprecation(resolvedTarget, request, match3, packageJsonUrl, internal, base, false);
|
|
66747
66749
|
}
|
|
66748
66750
|
} else {
|
|
66749
|
-
throwInvalidSubpath(request,
|
|
66751
|
+
throwInvalidSubpath(request, match3, packageJsonUrl, internal, base);
|
|
66750
66752
|
}
|
|
66751
66753
|
}
|
|
66752
66754
|
if (pattern) {
|
|
@@ -66835,14 +66837,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
66835
66837
|
}
|
|
66836
66838
|
return isConditionalSugar;
|
|
66837
66839
|
}
|
|
66838
|
-
function emitTrailingSlashPatternDeprecation(
|
|
66840
|
+
function emitTrailingSlashPatternDeprecation(match3, pjsonUrl, base) {
|
|
66839
66841
|
if (_process().noDeprecation) {
|
|
66840
66842
|
return;
|
|
66841
66843
|
}
|
|
66842
66844
|
const pjsonPath = (0, _url().fileURLToPath)(pjsonUrl);
|
|
66843
|
-
if (emittedPackageWarnings.has(pjsonPath + "|" +
|
|
66844
|
-
emittedPackageWarnings.add(pjsonPath + "|" +
|
|
66845
|
-
_process().emitWarning(`Use of deprecated trailing slash pattern mapping "${
|
|
66845
|
+
if (emittedPackageWarnings.has(pjsonPath + "|" + match3)) return;
|
|
66846
|
+
emittedPackageWarnings.add(pjsonPath + "|" + match3);
|
|
66847
|
+
_process().emitWarning(`Use of deprecated trailing slash pattern mapping "${match3}" in the "exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`, "DeprecationWarning", "DEP0155");
|
|
66846
66848
|
}
|
|
66847
66849
|
function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
|
|
66848
66850
|
let exports3 = packageConfig.exports;
|
|
@@ -69858,7 +69860,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
69858
69860
|
var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
69859
69861
|
exports2.makeRe = makeRe;
|
|
69860
69862
|
exports2.minimatch.makeRe = exports2.makeRe;
|
|
69861
|
-
var
|
|
69863
|
+
var match3 = (list, pattern, options = {}) => {
|
|
69862
69864
|
const mm = new Minimatch(pattern, options);
|
|
69863
69865
|
list = list.filter((f) => mm.match(f));
|
|
69864
69866
|
if (mm.options.nonull && !list.length) {
|
|
@@ -69866,7 +69868,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
69866
69868
|
}
|
|
69867
69869
|
return list;
|
|
69868
69870
|
};
|
|
69869
|
-
exports2.match =
|
|
69871
|
+
exports2.match = match3;
|
|
69870
69872
|
exports2.minimatch.match = exports2.match;
|
|
69871
69873
|
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
69872
69874
|
var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
@@ -76650,10 +76652,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
76650
76652
|
});
|
|
76651
76653
|
}
|
|
76652
76654
|
let shouldIndentNextCharacter = options.indentStart !== false;
|
|
76653
|
-
const replacer = (
|
|
76654
|
-
if (shouldIndentNextCharacter) return `${indentStr}${
|
|
76655
|
+
const replacer = (match3) => {
|
|
76656
|
+
if (shouldIndentNextCharacter) return `${indentStr}${match3}`;
|
|
76655
76657
|
shouldIndentNextCharacter = true;
|
|
76656
|
-
return
|
|
76658
|
+
return match3;
|
|
76657
76659
|
};
|
|
76658
76660
|
this.intro = this.intro.replace(pattern, replacer);
|
|
76659
76661
|
let charIndex = 0;
|
|
@@ -77041,44 +77043,44 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
77041
77043
|
return this.original !== this.toString();
|
|
77042
77044
|
}
|
|
77043
77045
|
_replaceRegexp(searchValue, replacement) {
|
|
77044
|
-
function getReplacement(
|
|
77046
|
+
function getReplacement(match3, str) {
|
|
77045
77047
|
if (typeof replacement === "string") {
|
|
77046
77048
|
return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
|
|
77047
77049
|
if (i === "$") return "$";
|
|
77048
|
-
if (i === "&") return
|
|
77050
|
+
if (i === "&") return match3[0];
|
|
77049
77051
|
const num = +i;
|
|
77050
|
-
if (num <
|
|
77052
|
+
if (num < match3.length) return match3[+i];
|
|
77051
77053
|
return `$${i}`;
|
|
77052
77054
|
});
|
|
77053
77055
|
} else {
|
|
77054
|
-
return replacement(...
|
|
77056
|
+
return replacement(...match3, match3.index, str, match3.groups);
|
|
77055
77057
|
}
|
|
77056
77058
|
}
|
|
77057
77059
|
function matchAll(re, str) {
|
|
77058
|
-
let
|
|
77060
|
+
let match3;
|
|
77059
77061
|
const matches = [];
|
|
77060
|
-
while (
|
|
77061
|
-
matches.push(
|
|
77062
|
+
while (match3 = re.exec(str)) {
|
|
77063
|
+
matches.push(match3);
|
|
77062
77064
|
}
|
|
77063
77065
|
return matches;
|
|
77064
77066
|
}
|
|
77065
77067
|
if (searchValue.global) {
|
|
77066
77068
|
const matches = matchAll(searchValue, this.original);
|
|
77067
|
-
matches.forEach((
|
|
77068
|
-
if (
|
|
77069
|
+
matches.forEach((match3) => {
|
|
77070
|
+
if (match3.index != null)
|
|
77069
77071
|
this.overwrite(
|
|
77070
|
-
|
|
77071
|
-
|
|
77072
|
-
getReplacement(
|
|
77072
|
+
match3.index,
|
|
77073
|
+
match3.index + match3[0].length,
|
|
77074
|
+
getReplacement(match3, this.original)
|
|
77073
77075
|
);
|
|
77074
77076
|
});
|
|
77075
77077
|
} else {
|
|
77076
|
-
const
|
|
77077
|
-
if (
|
|
77078
|
+
const match3 = this.original.match(searchValue);
|
|
77079
|
+
if (match3 && match3.index != null)
|
|
77078
77080
|
this.overwrite(
|
|
77079
|
-
|
|
77080
|
-
|
|
77081
|
-
getReplacement(
|
|
77081
|
+
match3.index,
|
|
77082
|
+
match3.index + match3[0].length,
|
|
77083
|
+
getReplacement(match3, this.original)
|
|
77082
77084
|
);
|
|
77083
77085
|
}
|
|
77084
77086
|
return this;
|
|
@@ -77282,8 +77284,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
77282
77284
|
trailingNewline = source2.content.lastChar() === "\n";
|
|
77283
77285
|
});
|
|
77284
77286
|
if (this.intro) {
|
|
77285
|
-
this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (
|
|
77286
|
-
return index > 0 ? indentStr +
|
|
77287
|
+
this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (match3, index) => {
|
|
77288
|
+
return index > 0 ? indentStr + match3 : match3;
|
|
77287
77289
|
});
|
|
77288
77290
|
}
|
|
77289
77291
|
return this;
|
|
@@ -77564,8 +77566,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
77564
77566
|
exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
|
|
77565
77567
|
exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
|
|
77566
77568
|
exports2.removeBackslashes = (str) => {
|
|
77567
|
-
return str.replace(REGEX_REMOVE_BACKSLASH, (
|
|
77568
|
-
return
|
|
77569
|
+
return str.replace(REGEX_REMOVE_BACKSLASH, (match3) => {
|
|
77570
|
+
return match3 === "\\" ? "" : match3;
|
|
77569
77571
|
});
|
|
77570
77572
|
};
|
|
77571
77573
|
exports2.supportsLookbehinds = () => {
|
|
@@ -78182,10 +78184,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
78182
78184
|
push2({ type: "text", value: value2 });
|
|
78183
78185
|
continue;
|
|
78184
78186
|
}
|
|
78185
|
-
const
|
|
78187
|
+
const match3 = /^\\+/.exec(remaining());
|
|
78186
78188
|
let slashes = 0;
|
|
78187
|
-
if (
|
|
78188
|
-
slashes =
|
|
78189
|
+
if (match3 && match3[0].length > 2) {
|
|
78190
|
+
slashes = match3[0].length;
|
|
78189
78191
|
state.index += slashes;
|
|
78190
78192
|
if (slashes % 2 !== 0) {
|
|
78191
78193
|
value2 += "\\";
|
|
@@ -78473,10 +78475,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
78473
78475
|
if (value2 === "$" || value2 === "^") {
|
|
78474
78476
|
value2 = `\\${value2}`;
|
|
78475
78477
|
}
|
|
78476
|
-
const
|
|
78477
|
-
if (
|
|
78478
|
-
value2 +=
|
|
78479
|
-
state.index +=
|
|
78478
|
+
const match3 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
|
|
78479
|
+
if (match3) {
|
|
78480
|
+
value2 += match3[0];
|
|
78481
|
+
state.index += match3[0].length;
|
|
78480
78482
|
}
|
|
78481
78483
|
push2({ type: "text", value: value2 });
|
|
78482
78484
|
continue;
|
|
@@ -78687,11 +78689,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
78687
78689
|
case "**/.*":
|
|
78688
78690
|
return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
78689
78691
|
default: {
|
|
78690
|
-
const
|
|
78691
|
-
if (!
|
|
78692
|
-
const source3 = create(
|
|
78692
|
+
const match3 = /^(.*?)\.(\w+)$/.exec(str);
|
|
78693
|
+
if (!match3) return;
|
|
78694
|
+
const source3 = create(match3[1]);
|
|
78693
78695
|
if (!source3) return;
|
|
78694
|
-
return source3 + DOT_LITERAL +
|
|
78696
|
+
return source3 + DOT_LITERAL + match3[2];
|
|
78695
78697
|
}
|
|
78696
78698
|
}
|
|
78697
78699
|
};
|
|
@@ -78741,8 +78743,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
78741
78743
|
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
78742
78744
|
}
|
|
78743
78745
|
const matcher = (input, returnObject = false) => {
|
|
78744
|
-
const { isMatch, match:
|
|
78745
|
-
const result = { glob, state, regex, posix, input, output, match:
|
|
78746
|
+
const { isMatch, match: match3, output } = picomatch.test(input, regex, options, { glob, posix });
|
|
78747
|
+
const result = { glob, state, regex, posix, input, output, match: match3, isMatch };
|
|
78746
78748
|
if (typeof opts.onResult === "function") {
|
|
78747
78749
|
opts.onResult(result);
|
|
78748
78750
|
}
|
|
@@ -78776,20 +78778,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
78776
78778
|
}
|
|
78777
78779
|
const opts = options || {};
|
|
78778
78780
|
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
78779
|
-
let
|
|
78780
|
-
let output =
|
|
78781
|
-
if (
|
|
78781
|
+
let match3 = input === glob;
|
|
78782
|
+
let output = match3 && format ? format(input) : input;
|
|
78783
|
+
if (match3 === false) {
|
|
78782
78784
|
output = format ? format(input) : input;
|
|
78783
|
-
|
|
78785
|
+
match3 = output === glob;
|
|
78784
78786
|
}
|
|
78785
|
-
if (
|
|
78787
|
+
if (match3 === false || opts.capture === true) {
|
|
78786
78788
|
if (opts.matchBase === true || opts.basename === true) {
|
|
78787
|
-
|
|
78789
|
+
match3 = picomatch.matchBase(input, regex, options, posix);
|
|
78788
78790
|
} else {
|
|
78789
|
-
|
|
78791
|
+
match3 = regex.exec(output);
|
|
78790
78792
|
}
|
|
78791
78793
|
}
|
|
78792
|
-
return { isMatch: Boolean(
|
|
78794
|
+
return { isMatch: Boolean(match3), match: match3, output };
|
|
78793
78795
|
};
|
|
78794
78796
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
78795
78797
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
@@ -79290,8 +79292,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
79290
79292
|
exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
|
|
79291
79293
|
exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
|
|
79292
79294
|
exports2.removeBackslashes = (str) => {
|
|
79293
|
-
return str.replace(REGEX_REMOVE_BACKSLASH, (
|
|
79294
|
-
return
|
|
79295
|
+
return str.replace(REGEX_REMOVE_BACKSLASH, (match3) => {
|
|
79296
|
+
return match3 === "\\" ? "" : match3;
|
|
79295
79297
|
});
|
|
79296
79298
|
};
|
|
79297
79299
|
exports2.supportsLookbehinds = () => {
|
|
@@ -79908,10 +79910,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
79908
79910
|
push2({ type: "text", value: value2 });
|
|
79909
79911
|
continue;
|
|
79910
79912
|
}
|
|
79911
|
-
const
|
|
79913
|
+
const match3 = /^\\+/.exec(remaining());
|
|
79912
79914
|
let slashes = 0;
|
|
79913
|
-
if (
|
|
79914
|
-
slashes =
|
|
79915
|
+
if (match3 && match3[0].length > 2) {
|
|
79916
|
+
slashes = match3[0].length;
|
|
79915
79917
|
state.index += slashes;
|
|
79916
79918
|
if (slashes % 2 !== 0) {
|
|
79917
79919
|
value2 += "\\";
|
|
@@ -80199,10 +80201,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
80199
80201
|
if (value2 === "$" || value2 === "^") {
|
|
80200
80202
|
value2 = `\\${value2}`;
|
|
80201
80203
|
}
|
|
80202
|
-
const
|
|
80203
|
-
if (
|
|
80204
|
-
value2 +=
|
|
80205
|
-
state.index +=
|
|
80204
|
+
const match3 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
|
|
80205
|
+
if (match3) {
|
|
80206
|
+
value2 += match3[0];
|
|
80207
|
+
state.index += match3[0].length;
|
|
80206
80208
|
}
|
|
80207
80209
|
push2({ type: "text", value: value2 });
|
|
80208
80210
|
continue;
|
|
@@ -80413,11 +80415,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
80413
80415
|
case "**/.*":
|
|
80414
80416
|
return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
80415
80417
|
default: {
|
|
80416
|
-
const
|
|
80417
|
-
if (!
|
|
80418
|
-
const source3 = create(
|
|
80418
|
+
const match3 = /^(.*?)\.(\w+)$/.exec(str);
|
|
80419
|
+
if (!match3) return;
|
|
80420
|
+
const source3 = create(match3[1]);
|
|
80419
80421
|
if (!source3) return;
|
|
80420
|
-
return source3 + DOT_LITERAL +
|
|
80422
|
+
return source3 + DOT_LITERAL + match3[2];
|
|
80421
80423
|
}
|
|
80422
80424
|
}
|
|
80423
80425
|
};
|
|
@@ -80467,8 +80469,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
80467
80469
|
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
80468
80470
|
}
|
|
80469
80471
|
const matcher = (input, returnObject = false) => {
|
|
80470
|
-
const { isMatch, match:
|
|
80471
|
-
const result = { glob, state, regex, posix, input, output, match:
|
|
80472
|
+
const { isMatch, match: match3, output } = picomatch.test(input, regex, options, { glob, posix });
|
|
80473
|
+
const result = { glob, state, regex, posix, input, output, match: match3, isMatch };
|
|
80472
80474
|
if (typeof opts.onResult === "function") {
|
|
80473
80475
|
opts.onResult(result);
|
|
80474
80476
|
}
|
|
@@ -80502,20 +80504,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
80502
80504
|
}
|
|
80503
80505
|
const opts = options || {};
|
|
80504
80506
|
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
80505
|
-
let
|
|
80506
|
-
let output =
|
|
80507
|
-
if (
|
|
80507
|
+
let match3 = input === glob;
|
|
80508
|
+
let output = match3 && format ? format(input) : input;
|
|
80509
|
+
if (match3 === false) {
|
|
80508
80510
|
output = format ? format(input) : input;
|
|
80509
|
-
|
|
80511
|
+
match3 = output === glob;
|
|
80510
80512
|
}
|
|
80511
|
-
if (
|
|
80513
|
+
if (match3 === false || opts.capture === true) {
|
|
80512
80514
|
if (opts.matchBase === true || opts.basename === true) {
|
|
80513
|
-
|
|
80515
|
+
match3 = picomatch.matchBase(input, regex, options, posix);
|
|
80514
80516
|
} else {
|
|
80515
|
-
|
|
80517
|
+
match3 = regex.exec(output);
|
|
80516
80518
|
}
|
|
80517
80519
|
}
|
|
80518
|
-
return { isMatch: Boolean(
|
|
80520
|
+
return { isMatch: Boolean(match3), match: match3, output };
|
|
80519
80521
|
};
|
|
80520
80522
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
80521
80523
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
@@ -80674,10 +80676,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
80674
80676
|
if (typeof str !== "string" || str === "") {
|
|
80675
80677
|
return false;
|
|
80676
80678
|
}
|
|
80677
|
-
var
|
|
80678
|
-
while (
|
|
80679
|
-
if (
|
|
80680
|
-
str = str.slice(
|
|
80679
|
+
var match3;
|
|
80680
|
+
while (match3 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
|
|
80681
|
+
if (match3[2]) return true;
|
|
80682
|
+
str = str.slice(match3.index + match3[0].length);
|
|
80681
80683
|
}
|
|
80682
80684
|
return false;
|
|
80683
80685
|
};
|
|
@@ -84423,17 +84425,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
84423
84425
|
for (; ; ) {
|
|
84424
84426
|
skipWhiteSpace.lastIndex = start;
|
|
84425
84427
|
start += skipWhiteSpace.exec(this.input)[0].length;
|
|
84426
|
-
var
|
|
84427
|
-
if (!
|
|
84428
|
+
var match3 = literal2.exec(this.input.slice(start));
|
|
84429
|
+
if (!match3) {
|
|
84428
84430
|
return false;
|
|
84429
84431
|
}
|
|
84430
|
-
if ((
|
|
84431
|
-
skipWhiteSpace.lastIndex = start +
|
|
84432
|
+
if ((match3[1] || match3[2]) === "use strict") {
|
|
84433
|
+
skipWhiteSpace.lastIndex = start + match3[0].length;
|
|
84432
84434
|
var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;
|
|
84433
84435
|
var next = this.input.charAt(end);
|
|
84434
84436
|
return next === ";" || next === "}" || lineBreak.test(spaceAfter[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=");
|
|
84435
84437
|
}
|
|
84436
|
-
start +=
|
|
84438
|
+
start += match3[0].length;
|
|
84437
84439
|
skipWhiteSpace.lastIndex = start;
|
|
84438
84440
|
start += skipWhiteSpace.exec(this.input)[0].length;
|
|
84439
84441
|
if (this.input[start] === ";") {
|
|
@@ -89879,17 +89881,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
89879
89881
|
var streamChunksOfRawSource = (source2, onChunk, onSource, onName) => {
|
|
89880
89882
|
let line2 = 1;
|
|
89881
89883
|
const matches = splitIntoLines(source2);
|
|
89882
|
-
let
|
|
89883
|
-
for (
|
|
89884
|
-
onChunk(
|
|
89884
|
+
let match3;
|
|
89885
|
+
for (match3 of matches) {
|
|
89886
|
+
onChunk(match3, line2, 0, -1, -1, -1, -1);
|
|
89885
89887
|
line2++;
|
|
89886
89888
|
}
|
|
89887
|
-
return matches.length === 0 ||
|
|
89889
|
+
return matches.length === 0 || match3.endsWith("\n") ? {
|
|
89888
89890
|
generatedLine: matches.length + 1,
|
|
89889
89891
|
generatedColumn: 0
|
|
89890
89892
|
} : {
|
|
89891
89893
|
generatedLine: matches.length,
|
|
89892
|
-
generatedColumn:
|
|
89894
|
+
generatedColumn: match3.length
|
|
89893
89895
|
};
|
|
89894
89896
|
};
|
|
89895
89897
|
module2.exports = (source2, onChunk, onSource, onName, finalSource) => {
|
|
@@ -90323,19 +90325,19 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
90323
90325
|
let line2 = 1;
|
|
90324
90326
|
let column2 = 0;
|
|
90325
90327
|
if (matches !== null) {
|
|
90326
|
-
for (const
|
|
90327
|
-
const isEndOfLine =
|
|
90328
|
-
if (isEndOfLine &&
|
|
90329
|
-
if (!finalSource) onChunk(
|
|
90328
|
+
for (const match3 of matches) {
|
|
90329
|
+
const isEndOfLine = match3.endsWith("\n");
|
|
90330
|
+
if (isEndOfLine && match3.length === 1) {
|
|
90331
|
+
if (!finalSource) onChunk(match3, line2, column2, -1, -1, -1, -1);
|
|
90330
90332
|
} else {
|
|
90331
|
-
const chunk = finalSource ? void 0 :
|
|
90333
|
+
const chunk = finalSource ? void 0 : match3;
|
|
90332
90334
|
onChunk(chunk, line2, column2, 0, line2, column2, -1);
|
|
90333
90335
|
}
|
|
90334
90336
|
if (isEndOfLine) {
|
|
90335
90337
|
line2++;
|
|
90336
90338
|
column2 = 0;
|
|
90337
90339
|
} else {
|
|
90338
|
-
column2 +=
|
|
90340
|
+
column2 += match3.length;
|
|
90339
90341
|
}
|
|
90340
90342
|
}
|
|
90341
90343
|
}
|
|
@@ -90358,18 +90360,18 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
90358
90360
|
} else {
|
|
90359
90361
|
let line2 = 1;
|
|
90360
90362
|
const matches = splitIntoLines(this._value);
|
|
90361
|
-
let
|
|
90362
|
-
for (
|
|
90363
|
-
onChunk(finalSource ? void 0 :
|
|
90363
|
+
let match3;
|
|
90364
|
+
for (match3 of matches) {
|
|
90365
|
+
onChunk(finalSource ? void 0 : match3, line2, 0, 0, line2, 0, -1);
|
|
90364
90366
|
line2++;
|
|
90365
90367
|
}
|
|
90366
|
-
return matches.length === 0 ||
|
|
90368
|
+
return matches.length === 0 || match3.endsWith("\n") ? {
|
|
90367
90369
|
generatedLine: matches.length + 1,
|
|
90368
90370
|
generatedColumn: 0,
|
|
90369
90371
|
source: finalSource ? this._value : void 0
|
|
90370
90372
|
} : {
|
|
90371
90373
|
generatedLine: matches.length,
|
|
90372
|
-
generatedColumn:
|
|
90374
|
+
generatedColumn: match3.length,
|
|
90373
90375
|
source: finalSource ? this._value : void 0
|
|
90374
90376
|
};
|
|
90375
90377
|
}
|
|
@@ -92642,13 +92644,13 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
92642
92644
|
return input.startsWith("/");
|
|
92643
92645
|
}
|
|
92644
92646
|
function parseAbsoluteUrl(input) {
|
|
92645
|
-
const
|
|
92647
|
+
const match3 = urlRegex.exec(input);
|
|
92646
92648
|
return {
|
|
92647
|
-
scheme:
|
|
92648
|
-
user:
|
|
92649
|
-
host:
|
|
92650
|
-
port:
|
|
92651
|
-
path:
|
|
92649
|
+
scheme: match3[1],
|
|
92650
|
+
user: match3[2] || "",
|
|
92651
|
+
host: match3[3],
|
|
92652
|
+
port: match3[4] || "",
|
|
92653
|
+
path: match3[5] || "/",
|
|
92652
92654
|
relativePath: false
|
|
92653
92655
|
};
|
|
92654
92656
|
}
|
|
@@ -93964,10 +93966,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
93964
93966
|
const obj = {};
|
|
93965
93967
|
let lines = src.toString();
|
|
93966
93968
|
lines = lines.replace(/\r\n?/mg, "\n");
|
|
93967
|
-
let
|
|
93968
|
-
while ((
|
|
93969
|
-
const key2 =
|
|
93970
|
-
let value2 =
|
|
93969
|
+
let match3;
|
|
93970
|
+
while ((match3 = LINE.exec(lines)) != null) {
|
|
93971
|
+
const key2 = match3[1];
|
|
93972
|
+
let value2 = match3[2] || "";
|
|
93971
93973
|
value2 = value2.trim();
|
|
93972
93974
|
const maybeQuote = value2[0];
|
|
93973
93975
|
value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
|
|
@@ -95164,14 +95166,14 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
95164
95166
|
return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path2 ? `${path2}/` : path2}${projectId}`;
|
|
95165
95167
|
}
|
|
95166
95168
|
function dsnFromString2(str) {
|
|
95167
|
-
const
|
|
95168
|
-
if (!
|
|
95169
|
+
const match3 = DSN_REGEX.exec(str);
|
|
95170
|
+
if (!match3) {
|
|
95169
95171
|
consoleSandbox(() => {
|
|
95170
95172
|
console.error(`Invalid Sentry Dsn: ${str}`);
|
|
95171
95173
|
});
|
|
95172
95174
|
return void 0;
|
|
95173
95175
|
}
|
|
95174
|
-
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] =
|
|
95176
|
+
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match3.slice(1);
|
|
95175
95177
|
let path2 = "";
|
|
95176
95178
|
let projectId = lastPath;
|
|
95177
95179
|
const split = projectId.split("/");
|
|
@@ -99522,9 +99524,9 @@ Reason: ${reason}`
|
|
|
99522
99524
|
version = version.slice(1);
|
|
99523
99525
|
}
|
|
99524
99526
|
var regex = /^[\^~]?(\d+)(\.\d+)?(\.\d+)?(-.+)?/;
|
|
99525
|
-
var
|
|
99526
|
-
if (
|
|
99527
|
-
return parseInt(
|
|
99527
|
+
var match3 = version.match(regex);
|
|
99528
|
+
if (match3) {
|
|
99529
|
+
return parseInt(match3[1], 10);
|
|
99528
99530
|
}
|
|
99529
99531
|
var coerced = parseInt(version, 10);
|
|
99530
99532
|
if (!Number.isNaN(coerced)) {
|
|
@@ -100179,9 +100181,9 @@ Reason: ${reason}`
|
|
|
100179
100181
|
return _prepareBundleForDebugIdUpload.apply(this, arguments);
|
|
100180
100182
|
}
|
|
100181
100183
|
function determineDebugIdFromBundleSource(code) {
|
|
100182
|
-
var
|
|
100183
|
-
if (
|
|
100184
|
-
return
|
|
100184
|
+
var match3 = code.match(/sentry-dbid-([0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12})/);
|
|
100185
|
+
if (match3) {
|
|
100186
|
+
return match3[1];
|
|
100185
100187
|
} else {
|
|
100186
100188
|
return void 0;
|
|
100187
100189
|
}
|
|
@@ -101342,9 +101344,9 @@ Reason: ${reason}`
|
|
|
101342
101344
|
var ms = new MagicString__default["default"](code, {
|
|
101343
101345
|
filename: chunk.fileName
|
|
101344
101346
|
});
|
|
101345
|
-
var
|
|
101346
|
-
if (
|
|
101347
|
-
ms.appendLeft(
|
|
101347
|
+
var match3 = (_code$match = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match === void 0 ? void 0 : _code$match[0];
|
|
101348
|
+
if (match3) {
|
|
101349
|
+
ms.appendLeft(match3.length, codeToInject);
|
|
101348
101350
|
} else {
|
|
101349
101351
|
ms.prepend(codeToInject);
|
|
101350
101352
|
}
|
|
@@ -101374,9 +101376,9 @@ Reason: ${reason}`
|
|
|
101374
101376
|
var ms = new MagicString__default["default"](code, {
|
|
101375
101377
|
filename: chunk.fileName
|
|
101376
101378
|
});
|
|
101377
|
-
var
|
|
101378
|
-
if (
|
|
101379
|
-
ms.appendLeft(
|
|
101379
|
+
var match3 = (_code$match2 = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match2 === void 0 ? void 0 : _code$match2[0];
|
|
101380
|
+
if (match3) {
|
|
101381
|
+
ms.appendLeft(match3.length, injectionCode);
|
|
101380
101382
|
} else {
|
|
101381
101383
|
ms.prepend(injectionCode);
|
|
101382
101384
|
}
|
|
@@ -105997,11 +105999,11 @@ ${error.errors.map(formatZodIssue).join("\n")}`,
|
|
|
105997
105999
|
};
|
|
105998
106000
|
}
|
|
105999
106001
|
function dsnFromString(str) {
|
|
106000
|
-
const
|
|
106001
|
-
if (!
|
|
106002
|
+
const match3 = SENTRY_DSN_REGEX.exec(str);
|
|
106003
|
+
if (!match3) {
|
|
106002
106004
|
throw new Error("Invalid DSN");
|
|
106003
106005
|
}
|
|
106004
|
-
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] =
|
|
106006
|
+
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match3.slice(1);
|
|
106005
106007
|
let path = "";
|
|
106006
106008
|
let projectId = lastPath;
|
|
106007
106009
|
const split = projectId.split("/");
|
|
@@ -106117,7 +106119,8 @@ init_esm_shims();
|
|
|
106117
106119
|
|
|
106118
106120
|
// ../cli-astro-commands/src/components/DevCommand/DevCommand.tsx
|
|
106119
106121
|
init_esm_shims();
|
|
106120
|
-
var
|
|
106122
|
+
var import_react6 = __toESM(require_react(), 1);
|
|
106123
|
+
var import_variant4 = __toESM(require_lib(), 1);
|
|
106121
106124
|
|
|
106122
106125
|
// ../cli-astro-commands/src/components/DevCommand/DevScreenBorder.tsx
|
|
106123
106126
|
init_esm_shims();
|
|
@@ -106172,9 +106175,9 @@ function runAstroDev({
|
|
|
106172
106175
|
for (const line of lines) {
|
|
106173
106176
|
result.stdout?.emit(EVENT_LINE, line);
|
|
106174
106177
|
if (line.includes("http://")) {
|
|
106175
|
-
const
|
|
106176
|
-
if (
|
|
106177
|
-
const address = stripAnsi(
|
|
106178
|
+
const match3 = /(http:\/\/[^\s]+)/.exec(line);
|
|
106179
|
+
if (match3?.[1]) {
|
|
106180
|
+
const address = stripAnsi(match3[1]).trim();
|
|
106178
106181
|
result.stdout?.emit(EVENT_SERVER_ADDRESS, address);
|
|
106179
106182
|
}
|
|
106180
106183
|
}
|
|
@@ -106220,7 +106223,7 @@ function createAstroLogger(isPrefixed = true) {
|
|
|
106220
106223
|
|
|
106221
106224
|
// ../cli-astro-commands/src/components/DevCommand/DevCenterUpdater.tsx
|
|
106222
106225
|
init_esm_shims();
|
|
106223
|
-
var
|
|
106226
|
+
var import_react5 = __toESM(require_react(), 1);
|
|
106224
106227
|
import { isDeepStrictEqual } from "node:util";
|
|
106225
106228
|
var import_variant3 = __toESM(require_lib(), 1);
|
|
106226
106229
|
|
|
@@ -106730,7 +106733,7 @@ var siteComponentConfigSchema = external_exports.object({
|
|
|
106730
106733
|
id: external_exports.string().uuid().describe(
|
|
106731
106734
|
"The ID (GUID) is used to register the component in Wix Developers Center. The ID must be unique across all extensions in the app."
|
|
106732
106735
|
),
|
|
106733
|
-
type: external_exports.string().min(1)
|
|
106736
|
+
type: external_exports.string().min(1),
|
|
106734
106737
|
description: external_exports.string(),
|
|
106735
106738
|
installation: external_exports.unknown(),
|
|
106736
106739
|
resources: external_exports.object({
|
|
@@ -106743,14 +106746,10 @@ var siteComponentConfigSchema = external_exports.object({
|
|
|
106743
106746
|
presets: siteComponentPresetsSchema.optional(),
|
|
106744
106747
|
elements: siteComponentElementsSchema.optional()
|
|
106745
106748
|
}).passthrough()
|
|
106746
|
-
}).strict().transform((
|
|
106747
|
-
|
|
106748
|
-
|
|
106749
|
-
|
|
106750
|
-
};
|
|
106751
|
-
delete siteComponentConfig.type;
|
|
106752
|
-
return siteComponentConfig;
|
|
106753
|
-
});
|
|
106749
|
+
}).strict().transform(({ type, ...config }) => ({
|
|
106750
|
+
elementType: type,
|
|
106751
|
+
...config
|
|
106752
|
+
}));
|
|
106754
106753
|
var siteComponentPanelConfigSchema = external_exports.object({
|
|
106755
106754
|
...baseConfig,
|
|
106756
106755
|
id: external_exports.string().uuid().describe(
|
|
@@ -106789,25 +106788,6 @@ async function saveAppConfig(projectFolder, config) {
|
|
|
106789
106788
|
await writeJson(getAppConfigPath(projectFolder), newConfig);
|
|
106790
106789
|
}
|
|
106791
106790
|
|
|
106792
|
-
// ../cli-astro-commands/src/components/DevCommand/utils/isTunnelRequired.ts
|
|
106793
|
-
init_esm_shims();
|
|
106794
|
-
function isTunnelRequired(appManifest) {
|
|
106795
|
-
for (const extension of appManifest.components) {
|
|
106796
|
-
const knownAppManifest = parseKnownExtensionManifest(extension);
|
|
106797
|
-
if (knownAppManifest != null && knownAppManifest.compType === ComponentType.WEBHOOK) {
|
|
106798
|
-
return !URL.canParse(knownAppManifest.compData.webhook.callbackUrl);
|
|
106799
|
-
}
|
|
106800
|
-
}
|
|
106801
|
-
return false;
|
|
106802
|
-
}
|
|
106803
|
-
function parseKnownExtensionManifest(extensionManifest) {
|
|
106804
|
-
const appManifestResult = looseComponentSchema.safeParse(extensionManifest);
|
|
106805
|
-
if (appManifestResult.error) {
|
|
106806
|
-
return null;
|
|
106807
|
-
}
|
|
106808
|
-
return appManifestResult.data;
|
|
106809
|
-
}
|
|
106810
|
-
|
|
106811
106791
|
// ../cli-astro-commands/src/components/DevCommand/TunnelingConsent.tsx
|
|
106812
106792
|
init_esm_shims();
|
|
106813
106793
|
var import_react3 = __toESM(require_react(), 1);
|
|
@@ -106845,14 +106825,71 @@ var TunnelingConsent = ({ required, children }) => {
|
|
|
106845
106825
|
}), approved === false && /* @__PURE__ */ import_react3.default.createElement(Text, { skin: "error" }, "Operation aborted. Tunneling is necessary to run your application."));
|
|
106846
106826
|
};
|
|
106847
106827
|
|
|
106828
|
+
// ../cli-astro-commands/src/components/DevCommand/hooks/useFetchAppManifest.ts
|
|
106829
|
+
init_esm_shims();
|
|
106830
|
+
var import_react4 = __toESM(require_react(), 1);
|
|
106831
|
+
|
|
106832
|
+
// ../cli-astro-commands/src/components/DevCommand/utils/isTunnelRequired.ts
|
|
106833
|
+
init_esm_shims();
|
|
106834
|
+
function isTunnelRequired(appManifest) {
|
|
106835
|
+
for (const extension of appManifest.components) {
|
|
106836
|
+
const knownAppManifest = parseKnownExtensionManifest(extension);
|
|
106837
|
+
if (knownAppManifest != null && knownAppManifest.compType === ComponentType.WEBHOOK) {
|
|
106838
|
+
return !URL.canParse(knownAppManifest.compData.webhook.callbackUrl);
|
|
106839
|
+
}
|
|
106840
|
+
}
|
|
106841
|
+
return false;
|
|
106842
|
+
}
|
|
106843
|
+
function parseKnownExtensionManifest(extensionManifest) {
|
|
106844
|
+
const appManifestResult = looseComponentSchema.safeParse(extensionManifest);
|
|
106845
|
+
if (appManifestResult.error) {
|
|
106846
|
+
return null;
|
|
106847
|
+
}
|
|
106848
|
+
return appManifestResult.data;
|
|
106849
|
+
}
|
|
106850
|
+
|
|
106851
|
+
// ../cli-astro-commands/src/components/DevCommand/hooks/useFetchAppManifest.ts
|
|
106852
|
+
function useFetchAppManifest() {
|
|
106853
|
+
const http = useHttpClient({ type: "standalone" });
|
|
106854
|
+
return (0, import_react4.useCallback)(
|
|
106855
|
+
async (serverLocalUrl, devMetadata, baseUrl, tunnelUrl) => {
|
|
106856
|
+
const url = new URL("/_wix/app-manifest.json", serverLocalUrl);
|
|
106857
|
+
const { data: text } = await http.get(url.toString(), {
|
|
106858
|
+
responseType: "text",
|
|
106859
|
+
transitional: {
|
|
106860
|
+
silentJSONParsing: true,
|
|
106861
|
+
forcedJSONParsing: false,
|
|
106862
|
+
clarifyTimeoutError: false
|
|
106863
|
+
},
|
|
106864
|
+
disableWixHeaders: true
|
|
106865
|
+
});
|
|
106866
|
+
if (devMetadata != null) {
|
|
106867
|
+
const placeholders = /* @__PURE__ */ new Map();
|
|
106868
|
+
placeholders.set(devMetadata.staticsUrlPlaceholder, baseUrl);
|
|
106869
|
+
placeholders.set(devMetadata.serverUrlPlaceholder, tunnelUrl);
|
|
106870
|
+
return {
|
|
106871
|
+
manifest: parseLooseAppManifest(text, placeholders),
|
|
106872
|
+
isTunnelRequired: text.includes(devMetadata.serverUrlPlaceholder)
|
|
106873
|
+
};
|
|
106874
|
+
}
|
|
106875
|
+
const manifestV1 = parseLooseAppManifest(text);
|
|
106876
|
+
return {
|
|
106877
|
+
manifest: manifestV1,
|
|
106878
|
+
isTunnelRequired: isTunnelRequired(manifestV1)
|
|
106879
|
+
};
|
|
106880
|
+
},
|
|
106881
|
+
[http]
|
|
106882
|
+
);
|
|
106883
|
+
}
|
|
106884
|
+
|
|
106848
106885
|
// ../cli-astro-commands/src/components/DevCommand/DevCenterUpdater.tsx
|
|
106849
106886
|
var DevCenterUpdateResult = (0, import_variant3.variant)({
|
|
106850
106887
|
Changed: (0, import_variant3.fields)(),
|
|
106851
106888
|
Unchanged: {}
|
|
106852
106889
|
});
|
|
106853
|
-
var DevCenterUpdater = ({ serverLocalUrl, serverExposedUrl }) => {
|
|
106854
|
-
const [devArmTag, setDevArmTag] = (0,
|
|
106855
|
-
const [manifest, setManifest] = (0,
|
|
106890
|
+
var DevCenterUpdater = ({ serverLocalUrl, serverExposedUrl, devMetadata }) => {
|
|
106891
|
+
const [devArmTag, setDevArmTag] = (0, import_react5.useState)("");
|
|
106892
|
+
const [manifest, setManifest] = (0, import_react5.useState)(null);
|
|
106856
106893
|
const writeToDebugLog = useDebugLog();
|
|
106857
106894
|
const {
|
|
106858
106895
|
model: {
|
|
@@ -106860,22 +106897,26 @@ var DevCenterUpdater = ({ serverLocalUrl, serverExposedUrl }) => {
|
|
|
106860
106897
|
projectFolder
|
|
106861
106898
|
}
|
|
106862
106899
|
} = useProjectModel();
|
|
106863
|
-
const logger = (0,
|
|
106864
|
-
const http = useHttpClient({ type: "standalone" });
|
|
106900
|
+
const logger = (0, import_react5.useMemo)(() => createAstroLogger(), []);
|
|
106865
106901
|
const { updateManifest } = useUpdateManifest();
|
|
106866
106902
|
const arm = useARMClient();
|
|
106867
106903
|
const updateDeploymentTopology = useUpdateDeploymentTopology();
|
|
106868
106904
|
const openTunnel = useTunnel();
|
|
106869
|
-
const tunnelUrl = (0,
|
|
106870
|
-
const [tunnelRequired, setTunnelRequired] = (0,
|
|
106871
|
-
const
|
|
106872
|
-
|
|
106873
|
-
const
|
|
106874
|
-
const latestManifest =
|
|
106905
|
+
const tunnelUrl = (0, import_react5.useRef)();
|
|
106906
|
+
const [tunnelRequired, setTunnelRequired] = (0, import_react5.useState)(false);
|
|
106907
|
+
const fetchAppManifest = useFetchAppManifest();
|
|
106908
|
+
const updateDevCenter = (0, import_react5.useCallback)(async () => {
|
|
106909
|
+
const baseUrl = serverExposedUrl ?? serverLocalUrl;
|
|
106910
|
+
const { manifest: latestManifest, isTunnelRequired: isTunnelRequired2 } = await fetchAppManifest(
|
|
106911
|
+
serverLocalUrl,
|
|
106912
|
+
devMetadata,
|
|
106913
|
+
baseUrl,
|
|
106914
|
+
tunnelUrl.current ?? baseUrl
|
|
106915
|
+
);
|
|
106875
106916
|
if (isDeepStrictEqual(manifest, latestManifest)) {
|
|
106876
106917
|
return DevCenterUpdateResult.Unchanged();
|
|
106877
106918
|
}
|
|
106878
|
-
if (!serverExposedUrl && !tunnelUrl.current &&
|
|
106919
|
+
if (!serverExposedUrl && !tunnelUrl.current && isTunnelRequired2) {
|
|
106879
106920
|
const config = await readUserConfig();
|
|
106880
106921
|
if (!config.tunneling) {
|
|
106881
106922
|
setTunnelRequired(true);
|
|
@@ -106884,8 +106925,8 @@ var DevCenterUpdater = ({ serverLocalUrl, serverExposedUrl }) => {
|
|
|
106884
106925
|
const serverLocalPort = parseInt(new URL(serverLocalUrl).port, 10);
|
|
106885
106926
|
const tunnel = await openTunnel(serverLocalPort);
|
|
106886
106927
|
tunnelUrl.current = tunnel.url;
|
|
106928
|
+
return DevCenterUpdateResult.Unchanged();
|
|
106887
106929
|
}
|
|
106888
|
-
const baseUrl = serverExposedUrl ?? serverLocalUrl;
|
|
106889
106930
|
const appConfig = await readAppConfig(projectFolder);
|
|
106890
106931
|
let updatedDevArmTag = appConfig?.devArmTag;
|
|
106891
106932
|
if (!updatedDevArmTag) {
|
|
@@ -106918,7 +106959,7 @@ var DevCenterUpdater = ({ serverLocalUrl, serverExposedUrl }) => {
|
|
|
106918
106959
|
const armTagChanged = !!appConfig?.devArmTag && updatedDevArmTag !== appConfig.devArmTag;
|
|
106919
106960
|
return DevCenterUpdateResult.Changed({ armTagChanged });
|
|
106920
106961
|
}, [
|
|
106921
|
-
|
|
106962
|
+
fetchAppManifest,
|
|
106922
106963
|
updateManifest,
|
|
106923
106964
|
serverLocalUrl,
|
|
106924
106965
|
serverExposedUrl,
|
|
@@ -106927,10 +106968,11 @@ var DevCenterUpdater = ({ serverLocalUrl, serverExposedUrl }) => {
|
|
|
106927
106968
|
projectFolder,
|
|
106928
106969
|
appId,
|
|
106929
106970
|
updateDeploymentTopology,
|
|
106930
|
-
openTunnel
|
|
106971
|
+
openTunnel,
|
|
106972
|
+
devMetadata
|
|
106931
106973
|
]);
|
|
106932
|
-
const [timer, setTimer] = (0,
|
|
106933
|
-
(0,
|
|
106974
|
+
const [timer, setTimer] = (0, import_react5.useState)(Date.now());
|
|
106975
|
+
(0, import_react5.useEffect)(() => {
|
|
106934
106976
|
let disposed = false;
|
|
106935
106977
|
void updateDevCenter().then((result) => {
|
|
106936
106978
|
if ((0, import_variant3.isType)(result, "Changed")) {
|
|
@@ -106951,30 +106993,51 @@ var DevCenterUpdater = ({ serverLocalUrl, serverExposedUrl }) => {
|
|
|
106951
106993
|
disposed = true;
|
|
106952
106994
|
};
|
|
106953
106995
|
}, [timer]);
|
|
106954
|
-
return /* @__PURE__ */
|
|
106996
|
+
return /* @__PURE__ */ import_react5.default.createElement(Box_default, { rowGap: 1, marginY: 1, flexDirection: "column" }, /* @__PURE__ */ import_react5.default.createElement(TunnelingConsent, { required: tunnelRequired }, /* @__PURE__ */ import_react5.default.createElement(Text, null, "Open the preview on:"), /* @__PURE__ */ import_react5.default.createElement(Box_default, { paddingLeft: 2, flexDirection: "column" }, /* @__PURE__ */ import_react5.default.createElement(PlatformLink, { url: serverLocalUrl, label: "Site" }), devArmTag ? /* @__PURE__ */ import_react5.default.createElement(
|
|
106955
106997
|
PlatformLink,
|
|
106956
106998
|
{
|
|
106957
106999
|
url: `https://manage.wix.com/dashboard/${siteId}?apps-override=${devArmTag}`,
|
|
106958
107000
|
label: "Dashboard"
|
|
106959
107001
|
}
|
|
106960
|
-
) : /* @__PURE__ */
|
|
107002
|
+
) : /* @__PURE__ */ import_react5.default.createElement(Spinner, { text: "Preparing your dashboard..." }))));
|
|
106961
107003
|
};
|
|
106962
107004
|
|
|
107005
|
+
// ../cli-astro-commands/src/components/DevCommand/hooks/useFetchDevMetadata.ts
|
|
107006
|
+
init_esm_shims();
|
|
107007
|
+
function useFetchDevMetadata() {
|
|
107008
|
+
const http = useHttpClient({ type: "standalone" });
|
|
107009
|
+
return useAsyncCallback(async (_, serverLocalUrl) => {
|
|
107010
|
+
const url = new URL("/_wix/dev-metadata.json", serverLocalUrl);
|
|
107011
|
+
try {
|
|
107012
|
+
const { data } = await http.get(url.toString());
|
|
107013
|
+
return {
|
|
107014
|
+
devMetadata: devMetadataSchema.parse(data),
|
|
107015
|
+
serverLocalUrl
|
|
107016
|
+
};
|
|
107017
|
+
} catch {
|
|
107018
|
+
return {
|
|
107019
|
+
devMetadata: null,
|
|
107020
|
+
serverLocalUrl
|
|
107021
|
+
};
|
|
107022
|
+
}
|
|
107023
|
+
});
|
|
107024
|
+
}
|
|
107025
|
+
|
|
106963
107026
|
// ../cli-astro-commands/src/components/DevCommand/DevCommand.tsx
|
|
106964
107027
|
var DevCommand = ({
|
|
106965
107028
|
port,
|
|
106966
107029
|
allowedHosts,
|
|
106967
107030
|
serverExposedUrl
|
|
106968
107031
|
}) => {
|
|
106969
|
-
const [serverLocalUrl, setServerLocalUrl] = (0, import_react5.useState)("");
|
|
106970
107032
|
const {
|
|
106971
107033
|
model: {
|
|
106972
107034
|
config: { siteId },
|
|
106973
107035
|
projectFolder
|
|
106974
107036
|
}
|
|
106975
107037
|
} = useProjectModel();
|
|
106976
|
-
const logger = (0,
|
|
106977
|
-
const astroProcess = (0,
|
|
107038
|
+
const logger = (0, import_react6.useMemo)(() => createAstroLogger(false), []);
|
|
107039
|
+
const astroProcess = (0, import_react6.useRef)();
|
|
107040
|
+
const fetchDevMetadataAction = useFetchDevMetadata();
|
|
106978
107041
|
useAsync(async () => {
|
|
106979
107042
|
const repoType = await getRepoType(projectFolder);
|
|
106980
107043
|
const packageManager = await createPackageManager(repoType);
|
|
@@ -106986,12 +107049,12 @@ var DevCommand = ({
|
|
|
106986
107049
|
});
|
|
106987
107050
|
astroProcess.current = astro;
|
|
106988
107051
|
astro.stdout?.once(EVENT_SERVER_ADDRESS, (address) => {
|
|
106989
|
-
|
|
107052
|
+
void fetchDevMetadataAction.execute(address);
|
|
106990
107053
|
});
|
|
106991
107054
|
astro.stdout?.on(EVENT_LINE, (line) => logger.log(line));
|
|
106992
107055
|
astro.stderr?.on(EVENT_LINE, (line) => logger.log(line));
|
|
106993
107056
|
}, []);
|
|
106994
|
-
(0,
|
|
107057
|
+
(0, import_react6.useEffect)(() => {
|
|
106995
107058
|
return () => {
|
|
106996
107059
|
if (astroProcess.current?.pid) {
|
|
106997
107060
|
try {
|
|
@@ -107001,13 +107064,19 @@ var DevCommand = ({
|
|
|
107001
107064
|
}
|
|
107002
107065
|
};
|
|
107003
107066
|
}, []);
|
|
107004
|
-
return /* @__PURE__ */
|
|
107005
|
-
|
|
107006
|
-
|
|
107007
|
-
|
|
107008
|
-
|
|
107009
|
-
|
|
107010
|
-
|
|
107067
|
+
return /* @__PURE__ */ import_react6.default.createElement(SiteAuthProvider, { siteId }, (0, import_variant4.match)(fetchDevMetadataAction.status, {
|
|
107068
|
+
NotRequested: () => /* @__PURE__ */ import_react6.default.createElement(Spinner, { text: "Starting dev environment..." }),
|
|
107069
|
+
Error: () => null,
|
|
107070
|
+
Loading: () => /* @__PURE__ */ import_react6.default.createElement(Spinner, { text: "Checking dev environment settings..." }),
|
|
107071
|
+
Success: ({ result: { devMetadata, serverLocalUrl } }) => /* @__PURE__ */ import_react6.default.createElement(DevScreenBorder, null, /* @__PURE__ */ import_react6.default.createElement(Text, null, "Development environment ready"), /* @__PURE__ */ import_react6.default.createElement(
|
|
107072
|
+
DevCenterUpdater,
|
|
107073
|
+
{
|
|
107074
|
+
devMetadata,
|
|
107075
|
+
serverLocalUrl,
|
|
107076
|
+
serverExposedUrl
|
|
107077
|
+
}
|
|
107078
|
+
))
|
|
107079
|
+
}));
|
|
107011
107080
|
};
|
|
107012
107081
|
export {
|
|
107013
107082
|
DevCommand
|
|
@@ -107066,4 +107135,4 @@ export {
|
|
|
107066
107135
|
*)
|
|
107067
107136
|
*)
|
|
107068
107137
|
*/
|
|
107069
|
-
//# sourceMappingURL=DevCommand-
|
|
107138
|
+
//# sourceMappingURL=DevCommand-2AR5AGZK.js.map
|