@wix/cli 1.1.91 → 1.1.92
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-QHZVRDYJ.js → DevCommand-DEUDOCGK.js} +13 -13
- package/build/{DevCommand-5MI3LGKL.js → DevCommand-PWVR7KPG.js} +23 -22
- package/build/{DevCommand-5MI3LGKL.js.map → DevCommand-PWVR7KPG.js.map} +1 -1
- package/build/DevCommand-V4NLJPXS.js +438 -0
- package/build/DevCommand-V4NLJPXS.js.map +1 -0
- package/build/{EnvPullCommand-S44DEJJW.js → EnvPullCommand-IYWK5KBC.js} +10 -9
- package/build/{EnvPullCommand-S44DEJJW.js.map → EnvPullCommand-IYWK5KBC.js.map} +1 -1
- package/build/{EnvSetCommand-ZNALSH6J.js → EnvSetCommand-SSNEWXCX.js} +10 -9
- package/build/{EnvSetCommand-ZNALSH6J.js.map → EnvSetCommand-SSNEWXCX.js.map} +1 -1
- package/build/GenerateCommand-PW2OA55C.js +9260 -0
- package/build/GenerateCommand-PW2OA55C.js.map +1 -0
- package/build/{InstallCommand-FSO7COMX.js → InstallCommand-EUIXWKR2.js} +17 -17
- package/build/{LoginCommand-PWZDKRYA.js → LoginCommand-N7VGSH5Y.js} +9 -9
- package/build/{LogoutCommand-4QR73A4S.js → LogoutCommand-NXTHVFG5.js} +6 -6
- package/build/{PreviewCommand-VDUXYCLU.js → PreviewCommand-BZTD3F7Z.js} +12 -11
- package/build/{PreviewCommand-WBCLHU2E.js → PreviewCommand-JDV4BZ32.js} +17 -17
- package/build/{PreviewCommand-63RZJ7FR.js → PreviewCommand-LPWUUZQG.js} +16 -16
- package/build/{PublishCommand-MMWHHPQR.js → PublishCommand-WF2ZNXFD.js} +16 -16
- package/build/ReleaseCommand-KYSWC62Q.js +160 -0
- package/build/ReleaseCommand-KYSWC62Q.js.map +1 -0
- package/build/{UninstallCommand-5YSPG3YF.js → UninstallCommand-BABBSOQX.js} +17 -17
- package/build/{WhoamiCommand-MMPSNCAC.js → WhoamiCommand-JVMX7IEJ.js} +2 -2
- package/build/{chunk-UBEDMR6E.js → chunk-3BDYAFJY.js} +2 -2
- package/build/{chunk-VYJY4BVK.js → chunk-3PAHQ4M3.js} +3 -3
- package/build/{chunk-JZYNKY5S.js → chunk-3PSJY5IQ.js} +8 -13
- package/build/chunk-3PSJY5IQ.js.map +1 -0
- package/build/{chunk-NMNBQXLI.js → chunk-45WBL5VF.js} +4 -4
- package/build/{chunk-YDMWIADQ.js → chunk-4B4DIFAD.js} +6 -6
- package/build/{chunk-K4WA6TGX.js → chunk-4O4G7HN2.js} +5 -4
- package/build/chunk-4O4G7HN2.js.map +1 -0
- package/build/chunk-5L3ZCEVU.js +831 -0
- package/build/chunk-5L3ZCEVU.js.map +1 -0
- package/build/{chunk-PP6UPXMD.js → chunk-6MH74EYT.js} +3 -3
- package/build/{chunk-EIP3LX47.js → chunk-6PQJVCVI.js} +2 -2
- package/build/{chunk-3JPPXRJN.js → chunk-6ZIRLJMJ.js} +3 -3
- package/build/{chunk-EK2SY3GO.js → chunk-AA5HURS5.js} +2 -2
- package/build/{chunk-WD6CJCOU.js → chunk-CMCIM2FR.js} +2 -2
- package/build/{chunk-FF6GLWGB.js → chunk-CXFPYQVY.js} +4 -4
- package/build/{chunk-CGDYTPAX.js → chunk-DUYQZPRH.js} +2 -2
- package/build/{chunk-T5W2UQPN.js → chunk-DXCSR2HI.js} +4 -4
- package/build/{chunk-ZX4MDEB5.js → chunk-EJEDZZSK.js} +7 -1
- package/build/{chunk-ZX4MDEB5.js.map → chunk-EJEDZZSK.js.map} +1 -1
- package/build/chunk-F6AKDZEI.js +432 -0
- package/build/chunk-F6AKDZEI.js.map +1 -0
- package/build/{chunk-E5UR44WA.js → chunk-GIEJ7SOR.js} +2 -2
- package/build/{chunk-5PYHIT42.js → chunk-GXTU3764.js} +2 -2
- package/build/{chunk-3FZAADQZ.js → chunk-I3MNONAI.js} +2 -2
- package/build/{chunk-E3CANK7S.js → chunk-I4LXL264.js} +2 -2
- package/build/{chunk-KG4WP7FX.js → chunk-ISBULSWD.js} +6 -6
- package/build/{chunk-NHJIXRUI.js → chunk-JHYR5NET.js} +6 -6
- package/build/{chunk-P3NZ2754.js → chunk-JSW5O26R.js} +10 -46
- package/build/chunk-JSW5O26R.js.map +1 -0
- package/build/{chunk-ITRA36T5.js → chunk-KEX4DNHZ.js} +2 -2
- package/build/{chunk-3TTGIG4O.js → chunk-M2VJGFDS.js} +2 -2
- package/build/{chunk-7SMAKCCK.js → chunk-MOBNZ5R6.js} +9 -9
- package/build/{chunk-267AMUWF.js → chunk-NVW5X3UB.js} +2 -2
- package/build/chunk-P7ANNBCZ.js +24 -0
- package/build/chunk-P7ANNBCZ.js.map +1 -0
- package/build/{chunk-BOGU34IM.js → chunk-PKZ6J2PV.js} +2 -2
- package/build/{chunk-PH4SUDIN.js → chunk-Q7E6CZ3C.js} +8 -8
- package/build/{chunk-ZI5H23IX.js → chunk-RIDZNJ65.js} +4 -4
- package/build/{chunk-XFFBI6U3.js → chunk-RJG6WEKO.js} +2 -2
- package/build/{chunk-WHWIF3DO.js → chunk-RYKJWCW2.js} +2 -2
- package/build/{chunk-2JBKA7NS.js → chunk-VWHAW4FC.js} +5 -5
- package/build/{chunk-QANV2BNY.js → chunk-W3FB2GVG.js} +135 -781
- package/build/chunk-W3FB2GVG.js.map +1 -0
- package/build/{DevCommand-WNMNSSN4.js → chunk-W7CODLJZ.js} +256 -668
- package/build/chunk-W7CODLJZ.js.map +1 -0
- package/build/{chunk-FNJNKOMZ.js → chunk-X24UQ77D.js} +8 -427
- package/build/chunk-X24UQ77D.js.map +1 -0
- package/build/{chunk-ZGTDGCPI.js → chunk-XLGJQZZA.js} +2 -2
- package/build/{chunk-DF6KL3WF.js → chunk-Y3ZAEZF4.js} +3 -3
- package/build/{ReleaseCommand-PJ4EYH5O.js → chunk-YFBUO3EP.js} +10 -142
- package/build/chunk-YFBUO3EP.js.map +1 -0
- package/build/{chunk-3F7WAIMW.js → chunk-YVQDNTNO.js} +618 -133
- package/build/chunk-YVQDNTNO.js.map +1 -0
- package/build/{chunk-VJBYOADN.js → chunk-ZCKZMMPY.js} +2 -2
- package/build/{dev-HLK6X555.js → dev-T5EAJRHG.js} +27 -26
- package/build/{dev-HLK6X555.js.map → dev-T5EAJRHG.js.map} +1 -1
- package/build/index.js +22 -22
- package/build/{install-TGGF47D3.js → install-EG5K5ISY.js} +15 -15
- package/build/{preview-LL7QLO4Z.js → preview-HGI3D6BP.js} +14 -13
- package/build/{preview-LL7QLO4Z.js.map → preview-HGI3D6BP.js.map} +1 -1
- package/build/{publish-USSTCQED.js → publish-GAJZYSXP.js} +23 -23
- package/build/{render-command-5ST6NJ7L.js → render-command-7VCI6YSZ.js} +10 -10
- package/build/{render-command-6V3T7WJ4.js → render-command-AJ4JXBZD.js} +10 -10
- package/build/{render-command-J6PG35XP.js → render-command-I2UZ4C56.js} +12 -12
- package/build/{render-command-ONEH7L45.js → render-command-SFFANX7U.js} +12 -12
- package/build/{render-command-GQX7Z575.js → render-command-UUPZCQR5.js} +8 -8
- package/build/{run-command-LOM7S2VN.js → run-command-YOFPOYKR.js} +6 -6
- package/build/{src-AKTC65RR.js → src-36YXA45Z.js} +6 -6
- package/build/{src-DQDO7JJM.js → src-FQXVNQBP.js} +13 -13
- package/build/{src-S7BEPJAC.js → src-G4VTAB7N.js} +5 -5
- package/build/{src-UMNJY6SI.js → src-LGPI7BEK.js} +33 -22
- package/build/src-LGPI7BEK.js.map +1 -0
- package/build/{src-OLQ56DHH.js → src-TCOQJWS6.js} +3 -3
- package/build/{src-TWILNX3D.js → src-TNYBYQC2.js} +16 -16
- package/build/{src-EIIRLLLJ.js → src-WOCAZXWW.js} +3 -3
- package/build/{sync-types-EJ6LAFZB.js → sync-types-IQMRAUS5.js} +11 -11
- package/build/{uninstall-APR3H7UF.js → uninstall-L6EBLGL3.js} +15 -15
- package/package.json +4 -3
- package/templates/astro/dashboard-menu-plugin/files/extension.json.ejs +4 -0
- package/templates/astro/dashboard-modal/dependencies.json +12 -0
- package/templates/astro/dashboard-modal/files/extension.json.ejs +4 -0
- package/templates/astro/dashboard-modal/files/modal.tsx.ejs +46 -0
- package/templates/astro/dashboard-page/dependencies.json +11 -0
- package/templates/astro/dashboard-page/files/extension.json.ejs +4 -0
- package/templates/astro/dashboard-page/files/page.tsx.ejs +28 -0
- package/templates/astro/dashboard-plugin/dependencies.json +11 -0
- package/templates/astro/dashboard-plugin/files/extensions.json.ejs +4 -0
- package/templates/astro/dashboard-plugin/files/widget.tsx.ejs +43 -0
- package/templates/astro/event/dependencies.json +5 -0
- package/templates/astro/event/files/event.ts.ejs +19 -0
- package/templates/astro/event/files/extension.json.ejs +4 -0
- package/templates/astro/service-plugin/ecom-additional-fees/dependencies.json +5 -0
- package/templates/astro/service-plugin/ecom-additional-fees/files/extension.json.ejs +4 -0
- package/templates/astro/service-plugin/ecom-additional-fees/files/plugin.ts.ejs +12 -0
- package/templates/astro/service-plugin/ecom-discounts-trigger/dependencies.json +5 -0
- package/templates/astro/service-plugin/ecom-discounts-trigger/files/extension.json.ejs +4 -0
- package/templates/astro/service-plugin/ecom-discounts-trigger/files/plugin.ts.ejs +17 -0
- package/templates/astro/service-plugin/ecom-payment-settings/dependencies.json +5 -0
- package/templates/astro/service-plugin/ecom-payment-settings/files/extension.json.ejs +4 -0
- package/templates/astro/service-plugin/ecom-payment-settings/files/plugin.ts.ejs +12 -0
- package/templates/astro/service-plugin/ecom-shipping-rates/dependencies.json +5 -0
- package/templates/astro/service-plugin/ecom-shipping-rates/files/extension.json.ejs +4 -0
- package/templates/astro/service-plugin/ecom-shipping-rates/files/plugin.ts.ejs +12 -0
- package/templates/astro/service-plugin/ecom-validations/dependencies.json +5 -0
- package/templates/astro/service-plugin/ecom-validations/files/extension.json.ejs +4 -0
- package/templates/astro/service-plugin/ecom-validations/files/plugin.ts.ejs +12 -0
- package/templates/astro/service-plugin/gift-cards-provider/dependencies.json +5 -0
- package/templates/astro/service-plugin/gift-cards-provider/files/extension.json.ejs +4 -0
- package/templates/astro/service-plugin/gift-cards-provider/files/plugin.ts.ejs +26 -0
- package/build/DevCommand-WNMNSSN4.js.map +0 -1
- package/build/ReleaseCommand-PJ4EYH5O.js.map +0 -1
- package/build/chunk-3F7WAIMW.js.map +0 -1
- package/build/chunk-FNJNKOMZ.js.map +0 -1
- package/build/chunk-JZYNKY5S.js.map +0 -1
- package/build/chunk-K4WA6TGX.js.map +0 -1
- package/build/chunk-P3NZ2754.js.map +0 -1
- package/build/chunk-QANV2BNY.js.map +0 -1
- package/build/chunk-YOQ3HNUG.js +0 -128
- package/build/chunk-YOQ3HNUG.js.map +0 -1
- package/build/src-UMNJY6SI.js.map +0 -1
- /package/build/{DevCommand-QHZVRDYJ.js.map → DevCommand-DEUDOCGK.js.map} +0 -0
- /package/build/{InstallCommand-FSO7COMX.js.map → InstallCommand-EUIXWKR2.js.map} +0 -0
- /package/build/{LoginCommand-PWZDKRYA.js.map → LoginCommand-N7VGSH5Y.js.map} +0 -0
- /package/build/{LogoutCommand-4QR73A4S.js.map → LogoutCommand-NXTHVFG5.js.map} +0 -0
- /package/build/{PreviewCommand-VDUXYCLU.js.map → PreviewCommand-BZTD3F7Z.js.map} +0 -0
- /package/build/{PreviewCommand-WBCLHU2E.js.map → PreviewCommand-JDV4BZ32.js.map} +0 -0
- /package/build/{PreviewCommand-63RZJ7FR.js.map → PreviewCommand-LPWUUZQG.js.map} +0 -0
- /package/build/{PublishCommand-MMWHHPQR.js.map → PublishCommand-WF2ZNXFD.js.map} +0 -0
- /package/build/{UninstallCommand-5YSPG3YF.js.map → UninstallCommand-BABBSOQX.js.map} +0 -0
- /package/build/{WhoamiCommand-MMPSNCAC.js.map → WhoamiCommand-JVMX7IEJ.js.map} +0 -0
- /package/build/{chunk-UBEDMR6E.js.map → chunk-3BDYAFJY.js.map} +0 -0
- /package/build/{chunk-VYJY4BVK.js.map → chunk-3PAHQ4M3.js.map} +0 -0
- /package/build/{chunk-NMNBQXLI.js.map → chunk-45WBL5VF.js.map} +0 -0
- /package/build/{chunk-YDMWIADQ.js.map → chunk-4B4DIFAD.js.map} +0 -0
- /package/build/{chunk-PP6UPXMD.js.map → chunk-6MH74EYT.js.map} +0 -0
- /package/build/{chunk-EIP3LX47.js.map → chunk-6PQJVCVI.js.map} +0 -0
- /package/build/{chunk-3JPPXRJN.js.map → chunk-6ZIRLJMJ.js.map} +0 -0
- /package/build/{chunk-EK2SY3GO.js.map → chunk-AA5HURS5.js.map} +0 -0
- /package/build/{chunk-WD6CJCOU.js.map → chunk-CMCIM2FR.js.map} +0 -0
- /package/build/{chunk-FF6GLWGB.js.map → chunk-CXFPYQVY.js.map} +0 -0
- /package/build/{chunk-CGDYTPAX.js.map → chunk-DUYQZPRH.js.map} +0 -0
- /package/build/{chunk-T5W2UQPN.js.map → chunk-DXCSR2HI.js.map} +0 -0
- /package/build/{chunk-E5UR44WA.js.map → chunk-GIEJ7SOR.js.map} +0 -0
- /package/build/{chunk-5PYHIT42.js.map → chunk-GXTU3764.js.map} +0 -0
- /package/build/{chunk-3FZAADQZ.js.map → chunk-I3MNONAI.js.map} +0 -0
- /package/build/{chunk-E3CANK7S.js.map → chunk-I4LXL264.js.map} +0 -0
- /package/build/{chunk-KG4WP7FX.js.map → chunk-ISBULSWD.js.map} +0 -0
- /package/build/{chunk-NHJIXRUI.js.map → chunk-JHYR5NET.js.map} +0 -0
- /package/build/{chunk-ITRA36T5.js.map → chunk-KEX4DNHZ.js.map} +0 -0
- /package/build/{chunk-3TTGIG4O.js.map → chunk-M2VJGFDS.js.map} +0 -0
- /package/build/{chunk-7SMAKCCK.js.map → chunk-MOBNZ5R6.js.map} +0 -0
- /package/build/{chunk-267AMUWF.js.map → chunk-NVW5X3UB.js.map} +0 -0
- /package/build/{chunk-BOGU34IM.js.map → chunk-PKZ6J2PV.js.map} +0 -0
- /package/build/{chunk-PH4SUDIN.js.map → chunk-Q7E6CZ3C.js.map} +0 -0
- /package/build/{chunk-ZI5H23IX.js.map → chunk-RIDZNJ65.js.map} +0 -0
- /package/build/{chunk-XFFBI6U3.js.map → chunk-RJG6WEKO.js.map} +0 -0
- /package/build/{chunk-WHWIF3DO.js.map → chunk-RYKJWCW2.js.map} +0 -0
- /package/build/{chunk-2JBKA7NS.js.map → chunk-VWHAW4FC.js.map} +0 -0
- /package/build/{chunk-ZGTDGCPI.js.map → chunk-XLGJQZZA.js.map} +0 -0
- /package/build/{chunk-DF6KL3WF.js.map → chunk-Y3ZAEZF4.js.map} +0 -0
- /package/build/{chunk-VJBYOADN.js.map → chunk-ZCKZMMPY.js.map} +0 -0
- /package/build/{install-TGGF47D3.js.map → install-EG5K5ISY.js.map} +0 -0
- /package/build/{publish-USSTCQED.js.map → publish-GAJZYSXP.js.map} +0 -0
- /package/build/{render-command-5ST6NJ7L.js.map → render-command-7VCI6YSZ.js.map} +0 -0
- /package/build/{render-command-6V3T7WJ4.js.map → render-command-AJ4JXBZD.js.map} +0 -0
- /package/build/{render-command-J6PG35XP.js.map → render-command-I2UZ4C56.js.map} +0 -0
- /package/build/{render-command-ONEH7L45.js.map → render-command-SFFANX7U.js.map} +0 -0
- /package/build/{render-command-GQX7Z575.js.map → render-command-UUPZCQR5.js.map} +0 -0
- /package/build/{run-command-LOM7S2VN.js.map → run-command-YOFPOYKR.js.map} +0 -0
- /package/build/{src-AKTC65RR.js.map → src-36YXA45Z.js.map} +0 -0
- /package/build/{src-DQDO7JJM.js.map → src-FQXVNQBP.js.map} +0 -0
- /package/build/{src-S7BEPJAC.js.map → src-G4VTAB7N.js.map} +0 -0
- /package/build/{src-EIIRLLLJ.js.map → src-TCOQJWS6.js.map} +0 -0
- /package/build/{src-TWILNX3D.js.map → src-TNYBYQC2.js.map} +0 -0
- /package/build/{src-OLQ56DHH.js.map → src-WOCAZXWW.js.map} +0 -0
- /package/build/{sync-types-EJ6LAFZB.js.map → sync-types-IQMRAUS5.js.map} +0 -0
- /package/build/{uninstall-APR3H7UF.js.map → uninstall-L6EBLGL3.js.map} +0 -0
|
@@ -1,70 +1,11 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
useTunnel
|
|
5
|
-
} from "./chunk-JZYNKY5S.js";
|
|
6
3
|
import {
|
|
7
4
|
ComponentType,
|
|
8
5
|
EmbedCategory,
|
|
9
6
|
EmbeddedScriptPlacement,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
looseAppManifestSchema,
|
|
13
|
-
looseComponentSchema,
|
|
14
|
-
useARMClient,
|
|
15
|
-
useUpdateDeploymentTopology,
|
|
16
|
-
useUpdateManifest
|
|
17
|
-
} from "./chunk-QANV2BNY.js";
|
|
18
|
-
import {
|
|
19
|
-
createPackageManager,
|
|
20
|
-
getRepoType
|
|
21
|
-
} from "./chunk-WD6CJCOU.js";
|
|
22
|
-
import {
|
|
23
|
-
execa
|
|
24
|
-
} from "./chunk-3OG3PDAA.js";
|
|
25
|
-
import "./chunk-OJHDGJWP.js";
|
|
26
|
-
import {
|
|
27
|
-
useHttpClient
|
|
28
|
-
} from "./chunk-CGDYTPAX.js";
|
|
29
|
-
import {
|
|
30
|
-
useProjectModel
|
|
31
|
-
} from "./chunk-YOQ3HNUG.js";
|
|
32
|
-
import {
|
|
33
|
-
SiteAuthProvider
|
|
34
|
-
} from "./chunk-2JBKA7NS.js";
|
|
35
|
-
import "./chunk-ZI5H23IX.js";
|
|
36
|
-
import "./chunk-NPVP6ZBL.js";
|
|
37
|
-
import "./chunk-3FZAADQZ.js";
|
|
38
|
-
import "./chunk-GPEPI5XF.js";
|
|
39
|
-
import {
|
|
40
|
-
Box_default,
|
|
41
|
-
ConfirmInput,
|
|
42
|
-
Spinner,
|
|
43
|
-
Text,
|
|
44
|
-
createRendererToString,
|
|
45
|
-
useAsync,
|
|
46
|
-
useExit
|
|
47
|
-
} from "./chunk-3F7WAIMW.js";
|
|
48
|
-
import {
|
|
49
|
-
require_react
|
|
50
|
-
} from "./chunk-SO6EZMEL.js";
|
|
51
|
-
import {
|
|
52
|
-
stripAnsi
|
|
53
|
-
} from "./chunk-2K5KKUL3.js";
|
|
54
|
-
import "./chunk-YU54OBFT.js";
|
|
55
|
-
import "./chunk-XMTHMR2B.js";
|
|
56
|
-
import {
|
|
57
|
-
readUserConfig,
|
|
58
|
-
updateUserConfig
|
|
59
|
-
} from "./chunk-VJBYOADN.js";
|
|
60
|
-
import "./chunk-7ZP5YH44.js";
|
|
61
|
-
import "./chunk-COXRYL76.js";
|
|
62
|
-
import "./chunk-MWHZITF4.js";
|
|
63
|
-
import {
|
|
64
|
-
pathExists,
|
|
65
|
-
readJson,
|
|
66
|
-
writeJson
|
|
67
|
-
} from "./chunk-ZX4MDEB5.js";
|
|
7
|
+
Width
|
|
8
|
+
} from "./chunk-W3FB2GVG.js";
|
|
68
9
|
import {
|
|
69
10
|
z
|
|
70
11
|
} from "./chunk-SF2XPDVG.js";
|
|
@@ -2960,9 +2901,9 @@ ${trace}`);
|
|
|
2960
2901
|
});
|
|
2961
2902
|
exports2.default = matchesPattern;
|
|
2962
2903
|
var _index = require_generated();
|
|
2963
|
-
function matchesPattern(member,
|
|
2904
|
+
function matchesPattern(member, match, allowPartial) {
|
|
2964
2905
|
if (!(0, _index.isMemberExpression)(member)) return false;
|
|
2965
|
-
const parts = Array.isArray(
|
|
2906
|
+
const parts = Array.isArray(match) ? match : match.split(".");
|
|
2966
2907
|
const nodes = [];
|
|
2967
2908
|
let node;
|
|
2968
2909
|
for (node = member; (0, _index.isMemberExpression)(node); node = node.object) {
|
|
@@ -2997,8 +2938,8 @@ ${trace}`);
|
|
|
2997
2938
|
});
|
|
2998
2939
|
exports2.default = buildMatchMemberExpression;
|
|
2999
2940
|
var _matchesPattern = require_matchesPattern();
|
|
3000
|
-
function buildMatchMemberExpression(
|
|
3001
|
-
const parts =
|
|
2941
|
+
function buildMatchMemberExpression(match, allowPartial) {
|
|
2942
|
+
const parts = match.split(".");
|
|
3002
2943
|
return (member) => (0, _matchesPattern.default)(member, parts, allowPartial);
|
|
3003
2944
|
}
|
|
3004
2945
|
}
|
|
@@ -3033,9 +2974,9 @@ ${trace}`);
|
|
|
3033
2974
|
Object.defineProperty(exports2, "__esModule", {
|
|
3034
2975
|
value: true
|
|
3035
2976
|
});
|
|
3036
|
-
exports2.default =
|
|
2977
|
+
exports2.default = isType;
|
|
3037
2978
|
var _index = require_definitions();
|
|
3038
|
-
function
|
|
2979
|
+
function isType(nodeType, targetType) {
|
|
3039
2980
|
if (nodeType === targetType) return true;
|
|
3040
2981
|
if (nodeType == null) return false;
|
|
3041
2982
|
if (_index.ALIAS_KEYS[targetType]) return false;
|
|
@@ -3437,8 +3378,8 @@ ${trace}`);
|
|
|
3437
3378
|
default:
|
|
3438
3379
|
if (ch >= 48 && ch <= 55) {
|
|
3439
3380
|
const startPos = pos2 - 1;
|
|
3440
|
-
const
|
|
3441
|
-
let octalStr =
|
|
3381
|
+
const match = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
|
|
3382
|
+
let octalStr = match[0];
|
|
3442
3383
|
let octal = parseInt(octalStr, 8);
|
|
3443
3384
|
if (octal > 255) {
|
|
3444
3385
|
octalStr = octalStr.slice(0, -1);
|
|
@@ -3816,9 +3757,9 @@ ${errors.join("\n")}`);
|
|
|
3816
3757
|
}
|
|
3817
3758
|
function defineType(type, opts = {}) {
|
|
3818
3759
|
const inherits = opts.inherits && store[opts.inherits] || {};
|
|
3819
|
-
let
|
|
3820
|
-
if (!
|
|
3821
|
-
|
|
3760
|
+
let fields = opts.fields;
|
|
3761
|
+
if (!fields) {
|
|
3762
|
+
fields = {};
|
|
3822
3763
|
if (inherits.fields) {
|
|
3823
3764
|
const keys = Object.getOwnPropertyNames(inherits.fields);
|
|
3824
3765
|
for (const key2 of keys) {
|
|
@@ -3827,7 +3768,7 @@ ${errors.join("\n")}`);
|
|
|
3827
3768
|
if (Array.isArray(def) ? def.length > 0 : def && typeof def === "object") {
|
|
3828
3769
|
throw new Error("field defaults can only be primitives or empty arrays currently");
|
|
3829
3770
|
}
|
|
3830
|
-
|
|
3771
|
+
fields[key2] = {
|
|
3831
3772
|
default: Array.isArray(def) ? [] : def,
|
|
3832
3773
|
optional: field.optional,
|
|
3833
3774
|
deprecated: field.deprecated,
|
|
@@ -3848,10 +3789,10 @@ ${errors.join("\n")}`);
|
|
|
3848
3789
|
DEPRECATED_KEYS[opts.deprecatedAlias] = type;
|
|
3849
3790
|
}
|
|
3850
3791
|
for (const key2 of visitor.concat(builder)) {
|
|
3851
|
-
|
|
3792
|
+
fields[key2] = fields[key2] || {};
|
|
3852
3793
|
}
|
|
3853
|
-
for (const key2 of Object.keys(
|
|
3854
|
-
const field =
|
|
3794
|
+
for (const key2 of Object.keys(fields)) {
|
|
3795
|
+
const field = fields[key2];
|
|
3855
3796
|
if (field.default !== void 0 && !builder.includes(key2)) {
|
|
3856
3797
|
field.optional = true;
|
|
3857
3798
|
}
|
|
@@ -3868,7 +3809,7 @@ ${errors.join("\n")}`);
|
|
|
3868
3809
|
}
|
|
3869
3810
|
VISITOR_KEYS[type] = opts.visitor = visitor;
|
|
3870
3811
|
BUILDER_KEYS[type] = opts.builder = builder;
|
|
3871
|
-
NODE_FIELDS[type] = opts.fields =
|
|
3812
|
+
NODE_FIELDS[type] = opts.fields = fields;
|
|
3872
3813
|
ALIAS_KEYS[type] = opts.aliases = aliases;
|
|
3873
3814
|
aliases.forEach((alias) => {
|
|
3874
3815
|
FLIPPED_ALIAS_KEYS[alias] = FLIPPED_ALIAS_KEYS[alias] || [];
|
|
@@ -4260,9 +4201,9 @@ ${errors.join("\n")}`);
|
|
|
4260
4201
|
}
|
|
4261
4202
|
}),
|
|
4262
4203
|
validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key2, node) {
|
|
4263
|
-
const
|
|
4264
|
-
if (!
|
|
4265
|
-
const [, parentKey] =
|
|
4204
|
+
const match = /\.(\w+)$/.exec(key2);
|
|
4205
|
+
if (!match) return;
|
|
4206
|
+
const [, parentKey] = match;
|
|
4266
4207
|
const nonComp = {
|
|
4267
4208
|
computed: false
|
|
4268
4209
|
};
|
|
@@ -4550,9 +4491,9 @@ ${errors.join("\n")}`);
|
|
|
4550
4491
|
}
|
|
4551
4492
|
}),
|
|
4552
4493
|
validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key2) {
|
|
4553
|
-
const
|
|
4554
|
-
if (!
|
|
4555
|
-
const [, listKey, index] =
|
|
4494
|
+
const match = /(\w+)\[(\d+)\]/.exec(key2);
|
|
4495
|
+
if (!match) throw new Error("Internal Babel error: malformed key.");
|
|
4496
|
+
const [, listKey, index] = match;
|
|
4556
4497
|
if (parent[listKey].length > +index + 1) {
|
|
4557
4498
|
throw new TypeError(`RestElement must be last element of ${listKey}`);
|
|
4558
4499
|
}
|
|
@@ -7012,9 +6953,9 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
|
7012
6953
|
var _index = require_definitions();
|
|
7013
6954
|
function validate(node, key2, val) {
|
|
7014
6955
|
if (!node) return;
|
|
7015
|
-
const
|
|
7016
|
-
if (!
|
|
7017
|
-
const field =
|
|
6956
|
+
const fields = _index.NODE_FIELDS[node.type];
|
|
6957
|
+
if (!fields) return;
|
|
6958
|
+
const field = fields[key2];
|
|
7018
6959
|
validateField(node, key2, val, field);
|
|
7019
6960
|
validateChild(node, key2, val);
|
|
7020
6961
|
}
|
|
@@ -13442,7 +13383,7 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
|
13442
13383
|
name += (0, _helperValidatorIdentifier.isIdentifierChar)(c2.codePointAt(0)) ? c2 : "-";
|
|
13443
13384
|
}
|
|
13444
13385
|
name = name.replace(/^[-0-9]+/, "");
|
|
13445
|
-
name = name.replace(/[-\s]+(.)?/g, function(
|
|
13386
|
+
name = name.replace(/[-\s]+(.)?/g, function(match, c2) {
|
|
13446
13387
|
return c2 ? c2.toUpperCase() : "";
|
|
13447
13388
|
});
|
|
13448
13389
|
if (!(0, _isValidIdentifier.default)(name)) {
|
|
@@ -14171,9 +14112,9 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
|
14171
14112
|
if (a.type !== b.type) {
|
|
14172
14113
|
return false;
|
|
14173
14114
|
}
|
|
14174
|
-
const
|
|
14115
|
+
const fields = Object.keys(_index.NODE_FIELDS[a.type] || a.type);
|
|
14175
14116
|
const visitorKeys = _index.VISITOR_KEYS[a.type];
|
|
14176
|
-
for (const field of
|
|
14117
|
+
for (const field of fields) {
|
|
14177
14118
|
const val_a = a[field];
|
|
14178
14119
|
const val_b = b[field];
|
|
14179
14120
|
if (typeof val_a !== typeof val_b) {
|
|
@@ -17434,8 +17375,8 @@ ${str}
|
|
|
17434
17375
|
default:
|
|
17435
17376
|
if (ch >= 48 && ch <= 55) {
|
|
17436
17377
|
const startPos = pos2 - 1;
|
|
17437
|
-
const
|
|
17438
|
-
let octalStr =
|
|
17378
|
+
const match = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
|
|
17379
|
+
let octalStr = match[0];
|
|
17439
17380
|
let octal = parseInt(octalStr, 8);
|
|
17440
17381
|
if (octal > 255) {
|
|
17441
17382
|
octalStr = octalStr.slice(0, -1);
|
|
@@ -29472,16 +29413,16 @@ ${str}
|
|
|
29472
29413
|
value: true
|
|
29473
29414
|
});
|
|
29474
29415
|
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;
|
|
29475
|
-
exports2.matchToToken = function(
|
|
29476
|
-
var token2 = { type: "invalid", value:
|
|
29477
|
-
if (
|
|
29478
|
-
else if (
|
|
29479
|
-
else if (
|
|
29480
|
-
else if (
|
|
29481
|
-
else if (
|
|
29482
|
-
else if (
|
|
29483
|
-
else if (
|
|
29484
|
-
else if (
|
|
29416
|
+
exports2.matchToToken = function(match) {
|
|
29417
|
+
var token2 = { type: "invalid", value: match[0], closed: void 0 };
|
|
29418
|
+
if (match[1]) token2.type = "string", token2.closed = !!(match[3] || match[4]);
|
|
29419
|
+
else if (match[5]) token2.type = "comment";
|
|
29420
|
+
else if (match[6]) token2.type = "comment", token2.closed = !!match[7];
|
|
29421
|
+
else if (match[8]) token2.type = "regex";
|
|
29422
|
+
else if (match[9]) token2.type = "number";
|
|
29423
|
+
else if (match[10]) token2.type = "name";
|
|
29424
|
+
else if (match[11]) token2.type = "punctuator";
|
|
29425
|
+
else if (match[12]) token2.type = "whitespace";
|
|
29485
29426
|
return token2;
|
|
29486
29427
|
};
|
|
29487
29428
|
}
|
|
@@ -29546,11 +29487,11 @@ ${str}
|
|
|
29546
29487
|
return token2.type;
|
|
29547
29488
|
};
|
|
29548
29489
|
tokenize = function* (text) {
|
|
29549
|
-
let
|
|
29550
|
-
while (
|
|
29551
|
-
const token2 = jsTokens.matchToToken(
|
|
29490
|
+
let match;
|
|
29491
|
+
while (match = jsTokens.default.exec(text)) {
|
|
29492
|
+
const token2 = jsTokens.matchToToken(match);
|
|
29552
29493
|
yield {
|
|
29553
|
-
type: getTokenType(token2,
|
|
29494
|
+
type: getTokenType(token2, match.index, text),
|
|
29554
29495
|
value: token2.value
|
|
29555
29496
|
};
|
|
29556
29497
|
}
|
|
@@ -31593,14 +31534,14 @@ ${rootStack}`;
|
|
|
31593
31534
|
if (str.length > 100) {
|
|
31594
31535
|
return;
|
|
31595
31536
|
}
|
|
31596
|
-
var
|
|
31537
|
+
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
31597
31538
|
str
|
|
31598
31539
|
);
|
|
31599
|
-
if (!
|
|
31540
|
+
if (!match) {
|
|
31600
31541
|
return;
|
|
31601
31542
|
}
|
|
31602
|
-
var n = parseFloat(
|
|
31603
|
-
var type = (
|
|
31543
|
+
var n = parseFloat(match[1]);
|
|
31544
|
+
var type = (match[2] || "ms").toLowerCase();
|
|
31604
31545
|
switch (type) {
|
|
31605
31546
|
case "years":
|
|
31606
31547
|
case "year":
|
|
@@ -31730,19 +31671,19 @@ ${rootStack}`;
|
|
|
31730
31671
|
args.unshift("%O");
|
|
31731
31672
|
}
|
|
31732
31673
|
let index = 0;
|
|
31733
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (
|
|
31734
|
-
if (
|
|
31674
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
31675
|
+
if (match === "%%") {
|
|
31735
31676
|
return "%";
|
|
31736
31677
|
}
|
|
31737
31678
|
index++;
|
|
31738
31679
|
const formatter = createDebug.formatters[format];
|
|
31739
31680
|
if (typeof formatter === "function") {
|
|
31740
31681
|
const val = args[index];
|
|
31741
|
-
|
|
31682
|
+
match = formatter.call(self2, val);
|
|
31742
31683
|
args.splice(index, 1);
|
|
31743
31684
|
index--;
|
|
31744
31685
|
}
|
|
31745
|
-
return
|
|
31686
|
+
return match;
|
|
31746
31687
|
});
|
|
31747
31688
|
createDebug.formatArgs.call(self2, args);
|
|
31748
31689
|
const logFn = self2.log || createDebug.log;
|
|
@@ -31976,12 +31917,12 @@ ${rootStack}`;
|
|
|
31976
31917
|
args.splice(1, 0, c2, "color: inherit");
|
|
31977
31918
|
let index = 0;
|
|
31978
31919
|
let lastC = 0;
|
|
31979
|
-
args[0].replace(/%[a-zA-Z%]/g, (
|
|
31980
|
-
if (
|
|
31920
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
31921
|
+
if (match === "%%") {
|
|
31981
31922
|
return;
|
|
31982
31923
|
}
|
|
31983
31924
|
index++;
|
|
31984
|
-
if (
|
|
31925
|
+
if (match === "%c") {
|
|
31985
31926
|
lastC = index;
|
|
31986
31927
|
}
|
|
31987
31928
|
});
|
|
@@ -35743,8 +35684,8 @@ ${rootStack}`;
|
|
|
35743
35684
|
continue;
|
|
35744
35685
|
}
|
|
35745
35686
|
const kind = decodeInteger(reader, 0);
|
|
35746
|
-
const
|
|
35747
|
-
const hasName =
|
|
35687
|
+
const fields = decodeInteger(reader, 0);
|
|
35688
|
+
const hasName = fields & 1;
|
|
35748
35689
|
const scope = hasName ? [line2, column2, 0, 0, kind, decodeInteger(reader, 0)] : [line2, column2, 0, 0, kind];
|
|
35749
35690
|
let vars = EMPTY;
|
|
35750
35691
|
if (hasMoreVlq(reader, length)) {
|
|
@@ -35775,8 +35716,8 @@ ${rootStack}`;
|
|
|
35775
35716
|
state[0] = encodeInteger(writer, startLine, state[0]);
|
|
35776
35717
|
encodeInteger(writer, startColumn, 0);
|
|
35777
35718
|
encodeInteger(writer, kind, 0);
|
|
35778
|
-
const
|
|
35779
|
-
encodeInteger(writer,
|
|
35719
|
+
const fields = scope.length === 6 ? 1 : 0;
|
|
35720
|
+
encodeInteger(writer, fields, 0);
|
|
35780
35721
|
if (scope.length === 6)
|
|
35781
35722
|
encodeInteger(writer, scope[5], 0);
|
|
35782
35723
|
for (const v of vars) {
|
|
@@ -35819,10 +35760,10 @@ ${rootStack}`;
|
|
|
35819
35760
|
last[3] = genColumn;
|
|
35820
35761
|
continue;
|
|
35821
35762
|
}
|
|
35822
|
-
const
|
|
35823
|
-
const hasDefinition =
|
|
35824
|
-
const hasCallsite =
|
|
35825
|
-
const hasScope =
|
|
35763
|
+
const fields = decodeInteger(reader, 0);
|
|
35764
|
+
const hasDefinition = fields & 1;
|
|
35765
|
+
const hasCallsite = fields & 2;
|
|
35766
|
+
const hasScope = fields & 4;
|
|
35826
35767
|
let callsite = null;
|
|
35827
35768
|
let bindings = EMPTY;
|
|
35828
35769
|
let range;
|
|
@@ -35896,8 +35837,8 @@ ${rootStack}`;
|
|
|
35896
35837
|
writer.write(comma);
|
|
35897
35838
|
}
|
|
35898
35839
|
state[1] = encodeInteger(writer, range[1], state[1]);
|
|
35899
|
-
const
|
|
35900
|
-
encodeInteger(writer,
|
|
35840
|
+
const fields = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
|
|
35841
|
+
encodeInteger(writer, fields, 0);
|
|
35901
35842
|
if (range.length === 6) {
|
|
35902
35843
|
const { 4: sourcesIndex, 5: scopesIndex } = range;
|
|
35903
35844
|
if (sourcesIndex !== state[2]) {
|
|
@@ -36073,13 +36014,13 @@ ${rootStack}`;
|
|
|
36073
36014
|
return /^[.?#]/.test(input);
|
|
36074
36015
|
}
|
|
36075
36016
|
function parseAbsoluteUrl(input) {
|
|
36076
|
-
const
|
|
36077
|
-
return makeUrl(
|
|
36017
|
+
const match = urlRegex.exec(input);
|
|
36018
|
+
return makeUrl(match[1], match[2] || "", match[3], match[4] || "", match[5] || "/", match[6] || "", match[7] || "");
|
|
36078
36019
|
}
|
|
36079
36020
|
function parseFileUrl(input) {
|
|
36080
|
-
const
|
|
36081
|
-
const path =
|
|
36082
|
-
return makeUrl("file:", "",
|
|
36021
|
+
const match = fileRegex.exec(input);
|
|
36022
|
+
const path = match[2];
|
|
36023
|
+
return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(path) ? path : "/" + path, match[3] || "", match[4] || "");
|
|
36083
36024
|
}
|
|
36084
36025
|
function makeUrl(scheme, user, host, port, path, query, hash) {
|
|
36085
36026
|
return {
|
|
@@ -37355,7 +37296,7 @@ ${rootStack}`;
|
|
|
37355
37296
|
return false;
|
|
37356
37297
|
}
|
|
37357
37298
|
}
|
|
37358
|
-
function
|
|
37299
|
+
function isType(node) {
|
|
37359
37300
|
return isLiteral(node) || isObjectExpression(node) || isArrayExpression(node) || isIdentifier(node) || isMemberExpression(node);
|
|
37360
37301
|
}
|
|
37361
37302
|
var nodes = exports2.nodes = {
|
|
@@ -37391,7 +37332,7 @@ ${rootStack}`;
|
|
|
37391
37332
|
VariableDeclaration(node) {
|
|
37392
37333
|
for (let i = 0; i < node.declarations.length; i++) {
|
|
37393
37334
|
const declar = node.declarations[i];
|
|
37394
|
-
let enabled = isHelper(declar.id) && !
|
|
37335
|
+
let enabled = isHelper(declar.id) && !isType(declar.init);
|
|
37395
37336
|
if (!enabled && declar.init) {
|
|
37396
37337
|
const state = crawl(declar.init);
|
|
37397
37338
|
enabled = isHelper(declar.init) && state.hasCall || state.hasFunction;
|
|
@@ -44887,7 +44828,7 @@ ${" ".repeat(indentSize)}`);
|
|
|
44887
44828
|
isIdentifier,
|
|
44888
44829
|
isLiteral,
|
|
44889
44830
|
isStringLiteral,
|
|
44890
|
-
isType
|
|
44831
|
+
isType,
|
|
44891
44832
|
matchesPattern: _matchesPattern
|
|
44892
44833
|
} = _t;
|
|
44893
44834
|
function matchesPattern(pattern, allowPartial) {
|
|
@@ -44917,7 +44858,7 @@ ${" ".repeat(indentSize)}`);
|
|
|
44917
44858
|
};
|
|
44918
44859
|
}
|
|
44919
44860
|
function isNodeType(type) {
|
|
44920
|
-
return
|
|
44861
|
+
return isType(this.type, type);
|
|
44921
44862
|
}
|
|
44922
44863
|
function canHaveVariableDeclarationOrExpression() {
|
|
44923
44864
|
return (this.key === "init" || this.key === "left") && this.parentPath.isFor();
|
|
@@ -45173,13 +45114,13 @@ ${" ".repeat(indentSize)}`);
|
|
|
45173
45114
|
for (const prop of props) {
|
|
45174
45115
|
if (!prop.isProperty()) continue;
|
|
45175
45116
|
const key2 = prop.get("key");
|
|
45176
|
-
let
|
|
45117
|
+
let match = prop.isnt("computed") && key2.isIdentifier({
|
|
45177
45118
|
name: targetName
|
|
45178
45119
|
});
|
|
45179
|
-
|
|
45120
|
+
match = match || key2.isLiteral({
|
|
45180
45121
|
value: targetName
|
|
45181
45122
|
});
|
|
45182
|
-
if (
|
|
45123
|
+
if (match) return prop.get("value").resolve(dangerous, resolved);
|
|
45183
45124
|
}
|
|
45184
45125
|
} else if (target.isArrayExpression() && !isNaN(+targetName)) {
|
|
45185
45126
|
const elems = target.get("elements");
|
|
@@ -47587,23 +47528,23 @@ ${" ".repeat(indentSize)}`);
|
|
|
47587
47528
|
return null;
|
|
47588
47529
|
}
|
|
47589
47530
|
options = options || {};
|
|
47590
|
-
var
|
|
47531
|
+
var match = null;
|
|
47591
47532
|
if (!options.rtl) {
|
|
47592
|
-
|
|
47533
|
+
match = version.match(safeRe[t.COERCE]);
|
|
47593
47534
|
} else {
|
|
47594
47535
|
var next;
|
|
47595
|
-
while ((next = safeRe[t.COERCERTL].exec(version)) && (!
|
|
47596
|
-
if (!
|
|
47597
|
-
|
|
47536
|
+
while ((next = safeRe[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
47537
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
47538
|
+
match = next;
|
|
47598
47539
|
}
|
|
47599
47540
|
safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
|
|
47600
47541
|
}
|
|
47601
47542
|
safeRe[t.COERCERTL].lastIndex = -1;
|
|
47602
47543
|
}
|
|
47603
|
-
if (
|
|
47544
|
+
if (match === null) {
|
|
47604
47545
|
return null;
|
|
47605
47546
|
}
|
|
47606
|
-
return parse3(
|
|
47547
|
+
return parse3(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
|
|
47607
47548
|
}
|
|
47608
47549
|
}
|
|
47609
47550
|
});
|
|
@@ -52819,11 +52760,11 @@ ${" ".repeat(indentSize)}`);
|
|
|
52819
52760
|
}
|
|
52820
52761
|
for (var name in all) {
|
|
52821
52762
|
var type = all[name];
|
|
52822
|
-
var
|
|
52823
|
-
if (
|
|
52763
|
+
var match = query.match(type.regexp);
|
|
52764
|
+
if (match) {
|
|
52824
52765
|
node.type = name;
|
|
52825
52766
|
for (var i = 0; i < type.matches.length; i++) {
|
|
52826
|
-
node[type.matches[i]] =
|
|
52767
|
+
node[type.matches[i]] = match[i + 1];
|
|
52827
52768
|
}
|
|
52828
52769
|
return node;
|
|
52829
52770
|
}
|
|
@@ -55871,23 +55812,23 @@ ${" ".repeat(indentSize)}`);
|
|
|
55871
55812
|
return null;
|
|
55872
55813
|
}
|
|
55873
55814
|
options = options || {};
|
|
55874
|
-
var
|
|
55815
|
+
var match = null;
|
|
55875
55816
|
if (!options.rtl) {
|
|
55876
|
-
|
|
55817
|
+
match = version.match(safeRe[t.COERCE]);
|
|
55877
55818
|
} else {
|
|
55878
55819
|
var next;
|
|
55879
|
-
while ((next = safeRe[t.COERCERTL].exec(version)) && (!
|
|
55880
|
-
if (!
|
|
55881
|
-
|
|
55820
|
+
while ((next = safeRe[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
55821
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
55822
|
+
match = next;
|
|
55882
55823
|
}
|
|
55883
55824
|
safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
|
|
55884
55825
|
}
|
|
55885
55826
|
safeRe[t.COERCERTL].lastIndex = -1;
|
|
55886
55827
|
}
|
|
55887
|
-
if (
|
|
55828
|
+
if (match === null) {
|
|
55888
55829
|
return null;
|
|
55889
55830
|
}
|
|
55890
|
-
return parse3(
|
|
55831
|
+
return parse3(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
|
|
55891
55832
|
}
|
|
55892
55833
|
}
|
|
55893
55834
|
});
|
|
@@ -60273,8 +60214,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
60273
60214
|
const lastComment = extractComments(EXTERNAL_SOURCEMAP_REGEX, ast);
|
|
60274
60215
|
if (typeof options.filename === "string" && lastComment) {
|
|
60275
60216
|
try {
|
|
60276
|
-
const
|
|
60277
|
-
const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename),
|
|
60217
|
+
const match = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment);
|
|
60218
|
+
const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match[1]), "utf8");
|
|
60278
60219
|
inputMap = _convertSourceMap().fromJSON(inputMapContent);
|
|
60279
60220
|
} catch (err) {
|
|
60280
60221
|
debug("discarding unknown file input sourcemap", err);
|
|
@@ -65333,23 +65274,23 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
|
|
|
65333
65274
|
return null;
|
|
65334
65275
|
}
|
|
65335
65276
|
options = options || {};
|
|
65336
|
-
var
|
|
65277
|
+
var match = null;
|
|
65337
65278
|
if (!options.rtl) {
|
|
65338
|
-
|
|
65279
|
+
match = version.match(safeRe[t.COERCE]);
|
|
65339
65280
|
} else {
|
|
65340
65281
|
var next;
|
|
65341
|
-
while ((next = safeRe[t.COERCERTL].exec(version)) && (!
|
|
65342
|
-
if (!
|
|
65343
|
-
|
|
65282
|
+
while ((next = safeRe[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
65283
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
65284
|
+
match = next;
|
|
65344
65285
|
}
|
|
65345
65286
|
safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
|
|
65346
65287
|
}
|
|
65347
65288
|
safeRe[t.COERCERTL].lastIndex = -1;
|
|
65348
65289
|
}
|
|
65349
|
-
if (
|
|
65290
|
+
if (match === null) {
|
|
65350
65291
|
return null;
|
|
65351
65292
|
}
|
|
65352
|
-
return parse3(
|
|
65293
|
+
return parse3(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
|
|
65353
65294
|
}
|
|
65354
65295
|
}
|
|
65355
65296
|
});
|
|
@@ -68106,13 +68047,13 @@ module.exports = function(api) {
|
|
|
68106
68047
|
var encodedSeparatorRegEx = /%2f|%5c/i;
|
|
68107
68048
|
var emittedPackageWarnings = /* @__PURE__ */ new Set();
|
|
68108
68049
|
var doubleSlashRegEx = /[/\\]{2}/;
|
|
68109
|
-
function emitInvalidSegmentDeprecation(target, request,
|
|
68050
|
+
function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, internal, base, isTarget) {
|
|
68110
68051
|
if (_process().noDeprecation) {
|
|
68111
68052
|
return;
|
|
68112
68053
|
}
|
|
68113
68054
|
const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl);
|
|
68114
68055
|
const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null;
|
|
68115
|
-
_process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request ===
|
|
68056
|
+
_process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
|
|
68116
68057
|
}
|
|
68117
68058
|
function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
68118
68059
|
if (_process().noDeprecation) {
|
|
@@ -68222,16 +68163,16 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
68222
68163
|
function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
68223
68164
|
return new ERR_PACKAGE_PATH_NOT_EXPORTED((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, base && (0, _url().fileURLToPath)(base));
|
|
68224
68165
|
}
|
|
68225
|
-
function throwInvalidSubpath(request,
|
|
68226
|
-
const reason = `request is not a valid match in pattern "${
|
|
68166
|
+
function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
68167
|
+
const reason = `request is not a valid match in pattern "${match}" for the "${internal ? "imports" : "exports"}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`;
|
|
68227
68168
|
throw new ERR_INVALID_MODULE_SPECIFIER(request, reason, base && (0, _url().fileURLToPath)(base));
|
|
68228
68169
|
}
|
|
68229
68170
|
function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
68230
68171
|
target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
|
|
68231
68172
|
return new ERR_INVALID_PACKAGE_TARGET((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, target, internal, base && (0, _url().fileURLToPath)(base));
|
|
68232
68173
|
}
|
|
68233
|
-
function resolvePackageTargetString(target, subpath,
|
|
68234
|
-
if (subpath !== "" && !pattern && target[target.length - 1] !== "/") throw invalidPackageTarget(
|
|
68174
|
+
function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
|
|
68175
|
+
if (subpath !== "" && !pattern && target[target.length - 1] !== "/") throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
68235
68176
|
if (!target.startsWith("./")) {
|
|
68236
68177
|
if (internal && !target.startsWith("../") && !target.startsWith("/")) {
|
|
68237
68178
|
let isURL2 = false;
|
|
@@ -68245,33 +68186,33 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
68245
68186
|
return packageResolve(exportTarget, packageJsonUrl, conditions);
|
|
68246
68187
|
}
|
|
68247
68188
|
}
|
|
68248
|
-
throw invalidPackageTarget(
|
|
68189
|
+
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
68249
68190
|
}
|
|
68250
68191
|
if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {
|
|
68251
68192
|
if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
|
|
68252
68193
|
if (!isPathMap) {
|
|
68253
|
-
const request = pattern ?
|
|
68194
|
+
const request = pattern ? match.replace("*", () => subpath) : match + subpath;
|
|
68254
68195
|
const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
|
|
68255
|
-
emitInvalidSegmentDeprecation(resolvedTarget, request,
|
|
68196
|
+
emitInvalidSegmentDeprecation(resolvedTarget, request, match, packageJsonUrl, internal, base, true);
|
|
68256
68197
|
}
|
|
68257
68198
|
} else {
|
|
68258
|
-
throw invalidPackageTarget(
|
|
68199
|
+
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
68259
68200
|
}
|
|
68260
68201
|
}
|
|
68261
68202
|
const resolved = new (_url()).URL(target, packageJsonUrl);
|
|
68262
68203
|
const resolvedPath = resolved.pathname;
|
|
68263
68204
|
const packagePath = new (_url()).URL(".", packageJsonUrl).pathname;
|
|
68264
|
-
if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(
|
|
68205
|
+
if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
68265
68206
|
if (subpath === "") return resolved;
|
|
68266
68207
|
if (invalidSegmentRegEx.exec(subpath) !== null) {
|
|
68267
|
-
const request = pattern ?
|
|
68208
|
+
const request = pattern ? match.replace("*", () => subpath) : match + subpath;
|
|
68268
68209
|
if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) {
|
|
68269
68210
|
if (!isPathMap) {
|
|
68270
68211
|
const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
|
|
68271
|
-
emitInvalidSegmentDeprecation(resolvedTarget, request,
|
|
68212
|
+
emitInvalidSegmentDeprecation(resolvedTarget, request, match, packageJsonUrl, internal, base, false);
|
|
68272
68213
|
}
|
|
68273
68214
|
} else {
|
|
68274
|
-
throwInvalidSubpath(request,
|
|
68215
|
+
throwInvalidSubpath(request, match, packageJsonUrl, internal, base);
|
|
68275
68216
|
}
|
|
68276
68217
|
}
|
|
68277
68218
|
if (pattern) {
|
|
@@ -68360,14 +68301,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
68360
68301
|
}
|
|
68361
68302
|
return isConditionalSugar;
|
|
68362
68303
|
}
|
|
68363
|
-
function emitTrailingSlashPatternDeprecation(
|
|
68304
|
+
function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
68364
68305
|
if (_process().noDeprecation) {
|
|
68365
68306
|
return;
|
|
68366
68307
|
}
|
|
68367
68308
|
const pjsonPath = (0, _url().fileURLToPath)(pjsonUrl);
|
|
68368
|
-
if (emittedPackageWarnings.has(pjsonPath + "|" +
|
|
68369
|
-
emittedPackageWarnings.add(pjsonPath + "|" +
|
|
68370
|
-
_process().emitWarning(`Use of deprecated trailing slash pattern mapping "${
|
|
68309
|
+
if (emittedPackageWarnings.has(pjsonPath + "|" + match)) return;
|
|
68310
|
+
emittedPackageWarnings.add(pjsonPath + "|" + match);
|
|
68311
|
+
_process().emitWarning(`Use of deprecated trailing slash pattern mapping "${match}" 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");
|
|
68371
68312
|
}
|
|
68372
68313
|
function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
|
|
68373
68314
|
let exports3 = packageConfig.exports;
|
|
@@ -71357,7 +71298,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
71357
71298
|
var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
71358
71299
|
exports2.makeRe = makeRe;
|
|
71359
71300
|
exports2.minimatch.makeRe = exports2.makeRe;
|
|
71360
|
-
var
|
|
71301
|
+
var match = (list, pattern, options = {}) => {
|
|
71361
71302
|
const mm = new Minimatch(pattern, options);
|
|
71362
71303
|
list = list.filter((f) => mm.match(f));
|
|
71363
71304
|
if (mm.options.nonull && !list.length) {
|
|
@@ -71365,7 +71306,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
71365
71306
|
}
|
|
71366
71307
|
return list;
|
|
71367
71308
|
};
|
|
71368
|
-
exports2.match =
|
|
71309
|
+
exports2.match = match;
|
|
71369
71310
|
exports2.minimatch.match = exports2.match;
|
|
71370
71311
|
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
71371
71312
|
var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
@@ -78149,10 +78090,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
78149
78090
|
});
|
|
78150
78091
|
}
|
|
78151
78092
|
let shouldIndentNextCharacter = options.indentStart !== false;
|
|
78152
|
-
const replacer = (
|
|
78153
|
-
if (shouldIndentNextCharacter) return `${indentStr}${
|
|
78093
|
+
const replacer = (match) => {
|
|
78094
|
+
if (shouldIndentNextCharacter) return `${indentStr}${match}`;
|
|
78154
78095
|
shouldIndentNextCharacter = true;
|
|
78155
|
-
return
|
|
78096
|
+
return match;
|
|
78156
78097
|
};
|
|
78157
78098
|
this.intro = this.intro.replace(pattern, replacer);
|
|
78158
78099
|
let charIndex = 0;
|
|
@@ -78540,44 +78481,44 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
78540
78481
|
return this.original !== this.toString();
|
|
78541
78482
|
}
|
|
78542
78483
|
_replaceRegexp(searchValue, replacement) {
|
|
78543
|
-
function getReplacement(
|
|
78484
|
+
function getReplacement(match, str) {
|
|
78544
78485
|
if (typeof replacement === "string") {
|
|
78545
78486
|
return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
|
|
78546
78487
|
if (i === "$") return "$";
|
|
78547
|
-
if (i === "&") return
|
|
78488
|
+
if (i === "&") return match[0];
|
|
78548
78489
|
const num = +i;
|
|
78549
|
-
if (num <
|
|
78490
|
+
if (num < match.length) return match[+i];
|
|
78550
78491
|
return `$${i}`;
|
|
78551
78492
|
});
|
|
78552
78493
|
} else {
|
|
78553
|
-
return replacement(...
|
|
78494
|
+
return replacement(...match, match.index, str, match.groups);
|
|
78554
78495
|
}
|
|
78555
78496
|
}
|
|
78556
78497
|
function matchAll(re, str) {
|
|
78557
|
-
let
|
|
78498
|
+
let match;
|
|
78558
78499
|
const matches = [];
|
|
78559
|
-
while (
|
|
78560
|
-
matches.push(
|
|
78500
|
+
while (match = re.exec(str)) {
|
|
78501
|
+
matches.push(match);
|
|
78561
78502
|
}
|
|
78562
78503
|
return matches;
|
|
78563
78504
|
}
|
|
78564
78505
|
if (searchValue.global) {
|
|
78565
78506
|
const matches = matchAll(searchValue, this.original);
|
|
78566
|
-
matches.forEach((
|
|
78567
|
-
if (
|
|
78507
|
+
matches.forEach((match) => {
|
|
78508
|
+
if (match.index != null)
|
|
78568
78509
|
this.overwrite(
|
|
78569
|
-
|
|
78570
|
-
|
|
78571
|
-
getReplacement(
|
|
78510
|
+
match.index,
|
|
78511
|
+
match.index + match[0].length,
|
|
78512
|
+
getReplacement(match, this.original)
|
|
78572
78513
|
);
|
|
78573
78514
|
});
|
|
78574
78515
|
} else {
|
|
78575
|
-
const
|
|
78576
|
-
if (
|
|
78516
|
+
const match = this.original.match(searchValue);
|
|
78517
|
+
if (match && match.index != null)
|
|
78577
78518
|
this.overwrite(
|
|
78578
|
-
|
|
78579
|
-
|
|
78580
|
-
getReplacement(
|
|
78519
|
+
match.index,
|
|
78520
|
+
match.index + match[0].length,
|
|
78521
|
+
getReplacement(match, this.original)
|
|
78581
78522
|
);
|
|
78582
78523
|
}
|
|
78583
78524
|
return this;
|
|
@@ -78781,8 +78722,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
78781
78722
|
trailingNewline = source2.content.lastChar() === "\n";
|
|
78782
78723
|
});
|
|
78783
78724
|
if (this.intro) {
|
|
78784
|
-
this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (
|
|
78785
|
-
return index > 0 ? indentStr +
|
|
78725
|
+
this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (match, index) => {
|
|
78726
|
+
return index > 0 ? indentStr + match : match;
|
|
78786
78727
|
});
|
|
78787
78728
|
}
|
|
78788
78729
|
return this;
|
|
@@ -79063,8 +79004,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
79063
79004
|
exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
|
|
79064
79005
|
exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
|
|
79065
79006
|
exports2.removeBackslashes = (str) => {
|
|
79066
|
-
return str.replace(REGEX_REMOVE_BACKSLASH, (
|
|
79067
|
-
return
|
|
79007
|
+
return str.replace(REGEX_REMOVE_BACKSLASH, (match) => {
|
|
79008
|
+
return match === "\\" ? "" : match;
|
|
79068
79009
|
});
|
|
79069
79010
|
};
|
|
79070
79011
|
exports2.supportsLookbehinds = () => {
|
|
@@ -79681,10 +79622,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
79681
79622
|
push2({ type: "text", value: value2 });
|
|
79682
79623
|
continue;
|
|
79683
79624
|
}
|
|
79684
|
-
const
|
|
79625
|
+
const match = /^\\+/.exec(remaining());
|
|
79685
79626
|
let slashes = 0;
|
|
79686
|
-
if (
|
|
79687
|
-
slashes =
|
|
79627
|
+
if (match && match[0].length > 2) {
|
|
79628
|
+
slashes = match[0].length;
|
|
79688
79629
|
state.index += slashes;
|
|
79689
79630
|
if (slashes % 2 !== 0) {
|
|
79690
79631
|
value2 += "\\";
|
|
@@ -79972,10 +79913,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
79972
79913
|
if (value2 === "$" || value2 === "^") {
|
|
79973
79914
|
value2 = `\\${value2}`;
|
|
79974
79915
|
}
|
|
79975
|
-
const
|
|
79976
|
-
if (
|
|
79977
|
-
value2 +=
|
|
79978
|
-
state.index +=
|
|
79916
|
+
const match = REGEX_NON_SPECIAL_CHARS.exec(remaining());
|
|
79917
|
+
if (match) {
|
|
79918
|
+
value2 += match[0];
|
|
79919
|
+
state.index += match[0].length;
|
|
79979
79920
|
}
|
|
79980
79921
|
push2({ type: "text", value: value2 });
|
|
79981
79922
|
continue;
|
|
@@ -80186,11 +80127,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
80186
80127
|
case "**/.*":
|
|
80187
80128
|
return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
80188
80129
|
default: {
|
|
80189
|
-
const
|
|
80190
|
-
if (!
|
|
80191
|
-
const source3 = create(
|
|
80130
|
+
const match = /^(.*?)\.(\w+)$/.exec(str);
|
|
80131
|
+
if (!match) return;
|
|
80132
|
+
const source3 = create(match[1]);
|
|
80192
80133
|
if (!source3) return;
|
|
80193
|
-
return source3 + DOT_LITERAL +
|
|
80134
|
+
return source3 + DOT_LITERAL + match[2];
|
|
80194
80135
|
}
|
|
80195
80136
|
}
|
|
80196
80137
|
};
|
|
@@ -80240,8 +80181,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
80240
80181
|
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
80241
80182
|
}
|
|
80242
80183
|
const matcher = (input, returnObject = false) => {
|
|
80243
|
-
const { isMatch, match
|
|
80244
|
-
const result = { glob, state, regex, posix, input, output, match
|
|
80184
|
+
const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
|
|
80185
|
+
const result = { glob, state, regex, posix, input, output, match, isMatch };
|
|
80245
80186
|
if (typeof opts.onResult === "function") {
|
|
80246
80187
|
opts.onResult(result);
|
|
80247
80188
|
}
|
|
@@ -80275,20 +80216,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
80275
80216
|
}
|
|
80276
80217
|
const opts = options || {};
|
|
80277
80218
|
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
80278
|
-
let
|
|
80279
|
-
let output =
|
|
80280
|
-
if (
|
|
80219
|
+
let match = input === glob;
|
|
80220
|
+
let output = match && format ? format(input) : input;
|
|
80221
|
+
if (match === false) {
|
|
80281
80222
|
output = format ? format(input) : input;
|
|
80282
|
-
|
|
80223
|
+
match = output === glob;
|
|
80283
80224
|
}
|
|
80284
|
-
if (
|
|
80225
|
+
if (match === false || opts.capture === true) {
|
|
80285
80226
|
if (opts.matchBase === true || opts.basename === true) {
|
|
80286
|
-
|
|
80227
|
+
match = picomatch.matchBase(input, regex, options, posix);
|
|
80287
80228
|
} else {
|
|
80288
|
-
|
|
80229
|
+
match = regex.exec(output);
|
|
80289
80230
|
}
|
|
80290
80231
|
}
|
|
80291
|
-
return { isMatch: Boolean(
|
|
80232
|
+
return { isMatch: Boolean(match), match, output };
|
|
80292
80233
|
};
|
|
80293
80234
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
80294
80235
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
@@ -80789,8 +80730,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
80789
80730
|
exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
|
|
80790
80731
|
exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
|
|
80791
80732
|
exports2.removeBackslashes = (str) => {
|
|
80792
|
-
return str.replace(REGEX_REMOVE_BACKSLASH, (
|
|
80793
|
-
return
|
|
80733
|
+
return str.replace(REGEX_REMOVE_BACKSLASH, (match) => {
|
|
80734
|
+
return match === "\\" ? "" : match;
|
|
80794
80735
|
});
|
|
80795
80736
|
};
|
|
80796
80737
|
exports2.supportsLookbehinds = () => {
|
|
@@ -81407,10 +81348,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
81407
81348
|
push2({ type: "text", value: value2 });
|
|
81408
81349
|
continue;
|
|
81409
81350
|
}
|
|
81410
|
-
const
|
|
81351
|
+
const match = /^\\+/.exec(remaining());
|
|
81411
81352
|
let slashes = 0;
|
|
81412
|
-
if (
|
|
81413
|
-
slashes =
|
|
81353
|
+
if (match && match[0].length > 2) {
|
|
81354
|
+
slashes = match[0].length;
|
|
81414
81355
|
state.index += slashes;
|
|
81415
81356
|
if (slashes % 2 !== 0) {
|
|
81416
81357
|
value2 += "\\";
|
|
@@ -81698,10 +81639,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
81698
81639
|
if (value2 === "$" || value2 === "^") {
|
|
81699
81640
|
value2 = `\\${value2}`;
|
|
81700
81641
|
}
|
|
81701
|
-
const
|
|
81702
|
-
if (
|
|
81703
|
-
value2 +=
|
|
81704
|
-
state.index +=
|
|
81642
|
+
const match = REGEX_NON_SPECIAL_CHARS.exec(remaining());
|
|
81643
|
+
if (match) {
|
|
81644
|
+
value2 += match[0];
|
|
81645
|
+
state.index += match[0].length;
|
|
81705
81646
|
}
|
|
81706
81647
|
push2({ type: "text", value: value2 });
|
|
81707
81648
|
continue;
|
|
@@ -81912,11 +81853,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
81912
81853
|
case "**/.*":
|
|
81913
81854
|
return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
81914
81855
|
default: {
|
|
81915
|
-
const
|
|
81916
|
-
if (!
|
|
81917
|
-
const source3 = create(
|
|
81856
|
+
const match = /^(.*?)\.(\w+)$/.exec(str);
|
|
81857
|
+
if (!match) return;
|
|
81858
|
+
const source3 = create(match[1]);
|
|
81918
81859
|
if (!source3) return;
|
|
81919
|
-
return source3 + DOT_LITERAL +
|
|
81860
|
+
return source3 + DOT_LITERAL + match[2];
|
|
81920
81861
|
}
|
|
81921
81862
|
}
|
|
81922
81863
|
};
|
|
@@ -81966,8 +81907,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
81966
81907
|
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
81967
81908
|
}
|
|
81968
81909
|
const matcher = (input, returnObject = false) => {
|
|
81969
|
-
const { isMatch, match
|
|
81970
|
-
const result = { glob, state, regex, posix, input, output, match
|
|
81910
|
+
const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
|
|
81911
|
+
const result = { glob, state, regex, posix, input, output, match, isMatch };
|
|
81971
81912
|
if (typeof opts.onResult === "function") {
|
|
81972
81913
|
opts.onResult(result);
|
|
81973
81914
|
}
|
|
@@ -82001,20 +81942,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
82001
81942
|
}
|
|
82002
81943
|
const opts = options || {};
|
|
82003
81944
|
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
82004
|
-
let
|
|
82005
|
-
let output =
|
|
82006
|
-
if (
|
|
81945
|
+
let match = input === glob;
|
|
81946
|
+
let output = match && format ? format(input) : input;
|
|
81947
|
+
if (match === false) {
|
|
82007
81948
|
output = format ? format(input) : input;
|
|
82008
|
-
|
|
81949
|
+
match = output === glob;
|
|
82009
81950
|
}
|
|
82010
|
-
if (
|
|
81951
|
+
if (match === false || opts.capture === true) {
|
|
82011
81952
|
if (opts.matchBase === true || opts.basename === true) {
|
|
82012
|
-
|
|
81953
|
+
match = picomatch.matchBase(input, regex, options, posix);
|
|
82013
81954
|
} else {
|
|
82014
|
-
|
|
81955
|
+
match = regex.exec(output);
|
|
82015
81956
|
}
|
|
82016
81957
|
}
|
|
82017
|
-
return { isMatch: Boolean(
|
|
81958
|
+
return { isMatch: Boolean(match), match, output };
|
|
82018
81959
|
};
|
|
82019
81960
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
82020
81961
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
@@ -82173,10 +82114,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
82173
82114
|
if (typeof str !== "string" || str === "") {
|
|
82174
82115
|
return false;
|
|
82175
82116
|
}
|
|
82176
|
-
var
|
|
82177
|
-
while (
|
|
82178
|
-
if (
|
|
82179
|
-
str = str.slice(
|
|
82117
|
+
var match;
|
|
82118
|
+
while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
|
|
82119
|
+
if (match[2]) return true;
|
|
82120
|
+
str = str.slice(match.index + match[0].length);
|
|
82180
82121
|
}
|
|
82181
82122
|
return false;
|
|
82182
82123
|
};
|
|
@@ -85918,17 +85859,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
85918
85859
|
for (; ; ) {
|
|
85919
85860
|
skipWhiteSpace.lastIndex = start;
|
|
85920
85861
|
start += skipWhiteSpace.exec(this.input)[0].length;
|
|
85921
|
-
var
|
|
85922
|
-
if (!
|
|
85862
|
+
var match = literal2.exec(this.input.slice(start));
|
|
85863
|
+
if (!match) {
|
|
85923
85864
|
return false;
|
|
85924
85865
|
}
|
|
85925
|
-
if ((
|
|
85926
|
-
skipWhiteSpace.lastIndex = start +
|
|
85866
|
+
if ((match[1] || match[2]) === "use strict") {
|
|
85867
|
+
skipWhiteSpace.lastIndex = start + match[0].length;
|
|
85927
85868
|
var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;
|
|
85928
85869
|
var next = this.input.charAt(end);
|
|
85929
85870
|
return next === ";" || next === "}" || lineBreak.test(spaceAfter[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=");
|
|
85930
85871
|
}
|
|
85931
|
-
start +=
|
|
85872
|
+
start += match[0].length;
|
|
85932
85873
|
skipWhiteSpace.lastIndex = start;
|
|
85933
85874
|
start += skipWhiteSpace.exec(this.input)[0].length;
|
|
85934
85875
|
if (this.input[start] === ";") {
|
|
@@ -91271,17 +91212,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
91271
91212
|
var streamChunksOfRawSource = (source2, onChunk, onSource, onName) => {
|
|
91272
91213
|
let line2 = 1;
|
|
91273
91214
|
const matches = splitIntoLines(source2);
|
|
91274
|
-
let
|
|
91275
|
-
for (
|
|
91276
|
-
onChunk(
|
|
91215
|
+
let match;
|
|
91216
|
+
for (match of matches) {
|
|
91217
|
+
onChunk(match, line2, 0, -1, -1, -1, -1);
|
|
91277
91218
|
line2++;
|
|
91278
91219
|
}
|
|
91279
|
-
return matches.length === 0 ||
|
|
91220
|
+
return matches.length === 0 || match.endsWith("\n") ? {
|
|
91280
91221
|
generatedLine: matches.length + 1,
|
|
91281
91222
|
generatedColumn: 0
|
|
91282
91223
|
} : {
|
|
91283
91224
|
generatedLine: matches.length,
|
|
91284
|
-
generatedColumn:
|
|
91225
|
+
generatedColumn: match.length
|
|
91285
91226
|
};
|
|
91286
91227
|
};
|
|
91287
91228
|
module2.exports = (source2, onChunk, onSource, onName, finalSource) => {
|
|
@@ -91715,19 +91656,19 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
91715
91656
|
let line2 = 1;
|
|
91716
91657
|
let column2 = 0;
|
|
91717
91658
|
if (matches !== null) {
|
|
91718
|
-
for (const
|
|
91719
|
-
const isEndOfLine =
|
|
91720
|
-
if (isEndOfLine &&
|
|
91721
|
-
if (!finalSource) onChunk(
|
|
91659
|
+
for (const match of matches) {
|
|
91660
|
+
const isEndOfLine = match.endsWith("\n");
|
|
91661
|
+
if (isEndOfLine && match.length === 1) {
|
|
91662
|
+
if (!finalSource) onChunk(match, line2, column2, -1, -1, -1, -1);
|
|
91722
91663
|
} else {
|
|
91723
|
-
const chunk = finalSource ? void 0 :
|
|
91664
|
+
const chunk = finalSource ? void 0 : match;
|
|
91724
91665
|
onChunk(chunk, line2, column2, 0, line2, column2, -1);
|
|
91725
91666
|
}
|
|
91726
91667
|
if (isEndOfLine) {
|
|
91727
91668
|
line2++;
|
|
91728
91669
|
column2 = 0;
|
|
91729
91670
|
} else {
|
|
91730
|
-
column2 +=
|
|
91671
|
+
column2 += match.length;
|
|
91731
91672
|
}
|
|
91732
91673
|
}
|
|
91733
91674
|
}
|
|
@@ -91750,18 +91691,18 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
91750
91691
|
} else {
|
|
91751
91692
|
let line2 = 1;
|
|
91752
91693
|
const matches = splitIntoLines(this._value);
|
|
91753
|
-
let
|
|
91754
|
-
for (
|
|
91755
|
-
onChunk(finalSource ? void 0 :
|
|
91694
|
+
let match;
|
|
91695
|
+
for (match of matches) {
|
|
91696
|
+
onChunk(finalSource ? void 0 : match, line2, 0, 0, line2, 0, -1);
|
|
91756
91697
|
line2++;
|
|
91757
91698
|
}
|
|
91758
|
-
return matches.length === 0 ||
|
|
91699
|
+
return matches.length === 0 || match.endsWith("\n") ? {
|
|
91759
91700
|
generatedLine: matches.length + 1,
|
|
91760
91701
|
generatedColumn: 0,
|
|
91761
91702
|
source: finalSource ? this._value : void 0
|
|
91762
91703
|
} : {
|
|
91763
91704
|
generatedLine: matches.length,
|
|
91764
|
-
generatedColumn:
|
|
91705
|
+
generatedColumn: match.length,
|
|
91765
91706
|
source: finalSource ? this._value : void 0
|
|
91766
91707
|
};
|
|
91767
91708
|
}
|
|
@@ -94034,13 +93975,13 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
94034
93975
|
return input.startsWith("/");
|
|
94035
93976
|
}
|
|
94036
93977
|
function parseAbsoluteUrl(input) {
|
|
94037
|
-
const
|
|
93978
|
+
const match = urlRegex.exec(input);
|
|
94038
93979
|
return {
|
|
94039
|
-
scheme:
|
|
94040
|
-
user:
|
|
94041
|
-
host:
|
|
94042
|
-
port:
|
|
94043
|
-
path:
|
|
93980
|
+
scheme: match[1],
|
|
93981
|
+
user: match[2] || "",
|
|
93982
|
+
host: match[3],
|
|
93983
|
+
port: match[4] || "",
|
|
93984
|
+
path: match[5] || "/",
|
|
94044
93985
|
relativePath: false
|
|
94045
93986
|
};
|
|
94046
93987
|
}
|
|
@@ -95356,10 +95297,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
95356
95297
|
const obj = {};
|
|
95357
95298
|
let lines = src.toString();
|
|
95358
95299
|
lines = lines.replace(/\r\n?/mg, "\n");
|
|
95359
|
-
let
|
|
95360
|
-
while ((
|
|
95361
|
-
const key2 =
|
|
95362
|
-
let value2 =
|
|
95300
|
+
let match;
|
|
95301
|
+
while ((match = LINE.exec(lines)) != null) {
|
|
95302
|
+
const key2 = match[1];
|
|
95303
|
+
let value2 = match[2] || "";
|
|
95363
95304
|
value2 = value2.trim();
|
|
95364
95305
|
const maybeQuote = value2[0];
|
|
95365
95306
|
value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
|
|
@@ -95849,7 +95790,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
95849
95790
|
"use strict";
|
|
95850
95791
|
var path = __require("path");
|
|
95851
95792
|
var locatePath = require_locate_path();
|
|
95852
|
-
var
|
|
95793
|
+
var pathExists = require_path_exists();
|
|
95853
95794
|
var stop = Symbol("findUp.stop");
|
|
95854
95795
|
module2.exports = async (name, options = {}) => {
|
|
95855
95796
|
let directory = path.resolve(options.cwd || "");
|
|
@@ -95907,8 +95848,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
95907
95848
|
directory = path.dirname(directory);
|
|
95908
95849
|
}
|
|
95909
95850
|
};
|
|
95910
|
-
module2.exports.exists =
|
|
95911
|
-
module2.exports.sync.exists =
|
|
95851
|
+
module2.exports.exists = pathExists;
|
|
95852
|
+
module2.exports.sync.exists = pathExists.sync;
|
|
95912
95853
|
module2.exports.stop = stop;
|
|
95913
95854
|
}
|
|
95914
95855
|
});
|
|
@@ -96554,14 +96495,14 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
96554
96495
|
return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path2 ? `${path2}/` : path2}${projectId}`;
|
|
96555
96496
|
}
|
|
96556
96497
|
function dsnFromString2(str) {
|
|
96557
|
-
const
|
|
96558
|
-
if (!
|
|
96498
|
+
const match = DSN_REGEX.exec(str);
|
|
96499
|
+
if (!match) {
|
|
96559
96500
|
consoleSandbox(() => {
|
|
96560
96501
|
console.error(`Invalid Sentry Dsn: ${str}`);
|
|
96561
96502
|
});
|
|
96562
96503
|
return void 0;
|
|
96563
96504
|
}
|
|
96564
|
-
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] =
|
|
96505
|
+
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match.slice(1);
|
|
96565
96506
|
let path2 = "";
|
|
96566
96507
|
let projectId = lastPath;
|
|
96567
96508
|
const split = projectId.split("/");
|
|
@@ -100912,9 +100853,9 @@ Reason: ${reason}`
|
|
|
100912
100853
|
version = version.slice(1);
|
|
100913
100854
|
}
|
|
100914
100855
|
var regex = /^[\^~]?(\d+)(\.\d+)?(\.\d+)?(-.+)?/;
|
|
100915
|
-
var
|
|
100916
|
-
if (
|
|
100917
|
-
return parseInt(
|
|
100856
|
+
var match = version.match(regex);
|
|
100857
|
+
if (match) {
|
|
100858
|
+
return parseInt(match[1], 10);
|
|
100918
100859
|
}
|
|
100919
100860
|
var coerced = parseInt(version, 10);
|
|
100920
100861
|
if (!Number.isNaN(coerced)) {
|
|
@@ -101569,9 +101510,9 @@ Reason: ${reason}`
|
|
|
101569
101510
|
return _prepareBundleForDebugIdUpload.apply(this, arguments);
|
|
101570
101511
|
}
|
|
101571
101512
|
function determineDebugIdFromBundleSource(code) {
|
|
101572
|
-
var
|
|
101573
|
-
if (
|
|
101574
|
-
return
|
|
101513
|
+
var match = 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})/);
|
|
101514
|
+
if (match) {
|
|
101515
|
+
return match[1];
|
|
101575
101516
|
} else {
|
|
101576
101517
|
return void 0;
|
|
101577
101518
|
}
|
|
@@ -102630,9 +102571,9 @@ Reason: ${reason}`
|
|
|
102630
102571
|
var ms = new MagicString__default["default"](code, {
|
|
102631
102572
|
filename: chunk.fileName
|
|
102632
102573
|
});
|
|
102633
|
-
var
|
|
102634
|
-
if (
|
|
102635
|
-
ms.appendLeft(
|
|
102574
|
+
var match = (_code$match = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match === void 0 ? void 0 : _code$match[0];
|
|
102575
|
+
if (match) {
|
|
102576
|
+
ms.appendLeft(match.length, codeToInject);
|
|
102636
102577
|
} else {
|
|
102637
102578
|
ms.prepend(codeToInject);
|
|
102638
102579
|
}
|
|
@@ -102662,9 +102603,9 @@ Reason: ${reason}`
|
|
|
102662
102603
|
var ms = new MagicString__default["default"](code, {
|
|
102663
102604
|
filename: chunk.fileName
|
|
102664
102605
|
});
|
|
102665
|
-
var
|
|
102666
|
-
if (
|
|
102667
|
-
ms.appendLeft(
|
|
102606
|
+
var match = (_code$match2 = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match2 === void 0 ? void 0 : _code$match2[0];
|
|
102607
|
+
if (match) {
|
|
102608
|
+
ms.appendLeft(match.length, injectionCode);
|
|
102668
102609
|
} else {
|
|
102669
102610
|
ms.prepend(injectionCode);
|
|
102670
102611
|
}
|
|
@@ -107331,11 +107272,11 @@ ${error.errors.map(formatZodIssue).join("\n")}`,
|
|
|
107331
107272
|
};
|
|
107332
107273
|
}
|
|
107333
107274
|
function dsnFromString(str) {
|
|
107334
|
-
const
|
|
107335
|
-
if (!
|
|
107275
|
+
const match = SENTRY_DSN_REGEX.exec(str);
|
|
107276
|
+
if (!match) {
|
|
107336
107277
|
throw new Error("Invalid DSN");
|
|
107337
107278
|
}
|
|
107338
|
-
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] =
|
|
107279
|
+
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match.slice(1);
|
|
107339
107280
|
let path = "";
|
|
107340
107281
|
let projectId = lastPath;
|
|
107341
107282
|
const split = projectId.split("/");
|
|
@@ -107446,121 +107387,6 @@ window.sentryOnLoad = function () {
|
|
|
107446
107387
|
}
|
|
107447
107388
|
});
|
|
107448
107389
|
|
|
107449
|
-
// ../cli-astro-commands/src/components/DevCommand/index.ts
|
|
107450
|
-
init_esm_shims();
|
|
107451
|
-
|
|
107452
|
-
// ../cli-astro-commands/src/components/DevCommand/DevCommand.tsx
|
|
107453
|
-
init_esm_shims();
|
|
107454
|
-
var import_react5 = __toESM(require_react(), 1);
|
|
107455
|
-
|
|
107456
|
-
// ../cli-astro-commands/src/components/DevCommand/DevScreenBorder.tsx
|
|
107457
|
-
init_esm_shims();
|
|
107458
|
-
var import_react = __toESM(require_react(), 1);
|
|
107459
|
-
var DevScreenBorder = ({ children }) => {
|
|
107460
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
107461
|
-
Box_default,
|
|
107462
|
-
{
|
|
107463
|
-
flexDirection: "column",
|
|
107464
|
-
borderTop: true,
|
|
107465
|
-
borderLeft: false,
|
|
107466
|
-
borderBottom: false,
|
|
107467
|
-
borderRight: false,
|
|
107468
|
-
borderStyle: "round",
|
|
107469
|
-
borderColor: "blueBright",
|
|
107470
|
-
width: "95%"
|
|
107471
|
-
},
|
|
107472
|
-
children
|
|
107473
|
-
);
|
|
107474
|
-
};
|
|
107475
|
-
|
|
107476
|
-
// ../cli-astro-commands/src/components/DevCommand/utils/runAstroDev.ts
|
|
107477
|
-
init_esm_shims();
|
|
107478
|
-
var EVENT_LINE = "line";
|
|
107479
|
-
var EVENT_SERVER_ADDRESS = "server_address";
|
|
107480
|
-
function runAstroDev({
|
|
107481
|
-
packageManager,
|
|
107482
|
-
projectFolder,
|
|
107483
|
-
port,
|
|
107484
|
-
allowedHosts
|
|
107485
|
-
}) {
|
|
107486
|
-
const binaryArgs = ["astro", "dev"];
|
|
107487
|
-
if (port) {
|
|
107488
|
-
binaryArgs.push("--port", `${port}`);
|
|
107489
|
-
}
|
|
107490
|
-
if (allowedHosts) {
|
|
107491
|
-
binaryArgs.push("--allowed-hosts", allowedHosts);
|
|
107492
|
-
}
|
|
107493
|
-
const { file, args } = packageManager.getRunBinaryCmd(binaryArgs);
|
|
107494
|
-
const result = execa(file, args, {
|
|
107495
|
-
cwd: projectFolder,
|
|
107496
|
-
stdio: "pipe",
|
|
107497
|
-
env: { FORCE_COLOR: "1" },
|
|
107498
|
-
cleanup: true,
|
|
107499
|
-
detached: true
|
|
107500
|
-
});
|
|
107501
|
-
let stdoutBuffer = "";
|
|
107502
|
-
result.stdout?.on("data", (chunk) => {
|
|
107503
|
-
stdoutBuffer += chunk.toString();
|
|
107504
|
-
const lines = stdoutBuffer.split("\n");
|
|
107505
|
-
stdoutBuffer = lines.pop() ?? "";
|
|
107506
|
-
for (const line of lines) {
|
|
107507
|
-
result.stdout?.emit(EVENT_LINE, line);
|
|
107508
|
-
if (line.includes("http://")) {
|
|
107509
|
-
const match2 = /(http:\/\/[^\s]+)/.exec(line);
|
|
107510
|
-
if (match2?.[1]) {
|
|
107511
|
-
const address = stripAnsi(match2[1]).trim();
|
|
107512
|
-
result.stdout?.emit(EVENT_SERVER_ADDRESS, address);
|
|
107513
|
-
}
|
|
107514
|
-
}
|
|
107515
|
-
}
|
|
107516
|
-
});
|
|
107517
|
-
let stdErrBuffer = "";
|
|
107518
|
-
result.stderr?.on("data", (chunk) => {
|
|
107519
|
-
stdErrBuffer += chunk.toString();
|
|
107520
|
-
const lines = stdErrBuffer.split("\n");
|
|
107521
|
-
stdErrBuffer = lines.pop() ?? "";
|
|
107522
|
-
for (const line of lines) {
|
|
107523
|
-
result.stderr?.emit(EVENT_LINE, line);
|
|
107524
|
-
}
|
|
107525
|
-
});
|
|
107526
|
-
return result;
|
|
107527
|
-
}
|
|
107528
|
-
|
|
107529
|
-
// ../cli-astro-commands/src/components/DevCommand/utils/createAstroLogger.tsx
|
|
107530
|
-
init_esm_shims();
|
|
107531
|
-
var import_react2 = __toESM(require_react(), 1);
|
|
107532
|
-
var dateTimeFormat = new Intl.DateTimeFormat([], {
|
|
107533
|
-
hour: "2-digit",
|
|
107534
|
-
minute: "2-digit",
|
|
107535
|
-
second: "2-digit",
|
|
107536
|
-
hour12: false
|
|
107537
|
-
});
|
|
107538
|
-
function createAstroLogger(isPrefixed = true) {
|
|
107539
|
-
const renderer = createRendererToString({ stripAnsi: false });
|
|
107540
|
-
const log = (msg) => {
|
|
107541
|
-
if (typeof msg === "string") {
|
|
107542
|
-
setTimeout(() => console.log(msg), 0);
|
|
107543
|
-
} else {
|
|
107544
|
-
setTimeout(() => console.log(renderer.render(msg)), 0);
|
|
107545
|
-
}
|
|
107546
|
-
};
|
|
107547
|
-
const prefixedLog = (msg) => {
|
|
107548
|
-
const timestamp = dateTimeFormat.format(/* @__PURE__ */ new Date());
|
|
107549
|
-
const log2 = /* @__PURE__ */ import_react2.default.createElement(Text, null, /* @__PURE__ */ import_react2.default.createElement(Text, null, timestamp, " "), /* @__PURE__ */ import_react2.default.createElement(Text, { skin: "info" }, "[wix] "), /* @__PURE__ */ import_react2.default.createElement(Text, null, msg));
|
|
107550
|
-
console.log(renderer.render(log2));
|
|
107551
|
-
};
|
|
107552
|
-
return isPrefixed ? { log: prefixedLog } : { log };
|
|
107553
|
-
}
|
|
107554
|
-
|
|
107555
|
-
// ../cli-astro-commands/src/components/DevCommand/DevCenterUpdater.tsx
|
|
107556
|
-
init_esm_shims();
|
|
107557
|
-
var import_react4 = __toESM(require_react(), 1);
|
|
107558
|
-
import { isDeepStrictEqual } from "node:util";
|
|
107559
|
-
var import_variant3 = __toESM(require_lib(), 1);
|
|
107560
|
-
|
|
107561
|
-
// ../cli-astro-commands/src/files/app.config.ts
|
|
107562
|
-
init_esm_shims();
|
|
107563
|
-
|
|
107564
107390
|
// ../cli-app-definitions/src/index.ts
|
|
107565
107391
|
init_esm_shims();
|
|
107566
107392
|
var import_variant = __toESM(require_lib(), 1);
|
|
@@ -107595,6 +107421,9 @@ var SITE_PLUGINS_DIR = join(SITE_DIR, "plugins", CUSTOM_ELEMENTS_DIR);
|
|
|
107595
107421
|
var BLOCKS_WIDGETS_DIR = join(SITE_DIR, "widgets", "blocks");
|
|
107596
107422
|
var RELATIVE_ASSET_PATH_REGEX = /^(?:\.\.?[\\/])*[\w\-+]+([\\/][\w\-+]+)*\.(jpg|svg|png)$/;
|
|
107597
107423
|
var HTTP_REGEX = /^(https?):\/\/[^\s/$.?#].[^\s]*$/;
|
|
107424
|
+
function getServicePluginsFolder(projectFolder) {
|
|
107425
|
+
return join(projectFolder, SERVICE_PLUGINS_DIR);
|
|
107426
|
+
}
|
|
107598
107427
|
function getAppConfigPath(projectFolder) {
|
|
107599
107428
|
return join(projectFolder, APP_CONFIG_PATH);
|
|
107600
107429
|
}
|
|
@@ -107966,251 +107795,10 @@ var siteComponentPanelConfigSchema = z.object({
|
|
|
107966
107795
|
height: z.number().min(150).optional().describe("Initial height of the panel while loading, in pixels.")
|
|
107967
107796
|
}).strict();
|
|
107968
107797
|
|
|
107969
|
-
// ../cli-astro-commands/src/files/app.config.ts
|
|
107970
|
-
async function readAppConfig(projectFolder, writeDebugLog) {
|
|
107971
|
-
const configPath = getAppConfigPath(projectFolder);
|
|
107972
|
-
const isConfigExist = await pathExists(configPath);
|
|
107973
|
-
if (!isConfigExist) {
|
|
107974
|
-
return null;
|
|
107975
|
-
}
|
|
107976
|
-
try {
|
|
107977
|
-
const json = await readJson(configPath);
|
|
107978
|
-
const appConfig = await appConfigSchema.safeParseAsync(json);
|
|
107979
|
-
if (!appConfig.success) {
|
|
107980
|
-
return null;
|
|
107981
|
-
}
|
|
107982
|
-
return appConfig.data;
|
|
107983
|
-
} catch (e) {
|
|
107984
|
-
writeDebugLog?.(e);
|
|
107985
|
-
return null;
|
|
107986
|
-
}
|
|
107987
|
-
}
|
|
107988
|
-
async function saveAppConfig(projectFolder, config) {
|
|
107989
|
-
const currentConfig = await readAppConfig(projectFolder) ?? {};
|
|
107990
|
-
const newConfig = {
|
|
107991
|
-
...currentConfig,
|
|
107992
|
-
...config
|
|
107993
|
-
};
|
|
107994
|
-
await writeJson(getAppConfigPath(projectFolder), newConfig);
|
|
107995
|
-
}
|
|
107996
|
-
|
|
107997
|
-
// ../cli-astro-commands/src/components/DevCommand/utils/isTunnelRequired.ts
|
|
107998
|
-
init_esm_shims();
|
|
107999
|
-
function isTunnelRequired(appManifest) {
|
|
108000
|
-
for (const extension of appManifest.components) {
|
|
108001
|
-
const knownAppManifest = parseKnownExtensionManifest(extension);
|
|
108002
|
-
if (knownAppManifest != null && knownAppManifest.compType === ComponentType.WEBHOOK) {
|
|
108003
|
-
return !URL.canParse(knownAppManifest.compData.webhook.callbackUrl);
|
|
108004
|
-
}
|
|
108005
|
-
}
|
|
108006
|
-
return false;
|
|
108007
|
-
}
|
|
108008
|
-
function parseKnownExtensionManifest(extensionManifest) {
|
|
108009
|
-
const appManifestResult = looseComponentSchema.safeParse(extensionManifest);
|
|
108010
|
-
if (appManifestResult.error) {
|
|
108011
|
-
return null;
|
|
108012
|
-
}
|
|
108013
|
-
return appManifestResult.data;
|
|
108014
|
-
}
|
|
108015
|
-
|
|
108016
|
-
// ../cli-astro-commands/src/components/DevCommand/TunnelingConsent.tsx
|
|
108017
|
-
init_esm_shims();
|
|
108018
|
-
var import_react3 = __toESM(require_react(), 1);
|
|
108019
|
-
var import_variant2 = __toESM(require_lib(), 1);
|
|
108020
|
-
var TunnelingConsent = ({ required, children }) => {
|
|
108021
|
-
const exit = useExit();
|
|
108022
|
-
const [approved, setApproved] = (0, import_react3.useState)();
|
|
108023
|
-
const { status } = useAsync(async () => {
|
|
108024
|
-
const config = await readUserConfig();
|
|
108025
|
-
if (config.tunneling) {
|
|
108026
|
-
setApproved(true);
|
|
108027
|
-
}
|
|
108028
|
-
return config;
|
|
108029
|
-
}, []);
|
|
108030
|
-
if (!required || approved) {
|
|
108031
|
-
return children;
|
|
108032
|
-
}
|
|
108033
|
-
return /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, (0, import_variant2.match)(status, {
|
|
108034
|
-
Success: () => /* @__PURE__ */ import_react3.default.createElement(
|
|
108035
|
-
ConfirmInput,
|
|
108036
|
-
{
|
|
108037
|
-
label: "To proceed, we'll set up a secure tunnel from your machine for development purposes",
|
|
108038
|
-
initialValue: true,
|
|
108039
|
-
onSubmit: async (approved2) => {
|
|
108040
|
-
setApproved(approved2);
|
|
108041
|
-
await updateUserConfig({ tunneling: approved2 });
|
|
108042
|
-
if (!approved2) {
|
|
108043
|
-
exit();
|
|
108044
|
-
}
|
|
108045
|
-
}
|
|
108046
|
-
}
|
|
108047
|
-
),
|
|
108048
|
-
Error: () => null,
|
|
108049
|
-
Loading: () => null
|
|
108050
|
-
}), approved === false && /* @__PURE__ */ import_react3.default.createElement(Text, { skin: "error" }, "Operation aborted. Tunneling is necessary to run your application."));
|
|
108051
|
-
};
|
|
108052
|
-
|
|
108053
|
-
// ../cli-astro-commands/src/components/DevCommand/DevCenterUpdater.tsx
|
|
108054
|
-
var DevCenterUpdateResult = (0, import_variant3.variant)({
|
|
108055
|
-
Changed: (0, import_variant3.fields)(),
|
|
108056
|
-
Unchanged: {}
|
|
108057
|
-
});
|
|
108058
|
-
var DevCenterUpdater = ({ serverLocalUrl, serverExposedUrl }) => {
|
|
108059
|
-
const [devArmTag, setDevArmTag] = (0, import_react4.useState)("");
|
|
108060
|
-
const [manifest, setManifest] = (0, import_react4.useState)(null);
|
|
108061
|
-
const {
|
|
108062
|
-
model: {
|
|
108063
|
-
config: { siteId, appId },
|
|
108064
|
-
projectFolder
|
|
108065
|
-
}
|
|
108066
|
-
} = useProjectModel();
|
|
108067
|
-
const logger = (0, import_react4.useMemo)(() => createAstroLogger(), []);
|
|
108068
|
-
const http = useHttpClient({ type: "standalone" });
|
|
108069
|
-
const { updateManifest } = useUpdateManifest();
|
|
108070
|
-
const arm = useARMClient();
|
|
108071
|
-
const updateDeploymentTopology = useUpdateDeploymentTopology();
|
|
108072
|
-
const openTunnel = useTunnel();
|
|
108073
|
-
const tunnelUrl = (0, import_react4.useRef)();
|
|
108074
|
-
const [tunnelRequired, setTunnelRequired] = (0, import_react4.useState)(false);
|
|
108075
|
-
const updateDevCenter = (0, import_react4.useCallback)(async () => {
|
|
108076
|
-
const url = new URL("/_wix/app-manifest.json", serverLocalUrl).href;
|
|
108077
|
-
const { data: responseFromDevServer } = await http.get(url);
|
|
108078
|
-
const latestManifest = looseAppManifestSchema.parse(responseFromDevServer);
|
|
108079
|
-
if (isDeepStrictEqual(manifest, latestManifest)) {
|
|
108080
|
-
return DevCenterUpdateResult.Unchanged();
|
|
108081
|
-
}
|
|
108082
|
-
if (!serverExposedUrl && !tunnelUrl.current && isTunnelRequired(latestManifest)) {
|
|
108083
|
-
const config = await readUserConfig();
|
|
108084
|
-
if (!config.tunneling) {
|
|
108085
|
-
setTunnelRequired(true);
|
|
108086
|
-
return DevCenterUpdateResult.Unchanged();
|
|
108087
|
-
}
|
|
108088
|
-
const serverLocalPort = parseInt(new URL(serverLocalUrl).port, 10);
|
|
108089
|
-
const tunnel = await openTunnel(serverLocalPort);
|
|
108090
|
-
tunnelUrl.current = tunnel.url;
|
|
108091
|
-
}
|
|
108092
|
-
const baseUrl = serverExposedUrl ?? serverLocalUrl;
|
|
108093
|
-
const appConfig = await readAppConfig(projectFolder);
|
|
108094
|
-
let updatedDevArmTag = appConfig?.devArmTag;
|
|
108095
|
-
if (!updatedDevArmTag) {
|
|
108096
|
-
updatedDevArmTag = await arm.createLooseAppRelease(
|
|
108097
|
-
updateManifest(latestManifest, baseUrl, tunnelUrl.current),
|
|
108098
|
-
appId
|
|
108099
|
-
);
|
|
108100
|
-
} else {
|
|
108101
|
-
const updateState = await arm.updateLooseAppRelease(
|
|
108102
|
-
updateManifest(latestManifest, baseUrl, tunnelUrl.current),
|
|
108103
|
-
updatedDevArmTag
|
|
108104
|
-
);
|
|
108105
|
-
if (!(0, import_variant3.isType)(updateState, "TagUpdated")) {
|
|
108106
|
-
updatedDevArmTag = await arm.createLooseAppRelease(
|
|
108107
|
-
updateManifest(latestManifest, baseUrl, tunnelUrl.current),
|
|
108108
|
-
appId
|
|
108109
|
-
);
|
|
108110
|
-
}
|
|
108111
|
-
}
|
|
108112
|
-
if (updatedDevArmTag !== appConfig?.devArmTag) {
|
|
108113
|
-
await saveAppConfig(projectFolder, { devArmTag: updatedDevArmTag });
|
|
108114
|
-
}
|
|
108115
|
-
setManifest(latestManifest);
|
|
108116
|
-
setDevArmTag(updatedDevArmTag);
|
|
108117
|
-
await updateDeploymentTopology.execute({
|
|
108118
|
-
serverUrl: baseUrl,
|
|
108119
|
-
armTag: updatedDevArmTag,
|
|
108120
|
-
environment: "development"
|
|
108121
|
-
});
|
|
108122
|
-
const armTagChanged = !!appConfig?.devArmTag && updatedDevArmTag !== appConfig.devArmTag;
|
|
108123
|
-
return DevCenterUpdateResult.Changed({ armTagChanged });
|
|
108124
|
-
}, [
|
|
108125
|
-
http,
|
|
108126
|
-
updateManifest,
|
|
108127
|
-
serverLocalUrl,
|
|
108128
|
-
serverExposedUrl,
|
|
108129
|
-
arm,
|
|
108130
|
-
manifest,
|
|
108131
|
-
projectFolder,
|
|
108132
|
-
appId,
|
|
108133
|
-
updateDeploymentTopology,
|
|
108134
|
-
openTunnel
|
|
108135
|
-
]);
|
|
108136
|
-
const [timer, setTimer] = (0, import_react4.useState)(Date.now());
|
|
108137
|
-
(0, import_react4.useEffect)(() => {
|
|
108138
|
-
let disposed = false;
|
|
108139
|
-
void updateDevCenter().then((result) => {
|
|
108140
|
-
if ((0, import_variant3.isType)(result, "Changed")) {
|
|
108141
|
-
logger.log(
|
|
108142
|
-
"App Manifest updated. Refresh existing browser tabs to view the latest changes."
|
|
108143
|
-
);
|
|
108144
|
-
}
|
|
108145
|
-
}).catch((error) => {
|
|
108146
|
-
logger.log("Failed to update App Manifest");
|
|
108147
|
-
logger.log(`${error}`);
|
|
108148
|
-
}).then(() => {
|
|
108149
|
-
if (!disposed) {
|
|
108150
|
-
setTimeout(() => setTimer(Date.now()), 1e3);
|
|
108151
|
-
}
|
|
108152
|
-
});
|
|
108153
|
-
return () => {
|
|
108154
|
-
disposed = true;
|
|
108155
|
-
};
|
|
108156
|
-
}, [timer]);
|
|
108157
|
-
return /* @__PURE__ */ import_react4.default.createElement(Box_default, { rowGap: 1, marginY: 1, flexDirection: "column" }, /* @__PURE__ */ import_react4.default.createElement(TunnelingConsent, { required: tunnelRequired }, /* @__PURE__ */ import_react4.default.createElement(Text, null, "Open the preview on:"), /* @__PURE__ */ import_react4.default.createElement(Box_default, { paddingLeft: 2, flexDirection: "column" }, /* @__PURE__ */ import_react4.default.createElement(PlatformLink, { url: serverLocalUrl, label: "Site" }), devArmTag ? /* @__PURE__ */ import_react4.default.createElement(
|
|
108158
|
-
PlatformLink,
|
|
108159
|
-
{
|
|
108160
|
-
url: `https://manage.wix.com/dashboard/${siteId}?apps-override=${devArmTag}`,
|
|
108161
|
-
label: "Dashboard"
|
|
108162
|
-
}
|
|
108163
|
-
) : /* @__PURE__ */ import_react4.default.createElement(Spinner, { text: "Preparing your dashboard..." }))));
|
|
108164
|
-
};
|
|
108165
|
-
|
|
108166
|
-
// ../cli-astro-commands/src/components/DevCommand/DevCommand.tsx
|
|
108167
|
-
var DevCommand = ({
|
|
108168
|
-
port,
|
|
108169
|
-
allowedHosts,
|
|
108170
|
-
serverExposedUrl
|
|
108171
|
-
}) => {
|
|
108172
|
-
const [serverLocalUrl, setServerLocalUrl] = (0, import_react5.useState)("");
|
|
108173
|
-
const {
|
|
108174
|
-
model: {
|
|
108175
|
-
config: { siteId },
|
|
108176
|
-
projectFolder
|
|
108177
|
-
}
|
|
108178
|
-
} = useProjectModel();
|
|
108179
|
-
const logger = (0, import_react5.useMemo)(() => createAstroLogger(false), []);
|
|
108180
|
-
const astroProcess = (0, import_react5.useRef)();
|
|
108181
|
-
useAsync(async () => {
|
|
108182
|
-
const repoType = await getRepoType(projectFolder);
|
|
108183
|
-
const packageManager = await createPackageManager(repoType);
|
|
108184
|
-
const astro = runAstroDev({
|
|
108185
|
-
packageManager,
|
|
108186
|
-
projectFolder,
|
|
108187
|
-
port,
|
|
108188
|
-
allowedHosts
|
|
108189
|
-
});
|
|
108190
|
-
astroProcess.current = astro;
|
|
108191
|
-
astro.stdout?.once(EVENT_SERVER_ADDRESS, (address) => {
|
|
108192
|
-
setServerLocalUrl(address);
|
|
108193
|
-
});
|
|
108194
|
-
astro.stdout?.on(EVENT_LINE, (line) => logger.log(line));
|
|
108195
|
-
astro.stderr?.on(EVENT_LINE, (line) => logger.log(line));
|
|
108196
|
-
}, []);
|
|
108197
|
-
(0, import_react5.useEffect)(() => {
|
|
108198
|
-
return () => {
|
|
108199
|
-
if (astroProcess.current?.pid) {
|
|
108200
|
-
process.kill(-astroProcess.current.pid, "SIGTERM");
|
|
108201
|
-
}
|
|
108202
|
-
};
|
|
108203
|
-
}, []);
|
|
108204
|
-
return /* @__PURE__ */ import_react5.default.createElement(SiteAuthProvider, { siteId }, serverLocalUrl ? /* @__PURE__ */ import_react5.default.createElement(DevScreenBorder, null, /* @__PURE__ */ import_react5.default.createElement(Text, null, "Development environment ready"), /* @__PURE__ */ import_react5.default.createElement(
|
|
108205
|
-
DevCenterUpdater,
|
|
108206
|
-
{
|
|
108207
|
-
serverLocalUrl,
|
|
108208
|
-
serverExposedUrl
|
|
108209
|
-
}
|
|
108210
|
-
)) : /* @__PURE__ */ import_react5.default.createElement(Spinner, { text: "Starting dev environment..." }));
|
|
108211
|
-
};
|
|
108212
107798
|
export {
|
|
108213
|
-
|
|
107799
|
+
getServicePluginsFolder,
|
|
107800
|
+
getAppConfigPath,
|
|
107801
|
+
appConfigSchema
|
|
108214
107802
|
};
|
|
108215
107803
|
/*! Bundled license information:
|
|
108216
107804
|
|
|
@@ -108266,4 +107854,4 @@ export {
|
|
|
108266
107854
|
*)
|
|
108267
107855
|
*)
|
|
108268
107856
|
*/
|
|
108269
|
-
//# sourceMappingURL=
|
|
107857
|
+
//# sourceMappingURL=chunk-W7CODLJZ.js.map
|