@wix/cli-app 1.1.229 → 1.1.231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{AddPermissionCommand-HYBTUEPJ.js → AddPermissionCommand-XLJAJMQA.js} +2 -2
- package/build/{DevCommand-O2VDSAVR.js → DevCommand-UYGOVM52.js} +10 -10
- package/build/{GenerateCommand-TZQMALWI.js → GenerateCommand-X6TO6Q7Z.js} +7 -7
- package/build/{LogsCommand-73QZ2NXA.js → LogsCommand-H6KQMW4D.js} +3 -3
- package/build/PreviewCommand-BHLTSNCY.js +19 -0
- package/build/ReleaseCommand-JGTDSNLZ.js +23 -0
- package/build/{ServeCommand-PIDITLZ5.js → ServeCommand-H5QD5HSW.js} +3 -3
- package/build/{build-UDBDFVS2.js → build-IQII2PAY.js} +6 -6
- package/build/{chunk-O6VQSFWU.js → chunk-4HUUVL6P.js} +2 -2
- package/build/{chunk-PVDHSFGT.js → chunk-4QPGOE7M.js} +2 -2
- package/build/{chunk-POCET45A.js → chunk-5S6C53NO.js} +2 -2
- package/build/{chunk-WUVILOS7.js → chunk-7SSIMDG6.js} +2 -2
- package/build/{chunk-ZILKTKCT.js → chunk-GS5TTQVY.js} +2 -2
- package/build/{chunk-DDZZCS6C.js → chunk-H2TEJDCT.js} +6 -6
- package/build/{chunk-HF5MT73I.js → chunk-JAHG4CQJ.js} +2 -2
- package/build/{chunk-S3QTBEZ5.js → chunk-KRSX35IF.js} +2 -2
- package/build/{chunk-CHSEZFEW.js → chunk-MZG2KMKR.js} +2 -2
- package/build/{chunk-RFEA6G7R.js → chunk-PP22O52S.js} +3 -3
- package/build/{chunk-GPY3Y7OZ.js → chunk-Q5QWIUME.js} +6 -6
- package/build/{chunk-4FEH3DLF.js → chunk-QH5X47GE.js} +3 -3
- package/build/{chunk-JRGCSUT3.js → chunk-SUVPNNFA.js} +775 -196
- package/build/{chunk-JRGCSUT3.js.map → chunk-SUVPNNFA.js.map} +1 -1
- package/build/{chunk-YJ4STQXO.js → chunk-SUXFXYYV.js} +5 -7
- package/build/{chunk-YJ4STQXO.js.map → chunk-SUXFXYYV.js.map} +1 -1
- package/build/{chunk-YHXMVE3Y.js → chunk-TLWBDHZS.js} +7 -7
- package/build/{chunk-22ATUK5Z.js → chunk-UJTZCPKS.js} +4 -6
- package/build/{chunk-22ATUK5Z.js.map → chunk-UJTZCPKS.js.map} +1 -1
- package/build/index.js +22 -23
- package/build/index.js.map +1 -1
- package/build/{preview-E64HYYMV.js → preview-WTCIMIAX.js} +11 -12
- package/build/{preview-E64HYYMV.js.map → preview-WTCIMIAX.js.map} +1 -1
- package/build/{release-JGBSVSFD.js → release-GQ5RWJZC.js} +13 -14
- package/build/{release-JGBSVSFD.js.map → release-GQ5RWJZC.js.map} +1 -1
- package/build/{render-command-ETH5CQSR.js → render-command-CTM3ITVW.js} +4 -5
- package/package.json +2 -2
- package/build/PreviewCommand-UDF4P6EB.js +0 -19
- package/build/ReleaseCommand-BRKAI646.js +0 -23
- package/build/chunk-QTTGXU6W.js +0 -605
- package/build/chunk-QTTGXU6W.js.map +0 -1
- /package/build/{AddPermissionCommand-HYBTUEPJ.js.map → AddPermissionCommand-XLJAJMQA.js.map} +0 -0
- /package/build/{DevCommand-O2VDSAVR.js.map → DevCommand-UYGOVM52.js.map} +0 -0
- /package/build/{GenerateCommand-TZQMALWI.js.map → GenerateCommand-X6TO6Q7Z.js.map} +0 -0
- /package/build/{LogsCommand-73QZ2NXA.js.map → LogsCommand-H6KQMW4D.js.map} +0 -0
- /package/build/{PreviewCommand-UDF4P6EB.js.map → PreviewCommand-BHLTSNCY.js.map} +0 -0
- /package/build/{ReleaseCommand-BRKAI646.js.map → ReleaseCommand-JGTDSNLZ.js.map} +0 -0
- /package/build/{ServeCommand-PIDITLZ5.js.map → ServeCommand-H5QD5HSW.js.map} +0 -0
- /package/build/{build-UDBDFVS2.js.map → build-IQII2PAY.js.map} +0 -0
- /package/build/{chunk-O6VQSFWU.js.map → chunk-4HUUVL6P.js.map} +0 -0
- /package/build/{chunk-PVDHSFGT.js.map → chunk-4QPGOE7M.js.map} +0 -0
- /package/build/{chunk-POCET45A.js.map → chunk-5S6C53NO.js.map} +0 -0
- /package/build/{chunk-WUVILOS7.js.map → chunk-7SSIMDG6.js.map} +0 -0
- /package/build/{chunk-ZILKTKCT.js.map → chunk-GS5TTQVY.js.map} +0 -0
- /package/build/{chunk-DDZZCS6C.js.map → chunk-H2TEJDCT.js.map} +0 -0
- /package/build/{chunk-HF5MT73I.js.map → chunk-JAHG4CQJ.js.map} +0 -0
- /package/build/{chunk-S3QTBEZ5.js.map → chunk-KRSX35IF.js.map} +0 -0
- /package/build/{chunk-CHSEZFEW.js.map → chunk-MZG2KMKR.js.map} +0 -0
- /package/build/{chunk-RFEA6G7R.js.map → chunk-PP22O52S.js.map} +0 -0
- /package/build/{chunk-GPY3Y7OZ.js.map → chunk-Q5QWIUME.js.map} +0 -0
- /package/build/{chunk-4FEH3DLF.js.map → chunk-QH5X47GE.js.map} +0 -0
- /package/build/{chunk-YHXMVE3Y.js.map → chunk-TLWBDHZS.js.map} +0 -0
- /package/build/{render-command-ETH5CQSR.js.map → render-command-CTM3ITVW.js.map} +0 -0
|
@@ -1940,7 +1940,7 @@ var require_main = __commonJS({
|
|
|
1940
1940
|
init_esm_shims();
|
|
1941
1941
|
var fs11 = __require("fs");
|
|
1942
1942
|
var path5 = __require("path");
|
|
1943
|
-
var
|
|
1943
|
+
var os5 = __require("os");
|
|
1944
1944
|
var crypto = __require("crypto");
|
|
1945
1945
|
var packageJson = require_package();
|
|
1946
1946
|
var version = packageJson.version;
|
|
@@ -2058,7 +2058,7 @@ var require_main = __commonJS({
|
|
|
2058
2058
|
return null;
|
|
2059
2059
|
}
|
|
2060
2060
|
function _resolveHome(envPath) {
|
|
2061
|
-
return envPath[0] === "~" ? path5.join(
|
|
2061
|
+
return envPath[0] === "~" ? path5.join(os5.homedir(), envPath.slice(1)) : envPath;
|
|
2062
2062
|
}
|
|
2063
2063
|
function _configVault(options) {
|
|
2064
2064
|
const debug = Boolean(options && options.debug);
|
|
@@ -2885,11 +2885,11 @@ var require_ci_info = __commonJS({
|
|
|
2885
2885
|
exports.isPR = null;
|
|
2886
2886
|
vendors.forEach(function(vendor) {
|
|
2887
2887
|
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
|
|
2888
|
-
const
|
|
2888
|
+
const isCI3 = envs.every(function(obj) {
|
|
2889
2889
|
return checkEnv(obj);
|
|
2890
2890
|
});
|
|
2891
|
-
exports[vendor.constant] =
|
|
2892
|
-
if (!
|
|
2891
|
+
exports[vendor.constant] = isCI3;
|
|
2892
|
+
if (!isCI3) {
|
|
2893
2893
|
return;
|
|
2894
2894
|
}
|
|
2895
2895
|
exports.name = vendor.name;
|
|
@@ -11106,27 +11106,451 @@ var require_cli_spinners = __commonJS({
|
|
|
11106
11106
|
}
|
|
11107
11107
|
});
|
|
11108
11108
|
|
|
11109
|
-
// ../../node_modules/
|
|
11110
|
-
var
|
|
11111
|
-
"../../node_modules/
|
|
11109
|
+
// ../../node_modules/ci-info/vendors.json
|
|
11110
|
+
var require_vendors2 = __commonJS({
|
|
11111
|
+
"../../node_modules/ci-info/vendors.json"(exports, module2) {
|
|
11112
|
+
module2.exports = [
|
|
11113
|
+
{
|
|
11114
|
+
name: "Agola CI",
|
|
11115
|
+
constant: "AGOLA",
|
|
11116
|
+
env: "AGOLA_GIT_REF",
|
|
11117
|
+
pr: "AGOLA_PULL_REQUEST_ID"
|
|
11118
|
+
},
|
|
11119
|
+
{
|
|
11120
|
+
name: "Appcircle",
|
|
11121
|
+
constant: "APPCIRCLE",
|
|
11122
|
+
env: "AC_APPCIRCLE",
|
|
11123
|
+
pr: {
|
|
11124
|
+
env: "AC_GIT_PR",
|
|
11125
|
+
ne: "false"
|
|
11126
|
+
}
|
|
11127
|
+
},
|
|
11128
|
+
{
|
|
11129
|
+
name: "AppVeyor",
|
|
11130
|
+
constant: "APPVEYOR",
|
|
11131
|
+
env: "APPVEYOR",
|
|
11132
|
+
pr: "APPVEYOR_PULL_REQUEST_NUMBER"
|
|
11133
|
+
},
|
|
11134
|
+
{
|
|
11135
|
+
name: "AWS CodeBuild",
|
|
11136
|
+
constant: "CODEBUILD",
|
|
11137
|
+
env: "CODEBUILD_BUILD_ARN",
|
|
11138
|
+
pr: {
|
|
11139
|
+
env: "CODEBUILD_WEBHOOK_EVENT",
|
|
11140
|
+
any: [
|
|
11141
|
+
"PULL_REQUEST_CREATED",
|
|
11142
|
+
"PULL_REQUEST_UPDATED",
|
|
11143
|
+
"PULL_REQUEST_REOPENED"
|
|
11144
|
+
]
|
|
11145
|
+
}
|
|
11146
|
+
},
|
|
11147
|
+
{
|
|
11148
|
+
name: "Azure Pipelines",
|
|
11149
|
+
constant: "AZURE_PIPELINES",
|
|
11150
|
+
env: "TF_BUILD",
|
|
11151
|
+
pr: {
|
|
11152
|
+
BUILD_REASON: "PullRequest"
|
|
11153
|
+
}
|
|
11154
|
+
},
|
|
11155
|
+
{
|
|
11156
|
+
name: "Bamboo",
|
|
11157
|
+
constant: "BAMBOO",
|
|
11158
|
+
env: "bamboo_planKey"
|
|
11159
|
+
},
|
|
11160
|
+
{
|
|
11161
|
+
name: "Bitbucket Pipelines",
|
|
11162
|
+
constant: "BITBUCKET",
|
|
11163
|
+
env: "BITBUCKET_COMMIT",
|
|
11164
|
+
pr: "BITBUCKET_PR_ID"
|
|
11165
|
+
},
|
|
11166
|
+
{
|
|
11167
|
+
name: "Bitrise",
|
|
11168
|
+
constant: "BITRISE",
|
|
11169
|
+
env: "BITRISE_IO",
|
|
11170
|
+
pr: "BITRISE_PULL_REQUEST"
|
|
11171
|
+
},
|
|
11172
|
+
{
|
|
11173
|
+
name: "Buddy",
|
|
11174
|
+
constant: "BUDDY",
|
|
11175
|
+
env: "BUDDY_WORKSPACE_ID",
|
|
11176
|
+
pr: "BUDDY_EXECUTION_PULL_REQUEST_ID"
|
|
11177
|
+
},
|
|
11178
|
+
{
|
|
11179
|
+
name: "Buildkite",
|
|
11180
|
+
constant: "BUILDKITE",
|
|
11181
|
+
env: "BUILDKITE",
|
|
11182
|
+
pr: {
|
|
11183
|
+
env: "BUILDKITE_PULL_REQUEST",
|
|
11184
|
+
ne: "false"
|
|
11185
|
+
}
|
|
11186
|
+
},
|
|
11187
|
+
{
|
|
11188
|
+
name: "CircleCI",
|
|
11189
|
+
constant: "CIRCLE",
|
|
11190
|
+
env: "CIRCLECI",
|
|
11191
|
+
pr: "CIRCLE_PULL_REQUEST"
|
|
11192
|
+
},
|
|
11193
|
+
{
|
|
11194
|
+
name: "Cirrus CI",
|
|
11195
|
+
constant: "CIRRUS",
|
|
11196
|
+
env: "CIRRUS_CI",
|
|
11197
|
+
pr: "CIRRUS_PR"
|
|
11198
|
+
},
|
|
11199
|
+
{
|
|
11200
|
+
name: "Cloudflare Pages",
|
|
11201
|
+
constant: "CLOUDFLARE_PAGES",
|
|
11202
|
+
env: "CF_PAGES"
|
|
11203
|
+
},
|
|
11204
|
+
{
|
|
11205
|
+
name: "Codefresh",
|
|
11206
|
+
constant: "CODEFRESH",
|
|
11207
|
+
env: "CF_BUILD_ID",
|
|
11208
|
+
pr: {
|
|
11209
|
+
any: [
|
|
11210
|
+
"CF_PULL_REQUEST_NUMBER",
|
|
11211
|
+
"CF_PULL_REQUEST_ID"
|
|
11212
|
+
]
|
|
11213
|
+
}
|
|
11214
|
+
},
|
|
11215
|
+
{
|
|
11216
|
+
name: "Codemagic",
|
|
11217
|
+
constant: "CODEMAGIC",
|
|
11218
|
+
env: "CM_BUILD_ID",
|
|
11219
|
+
pr: "CM_PULL_REQUEST"
|
|
11220
|
+
},
|
|
11221
|
+
{
|
|
11222
|
+
name: "Codeship",
|
|
11223
|
+
constant: "CODESHIP",
|
|
11224
|
+
env: {
|
|
11225
|
+
CI_NAME: "codeship"
|
|
11226
|
+
}
|
|
11227
|
+
},
|
|
11228
|
+
{
|
|
11229
|
+
name: "Drone",
|
|
11230
|
+
constant: "DRONE",
|
|
11231
|
+
env: "DRONE",
|
|
11232
|
+
pr: {
|
|
11233
|
+
DRONE_BUILD_EVENT: "pull_request"
|
|
11234
|
+
}
|
|
11235
|
+
},
|
|
11236
|
+
{
|
|
11237
|
+
name: "dsari",
|
|
11238
|
+
constant: "DSARI",
|
|
11239
|
+
env: "DSARI"
|
|
11240
|
+
},
|
|
11241
|
+
{
|
|
11242
|
+
name: "Earthly",
|
|
11243
|
+
constant: "EARTHLY",
|
|
11244
|
+
env: "EARTHLY_CI"
|
|
11245
|
+
},
|
|
11246
|
+
{
|
|
11247
|
+
name: "Expo Application Services",
|
|
11248
|
+
constant: "EAS",
|
|
11249
|
+
env: "EAS_BUILD"
|
|
11250
|
+
},
|
|
11251
|
+
{
|
|
11252
|
+
name: "Gerrit",
|
|
11253
|
+
constant: "GERRIT",
|
|
11254
|
+
env: "GERRIT_PROJECT"
|
|
11255
|
+
},
|
|
11256
|
+
{
|
|
11257
|
+
name: "Gitea Actions",
|
|
11258
|
+
constant: "GITEA_ACTIONS",
|
|
11259
|
+
env: "GITEA_ACTIONS"
|
|
11260
|
+
},
|
|
11261
|
+
{
|
|
11262
|
+
name: "GitHub Actions",
|
|
11263
|
+
constant: "GITHUB_ACTIONS",
|
|
11264
|
+
env: "GITHUB_ACTIONS",
|
|
11265
|
+
pr: {
|
|
11266
|
+
GITHUB_EVENT_NAME: "pull_request"
|
|
11267
|
+
}
|
|
11268
|
+
},
|
|
11269
|
+
{
|
|
11270
|
+
name: "GitLab CI",
|
|
11271
|
+
constant: "GITLAB",
|
|
11272
|
+
env: "GITLAB_CI",
|
|
11273
|
+
pr: "CI_MERGE_REQUEST_ID"
|
|
11274
|
+
},
|
|
11275
|
+
{
|
|
11276
|
+
name: "GoCD",
|
|
11277
|
+
constant: "GOCD",
|
|
11278
|
+
env: "GO_PIPELINE_LABEL"
|
|
11279
|
+
},
|
|
11280
|
+
{
|
|
11281
|
+
name: "Google Cloud Build",
|
|
11282
|
+
constant: "GOOGLE_CLOUD_BUILD",
|
|
11283
|
+
env: "BUILDER_OUTPUT"
|
|
11284
|
+
},
|
|
11285
|
+
{
|
|
11286
|
+
name: "Harness CI",
|
|
11287
|
+
constant: "HARNESS",
|
|
11288
|
+
env: "HARNESS_BUILD_ID"
|
|
11289
|
+
},
|
|
11290
|
+
{
|
|
11291
|
+
name: "Heroku",
|
|
11292
|
+
constant: "HEROKU",
|
|
11293
|
+
env: {
|
|
11294
|
+
env: "NODE",
|
|
11295
|
+
includes: "/app/.heroku/node/bin/node"
|
|
11296
|
+
}
|
|
11297
|
+
},
|
|
11298
|
+
{
|
|
11299
|
+
name: "Hudson",
|
|
11300
|
+
constant: "HUDSON",
|
|
11301
|
+
env: "HUDSON_URL"
|
|
11302
|
+
},
|
|
11303
|
+
{
|
|
11304
|
+
name: "Jenkins",
|
|
11305
|
+
constant: "JENKINS",
|
|
11306
|
+
env: [
|
|
11307
|
+
"JENKINS_URL",
|
|
11308
|
+
"BUILD_ID"
|
|
11309
|
+
],
|
|
11310
|
+
pr: {
|
|
11311
|
+
any: [
|
|
11312
|
+
"ghprbPullId",
|
|
11313
|
+
"CHANGE_ID"
|
|
11314
|
+
]
|
|
11315
|
+
}
|
|
11316
|
+
},
|
|
11317
|
+
{
|
|
11318
|
+
name: "LayerCI",
|
|
11319
|
+
constant: "LAYERCI",
|
|
11320
|
+
env: "LAYERCI",
|
|
11321
|
+
pr: "LAYERCI_PULL_REQUEST"
|
|
11322
|
+
},
|
|
11323
|
+
{
|
|
11324
|
+
name: "Magnum CI",
|
|
11325
|
+
constant: "MAGNUM",
|
|
11326
|
+
env: "MAGNUM"
|
|
11327
|
+
},
|
|
11328
|
+
{
|
|
11329
|
+
name: "Netlify CI",
|
|
11330
|
+
constant: "NETLIFY",
|
|
11331
|
+
env: "NETLIFY",
|
|
11332
|
+
pr: {
|
|
11333
|
+
env: "PULL_REQUEST",
|
|
11334
|
+
ne: "false"
|
|
11335
|
+
}
|
|
11336
|
+
},
|
|
11337
|
+
{
|
|
11338
|
+
name: "Nevercode",
|
|
11339
|
+
constant: "NEVERCODE",
|
|
11340
|
+
env: "NEVERCODE",
|
|
11341
|
+
pr: {
|
|
11342
|
+
env: "NEVERCODE_PULL_REQUEST",
|
|
11343
|
+
ne: "false"
|
|
11344
|
+
}
|
|
11345
|
+
},
|
|
11346
|
+
{
|
|
11347
|
+
name: "Prow",
|
|
11348
|
+
constant: "PROW",
|
|
11349
|
+
env: "PROW_JOB_ID"
|
|
11350
|
+
},
|
|
11351
|
+
{
|
|
11352
|
+
name: "ReleaseHub",
|
|
11353
|
+
constant: "RELEASEHUB",
|
|
11354
|
+
env: "RELEASE_BUILD_ID"
|
|
11355
|
+
},
|
|
11356
|
+
{
|
|
11357
|
+
name: "Render",
|
|
11358
|
+
constant: "RENDER",
|
|
11359
|
+
env: "RENDER",
|
|
11360
|
+
pr: {
|
|
11361
|
+
IS_PULL_REQUEST: "true"
|
|
11362
|
+
}
|
|
11363
|
+
},
|
|
11364
|
+
{
|
|
11365
|
+
name: "Sail CI",
|
|
11366
|
+
constant: "SAIL",
|
|
11367
|
+
env: "SAILCI",
|
|
11368
|
+
pr: "SAIL_PULL_REQUEST_NUMBER"
|
|
11369
|
+
},
|
|
11370
|
+
{
|
|
11371
|
+
name: "Screwdriver",
|
|
11372
|
+
constant: "SCREWDRIVER",
|
|
11373
|
+
env: "SCREWDRIVER",
|
|
11374
|
+
pr: {
|
|
11375
|
+
env: "SD_PULL_REQUEST",
|
|
11376
|
+
ne: "false"
|
|
11377
|
+
}
|
|
11378
|
+
},
|
|
11379
|
+
{
|
|
11380
|
+
name: "Semaphore",
|
|
11381
|
+
constant: "SEMAPHORE",
|
|
11382
|
+
env: "SEMAPHORE",
|
|
11383
|
+
pr: "PULL_REQUEST_NUMBER"
|
|
11384
|
+
},
|
|
11385
|
+
{
|
|
11386
|
+
name: "Sourcehut",
|
|
11387
|
+
constant: "SOURCEHUT",
|
|
11388
|
+
env: {
|
|
11389
|
+
CI_NAME: "sourcehut"
|
|
11390
|
+
}
|
|
11391
|
+
},
|
|
11392
|
+
{
|
|
11393
|
+
name: "Strider CD",
|
|
11394
|
+
constant: "STRIDER",
|
|
11395
|
+
env: "STRIDER"
|
|
11396
|
+
},
|
|
11397
|
+
{
|
|
11398
|
+
name: "TaskCluster",
|
|
11399
|
+
constant: "TASKCLUSTER",
|
|
11400
|
+
env: [
|
|
11401
|
+
"TASK_ID",
|
|
11402
|
+
"RUN_ID"
|
|
11403
|
+
]
|
|
11404
|
+
},
|
|
11405
|
+
{
|
|
11406
|
+
name: "TeamCity",
|
|
11407
|
+
constant: "TEAMCITY",
|
|
11408
|
+
env: "TEAMCITY_VERSION"
|
|
11409
|
+
},
|
|
11410
|
+
{
|
|
11411
|
+
name: "Travis CI",
|
|
11412
|
+
constant: "TRAVIS",
|
|
11413
|
+
env: "TRAVIS",
|
|
11414
|
+
pr: {
|
|
11415
|
+
env: "TRAVIS_PULL_REQUEST",
|
|
11416
|
+
ne: "false"
|
|
11417
|
+
}
|
|
11418
|
+
},
|
|
11419
|
+
{
|
|
11420
|
+
name: "Vela",
|
|
11421
|
+
constant: "VELA",
|
|
11422
|
+
env: "VELA",
|
|
11423
|
+
pr: {
|
|
11424
|
+
VELA_PULL_REQUEST: "1"
|
|
11425
|
+
}
|
|
11426
|
+
},
|
|
11427
|
+
{
|
|
11428
|
+
name: "Vercel",
|
|
11429
|
+
constant: "VERCEL",
|
|
11430
|
+
env: {
|
|
11431
|
+
any: [
|
|
11432
|
+
"NOW_BUILDER",
|
|
11433
|
+
"VERCEL"
|
|
11434
|
+
]
|
|
11435
|
+
},
|
|
11436
|
+
pr: "VERCEL_GIT_PULL_REQUEST_ID"
|
|
11437
|
+
},
|
|
11438
|
+
{
|
|
11439
|
+
name: "Visual Studio App Center",
|
|
11440
|
+
constant: "APPCENTER",
|
|
11441
|
+
env: "APPCENTER_BUILD_ID"
|
|
11442
|
+
},
|
|
11443
|
+
{
|
|
11444
|
+
name: "Woodpecker",
|
|
11445
|
+
constant: "WOODPECKER",
|
|
11446
|
+
env: {
|
|
11447
|
+
CI: "woodpecker"
|
|
11448
|
+
},
|
|
11449
|
+
pr: {
|
|
11450
|
+
CI_BUILD_EVENT: "pull_request"
|
|
11451
|
+
}
|
|
11452
|
+
},
|
|
11453
|
+
{
|
|
11454
|
+
name: "Xcode Cloud",
|
|
11455
|
+
constant: "XCODE_CLOUD",
|
|
11456
|
+
env: "CI_XCODE_PROJECT",
|
|
11457
|
+
pr: "CI_PULL_REQUEST_NUMBER"
|
|
11458
|
+
},
|
|
11459
|
+
{
|
|
11460
|
+
name: "Xcode Server",
|
|
11461
|
+
constant: "XCODE_SERVER",
|
|
11462
|
+
env: "XCS"
|
|
11463
|
+
}
|
|
11464
|
+
];
|
|
11465
|
+
}
|
|
11466
|
+
});
|
|
11467
|
+
|
|
11468
|
+
// ../../node_modules/ci-info/index.js
|
|
11469
|
+
var require_ci_info2 = __commonJS({
|
|
11470
|
+
"../../node_modules/ci-info/index.js"(exports) {
|
|
11112
11471
|
"use strict";
|
|
11113
11472
|
init_esm_shims();
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
|
|
11118
|
-
|
|
11119
|
-
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11473
|
+
var vendors = require_vendors2();
|
|
11474
|
+
var env3 = process.env;
|
|
11475
|
+
Object.defineProperty(exports, "_vendors", {
|
|
11476
|
+
value: vendors.map(function(v) {
|
|
11477
|
+
return v.constant;
|
|
11478
|
+
})
|
|
11479
|
+
});
|
|
11480
|
+
exports.name = null;
|
|
11481
|
+
exports.isPR = null;
|
|
11482
|
+
exports.id = null;
|
|
11483
|
+
vendors.forEach(function(vendor) {
|
|
11484
|
+
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
|
|
11485
|
+
const isCI3 = envs.every(function(obj) {
|
|
11486
|
+
return checkEnv(obj);
|
|
11487
|
+
});
|
|
11488
|
+
exports[vendor.constant] = isCI3;
|
|
11489
|
+
if (!isCI3) {
|
|
11490
|
+
return;
|
|
11491
|
+
}
|
|
11492
|
+
exports.name = vendor.name;
|
|
11493
|
+
exports.isPR = checkPR(vendor);
|
|
11494
|
+
exports.id = vendor.constant;
|
|
11495
|
+
});
|
|
11496
|
+
exports.isCI = !!(env3.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
11497
|
+
(env3.BUILD_ID || // Jenkins, Cloudbees
|
|
11498
|
+
env3.BUILD_NUMBER || // Jenkins, TeamCity
|
|
11499
|
+
env3.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages
|
|
11500
|
+
env3.CI_APP_ID || // Appflow
|
|
11501
|
+
env3.CI_BUILD_ID || // Appflow
|
|
11502
|
+
env3.CI_BUILD_NUMBER || // Appflow
|
|
11503
|
+
env3.CI_NAME || // Codeship and others
|
|
11504
|
+
env3.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
|
11505
|
+
env3.RUN_ID || // TaskCluster, dsari
|
|
11506
|
+
exports.name || false));
|
|
11507
|
+
function checkEnv(obj) {
|
|
11508
|
+
if (typeof obj === "string") return !!env3[obj];
|
|
11509
|
+
if ("env" in obj) {
|
|
11510
|
+
return env3[obj.env] && env3[obj.env].includes(obj.includes);
|
|
11511
|
+
}
|
|
11512
|
+
if ("any" in obj) {
|
|
11513
|
+
return obj.any.some(function(k) {
|
|
11514
|
+
return !!env3[k];
|
|
11515
|
+
});
|
|
11516
|
+
}
|
|
11517
|
+
return Object.keys(obj).every(function(k) {
|
|
11518
|
+
return env3[k] === obj[k];
|
|
11519
|
+
});
|
|
11520
|
+
}
|
|
11521
|
+
function checkPR(vendor) {
|
|
11522
|
+
switch (typeof vendor.pr) {
|
|
11523
|
+
case "string":
|
|
11524
|
+
return !!env3[vendor.pr];
|
|
11525
|
+
case "object":
|
|
11526
|
+
if ("env" in vendor.pr) {
|
|
11527
|
+
if ("any" in vendor.pr) {
|
|
11528
|
+
return vendor.pr.any.some(function(key) {
|
|
11529
|
+
return env3[vendor.pr.env] === key;
|
|
11530
|
+
});
|
|
11531
|
+
} else {
|
|
11532
|
+
return vendor.pr.env in env3 && env3[vendor.pr.env] !== vendor.pr.ne;
|
|
11533
|
+
}
|
|
11534
|
+
} else if ("any" in vendor.pr) {
|
|
11535
|
+
return vendor.pr.any.some(function(key) {
|
|
11536
|
+
return !!env3[key];
|
|
11537
|
+
});
|
|
11538
|
+
} else {
|
|
11539
|
+
return checkEnv(vendor.pr);
|
|
11540
|
+
}
|
|
11541
|
+
default:
|
|
11542
|
+
return null;
|
|
11543
|
+
}
|
|
11544
|
+
}
|
|
11545
|
+
}
|
|
11546
|
+
});
|
|
11547
|
+
|
|
11548
|
+
// ../../node_modules/is-ci/index.js
|
|
11549
|
+
var require_is_ci2 = __commonJS({
|
|
11550
|
+
"../../node_modules/is-ci/index.js"(exports, module2) {
|
|
11551
|
+
"use strict";
|
|
11552
|
+
init_esm_shims();
|
|
11553
|
+
module2.exports = require_ci_info2().isCI;
|
|
11130
11554
|
}
|
|
11131
11555
|
});
|
|
11132
11556
|
|
|
@@ -11799,7 +12223,7 @@ var init_authorization = __esm({
|
|
|
11799
12223
|
});
|
|
11800
12224
|
|
|
11801
12225
|
// ../../node_modules/@wix/http-client/node_modules/@wix/headers/dist/esm/utils.js
|
|
11802
|
-
function
|
|
12226
|
+
function isCI2() {
|
|
11803
12227
|
if (isNode2()) {
|
|
11804
12228
|
return !!process.env.TEAMCITY_VERSION || !!process.env.BUILDKITE;
|
|
11805
12229
|
}
|
|
@@ -11819,7 +12243,7 @@ var init_utils = __esm({
|
|
|
11819
12243
|
function artifactId(override) {
|
|
11820
12244
|
const artifactIdToUse = process.env.ARTIFACT_ID ?? process.env.APP_NAME ?? "";
|
|
11821
12245
|
return {
|
|
11822
|
-
"X-Wix-Client-Artifact-Id": override ?? (!
|
|
12246
|
+
"X-Wix-Client-Artifact-Id": override ?? (!isCI2() ? artifactIdToUse : "")
|
|
11823
12247
|
};
|
|
11824
12248
|
}
|
|
11825
12249
|
var init_artifact_id = __esm({
|
|
@@ -13158,7 +13582,7 @@ var require_supports_color = __commonJS({
|
|
|
13158
13582
|
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
13159
13583
|
"use strict";
|
|
13160
13584
|
init_esm_shims();
|
|
13161
|
-
var
|
|
13585
|
+
var os5 = __require("os");
|
|
13162
13586
|
var tty3 = __require("tty");
|
|
13163
13587
|
var hasFlag4 = require_has_flag();
|
|
13164
13588
|
var { env: env3 } = process;
|
|
@@ -13206,7 +13630,7 @@ var require_supports_color = __commonJS({
|
|
|
13206
13630
|
return min;
|
|
13207
13631
|
}
|
|
13208
13632
|
if (process.platform === "win32") {
|
|
13209
|
-
const osRelease =
|
|
13633
|
+
const osRelease = os5.release().split(".");
|
|
13210
13634
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
13211
13635
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
13212
13636
|
}
|
|
@@ -15625,6 +16049,30 @@ var require_index_node = __commonJS({
|
|
|
15625
16049
|
}
|
|
15626
16050
|
});
|
|
15627
16051
|
|
|
16052
|
+
// ../../node_modules/void-elements/index.js
|
|
16053
|
+
var require_void_elements = __commonJS({
|
|
16054
|
+
"../../node_modules/void-elements/index.js"(exports, module2) {
|
|
16055
|
+
"use strict";
|
|
16056
|
+
init_esm_shims();
|
|
16057
|
+
module2.exports = {
|
|
16058
|
+
"area": true,
|
|
16059
|
+
"base": true,
|
|
16060
|
+
"br": true,
|
|
16061
|
+
"col": true,
|
|
16062
|
+
"embed": true,
|
|
16063
|
+
"hr": true,
|
|
16064
|
+
"img": true,
|
|
16065
|
+
"input": true,
|
|
16066
|
+
"link": true,
|
|
16067
|
+
"meta": true,
|
|
16068
|
+
"param": true,
|
|
16069
|
+
"source": true,
|
|
16070
|
+
"track": true,
|
|
16071
|
+
"wbr": true
|
|
16072
|
+
};
|
|
16073
|
+
}
|
|
16074
|
+
});
|
|
16075
|
+
|
|
15628
16076
|
// ../../node_modules/agent-base/dist/helpers.js
|
|
15629
16077
|
var require_helpers = __commonJS({
|
|
15630
16078
|
"../../node_modules/agent-base/dist/helpers.js"(exports) {
|
|
@@ -50423,7 +50871,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
50423
50871
|
var require_supports_color2 = __commonJS2({
|
|
50424
50872
|
"../../node_modules/supports-color/index.js"(exports2, module22) {
|
|
50425
50873
|
"use strict";
|
|
50426
|
-
var
|
|
50874
|
+
var os5 = __require("os");
|
|
50427
50875
|
var tty3 = __require("tty");
|
|
50428
50876
|
var hasFlag4 = require_has_flag2();
|
|
50429
50877
|
var { env: env3 } = process;
|
|
@@ -50471,7 +50919,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
50471
50919
|
return min;
|
|
50472
50920
|
}
|
|
50473
50921
|
if (process.platform === "win32") {
|
|
50474
|
-
const osRelease =
|
|
50922
|
+
const osRelease = os5.release().split(".");
|
|
50475
50923
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
50476
50924
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
50477
50925
|
}
|
|
@@ -87155,7 +87603,7 @@ to your top-level package.json.
|
|
|
87155
87603
|
var require_helper = __commonJS2({
|
|
87156
87604
|
"../../node_modules/@sentry/cli/js/helper.js"(exports2, module22) {
|
|
87157
87605
|
"use strict";
|
|
87158
|
-
var
|
|
87606
|
+
var os5 = __require("os");
|
|
87159
87607
|
var path5 = __require("path");
|
|
87160
87608
|
var fs11 = __require("fs");
|
|
87161
87609
|
var childProcess2 = __require("child_process");
|
|
@@ -87177,12 +87625,12 @@ to your top-level package.json.
|
|
|
87177
87625
|
return path5.resolve(...parts);
|
|
87178
87626
|
}
|
|
87179
87627
|
function getDistributionForThisPlatform() {
|
|
87180
|
-
const arch2 =
|
|
87181
|
-
const
|
|
87628
|
+
const arch2 = os5.arch();
|
|
87629
|
+
const platform6 = os5.platform();
|
|
87182
87630
|
let packageName = void 0;
|
|
87183
|
-
if (
|
|
87631
|
+
if (platform6 === "darwin") {
|
|
87184
87632
|
packageName = "@sentry/cli-darwin";
|
|
87185
|
-
} else if (
|
|
87633
|
+
} else if (platform6 === "linux" || platform6 === "freebsd" || platform6 === "android") {
|
|
87186
87634
|
switch (arch2) {
|
|
87187
87635
|
case "x64":
|
|
87188
87636
|
packageName = "@sentry/cli-linux-x64";
|
|
@@ -87198,7 +87646,7 @@ to your top-level package.json.
|
|
|
87198
87646
|
packageName = "@sentry/cli-linux-arm";
|
|
87199
87647
|
break;
|
|
87200
87648
|
}
|
|
87201
|
-
} else if (
|
|
87649
|
+
} else if (platform6 === "win32") {
|
|
87202
87650
|
switch (arch2) {
|
|
87203
87651
|
case "x64":
|
|
87204
87652
|
packageName = "@sentry/cli-win32-x64";
|
|
@@ -87213,7 +87661,7 @@ to your top-level package.json.
|
|
|
87213
87661
|
}
|
|
87214
87662
|
}
|
|
87215
87663
|
let subpath = void 0;
|
|
87216
|
-
switch (
|
|
87664
|
+
switch (platform6) {
|
|
87217
87665
|
case "win32":
|
|
87218
87666
|
subpath = "bin/sentry-cli.exe";
|
|
87219
87667
|
break;
|
|
@@ -93423,7 +93871,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
93423
93871
|
#isUNC;
|
|
93424
93872
|
#isAbsolute;
|
|
93425
93873
|
#followGlobstar = true;
|
|
93426
|
-
constructor(patternList, globList, index,
|
|
93874
|
+
constructor(patternList, globList, index, platform6) {
|
|
93427
93875
|
if (!isPatternList(patternList)) {
|
|
93428
93876
|
throw new TypeError("empty pattern list");
|
|
93429
93877
|
}
|
|
@@ -93440,7 +93888,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
93440
93888
|
this.#patternList = patternList;
|
|
93441
93889
|
this.#globList = globList;
|
|
93442
93890
|
this.#index = index;
|
|
93443
|
-
this.#platform =
|
|
93891
|
+
this.#platform = platform6;
|
|
93444
93892
|
if (this.#index === 0) {
|
|
93445
93893
|
if (this.isUNC()) {
|
|
93446
93894
|
const [p0, p1, p2, p3, ...prest] = this.#patternList;
|
|
@@ -94125,7 +94573,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
94125
94573
|
relativeChildren;
|
|
94126
94574
|
absolute;
|
|
94127
94575
|
absoluteChildren;
|
|
94128
|
-
constructor(ignored, { nobrace, nocase, noext, noglobstar, platform:
|
|
94576
|
+
constructor(ignored, { nobrace, nocase, noext, noglobstar, platform: platform6 = defaultPlatform }) {
|
|
94129
94577
|
this.relative = [];
|
|
94130
94578
|
this.absolute = [];
|
|
94131
94579
|
this.relativeChildren = [];
|
|
@@ -94137,7 +94585,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
94137
94585
|
noext,
|
|
94138
94586
|
noglobstar,
|
|
94139
94587
|
optimizationLevel: 2,
|
|
94140
|
-
platform:
|
|
94588
|
+
platform: platform6,
|
|
94141
94589
|
nocomment: true,
|
|
94142
94590
|
nonegate: true
|
|
94143
94591
|
};
|
|
@@ -94146,7 +94594,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
94146
94594
|
for (let i2 = 0; i2 < mm.set.length; i2++) {
|
|
94147
94595
|
const parsed = mm.set[i2];
|
|
94148
94596
|
const globParts = mm.globParts[i2];
|
|
94149
|
-
const p = new pattern_js_1.Pattern(parsed, globParts, 0,
|
|
94597
|
+
const p = new pattern_js_1.Pattern(parsed, globParts, 0, platform6);
|
|
94150
94598
|
const m = new minimatch_1.Minimatch(p.globString(), mmopts);
|
|
94151
94599
|
const children = globParts[globParts.length - 1] === "**";
|
|
94152
94600
|
const absolute = p.isAbsolute();
|
|
@@ -101073,8 +101521,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
101073
101521
|
"../../node_modules/unplugin/node_modules/chokidar/lib/constants.js"(exports2) {
|
|
101074
101522
|
"use strict";
|
|
101075
101523
|
var { sep: sep3 } = __require("path");
|
|
101076
|
-
var { platform:
|
|
101077
|
-
var
|
|
101524
|
+
var { platform: platform6 } = process;
|
|
101525
|
+
var os5 = __require("os");
|
|
101078
101526
|
exports2.EV_ALL = "all";
|
|
101079
101527
|
exports2.EV_READY = "ready";
|
|
101080
101528
|
exports2.EV_ADD = "add";
|
|
@@ -101125,10 +101573,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
101125
101573
|
exports2.EMPTY_FN = () => {
|
|
101126
101574
|
};
|
|
101127
101575
|
exports2.IDENTITY_FN = (val) => val;
|
|
101128
|
-
exports2.isWindows =
|
|
101129
|
-
exports2.isMacos =
|
|
101130
|
-
exports2.isLinux =
|
|
101131
|
-
exports2.isIBMi =
|
|
101576
|
+
exports2.isWindows = platform6 === "win32";
|
|
101577
|
+
exports2.isMacos = platform6 === "darwin";
|
|
101578
|
+
exports2.isLinux = platform6 === "linux";
|
|
101579
|
+
exports2.isIBMi = os5.type() === "OS400";
|
|
101132
101580
|
}
|
|
101133
101581
|
});
|
|
101134
101582
|
var require_nodefs_handler2 = __commonJS2({
|
|
@@ -112840,7 +113288,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
112840
113288
|
"use strict";
|
|
112841
113289
|
var fs11 = __require("fs");
|
|
112842
113290
|
var path5 = __require("path");
|
|
112843
|
-
var
|
|
113291
|
+
var os5 = __require("os");
|
|
112844
113292
|
var crypto = __require("crypto");
|
|
112845
113293
|
var packageJson = require_package4();
|
|
112846
113294
|
var version = packageJson.version;
|
|
@@ -112961,7 +113409,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
112961
113409
|
return null;
|
|
112962
113410
|
}
|
|
112963
113411
|
function _resolveHome(envPath) {
|
|
112964
|
-
return envPath[0] === "~" ? path5.join(
|
|
113412
|
+
return envPath[0] === "~" ? path5.join(os5.homedir(), envPath.slice(1)) : envPath;
|
|
112965
113413
|
}
|
|
112966
113414
|
function _configVault(options) {
|
|
112967
113415
|
_log("Loading env from encrypted .env.vault");
|
|
@@ -113418,7 +113866,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
113418
113866
|
var path5 = __require("path");
|
|
113419
113867
|
var unplugin = require_dist3();
|
|
113420
113868
|
var dotenv2 = require_main2();
|
|
113421
|
-
var
|
|
113869
|
+
var os5 = __require("os");
|
|
113422
113870
|
var findUp = require_find_up();
|
|
113423
113871
|
var crypto = __require("crypto");
|
|
113424
113872
|
var childProcess2 = __require("child_process");
|
|
@@ -113457,8 +113905,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
113457
113905
|
var path__default = /* @__PURE__ */ _interopDefaultLegacy(path5);
|
|
113458
113906
|
var path__namespace = /* @__PURE__ */ _interopNamespace(path5);
|
|
113459
113907
|
var dotenv__namespace = /* @__PURE__ */ _interopNamespace(dotenv2);
|
|
113460
|
-
var os__default = /* @__PURE__ */ _interopDefaultLegacy(
|
|
113461
|
-
var os__namespace = /* @__PURE__ */ _interopNamespace(
|
|
113908
|
+
var os__default = /* @__PURE__ */ _interopDefaultLegacy(os5);
|
|
113909
|
+
var os__namespace = /* @__PURE__ */ _interopNamespace(os5);
|
|
113462
113910
|
var findUp__default = /* @__PURE__ */ _interopDefaultLegacy(findUp);
|
|
113463
113911
|
var crypto__default = /* @__PURE__ */ _interopDefaultLegacy(crypto);
|
|
113464
113912
|
var childProcess__default = /* @__PURE__ */ _interopDefaultLegacy(childProcess2);
|
|
@@ -125072,9 +125520,9 @@ var require_path = __commonJS({
|
|
|
125072
125520
|
init_esm_shims();
|
|
125073
125521
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
125074
125522
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
125075
|
-
var
|
|
125523
|
+
var os5 = __require("os");
|
|
125076
125524
|
var path5 = __require("path");
|
|
125077
|
-
var IS_WINDOWS_PLATFORM =
|
|
125525
|
+
var IS_WINDOWS_PLATFORM = os5.platform() === "win32";
|
|
125078
125526
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
125079
125527
|
var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
|
|
125080
125528
|
var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
|
|
@@ -130408,8 +130856,8 @@ var require_settings4 = __commonJS({
|
|
|
130408
130856
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
130409
130857
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
130410
130858
|
var fs11 = __require("fs");
|
|
130411
|
-
var
|
|
130412
|
-
var CPU_COUNT = Math.max(
|
|
130859
|
+
var os5 = __require("os");
|
|
130860
|
+
var CPU_COUNT = Math.max(os5.cpus().length, 1);
|
|
130413
130861
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
130414
130862
|
lstat: fs11.lstat,
|
|
130415
130863
|
lstatSync: fs11.lstatSync,
|
|
@@ -141817,8 +142265,8 @@ var require_constants7 = __commonJS({
|
|
|
141817
142265
|
"use strict";
|
|
141818
142266
|
init_esm_shims();
|
|
141819
142267
|
var { sep: sep3 } = __require("path");
|
|
141820
|
-
var { platform:
|
|
141821
|
-
var
|
|
142268
|
+
var { platform: platform6 } = process;
|
|
142269
|
+
var os5 = __require("os");
|
|
141822
142270
|
exports.EV_ALL = "all";
|
|
141823
142271
|
exports.EV_READY = "ready";
|
|
141824
142272
|
exports.EV_ADD = "add";
|
|
@@ -141869,10 +142317,10 @@ var require_constants7 = __commonJS({
|
|
|
141869
142317
|
exports.EMPTY_FN = () => {
|
|
141870
142318
|
};
|
|
141871
142319
|
exports.IDENTITY_FN = (val) => val;
|
|
141872
|
-
exports.isWindows =
|
|
141873
|
-
exports.isMacos =
|
|
141874
|
-
exports.isLinux =
|
|
141875
|
-
exports.isIBMi =
|
|
142320
|
+
exports.isWindows = platform6 === "win32";
|
|
142321
|
+
exports.isMacos = platform6 === "darwin";
|
|
142322
|
+
exports.isLinux = platform6 === "linux";
|
|
142323
|
+
exports.isIBMi = os5.type() === "OS400";
|
|
141876
142324
|
}
|
|
141877
142325
|
});
|
|
141878
142326
|
|
|
@@ -143515,7 +143963,7 @@ var require_chokidar = __commonJS({
|
|
|
143515
143963
|
var package_default = {
|
|
143516
143964
|
name: "@wix/cli-app",
|
|
143517
143965
|
description: "CLI tool for Wix apps",
|
|
143518
|
-
version: "1.1.
|
|
143966
|
+
version: "1.1.231",
|
|
143519
143967
|
author: "Amit Dahan",
|
|
143520
143968
|
dependencies: {
|
|
143521
143969
|
esbuild: "^0.25.0",
|
|
@@ -155532,6 +155980,215 @@ var useBiLogger = () => {
|
|
|
155532
155980
|
// ../cli-telemetry-react/src/index.ts
|
|
155533
155981
|
init_esm_shims();
|
|
155534
155982
|
|
|
155983
|
+
// ../cli-core-definitions/src/index.ts
|
|
155984
|
+
init_esm_shims();
|
|
155985
|
+
import { join as join2 } from "node:path";
|
|
155986
|
+
var GIT_IGNORED_DIR = ".wix";
|
|
155987
|
+
var WIX_CONFIG_FILENAME = "wix.config.json";
|
|
155988
|
+
var TS_CONFIG_FILENAME = "tsconfig.json";
|
|
155989
|
+
var USER_CONFIG_FILENAME = "user.config.json";
|
|
155990
|
+
var userConfigSchema = external_exports.object({
|
|
155991
|
+
telemetry: external_exports.boolean().default(true),
|
|
155992
|
+
tunneling: external_exports.boolean().default(false)
|
|
155993
|
+
});
|
|
155994
|
+
function getGitIgnoredPath(projectFolder, ...paths) {
|
|
155995
|
+
return join2(projectFolder, GIT_IGNORED_DIR, ...paths);
|
|
155996
|
+
}
|
|
155997
|
+
function getWixConfigFilePath(projectFolder) {
|
|
155998
|
+
return join2(projectFolder, WIX_CONFIG_FILENAME);
|
|
155999
|
+
}
|
|
156000
|
+
function getTSConfigFilePath(projectFolder) {
|
|
156001
|
+
return join2(projectFolder, TS_CONFIG_FILENAME);
|
|
156002
|
+
}
|
|
156003
|
+
function getDebugLogFilePath(projectFolder) {
|
|
156004
|
+
return getGitIgnoredPath(projectFolder, "debug.log");
|
|
156005
|
+
}
|
|
156006
|
+
|
|
156007
|
+
// ../cli-telemetry/src/add-user-fields.ts
|
|
156008
|
+
init_esm_shims();
|
|
156009
|
+
import { randomUUID } from "node:crypto";
|
|
156010
|
+
function addUserFields(logger, userId) {
|
|
156011
|
+
logger.updateDefaults(resolveUserFields(userId));
|
|
156012
|
+
}
|
|
156013
|
+
function resolveUserFields(userId) {
|
|
156014
|
+
if (!userId) {
|
|
156015
|
+
return {
|
|
156016
|
+
_client_id: randomUUID()
|
|
156017
|
+
};
|
|
156018
|
+
}
|
|
156019
|
+
return {
|
|
156020
|
+
_client_id: userId,
|
|
156021
|
+
_uuid: userId,
|
|
156022
|
+
logged_user_id: userId,
|
|
156023
|
+
logged_account_id: userId,
|
|
156024
|
+
target_account_id: userId
|
|
156025
|
+
};
|
|
156026
|
+
}
|
|
156027
|
+
|
|
156028
|
+
// ../cli-telemetry/src/command-bi-event.ts
|
|
156029
|
+
init_esm_shims();
|
|
156030
|
+
|
|
156031
|
+
// ../../node_modules/@wix/bi-logger-dev-tools-data/dist/esm/v2/index.js
|
|
156032
|
+
init_esm_shims();
|
|
156033
|
+
function wixCliCliCommand(params) {
|
|
156034
|
+
return { evid: 5200, src: 11, endpoint: "", params };
|
|
156035
|
+
}
|
|
156036
|
+
function wixCliCliCommandStatus(params) {
|
|
156037
|
+
return { evid: 5201, src: 11, endpoint: "", params };
|
|
156038
|
+
}
|
|
156039
|
+
function wixCliAppFlowFileUploadStarted(params) {
|
|
156040
|
+
return { evid: 5208, src: 11, endpoint: "", params };
|
|
156041
|
+
}
|
|
156042
|
+
function wixCliAppFlowUploadEnded(params) {
|
|
156043
|
+
return { evid: 5210, src: 11, endpoint: "", params };
|
|
156044
|
+
}
|
|
156045
|
+
function wixCliLoginStart(params) {
|
|
156046
|
+
return { evid: 5211, src: 11, endpoint: "", params };
|
|
156047
|
+
}
|
|
156048
|
+
function wixCliLoginEnd(params) {
|
|
156049
|
+
return { evid: 5212, src: 11, endpoint: "", params };
|
|
156050
|
+
}
|
|
156051
|
+
function wixCliAppFlowStepsAnswers(params) {
|
|
156052
|
+
return { evid: 5229, src: 11, endpoint: "", params };
|
|
156053
|
+
}
|
|
156054
|
+
function wixCliAction(params) {
|
|
156055
|
+
return { evid: 5231, src: 11, endpoint: "", params };
|
|
156056
|
+
}
|
|
156057
|
+
function wixCliAppsFlowDeploymentStatusSrc11Evid5232(params) {
|
|
156058
|
+
return { evid: 5232, src: 11, endpoint: "", params };
|
|
156059
|
+
}
|
|
156060
|
+
function wixCliAppsFlowTunnelCreationStatusSrc11Evid5233(params) {
|
|
156061
|
+
return { evid: 5233, src: 11, endpoint: "", params };
|
|
156062
|
+
}
|
|
156063
|
+
|
|
156064
|
+
// ../cli-telemetry/src/command-bi-event.ts
|
|
156065
|
+
import { uptime } from "node:process";
|
|
156066
|
+
|
|
156067
|
+
// ../cli-telemetry/src/environment.ts
|
|
156068
|
+
init_esm_shims();
|
|
156069
|
+
var import_is_ci2 = __toESM(require_is_ci2(), 1);
|
|
156070
|
+
import os3 from "node:os";
|
|
156071
|
+
import { platform as platform3, version as nodeVersion } from "node:process";
|
|
156072
|
+
function getEnvironmentInfo({
|
|
156073
|
+
cliVersion,
|
|
156074
|
+
flow
|
|
156075
|
+
}) {
|
|
156076
|
+
return {
|
|
156077
|
+
...flow ? { flow } : {},
|
|
156078
|
+
cliVersion,
|
|
156079
|
+
isCI: import_is_ci2.default,
|
|
156080
|
+
nodeVersion,
|
|
156081
|
+
osName: getOsName(),
|
|
156082
|
+
osVersion: os3.release()
|
|
156083
|
+
};
|
|
156084
|
+
}
|
|
156085
|
+
function getOsName() {
|
|
156086
|
+
switch (platform3) {
|
|
156087
|
+
case "darwin":
|
|
156088
|
+
return "mac";
|
|
156089
|
+
case "win32":
|
|
156090
|
+
return "windows";
|
|
156091
|
+
default:
|
|
156092
|
+
return "linux";
|
|
156093
|
+
}
|
|
156094
|
+
}
|
|
156095
|
+
|
|
156096
|
+
// ../cli-telemetry/src/command-bi-event.ts
|
|
156097
|
+
var getDuration = () => Math.round(uptime() * 1e3);
|
|
156098
|
+
function reportCommandStartEvent({
|
|
156099
|
+
biLogger,
|
|
156100
|
+
command,
|
|
156101
|
+
flow,
|
|
156102
|
+
cliVersion,
|
|
156103
|
+
projectId,
|
|
156104
|
+
msid,
|
|
156105
|
+
appId,
|
|
156106
|
+
extensions,
|
|
156107
|
+
extraFields
|
|
156108
|
+
}) {
|
|
156109
|
+
const options = command.opts();
|
|
156110
|
+
const args = command.args;
|
|
156111
|
+
const privateOptions = /* @__PURE__ */ new Set(["apiKey", "refreshToken"]);
|
|
156112
|
+
const sanitizedOptions = Object.fromEntries(
|
|
156113
|
+
Object.entries(options).map(([flagName, flagValue]) => {
|
|
156114
|
+
const value2 = privateOptions.has(flagName) ? "<censored>" : flagValue;
|
|
156115
|
+
return [flagName, value2];
|
|
156116
|
+
})
|
|
156117
|
+
);
|
|
156118
|
+
const commandFields = {
|
|
156119
|
+
command: command.name(),
|
|
156120
|
+
arguments: args.join(","),
|
|
156121
|
+
flags: Object.keys(sanitizedOptions).length ? JSON.stringify(sanitizedOptions) : ""
|
|
156122
|
+
};
|
|
156123
|
+
void biLogger.report(
|
|
156124
|
+
wixCliCliCommand({
|
|
156125
|
+
...getEnvironmentInfo({ cliVersion, flow }),
|
|
156126
|
+
...commandFields,
|
|
156127
|
+
...projectId ? { projectId } : {},
|
|
156128
|
+
...extraFields ? { extraFields: JSON.stringify(extraFields) } : {},
|
|
156129
|
+
...msid ? { _msid: msid } : {},
|
|
156130
|
+
...appId ? { _appId: appId } : {},
|
|
156131
|
+
isValid: true
|
|
156132
|
+
})
|
|
156133
|
+
);
|
|
156134
|
+
return {
|
|
156135
|
+
succeed(fields8) {
|
|
156136
|
+
const _msid = fields8?.msid ?? msid;
|
|
156137
|
+
const _appId = fields8?.appId ?? appId;
|
|
156138
|
+
void biLogger.report(
|
|
156139
|
+
wixCliCliCommandStatus({
|
|
156140
|
+
...commandFields,
|
|
156141
|
+
...extensions ? { extensions: JSON.stringify(extensions) } : {},
|
|
156142
|
+
duration: getDuration(),
|
|
156143
|
+
..._msid ? { _msid } : {},
|
|
156144
|
+
..._appId ? { _appId } : {},
|
|
156145
|
+
isSuccess: true,
|
|
156146
|
+
isValid: true
|
|
156147
|
+
})
|
|
156148
|
+
);
|
|
156149
|
+
},
|
|
156150
|
+
failed(error) {
|
|
156151
|
+
const errorFields = isCliError(error) ? {
|
|
156152
|
+
errorType: isCliSystemError(error) ? "SystemError" : "UserError",
|
|
156153
|
+
errorName: error.name,
|
|
156154
|
+
errorMessage: error.message
|
|
156155
|
+
} : error instanceof Error ? {
|
|
156156
|
+
errorType: "UnknownError",
|
|
156157
|
+
errorName: error.name,
|
|
156158
|
+
errorMessage: error.message
|
|
156159
|
+
} : {
|
|
156160
|
+
errorType: "UnknownError",
|
|
156161
|
+
errorMessage: JSON.stringify(error)
|
|
156162
|
+
};
|
|
156163
|
+
void biLogger.report(
|
|
156164
|
+
wixCliCliCommandStatus({
|
|
156165
|
+
...commandFields,
|
|
156166
|
+
...errorFields,
|
|
156167
|
+
...extensions ? { extensions: JSON.stringify(extensions) } : {},
|
|
156168
|
+
duration: getDuration(),
|
|
156169
|
+
isSuccess: false,
|
|
156170
|
+
isValid: true
|
|
156171
|
+
})
|
|
156172
|
+
);
|
|
156173
|
+
}
|
|
156174
|
+
};
|
|
156175
|
+
}
|
|
156176
|
+
|
|
156177
|
+
// ../cli-telemetry/src/index.ts
|
|
156178
|
+
init_esm_shims();
|
|
156179
|
+
|
|
156180
|
+
// ../cli-data-dir/src/index.ts
|
|
156181
|
+
init_esm_shims();
|
|
156182
|
+
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
156183
|
+
import { resolve as resolve2 } from "node:path";
|
|
156184
|
+
import { homedir } from "node:os";
|
|
156185
|
+
function getDataDirPath() {
|
|
156186
|
+
return getTestOverrides().dataDir ?? resolve2(homedir(), ".wix");
|
|
156187
|
+
}
|
|
156188
|
+
async function ensureDataDirExists() {
|
|
156189
|
+
await mkdir2(getDataDirPath(), { recursive: true });
|
|
156190
|
+
}
|
|
156191
|
+
|
|
155535
156192
|
// ../cli-i18n/src/I18nProvider.tsx
|
|
155536
156193
|
init_esm_shims();
|
|
155537
156194
|
var import_react74 = __toESM(require_react(), 1);
|
|
@@ -164402,20 +165059,6 @@ var import_variant21 = __toESM(require_lib(), 1);
|
|
|
164402
165059
|
init_esm_shims();
|
|
164403
165060
|
import { unlink, rm as rm2 } from "node:fs/promises";
|
|
164404
165061
|
import { resolve as resolve3 } from "node:path";
|
|
164405
|
-
|
|
164406
|
-
// ../cli-data-dir/src/index.ts
|
|
164407
|
-
init_esm_shims();
|
|
164408
|
-
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
164409
|
-
import { resolve as resolve2 } from "node:path";
|
|
164410
|
-
import { homedir } from "node:os";
|
|
164411
|
-
function getDataDirPath() {
|
|
164412
|
-
return getTestOverrides().dataDir ?? resolve2(homedir(), ".wix");
|
|
164413
|
-
}
|
|
164414
|
-
async function ensureDataDirExists() {
|
|
164415
|
-
await mkdir2(getDataDirPath(), { recursive: true });
|
|
164416
|
-
}
|
|
164417
|
-
|
|
164418
|
-
// ../cli-auth/src/auth-data.ts
|
|
164419
165062
|
var import_variant16 = __toESM(require_lib(), 1);
|
|
164420
165063
|
|
|
164421
165064
|
// ../cli-auth/src/schemas.ts
|
|
@@ -166063,41 +166706,6 @@ var import_variant24 = __toESM(require_lib(), 1);
|
|
|
166063
166706
|
// ../cli-auth/src/components/Login.tsx
|
|
166064
166707
|
init_esm_shims();
|
|
166065
166708
|
var import_react86 = __toESM(require_react(), 1);
|
|
166066
|
-
|
|
166067
|
-
// ../../node_modules/@wix/bi-logger-dev-tools-data/dist/esm/v2/index.js
|
|
166068
|
-
init_esm_shims();
|
|
166069
|
-
function wixCliCliCommand(params) {
|
|
166070
|
-
return { evid: 5200, src: 11, endpoint: "", params };
|
|
166071
|
-
}
|
|
166072
|
-
function wixCliCliCommandStatus(params) {
|
|
166073
|
-
return { evid: 5201, src: 11, endpoint: "", params };
|
|
166074
|
-
}
|
|
166075
|
-
function wixCliAppFlowFileUploadStarted(params) {
|
|
166076
|
-
return { evid: 5208, src: 11, endpoint: "", params };
|
|
166077
|
-
}
|
|
166078
|
-
function wixCliAppFlowUploadEnded(params) {
|
|
166079
|
-
return { evid: 5210, src: 11, endpoint: "", params };
|
|
166080
|
-
}
|
|
166081
|
-
function wixCliLoginStart(params) {
|
|
166082
|
-
return { evid: 5211, src: 11, endpoint: "", params };
|
|
166083
|
-
}
|
|
166084
|
-
function wixCliLoginEnd(params) {
|
|
166085
|
-
return { evid: 5212, src: 11, endpoint: "", params };
|
|
166086
|
-
}
|
|
166087
|
-
function wixCliAppFlowStepsAnswers(params) {
|
|
166088
|
-
return { evid: 5229, src: 11, endpoint: "", params };
|
|
166089
|
-
}
|
|
166090
|
-
function wixCliAction(params) {
|
|
166091
|
-
return { evid: 5231, src: 11, endpoint: "", params };
|
|
166092
|
-
}
|
|
166093
|
-
function wixCliAppsFlowDeploymentStatusSrc11Evid5232(params) {
|
|
166094
|
-
return { evid: 5232, src: 11, endpoint: "", params };
|
|
166095
|
-
}
|
|
166096
|
-
function wixCliAppsFlowTunnelCreationStatusSrc11Evid5233(params) {
|
|
166097
|
-
return { evid: 5233, src: 11, endpoint: "", params };
|
|
166098
|
-
}
|
|
166099
|
-
|
|
166100
|
-
// ../cli-auth/src/components/Login.tsx
|
|
166101
166709
|
var import_variant22 = __toESM(require_lib(), 1);
|
|
166102
166710
|
|
|
166103
166711
|
// ../cli-auth/src/messages.json
|
|
@@ -166122,6 +166730,29 @@ async function requestDeviceCode() {
|
|
|
166122
166730
|
return client.requestDeviceCode();
|
|
166123
166731
|
}
|
|
166124
166732
|
|
|
166733
|
+
// ../cli-auth/src/login-bi.ts
|
|
166734
|
+
init_esm_shims();
|
|
166735
|
+
function reportLoginStart(biLogger) {
|
|
166736
|
+
void biLogger.report(wixCliLoginStart({}));
|
|
166737
|
+
}
|
|
166738
|
+
function reportLoginSuccess(biLogger, userInfo) {
|
|
166739
|
+
addUserFields(biLogger, userInfo.userId);
|
|
166740
|
+
void biLogger.report(wixCliLoginEnd({ isSuccess: true }));
|
|
166741
|
+
}
|
|
166742
|
+
function reportLoginFailure(biLogger, error) {
|
|
166743
|
+
void biLogger.report(
|
|
166744
|
+
wixCliLoginEnd({
|
|
166745
|
+
isSuccess: false,
|
|
166746
|
+
...error instanceof Error ? {
|
|
166747
|
+
errorType: error.name
|
|
166748
|
+
} : {
|
|
166749
|
+
errorType: "unknown",
|
|
166750
|
+
errorMessage: JSON.stringify(error)
|
|
166751
|
+
}
|
|
166752
|
+
})
|
|
166753
|
+
);
|
|
166754
|
+
}
|
|
166755
|
+
|
|
166125
166756
|
// ../cli-auth/src/verfication-uri.ts
|
|
166126
166757
|
init_esm_shims();
|
|
166127
166758
|
function buildVerificationUris(verificationUri) {
|
|
@@ -166161,25 +166792,12 @@ function createSuccessfulLoginFlowMessage(userInfo) {
|
|
|
166161
166792
|
userId: userInfo.userId
|
|
166162
166793
|
};
|
|
166163
166794
|
}
|
|
166164
|
-
function reportFailedLogin(biLogger, error) {
|
|
166165
|
-
void biLogger.report(
|
|
166166
|
-
wixCliLoginEnd({
|
|
166167
|
-
isSuccess: false,
|
|
166168
|
-
...error instanceof Error ? {
|
|
166169
|
-
errorType: error.name
|
|
166170
|
-
} : {
|
|
166171
|
-
errorType: "unknown",
|
|
166172
|
-
errorMessage: JSON.stringify(error)
|
|
166173
|
-
}
|
|
166174
|
-
})
|
|
166175
|
-
);
|
|
166176
|
-
}
|
|
166177
166795
|
async function runAgentLoginFlow({
|
|
166178
166796
|
biLogger,
|
|
166179
166797
|
loginFn = unifiedAuthStrategy.login,
|
|
166180
166798
|
signal = new AbortController().signal
|
|
166181
166799
|
}) {
|
|
166182
|
-
|
|
166800
|
+
reportLoginStart(biLogger);
|
|
166183
166801
|
try {
|
|
166184
166802
|
const deviceCode2 = await requestDeviceCode();
|
|
166185
166803
|
emitLoginFlowMessage(createAwaitingUserLoginFlowMessage(deviceCode2));
|
|
@@ -166187,11 +166805,11 @@ async function runAgentLoginFlow({
|
|
|
166187
166805
|
deviceCode: deviceCode2,
|
|
166188
166806
|
signal
|
|
166189
166807
|
});
|
|
166190
|
-
|
|
166808
|
+
reportLoginSuccess(biLogger, authData.userInfo);
|
|
166191
166809
|
emitLoginFlowMessage(createSuccessfulLoginFlowMessage(authData.userInfo));
|
|
166192
166810
|
return authData;
|
|
166193
166811
|
} catch (error) {
|
|
166194
|
-
|
|
166812
|
+
reportLoginFailure(biLogger, error);
|
|
166195
166813
|
throw error;
|
|
166196
166814
|
}
|
|
166197
166815
|
}
|
|
@@ -166215,7 +166833,7 @@ import fs5, { constants as fsConstants } from "node:fs/promises";
|
|
|
166215
166833
|
// ../../node_modules/is-wsl/index.js
|
|
166216
166834
|
init_esm_shims();
|
|
166217
166835
|
import process21 from "node:process";
|
|
166218
|
-
import
|
|
166836
|
+
import os4 from "node:os";
|
|
166219
166837
|
import fs4 from "node:fs";
|
|
166220
166838
|
|
|
166221
166839
|
// ../../node_modules/is-inside-container/index.js
|
|
@@ -166270,7 +166888,7 @@ var isWsl = () => {
|
|
|
166270
166888
|
if (process21.platform !== "linux") {
|
|
166271
166889
|
return false;
|
|
166272
166890
|
}
|
|
166273
|
-
if (
|
|
166891
|
+
if (os4.release().toLowerCase().includes("microsoft")) {
|
|
166274
166892
|
if (isInsideContainer()) {
|
|
166275
166893
|
return false;
|
|
166276
166894
|
}
|
|
@@ -166411,7 +167029,7 @@ async function defaultBrowser2() {
|
|
|
166411
167029
|
// ../../node_modules/open/index.js
|
|
166412
167030
|
var __dirname2 = path.dirname(fileURLToPath(import.meta.url));
|
|
166413
167031
|
var localXdgOpenPath = path.join(__dirname2, "xdg-open");
|
|
166414
|
-
var { platform:
|
|
167032
|
+
var { platform: platform4, arch } = process25;
|
|
166415
167033
|
var getWslDrivesMountPoint = /* @__PURE__ */ (() => {
|
|
166416
167034
|
const defaultMountPoint = "/mnt/";
|
|
166417
167035
|
let mountPoint;
|
|
@@ -166509,7 +167127,7 @@ var baseOpen = async (options) => {
|
|
|
166509
167127
|
let command;
|
|
166510
167128
|
const cliArguments = [];
|
|
166511
167129
|
const childProcessOptions = {};
|
|
166512
|
-
if (
|
|
167130
|
+
if (platform4 === "darwin") {
|
|
166513
167131
|
command = "open";
|
|
166514
167132
|
if (options.wait) {
|
|
166515
167133
|
cliArguments.push("--wait-apps");
|
|
@@ -166523,7 +167141,7 @@ var baseOpen = async (options) => {
|
|
|
166523
167141
|
if (app) {
|
|
166524
167142
|
cliArguments.push("-a", app);
|
|
166525
167143
|
}
|
|
166526
|
-
} else if (
|
|
167144
|
+
} else if (platform4 === "win32" || is_wsl_default && !isInsideContainer() && !app) {
|
|
166527
167145
|
const mountPoint = await getWslDrivesMountPoint();
|
|
166528
167146
|
command = is_wsl_default ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${process25.env.SYSTEMROOT || process25.env.windir || "C:\\Windows"}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
|
|
166529
167147
|
cliArguments.push(
|
|
@@ -166564,7 +167182,7 @@ var baseOpen = async (options) => {
|
|
|
166564
167182
|
exeLocalXdgOpen = true;
|
|
166565
167183
|
} catch {
|
|
166566
167184
|
}
|
|
166567
|
-
const useSystemXdgOpen = process25.versions.electron ?? (
|
|
167185
|
+
const useSystemXdgOpen = process25.versions.electron ?? (platform4 === "android" || isBundled || !exeLocalXdgOpen);
|
|
166568
167186
|
command = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
|
|
166569
167187
|
}
|
|
166570
167188
|
if (appArguments.length > 0) {
|
|
@@ -166575,7 +167193,7 @@ var baseOpen = async (options) => {
|
|
|
166575
167193
|
childProcessOptions.detached = true;
|
|
166576
167194
|
}
|
|
166577
167195
|
}
|
|
166578
|
-
if (
|
|
167196
|
+
if (platform4 === "darwin" && appArguments.length > 0) {
|
|
166579
167197
|
cliArguments.push("--args", ...appArguments);
|
|
166580
167198
|
}
|
|
166581
167199
|
if (options.target) {
|
|
@@ -166616,12 +167234,12 @@ function detectArchBinary(binary) {
|
|
|
166616
167234
|
}
|
|
166617
167235
|
return archBinary;
|
|
166618
167236
|
}
|
|
166619
|
-
function detectPlatformBinary({ [
|
|
167237
|
+
function detectPlatformBinary({ [platform4]: platformBinary }, { wsl }) {
|
|
166620
167238
|
if (wsl && is_wsl_default) {
|
|
166621
167239
|
return detectArchBinary(wsl);
|
|
166622
167240
|
}
|
|
166623
167241
|
if (!platformBinary) {
|
|
166624
|
-
throw new Error(`${
|
|
167242
|
+
throw new Error(`${platform4} is not supported`);
|
|
166625
167243
|
}
|
|
166626
167244
|
return detectArchBinary(platformBinary);
|
|
166627
167245
|
}
|
|
@@ -166775,17 +167393,7 @@ var AgentLogin = ({ loginFn, onLogin, onError }) => {
|
|
|
166775
167393
|
var InteractiveLogin = ({ loginFn, onLogin, onError }) => {
|
|
166776
167394
|
const biLogger = useBiLogger();
|
|
166777
167395
|
function handleError(error) {
|
|
166778
|
-
|
|
166779
|
-
wixCliLoginEnd({
|
|
166780
|
-
isSuccess: false,
|
|
166781
|
-
...error instanceof Error ? {
|
|
166782
|
-
errorType: error.name
|
|
166783
|
-
} : {
|
|
166784
|
-
errorType: "unknown",
|
|
166785
|
-
errorMessage: JSON.stringify(error)
|
|
166786
|
-
}
|
|
166787
|
-
})
|
|
166788
|
-
);
|
|
167396
|
+
reportLoginFailure(biLogger, error);
|
|
166789
167397
|
onError(error);
|
|
166790
167398
|
}
|
|
166791
167399
|
const loginAction = useAsyncCallback3(
|
|
@@ -166795,11 +167403,7 @@ var InteractiveLogin = ({ loginFn, onLogin, onError }) => {
|
|
|
166795
167403
|
deviceCode: deviceCodeResponse,
|
|
166796
167404
|
signal
|
|
166797
167405
|
});
|
|
166798
|
-
|
|
166799
|
-
wixCliLoginEnd({
|
|
166800
|
-
isSuccess: true
|
|
166801
|
-
})
|
|
166802
|
-
);
|
|
167406
|
+
reportLoginSuccess(biLogger, authData.userInfo);
|
|
166803
167407
|
onLogin(authData);
|
|
166804
167408
|
} catch (error) {
|
|
166805
167409
|
handleError(error);
|
|
@@ -166808,7 +167412,7 @@ var InteractiveLogin = ({ loginFn, onLogin, onError }) => {
|
|
|
166808
167412
|
);
|
|
166809
167413
|
const { status } = useAsync2(
|
|
166810
167414
|
async () => {
|
|
166811
|
-
|
|
167415
|
+
reportLoginStart(biLogger);
|
|
166812
167416
|
return client.requestDeviceCode();
|
|
166813
167417
|
},
|
|
166814
167418
|
[],
|
|
@@ -166920,30 +167524,6 @@ function useAuth() {
|
|
|
166920
167524
|
// ../cli-auth/src/index.ts
|
|
166921
167525
|
var { isLoggedIn: isLoggedInToAccount } = unifiedAuthStrategy;
|
|
166922
167526
|
|
|
166923
|
-
// ../cli-core-definitions/src/index.ts
|
|
166924
|
-
init_esm_shims();
|
|
166925
|
-
import { join as join2 } from "node:path";
|
|
166926
|
-
var GIT_IGNORED_DIR = ".wix";
|
|
166927
|
-
var WIX_CONFIG_FILENAME = "wix.config.json";
|
|
166928
|
-
var TS_CONFIG_FILENAME = "tsconfig.json";
|
|
166929
|
-
var USER_CONFIG_FILENAME = "user.config.json";
|
|
166930
|
-
var userConfigSchema = external_exports.object({
|
|
166931
|
-
telemetry: external_exports.boolean().default(true),
|
|
166932
|
-
tunneling: external_exports.boolean().default(false)
|
|
166933
|
-
});
|
|
166934
|
-
function getGitIgnoredPath(projectFolder, ...paths) {
|
|
166935
|
-
return join2(projectFolder, GIT_IGNORED_DIR, ...paths);
|
|
166936
|
-
}
|
|
166937
|
-
function getWixConfigFilePath(projectFolder) {
|
|
166938
|
-
return join2(projectFolder, WIX_CONFIG_FILENAME);
|
|
166939
|
-
}
|
|
166940
|
-
function getTSConfigFilePath(projectFolder) {
|
|
166941
|
-
return join2(projectFolder, TS_CONFIG_FILENAME);
|
|
166942
|
-
}
|
|
166943
|
-
function getDebugLogFilePath(projectFolder) {
|
|
166944
|
-
return getGitIgnoredPath(projectFolder, "debug.log");
|
|
166945
|
-
}
|
|
166946
|
-
|
|
166947
167527
|
// ../cli-http-client-react/src/httpClientProvider.tsx
|
|
166948
167528
|
init_esm_shims();
|
|
166949
167529
|
var import_react91 = __toESM(require_react(), 1);
|
|
@@ -171383,7 +171963,7 @@ var generateGlobTasksSync = normalizeArgumentsSync(generateTasksSync);
|
|
|
171383
171963
|
var { convertPathToPattern } = import_fast_glob2.default;
|
|
171384
171964
|
|
|
171385
171965
|
// src/dev-center/components/dashboard/components.ts
|
|
171386
|
-
import { randomUUID } from "node:crypto";
|
|
171966
|
+
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
171387
171967
|
|
|
171388
171968
|
// src/dev-center/components/dashboard/config.ts
|
|
171389
171969
|
init_esm_shims();
|
|
@@ -171392,7 +171972,7 @@ var import_variant27 = __toESM(require_lib(), 1);
|
|
|
171392
171972
|
// src/dev-center/components/path.ts
|
|
171393
171973
|
init_esm_shims();
|
|
171394
171974
|
import { join as join4, parse as parse2, sep as sep2 } from "node:path";
|
|
171395
|
-
import { platform as
|
|
171975
|
+
import { platform as platform5 } from "node:os";
|
|
171396
171976
|
function replaceExtension(filePath, extension) {
|
|
171397
171977
|
const { dir: dir2, name } = parse2(filePath);
|
|
171398
171978
|
if (extension !== "") {
|
|
@@ -171408,7 +171988,7 @@ function deriveRoute(projectFolder, pagePath) {
|
|
|
171408
171988
|
return `/${relativeDir.split(sep2).map(encodeURIComponent).join("/")}`;
|
|
171409
171989
|
}
|
|
171410
171990
|
function normalizeGlobbyPattern(globPattern) {
|
|
171411
|
-
if (
|
|
171991
|
+
if (platform5() === "win32") {
|
|
171412
171992
|
return globPattern.replaceAll("\\", "/");
|
|
171413
171993
|
}
|
|
171414
171994
|
return globPattern;
|
|
@@ -179665,7 +180245,7 @@ function loadDashboardSidebarCategoryComponent(config) {
|
|
|
179665
180245
|
}
|
|
179666
180246
|
async function createTopologyComponent(projectFolder) {
|
|
179667
180247
|
const appConfig = await readAppConfig(projectFolder);
|
|
179668
|
-
const id = appConfig?.topologyComponentId ??
|
|
180248
|
+
const id = appConfig?.topologyComponentId ?? randomUUID2();
|
|
179669
180249
|
return DevCenterComponent.Topology({
|
|
179670
180250
|
id,
|
|
179671
180251
|
name: "Topology",
|
|
@@ -179679,7 +180259,7 @@ async function loadMonitoringComponents(projectFolder, config) {
|
|
|
179679
180259
|
return [];
|
|
179680
180260
|
}
|
|
179681
180261
|
const appConfig = await readAppConfig(projectFolder);
|
|
179682
|
-
const id = appConfig?.monitoringComponentId ??
|
|
180262
|
+
const id = appConfig?.monitoringComponentId ?? randomUUID2();
|
|
179683
180263
|
const monitoringComponent = DevCenterComponent.Monitoring({
|
|
179684
180264
|
...monitoringConfig,
|
|
179685
180265
|
id,
|
|
@@ -179691,7 +180271,7 @@ async function loadMonitoringComponents(projectFolder, config) {
|
|
|
179691
180271
|
// src/dev-center/components/site/components.ts
|
|
179692
180272
|
init_esm_shims();
|
|
179693
180273
|
import { dirname as dirname4, join as join9, parse as parse5, relative as relative2 } from "node:path";
|
|
179694
|
-
import { randomUUID as
|
|
180274
|
+
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
179695
180275
|
|
|
179696
180276
|
// src/dev-center/components/site/config.ts
|
|
179697
180277
|
init_esm_shims();
|
|
@@ -180313,7 +180893,7 @@ async function loadBlocksComponents(projectFolder, config) {
|
|
|
180313
180893
|
)).flat();
|
|
180314
180894
|
if (config.blocks) {
|
|
180315
180895
|
const appConfig = await readAppConfig(projectFolder);
|
|
180316
|
-
const id = appConfig?.mainBlocksComponentId ??
|
|
180896
|
+
const id = appConfig?.mainBlocksComponentId ?? randomUUID3();
|
|
180317
180897
|
return [
|
|
180318
180898
|
...blocksComponents,
|
|
180319
180899
|
DevCenterComponent.BlocksMainComponent({
|
|
@@ -181466,7 +182046,6 @@ export {
|
|
|
181466
182046
|
CliError,
|
|
181467
182047
|
CliErrorCode,
|
|
181468
182048
|
isCliError,
|
|
181469
|
-
isCliSystemError,
|
|
181470
182049
|
require_ms,
|
|
181471
182050
|
require_supports_color,
|
|
181472
182051
|
require_src,
|
|
@@ -181530,11 +182109,17 @@ export {
|
|
|
181530
182109
|
createRendererToString,
|
|
181531
182110
|
BiProvider,
|
|
181532
182111
|
useBiLogger,
|
|
181533
|
-
wixCliCliCommand,
|
|
181534
|
-
wixCliCliCommandStatus,
|
|
181535
182112
|
wixCliAppFlowStepsAnswers,
|
|
181536
182113
|
wixCliAction,
|
|
181537
182114
|
wixCliAppsFlowTunnelCreationStatusSrc11Evid5233,
|
|
182115
|
+
WIX_CONFIG_FILENAME,
|
|
182116
|
+
TS_CONFIG_FILENAME,
|
|
182117
|
+
USER_CONFIG_FILENAME,
|
|
182118
|
+
userConfigSchema,
|
|
182119
|
+
getTSConfigFilePath,
|
|
182120
|
+
getDebugLogFilePath,
|
|
182121
|
+
addUserFields,
|
|
182122
|
+
reportCommandStartEvent,
|
|
181538
182123
|
Trans2 as Trans,
|
|
181539
182124
|
useTranslation,
|
|
181540
182125
|
createI18n,
|
|
@@ -181548,12 +182133,6 @@ export {
|
|
|
181548
182133
|
useErrorReporter,
|
|
181549
182134
|
AuthProvider,
|
|
181550
182135
|
isLoggedInToAccount,
|
|
181551
|
-
WIX_CONFIG_FILENAME,
|
|
181552
|
-
TS_CONFIG_FILENAME,
|
|
181553
|
-
USER_CONFIG_FILENAME,
|
|
181554
|
-
userConfigSchema,
|
|
181555
|
-
getTSConfigFilePath,
|
|
181556
|
-
getDebugLogFilePath,
|
|
181557
182136
|
HttpClientProvider,
|
|
181558
182137
|
useHttpClient,
|
|
181559
182138
|
buildHttpClientHeaders,
|
|
@@ -181868,4 +182447,4 @@ mustache/mustache.mjs:
|
|
|
181868
182447
|
* http://github.com/janl/mustache.js
|
|
181869
182448
|
*)
|
|
181870
182449
|
*/
|
|
181871
|
-
//# sourceMappingURL=chunk-
|
|
182450
|
+
//# sourceMappingURL=chunk-SUVPNNFA.js.map
|