@wix/cli 1.1.57 → 1.1.59
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-D6QHU2YA.js +7561 -0
- package/build/DevCommand-D6QHU2YA.js.map +1 -0
- package/build/{DevCommand-K3JZ4XZC.js → DevCommand-PLIPWJKO.js} +14 -15
- package/build/{DevCommand-K3JZ4XZC.js.map → DevCommand-PLIPWJKO.js.map} +1 -1
- package/build/{LoginCommand-BP3RQHUM.js → LoginCommand-NRZ4VWWM.js} +12 -12
- package/build/{LogoutCommand-VT4QE44U.js → LogoutCommand-INOYIE67.js} +8 -8
- package/build/{WhoamiCommand-KJFFYPZX.js → WhoamiCommand-4V4GTNFW.js} +4 -4
- package/build/{chunk-KTJ6X6GE.js → chunk-3RBFRZE2.js} +8 -8
- package/build/{chunk-KTJ6X6GE.js.map → chunk-3RBFRZE2.js.map} +1 -1
- package/build/{chunk-NX7IBYFX.js → chunk-4HVBZRJL.js} +2 -2
- package/build/{chunk-2AGM62L5.js → chunk-4OBSJ6OG.js} +5043 -659
- package/build/chunk-4OBSJ6OG.js.map +1 -0
- package/build/{chunk-LOJ4G3VD.js → chunk-5XUFGBCU.js} +2 -2
- package/build/{chunk-WYEQRRT2.js → chunk-5ZVEBKUO.js} +2829 -66
- package/build/chunk-5ZVEBKUO.js.map +1 -0
- package/build/{chunk-XTLJ4CAJ.js → chunk-AXVTET6V.js} +2 -2
- package/build/{chunk-53UCEZFU.js → chunk-BNWDAMAL.js} +175 -45
- package/build/chunk-BNWDAMAL.js.map +1 -0
- package/build/{chunk-MPSJ2YGQ.js → chunk-BV3B44QL.js} +3 -3
- package/build/{chunk-QCM5RGPT.js → chunk-CMXHWKEP.js} +3 -3
- package/build/{chunk-BBGPRSAS.js → chunk-CS26555F.js} +7 -7
- package/build/{chunk-U67ULUPY.js → chunk-F3E4MMLD.js} +6 -6
- package/build/{chunk-3R4OZ46Z.js → chunk-G6TDIUNY.js} +2 -2
- package/build/{chunk-U2IUPRKN.js → chunk-GLXEVSFE.js} +7 -7
- package/build/{chunk-IRLLAFTL.js → chunk-HYAIYTKF.js} +88 -44
- package/build/{chunk-IRLLAFTL.js.map → chunk-HYAIYTKF.js.map} +1 -1
- package/build/{chunk-24HYCAK2.js → chunk-JG7FKL4X.js} +3 -3
- package/build/{chunk-F63O2UMD.js → chunk-KCTZ5EX4.js} +401 -116
- package/build/chunk-KCTZ5EX4.js.map +1 -0
- package/build/{chunk-LC4NM6RL.js → chunk-N5IXBRXL.js} +2 -2
- package/build/{chunk-E745NXJR.js → chunk-OOGMXJJV.js} +6 -6
- package/build/{chunk-3KIPOGXI.js → chunk-PNUERA4W.js} +5 -5
- package/build/{chunk-MCPHB25P.js → chunk-QGSHUCNV.js} +8 -8
- package/build/{chunk-KOCJZPLK.js → chunk-SELJR2HV.js} +2 -2
- package/build/{chunk-XU2RG4HE.js → chunk-T4OH34QF.js} +8 -2
- package/build/{chunk-XU2RG4HE.js.map → chunk-T4OH34QF.js.map} +1 -1
- package/build/{chunk-H5EUIUDE.js → chunk-U32RURCT.js} +126 -70
- package/build/chunk-U32RURCT.js.map +1 -0
- package/build/{chunk-BHINMCY7.js → chunk-V4DAKO7L.js} +369 -494
- package/build/chunk-V4DAKO7L.js.map +1 -0
- package/build/{chunk-FYXV3TNQ.js → chunk-VEVISRHN.js} +5 -5
- package/build/{chunk-W32TRG4E.js → chunk-WN3D6AOY.js} +39 -25
- package/build/chunk-WN3D6AOY.js.map +1 -0
- package/build/{chunk-ZOWPPCOU.js → chunk-X7XOMWAQ.js} +5 -5
- package/build/{chunk-QZW5GTQF.js → chunk-YUFAOC35.js} +6 -6
- package/build/{chunk-VIUQV2TZ.js → chunk-Z7P6TDPB.js} +6 -6
- package/build/{dev-P57SGFAA.js → dev-TEWYYBKR.js} +23 -24
- package/build/{dev-P57SGFAA.js.map → dev-TEWYYBKR.js.map} +1 -1
- package/build/index.js +26 -26
- package/build/{install-FKVCCLFF.js → install-MTS6LPPU.js} +17 -17
- package/build/{preview-7P7VNEUO.js → preview-TDMPHSVV.js} +18 -18
- package/build/{publish-FA4OUDWG.js → publish-5VLMBE6J.js} +18 -18
- package/build/{render-command-NM3HNCRF.js → render-command-7OMEGPW4.js} +11 -11
- package/build/{render-command-VA3HCBMQ.js → render-command-FELGYBEY.js} +12 -12
- package/build/{render-command-REKF5DLG.js → render-command-UQPFUBIL.js} +12 -12
- package/build/{run-command-ZLQ3PKCS.js → run-command-3YTQS4ZX.js} +10 -10
- package/build/{src-FSILLQWK.js → src-4W2WPIAM.js} +8 -8
- package/build/{src-YDZK3SDZ.js → src-7NEL65ZK.js} +18 -18
- package/build/{src-Q3X5WF65.js → src-IBLQL7AB.js} +6 -6
- package/build/{src-KDZNNJHV.js → src-LA3GYOE6.js} +7 -7
- package/build/{src-5XWKD5UB.js → src-UWOBS6D7.js} +2 -2
- package/build/{src-SWWZQIWT.js → src-Y334LPF5.js} +7 -7
- package/build/sync-types-W3PVOJTK.js +30 -0
- package/build/{uninstall-HA7CE6JB.js → uninstall-M4DEVSQC.js} +16 -16
- package/package.json +5 -5
- package/build/DevCommand-NPU6T4GA.js +0 -1040
- package/build/DevCommand-NPU6T4GA.js.map +0 -1
- package/build/chunk-2AGM62L5.js.map +0 -1
- package/build/chunk-53UCEZFU.js.map +0 -1
- package/build/chunk-BHINMCY7.js.map +0 -1
- package/build/chunk-F63O2UMD.js.map +0 -1
- package/build/chunk-H5EUIUDE.js.map +0 -1
- package/build/chunk-OUBPZBBH.js +0 -558
- package/build/chunk-OUBPZBBH.js.map +0 -1
- package/build/chunk-W32TRG4E.js.map +0 -1
- package/build/chunk-WYEQRRT2.js.map +0 -1
- package/build/sync-types-GLTTFJMA.js +0 -31
- /package/build/{LoginCommand-BP3RQHUM.js.map → LoginCommand-NRZ4VWWM.js.map} +0 -0
- /package/build/{LogoutCommand-VT4QE44U.js.map → LogoutCommand-INOYIE67.js.map} +0 -0
- /package/build/{WhoamiCommand-KJFFYPZX.js.map → WhoamiCommand-4V4GTNFW.js.map} +0 -0
- /package/build/{chunk-NX7IBYFX.js.map → chunk-4HVBZRJL.js.map} +0 -0
- /package/build/{chunk-LOJ4G3VD.js.map → chunk-5XUFGBCU.js.map} +0 -0
- /package/build/{chunk-XTLJ4CAJ.js.map → chunk-AXVTET6V.js.map} +0 -0
- /package/build/{chunk-MPSJ2YGQ.js.map → chunk-BV3B44QL.js.map} +0 -0
- /package/build/{chunk-QCM5RGPT.js.map → chunk-CMXHWKEP.js.map} +0 -0
- /package/build/{chunk-BBGPRSAS.js.map → chunk-CS26555F.js.map} +0 -0
- /package/build/{chunk-U67ULUPY.js.map → chunk-F3E4MMLD.js.map} +0 -0
- /package/build/{chunk-3R4OZ46Z.js.map → chunk-G6TDIUNY.js.map} +0 -0
- /package/build/{chunk-U2IUPRKN.js.map → chunk-GLXEVSFE.js.map} +0 -0
- /package/build/{chunk-24HYCAK2.js.map → chunk-JG7FKL4X.js.map} +0 -0
- /package/build/{chunk-LC4NM6RL.js.map → chunk-N5IXBRXL.js.map} +0 -0
- /package/build/{chunk-E745NXJR.js.map → chunk-OOGMXJJV.js.map} +0 -0
- /package/build/{chunk-3KIPOGXI.js.map → chunk-PNUERA4W.js.map} +0 -0
- /package/build/{chunk-MCPHB25P.js.map → chunk-QGSHUCNV.js.map} +0 -0
- /package/build/{chunk-KOCJZPLK.js.map → chunk-SELJR2HV.js.map} +0 -0
- /package/build/{chunk-FYXV3TNQ.js.map → chunk-VEVISRHN.js.map} +0 -0
- /package/build/{chunk-ZOWPPCOU.js.map → chunk-X7XOMWAQ.js.map} +0 -0
- /package/build/{chunk-QZW5GTQF.js.map → chunk-YUFAOC35.js.map} +0 -0
- /package/build/{chunk-VIUQV2TZ.js.map → chunk-Z7P6TDPB.js.map} +0 -0
- /package/build/{install-FKVCCLFF.js.map → install-MTS6LPPU.js.map} +0 -0
- /package/build/{preview-7P7VNEUO.js.map → preview-TDMPHSVV.js.map} +0 -0
- /package/build/{publish-FA4OUDWG.js.map → publish-5VLMBE6J.js.map} +0 -0
- /package/build/{render-command-NM3HNCRF.js.map → render-command-7OMEGPW4.js.map} +0 -0
- /package/build/{render-command-VA3HCBMQ.js.map → render-command-FELGYBEY.js.map} +0 -0
- /package/build/{render-command-REKF5DLG.js.map → render-command-UQPFUBIL.js.map} +0 -0
- /package/build/{run-command-ZLQ3PKCS.js.map → run-command-3YTQS4ZX.js.map} +0 -0
- /package/build/{src-5XWKD5UB.js.map → src-4W2WPIAM.js.map} +0 -0
- /package/build/{src-YDZK3SDZ.js.map → src-7NEL65ZK.js.map} +0 -0
- /package/build/{src-FSILLQWK.js.map → src-IBLQL7AB.js.map} +0 -0
- /package/build/{src-KDZNNJHV.js.map → src-LA3GYOE6.js.map} +0 -0
- /package/build/{src-Q3X5WF65.js.map → src-UWOBS6D7.js.map} +0 -0
- /package/build/{src-SWWZQIWT.js.map → src-Y334LPF5.js.map} +0 -0
- /package/build/{sync-types-GLTTFJMA.js.map → sync-types-W3PVOJTK.js.map} +0 -0
- /package/build/{uninstall-HA7CE6JB.js.map → uninstall-M4DEVSQC.js.map} +0 -0
|
@@ -2,48 +2,47 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
useVeloClient
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-QGSHUCNV.js";
|
|
6
|
+
import "./chunk-N5IXBRXL.js";
|
|
7
|
+
import "./chunk-4HVBZRJL.js";
|
|
8
8
|
import {
|
|
9
9
|
syncLatestTypes
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4OBSJ6OG.js";
|
|
11
11
|
import "./chunk-OJHDGJWP.js";
|
|
12
|
-
import "./chunk-OUBPZBBH.js";
|
|
13
12
|
import "./chunk-YXFEXGAH.js";
|
|
14
13
|
import {
|
|
15
14
|
useProjectModel
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OOGMXJJV.js";
|
|
17
16
|
import {
|
|
18
17
|
pRetry,
|
|
19
18
|
useAuth
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-U32RURCT.js";
|
|
20
|
+
import "./chunk-HYAIYTKF.js";
|
|
22
21
|
import {
|
|
23
22
|
Spinner,
|
|
24
23
|
Trans,
|
|
25
24
|
require_react,
|
|
26
25
|
useAsync,
|
|
27
26
|
useTranslation
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-V4DAKO7L.js";
|
|
28
|
+
import "./chunk-WN3D6AOY.js";
|
|
30
29
|
import "./chunk-W423UTD3.js";
|
|
31
30
|
import "./chunk-6F2RSXHN.js";
|
|
32
31
|
import "./chunk-YU54OBFT.js";
|
|
33
32
|
import "./chunk-XMTHMR2B.js";
|
|
34
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-5XUFGBCU.js";
|
|
35
34
|
import {
|
|
36
35
|
outputDir,
|
|
37
36
|
outputFile
|
|
38
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-JG7FKL4X.js";
|
|
39
38
|
import {
|
|
40
39
|
getTestOverrides
|
|
41
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BNWDAMAL.js";
|
|
42
41
|
import {
|
|
43
42
|
CliError,
|
|
44
43
|
CliErrorCode,
|
|
45
44
|
require_lib
|
|
46
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-T4OH34QF.js";
|
|
47
46
|
import {
|
|
48
47
|
__toESM,
|
|
49
48
|
init_esm_shims
|
|
@@ -169,4 +168,4 @@ var DevCommand = () => {
|
|
|
169
168
|
export {
|
|
170
169
|
DevCommand
|
|
171
170
|
};
|
|
172
|
-
//# sourceMappingURL=DevCommand-
|
|
171
|
+
//# sourceMappingURL=DevCommand-PLIPWJKO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../cli-site-live/src/components/DevCommand/DevCommand.tsx","../../cli-site-live/src/components/DevCommand/InitializingState.tsx","../../cli-site-live/src/velo-types-sync-client/useVeloTypesSyncClient.ts","../../cli-site-live/src/velo-types-sync-client/velo-types-sync-client.ts","../../cli-site-live/src/project-files-service/useProjectFilesService.ts","../../cli-site-live/src/project-files-service/project-files-service.ts","../../cli-site-live/src/components/DevCommand/ReadyState.tsx"],"sourcesContent":["import React from 'react';\nimport type { FC } from 'react';\nimport { InitializingState } from './InitializingState.js';\nimport { ReadyState } from './ReadyState.js';\n\nexport const DevCommand: FC = () => {\n return (\n <InitializingState>\n <ReadyState />\n </InitializingState>\n );\n};\n","import type { FC, PropsWithChildren } from 'react';\nimport React from 'react';\nimport { match } from 'variant';\nimport { Spinner, useAsync } from '@wix/cli-ui-kit';\nimport { useTranslation } from '@wix/cli-i18n';\nimport { useVeloClient } from '@wix/velo-client';\nimport { useVeloTypesSyncClient } from '../../velo-types-sync-client/useVeloTypesSyncClient.js';\nimport { useProjectFilesService } from '../../project-files-service/useProjectFilesService.js';\nimport { useProjectModel } from '../../model.js';\n\nexport const InitializingState: FC<PropsWithChildren> = ({ children }) => {\n const { t } = useTranslation();\n const veloClient = useVeloClient();\n const projectFilesService = useProjectFilesService();\n const { veloAppId, projectFolder } = useProjectModel();\n const veloTypeSyncer = useVeloTypesSyncClient(projectFolder);\n\n const { status } = useAsync(async () => {\n async function initProjectFiles() {\n const { files, directories } = await veloClient.listAppFiles(veloAppId);\n await Promise.all([\n ...directories.map(projectFilesService.addDir),\n ...files.map(projectFilesService.saveFile),\n ]);\n }\n await Promise.all([initProjectFiles(), veloTypeSyncer.syncLatestTypes()]);\n }, []);\n\n return match(status, {\n Success: () => children,\n Error: () => null,\n Loading: () => <Spinner text={t('dev_command.init.fetching_files')} />,\n });\n};\n","import { useAuth } from '@wix/cli-auth';\nimport { useMemo } from 'react';\nimport { VeloTypesSyncClient } from './velo-types-sync-client.js';\n\nexport function useVeloTypesSyncClient(projectFolder: string) {\n const { getAccessToken } = useAuth();\n\n return useMemo(\n () => new VeloTypesSyncClient(projectFolder, getAccessToken),\n [projectFolder, getAccessToken]\n );\n}\n","import pRetry from 'p-retry';\nimport type { Options } from 'p-retry';\nimport { syncLatestTypes } from '@wix/velo-site-types-syncer';\nimport { getTestOverrides } from '@wix/cli-test-overrides';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\n\nexport class VeloTypesSyncClient {\n private readonly retryOptions: Options;\n\n constructor(\n private projectFolder: string,\n private getToken: () => Promise<string>\n ) {\n const { minRetryTimeout } = getTestOverrides();\n\n this.retryOptions = {\n retries: 3,\n minTimeout: minRetryTimeout,\n maxTimeout: 3 * 1000,\n };\n }\n\n syncLatestTypes = async () => {\n const token = await this.getToken();\n\n try {\n await pRetry(\n () =>\n syncLatestTypes(this.projectFolder, {\n getAppToken: () => token,\n }),\n this.retryOptions\n );\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToSyncPagesTypes(),\n cause: e,\n });\n }\n };\n}\n","import { useMemo } from 'react';\nimport { useProjectModel } from '../model.js';\nimport { ProjectFilesService } from './project-files-service.js';\n\nexport const useProjectFilesService = () => {\n const { projectFolder } = useProjectModel();\n\n return useMemo(() => new ProjectFilesService(projectFolder), [projectFolder]);\n};\n","import { join } from 'node:path';\nimport type { Directory, File } from '@wix/velo-client';\nimport { outputFile, outputDir } from '@wix/cli-fs';\n\nexport class ProjectFilesService {\n constructor(private projectFolder: string) {}\n\n addDir = async (file: Directory): Promise<void> => {\n const filePath = this.getFullPath(file);\n await outputDir(filePath);\n };\n\n saveFile = async (file: File): Promise<void> => {\n const filePath = this.getFullPath(file);\n await outputFile(filePath, file.content);\n };\n\n private getFullPath = (file: File | Directory) =>\n join(this.projectFolder, file.path);\n}\n","import React from 'react';\nimport { Trans } from '@wix/cli-i18n';\n\nexport const ReadyState = () => {\n return <Trans i18nKey=\"dev_command.welcome\" />;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../cli-site-live/src/components/DevCommand/DevCommand.tsx","../../cli-site-live/src/components/DevCommand/InitializingState.tsx","../../cli-site-live/src/velo-types-sync-client/useVeloTypesSyncClient.ts","../../cli-site-live/src/velo-types-sync-client/velo-types-sync-client.ts","../../cli-site-live/src/project-files-service/useProjectFilesService.ts","../../cli-site-live/src/project-files-service/project-files-service.ts","../../cli-site-live/src/components/DevCommand/ReadyState.tsx"],"sourcesContent":["import React from 'react';\nimport type { FC } from 'react';\nimport { InitializingState } from './InitializingState.js';\nimport { ReadyState } from './ReadyState.js';\n\nexport const DevCommand: FC = () => {\n return (\n <InitializingState>\n <ReadyState />\n </InitializingState>\n );\n};\n","import type { FC, PropsWithChildren } from 'react';\nimport React from 'react';\nimport { match } from 'variant';\nimport { Spinner, useAsync } from '@wix/cli-ui-kit';\nimport { useTranslation } from '@wix/cli-i18n';\nimport { useVeloClient } from '@wix/velo-client';\nimport { useVeloTypesSyncClient } from '../../velo-types-sync-client/useVeloTypesSyncClient.js';\nimport { useProjectFilesService } from '../../project-files-service/useProjectFilesService.js';\nimport { useProjectModel } from '../../model.js';\n\nexport const InitializingState: FC<PropsWithChildren> = ({ children }) => {\n const { t } = useTranslation();\n const veloClient = useVeloClient();\n const projectFilesService = useProjectFilesService();\n const { veloAppId, projectFolder } = useProjectModel();\n const veloTypeSyncer = useVeloTypesSyncClient(projectFolder);\n\n const { status } = useAsync(async () => {\n async function initProjectFiles() {\n const { files, directories } = await veloClient.listAppFiles(veloAppId);\n await Promise.all([\n ...directories.map(projectFilesService.addDir),\n ...files.map(projectFilesService.saveFile),\n ]);\n }\n await Promise.all([initProjectFiles(), veloTypeSyncer.syncLatestTypes()]);\n }, []);\n\n return match(status, {\n Success: () => children,\n Error: () => null,\n Loading: () => <Spinner text={t('dev_command.init.fetching_files')} />,\n });\n};\n","import { useAuth } from '@wix/cli-auth';\nimport { useMemo } from 'react';\nimport { VeloTypesSyncClient } from './velo-types-sync-client.js';\n\nexport function useVeloTypesSyncClient(projectFolder: string) {\n const { getAccessToken } = useAuth();\n\n return useMemo(\n () => new VeloTypesSyncClient(projectFolder, getAccessToken),\n [projectFolder, getAccessToken]\n );\n}\n","import pRetry from 'p-retry';\nimport type { Options } from 'p-retry';\nimport { syncLatestTypes } from '@wix/velo-site-types-syncer';\nimport { getTestOverrides } from '@wix/cli-test-overrides';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\n\nexport class VeloTypesSyncClient {\n private readonly retryOptions: Options;\n\n constructor(\n private projectFolder: string,\n private getToken: () => Promise<string>\n ) {\n const { minRetryTimeout } = getTestOverrides();\n\n this.retryOptions = {\n retries: 3,\n minTimeout: minRetryTimeout,\n maxTimeout: 3 * 1000,\n };\n }\n\n syncLatestTypes = async () => {\n const token = await this.getToken();\n\n try {\n await pRetry(\n () =>\n syncLatestTypes(this.projectFolder, {\n getAppToken: () => token,\n }),\n this.retryOptions\n );\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToSyncPagesTypes(),\n cause: e,\n });\n }\n };\n}\n","import { useMemo } from 'react';\nimport { useProjectModel } from '../model.js';\nimport { ProjectFilesService } from './project-files-service.js';\n\nexport const useProjectFilesService = () => {\n const { projectFolder } = useProjectModel();\n\n return useMemo(() => new ProjectFilesService(projectFolder), [projectFolder]);\n};\n","import { join } from 'node:path';\nimport type { Directory, File } from '@wix/velo-client';\nimport { outputFile, outputDir } from '@wix/cli-fs';\n\nexport class ProjectFilesService {\n constructor(private projectFolder: string) {}\n\n addDir = async (file: Directory): Promise<void> => {\n const filePath = this.getFullPath(file);\n await outputDir(filePath);\n };\n\n saveFile = async (file: File): Promise<void> => {\n const filePath = this.getFullPath(file);\n await outputFile(filePath, file.content);\n };\n\n private getFullPath = (file: File | Directory) =>\n join(this.projectFolder, file.path);\n}\n","import React from 'react';\nimport { Trans } from '@wix/cli-i18n';\n\nexport const ReadyState = () => {\n return <Trans i18nKey=\"dev_command.welcome\" />;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;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]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-3RBFRZE2.js";
|
|
4
4
|
import {
|
|
5
5
|
addUserFields
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X7XOMWAQ.js";
|
|
7
7
|
import {
|
|
8
8
|
ApiKeyLogin,
|
|
9
9
|
LoginWithI18n
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-U32RURCT.js";
|
|
11
11
|
import {
|
|
12
12
|
useBiLogger,
|
|
13
13
|
useErrorReporter
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HYAIYTKF.js";
|
|
15
15
|
import {
|
|
16
16
|
ConfirmInput,
|
|
17
17
|
Text,
|
|
@@ -19,19 +19,19 @@ import {
|
|
|
19
19
|
require_react,
|
|
20
20
|
useExit,
|
|
21
21
|
useTranslation
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-V4DAKO7L.js";
|
|
23
|
+
import "./chunk-WN3D6AOY.js";
|
|
24
24
|
import "./chunk-W423UTD3.js";
|
|
25
25
|
import "./chunk-6F2RSXHN.js";
|
|
26
26
|
import "./chunk-YU54OBFT.js";
|
|
27
27
|
import "./chunk-XMTHMR2B.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-BV3B44QL.js";
|
|
29
|
+
import "./chunk-5XUFGBCU.js";
|
|
30
|
+
import "./chunk-JG7FKL4X.js";
|
|
31
|
+
import "./chunk-BNWDAMAL.js";
|
|
32
32
|
import {
|
|
33
33
|
require_lib
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-T4OH34QF.js";
|
|
35
35
|
import {
|
|
36
36
|
__toESM,
|
|
37
37
|
init_esm_shims
|
|
@@ -120,4 +120,4 @@ var LoginCommand = ({
|
|
|
120
120
|
export {
|
|
121
121
|
LoginCommand
|
|
122
122
|
};
|
|
123
|
-
//# sourceMappingURL=LoginCommand-
|
|
123
|
+
//# sourceMappingURL=LoginCommand-NRZ4VWWM.js.map
|
|
@@ -2,8 +2,8 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
logout
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-U32RURCT.js";
|
|
6
|
+
import "./chunk-HYAIYTKF.js";
|
|
7
7
|
import {
|
|
8
8
|
Box_default,
|
|
9
9
|
ConfirmInput,
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
require_react,
|
|
14
14
|
useAsyncCallback,
|
|
15
15
|
useTranslation
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-V4DAKO7L.js";
|
|
17
|
+
import "./chunk-WN3D6AOY.js";
|
|
18
18
|
import "./chunk-W423UTD3.js";
|
|
19
19
|
import "./chunk-6F2RSXHN.js";
|
|
20
20
|
import "./chunk-YU54OBFT.js";
|
|
21
21
|
import "./chunk-XMTHMR2B.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-JG7FKL4X.js";
|
|
23
|
+
import "./chunk-BNWDAMAL.js";
|
|
24
24
|
import {
|
|
25
25
|
require_lib
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-T4OH34QF.js";
|
|
27
27
|
import {
|
|
28
28
|
__toESM,
|
|
29
29
|
init_esm_shims
|
|
@@ -63,4 +63,4 @@ var LogoutCommand = ({ userInfo }) => {
|
|
|
63
63
|
export {
|
|
64
64
|
LogoutCommand
|
|
65
65
|
};
|
|
66
|
-
//# sourceMappingURL=LogoutCommand-
|
|
66
|
+
//# sourceMappingURL=LogoutCommand-INOYIE67.js.map
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
Trans,
|
|
6
6
|
require_react,
|
|
7
7
|
useTranslation
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-V4DAKO7L.js";
|
|
9
9
|
import "./chunk-W423UTD3.js";
|
|
10
10
|
import "./chunk-6F2RSXHN.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-BNWDAMAL.js";
|
|
12
|
+
import "./chunk-T4OH34QF.js";
|
|
13
13
|
import {
|
|
14
14
|
__toESM,
|
|
15
15
|
init_esm_shims
|
|
@@ -44,4 +44,4 @@ var WhoamiCommand = ({ userInfo }) => {
|
|
|
44
44
|
export {
|
|
45
45
|
WhoamiCommand
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=WhoamiCommand-
|
|
47
|
+
//# sourceMappingURL=WhoamiCommand-4V4GTNFW.js.map
|
|
@@ -3,19 +3,19 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
createBiLogger,
|
|
5
5
|
reportCommandStartEvent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X7XOMWAQ.js";
|
|
7
7
|
import {
|
|
8
8
|
wixCliCliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WN3D6AOY.js";
|
|
10
10
|
import {
|
|
11
11
|
isCliSystemError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-T4OH34QF.js";
|
|
13
13
|
import {
|
|
14
14
|
init_esm_shims
|
|
15
15
|
} from "./chunk-PYIAC2GK.js";
|
|
16
16
|
|
|
17
17
|
// package.json
|
|
18
|
-
var version = "1.1.
|
|
18
|
+
var version = "1.1.59";
|
|
19
19
|
var package_default = {
|
|
20
20
|
name: "@wix/cli",
|
|
21
21
|
description: "CLI tool for building Wix sites and applications",
|
|
@@ -27,7 +27,7 @@ var package_default = {
|
|
|
27
27
|
"node-gyp": "^8.4.1"
|
|
28
28
|
},
|
|
29
29
|
devDependencies: {
|
|
30
|
-
"@commander-js/extra-typings": "^
|
|
30
|
+
"@commander-js/extra-typings": "^13.0.0",
|
|
31
31
|
"@types/columnify": "^1.5.4",
|
|
32
32
|
"@types/react": "^18.3.3",
|
|
33
33
|
"@types/semver": "^7.5.8",
|
|
@@ -53,11 +53,11 @@ var package_default = {
|
|
|
53
53
|
"@wix/tsup-configs": "workspace:*",
|
|
54
54
|
chalk: "^5.3.0",
|
|
55
55
|
columnify: "^1.6.0",
|
|
56
|
-
commander: "^
|
|
56
|
+
commander: "^13.0.0",
|
|
57
57
|
react: "^18.3.1",
|
|
58
58
|
semver: "^7.6.3",
|
|
59
59
|
variant: "^3.0.0-dev.27",
|
|
60
|
-
zod: "^3.
|
|
60
|
+
zod: "^3.24.1"
|
|
61
61
|
},
|
|
62
62
|
engines: {
|
|
63
63
|
node: ">= 18.16"
|
|
@@ -148,4 +148,4 @@ export {
|
|
|
148
148
|
createBiLogger2 as createBiLogger,
|
|
149
149
|
reportCommandStartEvent2 as reportCommandStartEvent
|
|
150
150
|
};
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
151
|
+
//# sourceMappingURL=chunk-3RBFRZE2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json","../src/bi.ts"],"sourcesContent":["{\n \"name\": \"@wix/cli\",\n \"description\": \"CLI tool for building Wix sites and applications\",\n \"version\": \"1.1.
|
|
1
|
+
{"version":3,"sources":["../package.json","../src/bi.ts"],"sourcesContent":["{\n \"name\": \"@wix/cli\",\n \"description\": \"CLI tool for building Wix sites and applications\",\n \"version\": \"1.1.59\",\n \"bin\": {\n \"wix\": \"bin/wix.cjs\"\n },\n \"dependencies\": {\n \"node-gyp\": \"^8.4.1\"\n },\n \"devDependencies\": {\n \"@commander-js/extra-typings\": \"^13.0.0\",\n \"@types/columnify\": \"^1.5.4\",\n \"@types/react\": \"^18.3.3\",\n \"@types/semver\": \"^7.5.8\",\n \"@wix/bi-logger-wix-cli\": \"^1.44.0\",\n \"@wix/cli-auth\": \"workspace:*\",\n \"@wix/cli-command-contract\": \"workspace:*\",\n \"@wix/cli-core-definitions\": \"workspace:*\",\n \"@wix/cli-debug-log\": \"workspace:*\",\n \"@wix/cli-error\": \"workspace:*\",\n \"@wix/cli-error-reporting\": \"workspace:*\",\n \"@wix/cli-fs\": \"workspace:*\",\n \"@wix/cli-i18n\": \"workspace:*\",\n \"@wix/cli-logger\": \"workspace:*\",\n \"@wix/cli-site\": \"workspace:*\",\n \"@wix/cli-site-live\": \"workspace:*\",\n \"@wix/cli-site-old\": \"workspace:*\",\n \"@wix/cli-telemetry\": \"workspace:*\",\n \"@wix/cli-telemetry-react\": \"workspace:*\",\n \"@wix/cli-test-overrides\": \"workspace:*\",\n \"@wix/cli-ui-kit\": \"workspace:*\",\n \"@wix/cli-user-config\": \"workspace:*\",\n \"@wix/cli-version-manager\": \"workspace:*\",\n \"@wix/tsup-configs\": \"workspace:*\",\n \"chalk\": \"^5.3.0\",\n \"columnify\": \"^1.6.0\",\n \"commander\": \"^13.0.0\",\n \"react\": \"^18.3.1\",\n \"semver\": \"^7.6.3\",\n \"variant\": \"^3.0.0-dev.27\",\n \"zod\": \"^3.24.1\"\n },\n \"engines\": {\n \"node\": \">= 18.16\"\n },\n \"files\": [\n \"bin\",\n \"build\"\n ],\n \"keywords\": [\n \"wix\",\n \"wix-cli\"\n ],\n \"optionalDependencies\": {\n \"fsevents\": \"^2.3.2\"\n },\n \"perfer\": {\n \"bundleSize\": {\n \"files\": [\n {\n \"glob\": \"./build/index.js\",\n \"maxSize\": \"985kb\"\n }\n ]\n }\n },\n \"publishConfig\": {\n \"registry\": \"https://registry.npmjs.org/\",\n \"access\": \"public\",\n \"versionBumpStrategy\": \"manual\",\n \"logLevel\": \"verbose\"\n },\n \"scripts\": {\n \"build\": \"run -T tsup\",\n \"build:watch\": \"run -T build:watch --filter='@wix/cli'\",\n \"test\": \"yarn workspace @wix/cli-core-spec run test\",\n \"test:watch\": \"yarn workspace @wix/cli-core-spec run test:watch\",\n \"typecheck\": \"run -T tsc --noEmit\"\n },\n \"type\": \"module\",\n \"wix\": {\n \"artifact\": {\n \"groupId\": \"com.wixpress.npm\",\n \"artifactId\": \"wix-cli\"\n },\n \"validations\": {\n \"postBuild\": [\n \"typecheck\"\n ]\n }\n }\n}\n","import { randomUUID } from 'node:crypto';\nimport type { Command } from '@commander-js/extra-typings';\nimport type { ErrorReporter } from '@wix/cli-error-reporting';\nimport type { BiLogger } from '@wix/cli-telemetry';\nimport { wixCliCliError } from '@wix/bi-logger-wix-cli/v2';\nimport { isCliSystemError } from '@wix/cli-error';\nimport {\n createBiLogger as createCliBiLogger,\n reportCommandStartEvent as originalReportCommandStartEvent,\n} from '@wix/cli-telemetry';\nimport { version } from '../package.json';\n\nexport { addUserFields } from '@wix/cli-telemetry';\n\nexport const createBiLogger = async (\n errorReporter: ErrorReporter,\n userId?: string\n) => {\n const biLogger = await createCliBiLogger(\n {\n cliSessionId: randomUUID(),\n },\n userId\n );\n\n errorReporter.on('errorReported', (error) => {\n void biLogger.report(\n wixCliCliError({\n errorMessage: error.message,\n errorName: error.name,\n errorType: isCliSystemError(error) ? 'SystemError' : 'UserError',\n })\n );\n });\n\n return {\n biLogger,\n };\n};\n\nexport const reportCommandStartEvent = (\n biLogger: BiLogger,\n command: Command<unknown[]>\n) => {\n return originalReportCommandStartEvent({\n biLogger,\n cliVersion: version,\n command,\n flow: null,\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAGE,cAAW;AAHb;AAAA,EACE,MAAQ;AAAA,EACR,aAAe;AAAA,EACf;AAAA,EACA,KAAO;AAAA,IACL,KAAO;AAAA,EACT;AAAA,EACA,cAAgB;AAAA,IACd,YAAY;AAAA,EACd;AAAA,EACA,iBAAmB;AAAA,IACjB,+BAA+B;AAAA,IAC/B,oBAAoB;AAAA,IACpB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Ae;AAAA,MACb,WAAa;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;AC5FA;AAAA,SAAS,kBAAkB;AAcpB,IAAMA,kBAAiB,OAC5B,eACA,WACG;AACH,QAAM,WAAW,MAAM;AAAA,IACrB;AAAA,MACE,cAAc,WAAW;AAAA,IAC3B;AAAA,IACA;AAAA,EACF;AAEA,gBAAc,GAAG,iBAAiB,CAAC,UAAU;AAC3C,SAAK,SAAS;AAAA,MACZ,eAAe;AAAA,QACb,cAAc,MAAM;AAAA,QACpB,WAAW,MAAM;AAAA,QACjB,WAAW,iBAAiB,KAAK,IAAI,gBAAgB;AAAA,MACvD,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AAED,SAAO;AAAA,IACL;AAAA,EACF;AACF;AAEO,IAAMC,2BAA0B,CACrC,UACA,YACG;AACH,SAAO,wBAAgC;AAAA,IACrC;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,EACR,CAAC;AACH;","names":["createBiLogger","reportCommandStartEvent"]}
|
|
@@ -3,7 +3,7 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
resolveUrl,
|
|
5
5
|
serializer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U32RURCT.js";
|
|
7
7
|
import {
|
|
8
8
|
init_esm_shims
|
|
9
9
|
} from "./chunk-PYIAC2GK.js";
|
|
@@ -179,4 +179,4 @@ export {
|
|
|
179
179
|
createApp,
|
|
180
180
|
deployApp
|
|
181
181
|
};
|
|
182
|
-
//# sourceMappingURL=chunk-
|
|
182
|
+
//# sourceMappingURL=chunk-4HVBZRJL.js.map
|