@shopify/cli 3.70.0 → 3.71.0
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/dist/{lib-CPSRXLFM.js → chunk-2HGYYNE5.js} +5 -2
- package/dist/{chunk-5OP2SA7G.js → chunk-3AOK7V27.js} +214 -56
- package/dist/{chunk-PNN7RS7Y.js → chunk-3NSN5Z4N.js} +100 -11
- package/dist/{chunk-I3IIDOBX.js → chunk-455HYBGX.js} +3 -3
- package/dist/{chunk-BMNDAI5O.js → chunk-4G7SL7SU.js} +4 -4
- package/dist/{chunk-NH4U4X67.js → chunk-5F2WGMCL.js} +4 -4
- package/dist/{chunk-PJKCWDDX.js → chunk-5JZ5AGAQ.js} +548 -550
- package/dist/chunk-5OHM64KO.js +104 -0
- package/dist/{chunk-MRDDDATQ.js → chunk-675SL4FV.js} +3 -3
- package/dist/{chunk-WN3FKMKB.js → chunk-AXNBVGJC.js} +14 -19
- package/dist/{chunk-335KXO4I.js → chunk-BEVHUPQZ.js} +7 -7
- package/dist/{chunk-5QQTRGJ7.js → chunk-GJ7EWRH4.js} +4 -4
- package/dist/{chunk-KYBCPKPL.js → chunk-GV72NRZZ.js} +3 -3
- package/dist/{chunk-ZGHNMRBX.js → chunk-HSTSRNLJ.js} +121 -66
- package/dist/{chunk-JLK5OMFF.js → chunk-IGH7XTG6.js} +2 -2
- package/dist/{chunk-47OJGAFT.js → chunk-IJG6JLEF.js} +3 -3
- package/dist/{chunk-MH5JSAVK.js → chunk-IJSEKDUR.js} +3 -3
- package/dist/{chunk-NYFXBTWK.js → chunk-JTWM7VKM.js} +4 -4
- package/dist/{chunk-PKE54TAY.js → chunk-K6UZ5NEO.js} +7 -7
- package/dist/{chunk-FDJVVEGH.js → chunk-KBDH6IDK.js} +5 -7
- package/dist/{chunk-VFQMUAHB.js → chunk-KJJGDUT2.js} +4 -4
- package/dist/{chunk-N4X7XQWN.js → chunk-KOHDI3KN.js} +7 -3
- package/dist/{chunk-MX4RJDBM.js → chunk-KYB6A4PE.js} +1 -2
- package/dist/{chunk-VHAXHYTL.js → chunk-LMK5VFZE.js} +3 -3
- package/dist/{chunk-AT4IG4GJ.js → chunk-LSQU4XJZ.js} +9 -11
- package/dist/{chunk-ND6AGPC6.js → chunk-MG6EVKFQ.js} +3 -3
- package/dist/{chunk-TCTXUAZT.js → chunk-MHLSPYVQ.js} +3 -3
- package/dist/{chunk-CBD6UXLA.js → chunk-OJOHMVV7.js} +5 -5
- package/dist/{chunk-GDYKHT64.js → chunk-PDNTPE4N.js} +2805 -33
- package/dist/{chunk-X6F3DHKX.js → chunk-RQJF2YRM.js} +2 -2
- package/dist/{chunk-LN444KRM.js → chunk-RXYE2GI3.js} +2 -2
- package/dist/{chunk-UOZCMFCN.js → chunk-SVWWKVUI.js} +18 -13
- package/dist/{chunk-XSMWYZDC.js → chunk-T2BV6JEL.js} +10 -10
- package/dist/{chunk-N2DEYZD6.js → chunk-UDRKRTS4.js} +3 -3
- package/dist/{chunk-SYRHCENA.js → chunk-VNZQKLLO.js} +2 -2
- package/dist/{chunk-MQXHFQM3.js → chunk-WLNYFGYY.js} +4 -4
- package/dist/{chunk-NEOIQ6PN.js → chunk-WNDN5FAY.js} +2 -2
- package/dist/{chunk-DVTWERMH.js → chunk-WZW6P6AO.js} +5 -5
- package/dist/{chunk-MMQOVZDR.js → chunk-XOSZOZ3F.js} +5 -5
- package/dist/{chunk-WI6MEN7U.js → chunk-YNXUXQFM.js} +2 -2
- package/dist/{chunk-43YGIE7Y.js → chunk-YZA6BRN3.js} +2 -2
- package/dist/cli/commands/auth/logout.js +18 -20
- package/dist/cli/commands/auth/logout.test.js +24 -26
- package/dist/cli/commands/cache/clear.js +17 -19
- package/dist/cli/commands/debug/command-flags.js +17 -19
- package/dist/cli/commands/docs/generate.js +17 -19
- package/dist/cli/commands/docs/generate.test.js +18 -20
- package/dist/cli/commands/help.js +17 -19
- package/dist/cli/commands/kitchen-sink/async.js +18 -20
- package/dist/cli/commands/kitchen-sink/async.test.js +19 -21
- package/dist/cli/commands/kitchen-sink/index.js +20 -22
- package/dist/cli/commands/kitchen-sink/index.test.js +23 -25
- package/dist/cli/commands/kitchen-sink/prompts.js +18 -20
- package/dist/cli/commands/kitchen-sink/prompts.test.js +19 -21
- package/dist/cli/commands/kitchen-sink/static.js +18 -20
- package/dist/cli/commands/kitchen-sink/static.test.js +19 -21
- package/dist/cli/commands/notifications/generate.js +18 -20
- package/dist/cli/commands/notifications/list.js +18 -20
- package/dist/cli/commands/search.js +18 -20
- package/dist/cli/commands/upgrade.js +18 -20
- package/dist/cli/commands/upgrade.test.js +1 -2
- package/dist/cli/commands/version.js +18 -20
- package/dist/cli/commands/version.test.js +19 -21
- package/dist/cli/services/commands/notifications.js +12 -14
- package/dist/cli/services/commands/search.js +8 -9
- package/dist/cli/services/commands/search.test.js +9 -10
- package/dist/cli/services/commands/version.js +9 -10
- package/dist/cli/services/commands/version.test.js +11 -12
- package/dist/cli/services/kitchen-sink/async.js +8 -9
- package/dist/cli/services/kitchen-sink/prompts.js +8 -9
- package/dist/cli/services/kitchen-sink/static.js +8 -9
- package/dist/cli/services/upgrade.js +9 -10
- package/dist/cli/services/upgrade.test.js +12 -13
- package/dist/configs/all.yml +15 -0
- package/dist/configs/recommended.yml +9 -0
- package/dist/{custom-oclif-loader-IZLFCRGJ.js → custom-oclif-loader-U43F5H7M.js} +8 -9
- package/dist/data/filters.json +98 -3
- package/dist/data/latest.json +1 -1
- package/dist/data/manifest_theme.json +1 -0
- package/dist/data/objects.json +39 -1619
- package/dist/data/preset_blocks.json +78 -0
- package/dist/data/section.json +1 -42
- package/dist/data/shopify_system_translations.json +34 -7
- package/dist/data/tags.json +10 -0
- package/dist/data/theme_block.json +1 -19
- package/dist/{del-FEQWOMIX.js → del-K5ZJEWTD.js} +3 -3
- package/dist/{error-handler-DAI5HMQW.js → error-handler-GSXEX5NX.js} +15 -17
- package/dist/hooks/postrun.js +13 -15
- package/dist/hooks/prerun.js +15 -19
- package/dist/index.js +19503 -17452
- package/dist/lib-PPXZBVZX.js +6 -0
- package/dist/{lib-JJXX7GH6.js → lib-XYCLX35G.js} +5 -5
- package/dist/{local-QD6GDUUE.js → local-STC6NEOC.js} +10 -9
- package/dist/{morph-FN23MJ2S.js → morph-SEECJQ2W.js} +2 -2
- package/dist/{node-4XKDIIJ7.js → node-I54BR73K.js} +19 -21
- package/dist/{node-package-manager-IEZ6F5VN.js → node-package-manager-DUWCXRNZ.js} +9 -10
- package/dist/{out-ZDSLKX4N.js → out-MHEKZJWS.js} +2 -2
- package/dist/{path-T2RCZTRE.js → path-5SZGULBR.js} +2 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-BUB4OWO7.js → ui-GZXRHEXO.js} +8 -9
- package/dist/{workerd-DIIGDIHZ.js → workerd-WQ2CUXFS.js} +19 -21
- package/oclif.manifest.json +334 -131
- package/package.json +7 -8
- package/assets/demo-catalog.json +0 -655
- package/dist/assets/demo-catalog.json +0 -655
- package/dist/chunk-2PUMVRDO.js +0 -131
- package/dist/chunk-7GNQ7YY4.js +0 -116
- package/dist/chunk-E2SYFYJU.js +0 -58
- package/dist/chunk-NLUGD7PZ.js +0 -2731
- package/dist/chunk-P6ABWRKD.js +0 -59
- package/dist/chunk-QSUS3GJF.js +0 -3838
- package/dist/chunk-RUK73IAH.js +0 -312
- package/dist/chunk-T2GATXSP.js +0 -112
- package/dist/chunk-VT3VJHZ7.js +0 -45
- package/dist/chunk-XEDHKQZA.js +0 -116
- package/dist/cli/commands/demo/catalog.d.ts +0 -6
- package/dist/cli/commands/demo/catalog.js +0 -36
- package/dist/cli/commands/demo/generate-file.d.ts +0 -11
- package/dist/cli/commands/demo/generate-file.js +0 -37
- package/dist/cli/commands/demo/index.d.ts +0 -10
- package/dist/cli/commands/demo/index.js +0 -36
- package/dist/cli/commands/demo/print-ai-prompt.d.ts +0 -6
- package/dist/cli/commands/demo/print-ai-prompt.js +0 -37
- package/dist/cli/services/demo.d.ts +0 -26440
- package/dist/cli/services/demo.js +0 -25
- package/dist/cli/services/demo.test.js +0 -42
- package/dist/constants-QFFDI47A.js +0 -26
- package/dist/system-KSIGUX64.js +0 -29
|
@@ -1,23 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_lib as require_lib2
|
|
3
|
+
} from "./chunk-2HGYYNE5.js";
|
|
1
4
|
import {
|
|
2
5
|
require_graceful_fs
|
|
3
6
|
} from "./chunk-XVNW332R.js";
|
|
4
|
-
import {
|
|
5
|
-
environmentVariables,
|
|
6
|
-
pathConstants
|
|
7
|
-
} from "./chunk-XEDHKQZA.js";
|
|
8
7
|
import {
|
|
9
8
|
cwd,
|
|
9
|
+
dirname,
|
|
10
10
|
joinPath,
|
|
11
11
|
normalizePath,
|
|
12
12
|
relativizePath,
|
|
13
13
|
sniffForPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3NSN5Z4N.js";
|
|
15
15
|
import {
|
|
16
16
|
require_cross_spawn,
|
|
17
17
|
require_lib,
|
|
18
18
|
require_source,
|
|
19
19
|
require_supports_hyperlinks
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OJOHMVV7.js";
|
|
21
21
|
import {
|
|
22
22
|
require_brace_expansion,
|
|
23
23
|
require_source_map
|
|
@@ -1532,10 +1532,10 @@ var require_baseGet = __commonJS({
|
|
|
1532
1532
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"(exports, module) {
|
|
1533
1533
|
init_cjs_shims();
|
|
1534
1534
|
var castPath = require_castPath(), toKey = require_toKey();
|
|
1535
|
-
function baseGet(object,
|
|
1536
|
-
|
|
1537
|
-
for (var index = 0, length =
|
|
1538
|
-
object = object[toKey(
|
|
1535
|
+
function baseGet(object, path8) {
|
|
1536
|
+
path8 = castPath(path8, object);
|
|
1537
|
+
for (var index = 0, length = path8.length; object != null && index < length; )
|
|
1538
|
+
object = object[toKey(path8[index++])];
|
|
1539
1539
|
return index && index == length ? object : void 0;
|
|
1540
1540
|
}
|
|
1541
1541
|
module.exports = baseGet;
|
|
@@ -1547,8 +1547,8 @@ var require_get = __commonJS({
|
|
|
1547
1547
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"(exports, module) {
|
|
1548
1548
|
init_cjs_shims();
|
|
1549
1549
|
var baseGet = require_baseGet();
|
|
1550
|
-
function get(object,
|
|
1551
|
-
var result = object == null ? void 0 : baseGet(object,
|
|
1550
|
+
function get(object, path8, defaultValue) {
|
|
1551
|
+
var result = object == null ? void 0 : baseGet(object, path8);
|
|
1552
1552
|
return result === void 0 ? defaultValue : result;
|
|
1553
1553
|
}
|
|
1554
1554
|
module.exports = get;
|
|
@@ -1571,10 +1571,10 @@ var require_hasPath = __commonJS({
|
|
|
1571
1571
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasPath.js"(exports, module) {
|
|
1572
1572
|
init_cjs_shims();
|
|
1573
1573
|
var castPath = require_castPath(), isArguments = require_isArguments(), isArray = require_isArray(), isIndex = require_isIndex(), isLength = require_isLength(), toKey = require_toKey();
|
|
1574
|
-
function hasPath(object,
|
|
1575
|
-
|
|
1576
|
-
for (var index = -1, length =
|
|
1577
|
-
var key = toKey(
|
|
1574
|
+
function hasPath(object, path8, hasFunc) {
|
|
1575
|
+
path8 = castPath(path8, object);
|
|
1576
|
+
for (var index = -1, length = path8.length, result = !1; ++index < length; ) {
|
|
1577
|
+
var key = toKey(path8[index]);
|
|
1578
1578
|
if (!(result = object != null && hasFunc(object, key)))
|
|
1579
1579
|
break;
|
|
1580
1580
|
object = object[key];
|
|
@@ -1590,8 +1590,8 @@ var require_hasIn = __commonJS({
|
|
|
1590
1590
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/hasIn.js"(exports, module) {
|
|
1591
1591
|
init_cjs_shims();
|
|
1592
1592
|
var baseHasIn = require_baseHasIn(), hasPath = require_hasPath();
|
|
1593
|
-
function hasIn(object,
|
|
1594
|
-
return object != null && hasPath(object,
|
|
1593
|
+
function hasIn(object, path8) {
|
|
1594
|
+
return object != null && hasPath(object, path8, baseHasIn);
|
|
1595
1595
|
}
|
|
1596
1596
|
module.exports = hasIn;
|
|
1597
1597
|
}
|
|
@@ -1602,10 +1602,10 @@ var require_baseMatchesProperty = __commonJS({
|
|
|
1602
1602
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatchesProperty.js"(exports, module) {
|
|
1603
1603
|
init_cjs_shims();
|
|
1604
1604
|
var baseIsEqual = require_baseIsEqual(), get = require_get(), hasIn = require_hasIn(), isKey = require_isKey(), isStrictComparable = require_isStrictComparable(), matchesStrictComparable = require_matchesStrictComparable(), toKey = require_toKey(), COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
1605
|
-
function baseMatchesProperty(
|
|
1606
|
-
return isKey(
|
|
1607
|
-
var objValue = get(object,
|
|
1608
|
-
return objValue === void 0 && objValue === srcValue ? hasIn(object,
|
|
1605
|
+
function baseMatchesProperty(path8, srcValue) {
|
|
1606
|
+
return isKey(path8) && isStrictComparable(srcValue) ? matchesStrictComparable(toKey(path8), srcValue) : function(object) {
|
|
1607
|
+
var objValue = get(object, path8);
|
|
1608
|
+
return objValue === void 0 && objValue === srcValue ? hasIn(object, path8) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
1609
1609
|
};
|
|
1610
1610
|
}
|
|
1611
1611
|
module.exports = baseMatchesProperty;
|
|
@@ -1641,9 +1641,9 @@ var require_basePropertyDeep = __commonJS({
|
|
|
1641
1641
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyDeep.js"(exports, module) {
|
|
1642
1642
|
init_cjs_shims();
|
|
1643
1643
|
var baseGet = require_baseGet();
|
|
1644
|
-
function basePropertyDeep(
|
|
1644
|
+
function basePropertyDeep(path8) {
|
|
1645
1645
|
return function(object) {
|
|
1646
|
-
return baseGet(object,
|
|
1646
|
+
return baseGet(object, path8);
|
|
1647
1647
|
};
|
|
1648
1648
|
}
|
|
1649
1649
|
module.exports = basePropertyDeep;
|
|
@@ -1655,8 +1655,8 @@ var require_property = __commonJS({
|
|
|
1655
1655
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js"(exports, module) {
|
|
1656
1656
|
init_cjs_shims();
|
|
1657
1657
|
var baseProperty = require_baseProperty(), basePropertyDeep = require_basePropertyDeep(), isKey = require_isKey(), toKey = require_toKey();
|
|
1658
|
-
function property(
|
|
1659
|
-
return isKey(
|
|
1658
|
+
function property(path8) {
|
|
1659
|
+
return isKey(path8) ? baseProperty(toKey(path8)) : basePropertyDeep(path8);
|
|
1660
1660
|
}
|
|
1661
1661
|
module.exports = property;
|
|
1662
1662
|
}
|
|
@@ -2388,7 +2388,7 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
2388
2388
|
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
2389
2389
|
return typeof state == "function" ? receiver === state : state.has(receiver);
|
|
2390
2390
|
}
|
|
2391
|
-
function __addDisposableResource(
|
|
2391
|
+
function __addDisposableResource(env3, value, async) {
|
|
2392
2392
|
if (value != null) {
|
|
2393
2393
|
if (typeof value != "object" && typeof value != "function")
|
|
2394
2394
|
throw new TypeError("Object expected.");
|
|
@@ -2405,18 +2405,18 @@ function __addDisposableResource(env2, value, async) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
if (typeof dispose != "function")
|
|
2407
2407
|
throw new TypeError("Object not disposable.");
|
|
2408
|
-
|
|
2408
|
+
env3.stack.push({ value, dispose, async });
|
|
2409
2409
|
} else
|
|
2410
|
-
async &&
|
|
2410
|
+
async && env3.stack.push({ async: !0 });
|
|
2411
2411
|
return value;
|
|
2412
2412
|
}
|
|
2413
|
-
function __disposeResources(
|
|
2413
|
+
function __disposeResources(env3) {
|
|
2414
2414
|
function fail(e) {
|
|
2415
|
-
|
|
2415
|
+
env3.error = env3.hasError ? new _SuppressedError(e, env3.error, "An error was suppressed during disposal.") : e, env3.hasError = !0;
|
|
2416
2416
|
}
|
|
2417
2417
|
function next() {
|
|
2418
|
-
for (;
|
|
2419
|
-
var rec =
|
|
2418
|
+
for (; env3.stack.length; ) {
|
|
2419
|
+
var rec = env3.stack.pop();
|
|
2420
2420
|
try {
|
|
2421
2421
|
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
2422
2422
|
if (rec.async)
|
|
@@ -2427,8 +2427,8 @@ function __disposeResources(env2) {
|
|
|
2427
2427
|
fail(e);
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|
|
2430
|
-
if (
|
|
2431
|
-
throw
|
|
2430
|
+
if (env3.hasError)
|
|
2431
|
+
throw env3.error;
|
|
2432
2432
|
}
|
|
2433
2433
|
return next();
|
|
2434
2434
|
}
|
|
@@ -2958,9 +2958,9 @@ var require_utils = __commonJS({
|
|
|
2958
2958
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
|
|
2959
2959
|
"use strict";
|
|
2960
2960
|
init_cjs_shims();
|
|
2961
|
-
var
|
|
2961
|
+
var path8 = __require("path");
|
|
2962
2962
|
module.exports.checkPath = function(pth) {
|
|
2963
|
-
if (process.platform === "win32" && /[<>:"|?*]/.test(pth.replace(
|
|
2963
|
+
if (process.platform === "win32" && /[<>:"|?*]/.test(pth.replace(path8.parse(pth).root, ""))) {
|
|
2964
2964
|
let error = new Error(`Path contains invalid characters: ${pth}`);
|
|
2965
2965
|
throw error.code = "EINVAL", error;
|
|
2966
2966
|
}
|
|
@@ -3012,8 +3012,8 @@ var require_path_exists = __commonJS({
|
|
|
3012
3012
|
"use strict";
|
|
3013
3013
|
init_cjs_shims();
|
|
3014
3014
|
var u = require_universalify().fromPromise, fs4 = require_fs();
|
|
3015
|
-
function pathExists3(
|
|
3016
|
-
return fs4.access(
|
|
3015
|
+
function pathExists3(path8) {
|
|
3016
|
+
return fs4.access(path8).then(() => !0).catch(() => !1);
|
|
3017
3017
|
}
|
|
3018
3018
|
module.exports = {
|
|
3019
3019
|
pathExists: u(pathExists3),
|
|
@@ -3028,8 +3028,8 @@ var require_utimes = __commonJS({
|
|
|
3028
3028
|
"use strict";
|
|
3029
3029
|
init_cjs_shims();
|
|
3030
3030
|
var fs4 = require_graceful_fs();
|
|
3031
|
-
function utimesMillis(
|
|
3032
|
-
fs4.open(
|
|
3031
|
+
function utimesMillis(path8, atime, mtime, callback) {
|
|
3032
|
+
fs4.open(path8, "r+", (err, fd) => {
|
|
3033
3033
|
if (err)
|
|
3034
3034
|
return callback(err);
|
|
3035
3035
|
fs4.futimes(fd, atime, mtime, (futimesErr) => {
|
|
@@ -3039,8 +3039,8 @@ var require_utimes = __commonJS({
|
|
|
3039
3039
|
});
|
|
3040
3040
|
});
|
|
3041
3041
|
}
|
|
3042
|
-
function utimesMillisSync(
|
|
3043
|
-
let fd = fs4.openSync(
|
|
3042
|
+
function utimesMillisSync(path8, atime, mtime) {
|
|
3043
|
+
let fd = fs4.openSync(path8, "r+");
|
|
3044
3044
|
return fs4.futimesSync(fd, atime, mtime), fs4.closeSync(fd);
|
|
3045
3045
|
}
|
|
3046
3046
|
module.exports = {
|
|
@@ -3055,7 +3055,7 @@ var require_stat = __commonJS({
|
|
|
3055
3055
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
|
|
3056
3056
|
"use strict";
|
|
3057
3057
|
init_cjs_shims();
|
|
3058
|
-
var fs4 = require_fs(),
|
|
3058
|
+
var fs4 = require_fs(), path8 = __require("path"), util = __require("util");
|
|
3059
3059
|
function getStats(src, dest, opts) {
|
|
3060
3060
|
let statFunc = opts.dereference ? (file) => fs4.stat(file, { bigint: !0 }) : (file) => fs4.lstat(file, { bigint: !0 });
|
|
3061
3061
|
return Promise.all([
|
|
@@ -3085,7 +3085,7 @@ var require_stat = __commonJS({
|
|
|
3085
3085
|
let { srcStat, destStat } = stats;
|
|
3086
3086
|
if (destStat) {
|
|
3087
3087
|
if (areIdentical(srcStat, destStat)) {
|
|
3088
|
-
let srcBaseName =
|
|
3088
|
+
let srcBaseName = path8.basename(src), destBaseName = path8.basename(dest);
|
|
3089
3089
|
return funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase() ? cb(null, { srcStat, destStat, isChangingCase: !0 }) : cb(new Error("Source and destination must not be the same."));
|
|
3090
3090
|
}
|
|
3091
3091
|
if (srcStat.isDirectory() && !destStat.isDirectory())
|
|
@@ -3100,7 +3100,7 @@ var require_stat = __commonJS({
|
|
|
3100
3100
|
let { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
3101
3101
|
if (destStat) {
|
|
3102
3102
|
if (areIdentical(srcStat, destStat)) {
|
|
3103
|
-
let srcBaseName =
|
|
3103
|
+
let srcBaseName = path8.basename(src), destBaseName = path8.basename(dest);
|
|
3104
3104
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase())
|
|
3105
3105
|
return { srcStat, destStat, isChangingCase: !0 };
|
|
3106
3106
|
throw new Error("Source and destination must not be the same.");
|
|
@@ -3115,14 +3115,14 @@ var require_stat = __commonJS({
|
|
|
3115
3115
|
return { srcStat, destStat };
|
|
3116
3116
|
}
|
|
3117
3117
|
function checkParentPaths(src, srcStat, dest, funcName, cb) {
|
|
3118
|
-
let srcParent =
|
|
3119
|
-
if (destParent === srcParent || destParent ===
|
|
3118
|
+
let srcParent = path8.resolve(path8.dirname(src)), destParent = path8.resolve(path8.dirname(dest));
|
|
3119
|
+
if (destParent === srcParent || destParent === path8.parse(destParent).root)
|
|
3120
3120
|
return cb();
|
|
3121
3121
|
fs4.stat(destParent, { bigint: !0 }, (err, destStat) => err ? err.code === "ENOENT" ? cb() : cb(err) : areIdentical(srcStat, destStat) ? cb(new Error(errMsg(src, dest, funcName))) : checkParentPaths(src, srcStat, destParent, funcName, cb));
|
|
3122
3122
|
}
|
|
3123
3123
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
3124
|
-
let srcParent =
|
|
3125
|
-
if (destParent === srcParent || destParent ===
|
|
3124
|
+
let srcParent = path8.resolve(path8.dirname(src)), destParent = path8.resolve(path8.dirname(dest));
|
|
3125
|
+
if (destParent === srcParent || destParent === path8.parse(destParent).root)
|
|
3126
3126
|
return;
|
|
3127
3127
|
let destStat;
|
|
3128
3128
|
try {
|
|
@@ -3140,7 +3140,7 @@ var require_stat = __commonJS({
|
|
|
3140
3140
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
3141
3141
|
}
|
|
3142
3142
|
function isSrcSubdir(src, dest) {
|
|
3143
|
-
let srcArr =
|
|
3143
|
+
let srcArr = path8.resolve(src).split(path8.sep).filter((i) => i), destArr = path8.resolve(dest).split(path8.sep).filter((i) => i);
|
|
3144
3144
|
return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, !0);
|
|
3145
3145
|
}
|
|
3146
3146
|
function errMsg(src, dest, funcName) {
|
|
@@ -3162,7 +3162,7 @@ var require_copy = __commonJS({
|
|
|
3162
3162
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
|
|
3163
3163
|
"use strict";
|
|
3164
3164
|
init_cjs_shims();
|
|
3165
|
-
var fs4 = require_graceful_fs(),
|
|
3165
|
+
var fs4 = require_graceful_fs(), path8 = __require("path"), mkdirs2 = require_mkdirs().mkdirs, pathExists3 = require_path_exists().pathExists, utimesMillis = require_utimes().utimesMillis, stat = require_stat();
|
|
3166
3166
|
function copy2(src, dest, opts, cb) {
|
|
3167
3167
|
typeof opts == "function" && !cb ? (cb = opts, opts = {}) : typeof opts == "function" && (opts = { filter: opts }), cb = cb || function() {
|
|
3168
3168
|
}, opts = opts || {}, opts.clobber = "clobber" in opts ? !!opts.clobber : !0, opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber, opts.preserveTimestamps && process.arch === "ia32" && process.emitWarning(
|
|
@@ -3189,7 +3189,7 @@ var require_copy = __commonJS({
|
|
|
3189
3189
|
});
|
|
3190
3190
|
}
|
|
3191
3191
|
function checkParentDir(destStat, src, dest, opts, cb) {
|
|
3192
|
-
let destParent =
|
|
3192
|
+
let destParent = path8.dirname(dest);
|
|
3193
3193
|
pathExists3(destParent, (err, dirExists) => {
|
|
3194
3194
|
if (err)
|
|
3195
3195
|
return cb(err);
|
|
@@ -3254,7 +3254,7 @@ var require_copy = __commonJS({
|
|
|
3254
3254
|
return item ? copyDirItem(items, item, src, dest, opts, cb) : cb();
|
|
3255
3255
|
}
|
|
3256
3256
|
function copyDirItem(items, item, src, dest, opts, cb) {
|
|
3257
|
-
let srcItem =
|
|
3257
|
+
let srcItem = path8.join(src, item), destItem = path8.join(dest, item);
|
|
3258
3258
|
runFilter(srcItem, destItem, opts, (err, include) => {
|
|
3259
3259
|
if (err)
|
|
3260
3260
|
return cb(err);
|
|
@@ -3272,8 +3272,8 @@ var require_copy = __commonJS({
|
|
|
3272
3272
|
fs4.readlink(src, (err, resolvedSrc) => {
|
|
3273
3273
|
if (err)
|
|
3274
3274
|
return cb(err);
|
|
3275
|
-
if (opts.dereference && (resolvedSrc =
|
|
3276
|
-
fs4.readlink(dest, (err2, resolvedDest) => err2 ? err2.code === "EINVAL" || err2.code === "UNKNOWN" ? fs4.symlink(resolvedSrc, dest, cb) : cb(err2) : (opts.dereference && (resolvedDest =
|
|
3275
|
+
if (opts.dereference && (resolvedSrc = path8.resolve(process.cwd(), resolvedSrc)), destStat)
|
|
3276
|
+
fs4.readlink(dest, (err2, resolvedDest) => err2 ? err2.code === "EINVAL" || err2.code === "UNKNOWN" ? fs4.symlink(resolvedSrc, dest, cb) : cb(err2) : (opts.dereference && (resolvedDest = path8.resolve(process.cwd(), resolvedDest)), stat.isSrcSubdir(resolvedSrc, resolvedDest) ? cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`)) : stat.isSrcSubdir(resolvedDest, resolvedSrc) ? cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`)) : copyLink(resolvedSrc, dest, cb)));
|
|
3277
3277
|
else
|
|
3278
3278
|
return fs4.symlink(resolvedSrc, dest, cb);
|
|
3279
3279
|
});
|
|
@@ -3290,7 +3290,7 @@ var require_copy_sync = __commonJS({
|
|
|
3290
3290
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) {
|
|
3291
3291
|
"use strict";
|
|
3292
3292
|
init_cjs_shims();
|
|
3293
|
-
var fs4 = require_graceful_fs(),
|
|
3293
|
+
var fs4 = require_graceful_fs(), path8 = __require("path"), mkdirsSync2 = require_mkdirs().mkdirsSync, utimesMillisSync = require_utimes().utimesMillisSync, stat = require_stat();
|
|
3294
3294
|
function copySync2(src, dest, opts) {
|
|
3295
3295
|
typeof opts == "function" && (opts = { filter: opts }), opts = opts || {}, opts.clobber = "clobber" in opts ? !!opts.clobber : !0, opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber, opts.preserveTimestamps && process.arch === "ia32" && process.emitWarning(
|
|
3296
3296
|
`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
@@ -3302,7 +3302,7 @@ var require_copy_sync = __commonJS({
|
|
|
3302
3302
|
let { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);
|
|
3303
3303
|
if (stat.checkParentPathsSync(src, srcStat, dest, "copy"), opts.filter && !opts.filter(src, dest))
|
|
3304
3304
|
return;
|
|
3305
|
-
let destParent =
|
|
3305
|
+
let destParent = path8.dirname(dest);
|
|
3306
3306
|
return fs4.existsSync(destParent) || mkdirsSync2(destParent), getStats(destStat, src, dest, opts);
|
|
3307
3307
|
}
|
|
3308
3308
|
function getStats(destStat, src, dest, opts) {
|
|
@@ -3353,7 +3353,7 @@ var require_copy_sync = __commonJS({
|
|
|
3353
3353
|
fs4.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
3354
3354
|
}
|
|
3355
3355
|
function copyDirItem(item, src, dest, opts) {
|
|
3356
|
-
let srcItem =
|
|
3356
|
+
let srcItem = path8.join(src, item), destItem = path8.join(dest, item);
|
|
3357
3357
|
if (opts.filter && !opts.filter(srcItem, destItem))
|
|
3358
3358
|
return;
|
|
3359
3359
|
let { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
@@ -3361,7 +3361,7 @@ var require_copy_sync = __commonJS({
|
|
|
3361
3361
|
}
|
|
3362
3362
|
function onLink(destStat, src, dest, opts) {
|
|
3363
3363
|
let resolvedSrc = fs4.readlinkSync(src);
|
|
3364
|
-
if (opts.dereference && (resolvedSrc =
|
|
3364
|
+
if (opts.dereference && (resolvedSrc = path8.resolve(process.cwd(), resolvedSrc)), destStat) {
|
|
3365
3365
|
let resolvedDest;
|
|
3366
3366
|
try {
|
|
3367
3367
|
resolvedDest = fs4.readlinkSync(dest);
|
|
@@ -3370,7 +3370,7 @@ var require_copy_sync = __commonJS({
|
|
|
3370
3370
|
return fs4.symlinkSync(resolvedSrc, dest);
|
|
3371
3371
|
throw err;
|
|
3372
3372
|
}
|
|
3373
|
-
if (opts.dereference && (resolvedDest =
|
|
3373
|
+
if (opts.dereference && (resolvedDest = path8.resolve(process.cwd(), resolvedDest)), stat.isSrcSubdir(resolvedSrc, resolvedDest))
|
|
3374
3374
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
3375
3375
|
if (stat.isSrcSubdir(resolvedDest, resolvedSrc))
|
|
3376
3376
|
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
@@ -3404,11 +3404,11 @@ var require_remove = __commonJS({
|
|
|
3404
3404
|
"use strict";
|
|
3405
3405
|
init_cjs_shims();
|
|
3406
3406
|
var fs4 = require_graceful_fs(), u = require_universalify().fromCallback;
|
|
3407
|
-
function remove2(
|
|
3408
|
-
fs4.rm(
|
|
3407
|
+
function remove2(path8, callback) {
|
|
3408
|
+
fs4.rm(path8, { recursive: !0, force: !0 }, callback);
|
|
3409
3409
|
}
|
|
3410
|
-
function removeSync2(
|
|
3411
|
-
fs4.rmSync(
|
|
3410
|
+
function removeSync2(path8) {
|
|
3411
|
+
fs4.rmSync(path8, { recursive: !0, force: !0 });
|
|
3412
3412
|
}
|
|
3413
3413
|
module.exports = {
|
|
3414
3414
|
remove: u(remove2),
|
|
@@ -3422,14 +3422,14 @@ var require_empty = __commonJS({
|
|
|
3422
3422
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/empty/index.js"(exports, module) {
|
|
3423
3423
|
"use strict";
|
|
3424
3424
|
init_cjs_shims();
|
|
3425
|
-
var u = require_universalify().fromPromise, fs4 = require_fs(),
|
|
3425
|
+
var u = require_universalify().fromPromise, fs4 = require_fs(), path8 = __require("path"), mkdir2 = require_mkdirs(), remove2 = require_remove(), emptyDir2 = u(async function(dir) {
|
|
3426
3426
|
let items;
|
|
3427
3427
|
try {
|
|
3428
3428
|
items = await fs4.readdir(dir);
|
|
3429
3429
|
} catch {
|
|
3430
3430
|
return mkdir2.mkdirs(dir);
|
|
3431
3431
|
}
|
|
3432
|
-
return Promise.all(items.map((item) => remove2.remove(
|
|
3432
|
+
return Promise.all(items.map((item) => remove2.remove(path8.join(dir, item))));
|
|
3433
3433
|
});
|
|
3434
3434
|
function emptyDirSync2(dir) {
|
|
3435
3435
|
let items;
|
|
@@ -3439,7 +3439,7 @@ var require_empty = __commonJS({
|
|
|
3439
3439
|
return mkdir2.mkdirsSync(dir);
|
|
3440
3440
|
}
|
|
3441
3441
|
items.forEach((item) => {
|
|
3442
|
-
item =
|
|
3442
|
+
item = path8.join(dir, item), remove2.removeSync(item);
|
|
3443
3443
|
});
|
|
3444
3444
|
}
|
|
3445
3445
|
module.exports = {
|
|
@@ -3456,7 +3456,7 @@ var require_file = __commonJS({
|
|
|
3456
3456
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
|
|
3457
3457
|
"use strict";
|
|
3458
3458
|
init_cjs_shims();
|
|
3459
|
-
var u = require_universalify().fromCallback,
|
|
3459
|
+
var u = require_universalify().fromCallback, path8 = __require("path"), fs4 = require_graceful_fs(), mkdir2 = require_mkdirs();
|
|
3460
3460
|
function createFile2(file, callback) {
|
|
3461
3461
|
function makeFile() {
|
|
3462
3462
|
fs4.writeFile(file, "", (err) => {
|
|
@@ -3468,7 +3468,7 @@ var require_file = __commonJS({
|
|
|
3468
3468
|
fs4.stat(file, (err, stats) => {
|
|
3469
3469
|
if (!err && stats.isFile())
|
|
3470
3470
|
return callback();
|
|
3471
|
-
let dir =
|
|
3471
|
+
let dir = path8.dirname(file);
|
|
3472
3472
|
fs4.stat(dir, (err2, stats2) => {
|
|
3473
3473
|
if (err2)
|
|
3474
3474
|
return err2.code === "ENOENT" ? mkdir2.mkdirs(dir, (err3) => {
|
|
@@ -3491,7 +3491,7 @@ var require_file = __commonJS({
|
|
|
3491
3491
|
}
|
|
3492
3492
|
if (stats && stats.isFile())
|
|
3493
3493
|
return;
|
|
3494
|
-
let dir =
|
|
3494
|
+
let dir = path8.dirname(file);
|
|
3495
3495
|
try {
|
|
3496
3496
|
fs4.statSync(dir).isDirectory() || fs4.readdirSync(dir);
|
|
3497
3497
|
} catch (err) {
|
|
@@ -3514,7 +3514,7 @@ var require_link = __commonJS({
|
|
|
3514
3514
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
|
|
3515
3515
|
"use strict";
|
|
3516
3516
|
init_cjs_shims();
|
|
3517
|
-
var u = require_universalify().fromCallback,
|
|
3517
|
+
var u = require_universalify().fromCallback, path8 = __require("path"), fs4 = require_graceful_fs(), mkdir2 = require_mkdirs(), pathExists3 = require_path_exists().pathExists, { areIdentical } = require_stat();
|
|
3518
3518
|
function createLink2(srcpath, dstpath, callback) {
|
|
3519
3519
|
function makeLink(srcpath2, dstpath2) {
|
|
3520
3520
|
fs4.link(srcpath2, dstpath2, (err) => {
|
|
@@ -3529,7 +3529,7 @@ var require_link = __commonJS({
|
|
|
3529
3529
|
return err.message = err.message.replace("lstat", "ensureLink"), callback(err);
|
|
3530
3530
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
3531
3531
|
return callback(null);
|
|
3532
|
-
let dir =
|
|
3532
|
+
let dir = path8.dirname(dstpath);
|
|
3533
3533
|
pathExists3(dir, (err2, dirExists) => {
|
|
3534
3534
|
if (err2)
|
|
3535
3535
|
return callback(err2);
|
|
@@ -3557,7 +3557,7 @@ var require_link = __commonJS({
|
|
|
3557
3557
|
} catch (err) {
|
|
3558
3558
|
throw err.message = err.message.replace("lstat", "ensureLink"), err;
|
|
3559
3559
|
}
|
|
3560
|
-
let dir =
|
|
3560
|
+
let dir = path8.dirname(dstpath);
|
|
3561
3561
|
return fs4.existsSync(dir) || mkdir2.mkdirsSync(dir), fs4.linkSync(srcpath, dstpath);
|
|
3562
3562
|
}
|
|
3563
3563
|
module.exports = {
|
|
@@ -3572,27 +3572,27 @@ var require_symlink_paths = __commonJS({
|
|
|
3572
3572
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
|
|
3573
3573
|
"use strict";
|
|
3574
3574
|
init_cjs_shims();
|
|
3575
|
-
var
|
|
3575
|
+
var path8 = __require("path"), fs4 = require_graceful_fs(), pathExists3 = require_path_exists().pathExists;
|
|
3576
3576
|
function symlinkPaths(srcpath, dstpath, callback) {
|
|
3577
|
-
if (
|
|
3577
|
+
if (path8.isAbsolute(srcpath))
|
|
3578
3578
|
return fs4.lstat(srcpath, (err) => err ? (err.message = err.message.replace("lstat", "ensureSymlink"), callback(err)) : callback(null, {
|
|
3579
3579
|
toCwd: srcpath,
|
|
3580
3580
|
toDst: srcpath
|
|
3581
3581
|
}));
|
|
3582
3582
|
{
|
|
3583
|
-
let dstdir =
|
|
3583
|
+
let dstdir = path8.dirname(dstpath), relativeToDst = path8.join(dstdir, srcpath);
|
|
3584
3584
|
return pathExists3(relativeToDst, (err, exists) => err ? callback(err) : exists ? callback(null, {
|
|
3585
3585
|
toCwd: relativeToDst,
|
|
3586
3586
|
toDst: srcpath
|
|
3587
3587
|
}) : fs4.lstat(srcpath, (err2) => err2 ? (err2.message = err2.message.replace("lstat", "ensureSymlink"), callback(err2)) : callback(null, {
|
|
3588
3588
|
toCwd: srcpath,
|
|
3589
|
-
toDst:
|
|
3589
|
+
toDst: path8.relative(dstdir, srcpath)
|
|
3590
3590
|
})));
|
|
3591
3591
|
}
|
|
3592
3592
|
}
|
|
3593
3593
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
3594
3594
|
let exists;
|
|
3595
|
-
if (
|
|
3595
|
+
if (path8.isAbsolute(srcpath)) {
|
|
3596
3596
|
if (exists = fs4.existsSync(srcpath), !exists)
|
|
3597
3597
|
throw new Error("absolute srcpath does not exist");
|
|
3598
3598
|
return {
|
|
@@ -3600,7 +3600,7 @@ var require_symlink_paths = __commonJS({
|
|
|
3600
3600
|
toDst: srcpath
|
|
3601
3601
|
};
|
|
3602
3602
|
} else {
|
|
3603
|
-
let dstdir =
|
|
3603
|
+
let dstdir = path8.dirname(dstpath), relativeToDst = path8.join(dstdir, srcpath);
|
|
3604
3604
|
if (exists = fs4.existsSync(relativeToDst), exists)
|
|
3605
3605
|
return {
|
|
3606
3606
|
toCwd: relativeToDst,
|
|
@@ -3610,7 +3610,7 @@ var require_symlink_paths = __commonJS({
|
|
|
3610
3610
|
throw new Error("relative srcpath does not exist");
|
|
3611
3611
|
return {
|
|
3612
3612
|
toCwd: srcpath,
|
|
3613
|
-
toDst:
|
|
3613
|
+
toDst: path8.relative(dstdir, srcpath)
|
|
3614
3614
|
};
|
|
3615
3615
|
}
|
|
3616
3616
|
}
|
|
@@ -3659,7 +3659,7 @@ var require_symlink = __commonJS({
|
|
|
3659
3659
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
|
|
3660
3660
|
"use strict";
|
|
3661
3661
|
init_cjs_shims();
|
|
3662
|
-
var u = require_universalify().fromCallback,
|
|
3662
|
+
var u = require_universalify().fromCallback, path8 = __require("path"), fs4 = require_fs(), _mkdirs2 = require_mkdirs(), mkdirs2 = _mkdirs2.mkdirs, mkdirsSync2 = _mkdirs2.mkdirsSync, _symlinkPaths = require_symlink_paths(), symlinkPaths = _symlinkPaths.symlinkPaths, symlinkPathsSync = _symlinkPaths.symlinkPathsSync, _symlinkType = require_symlink_type(), symlinkType = _symlinkType.symlinkType, symlinkTypeSync = _symlinkType.symlinkTypeSync, pathExists3 = require_path_exists().pathExists, { areIdentical } = require_stat();
|
|
3663
3663
|
function createSymlink2(srcpath, dstpath, type, callback) {
|
|
3664
3664
|
callback = typeof type == "function" ? type : callback, type = typeof type == "function" ? !1 : type, fs4.lstat(dstpath, (err, stats) => {
|
|
3665
3665
|
!err && stats.isSymbolicLink() ? Promise.all([
|
|
@@ -3679,7 +3679,7 @@ var require_symlink = __commonJS({
|
|
|
3679
3679
|
srcpath = relative.toDst, symlinkType(relative.toCwd, type, (err2, type2) => {
|
|
3680
3680
|
if (err2)
|
|
3681
3681
|
return callback(err2);
|
|
3682
|
-
let dir =
|
|
3682
|
+
let dir = path8.dirname(dstpath);
|
|
3683
3683
|
pathExists3(dir, (err3, dirExists) => {
|
|
3684
3684
|
if (err3)
|
|
3685
3685
|
return callback(err3);
|
|
@@ -3707,7 +3707,7 @@ var require_symlink = __commonJS({
|
|
|
3707
3707
|
}
|
|
3708
3708
|
let relative = symlinkPathsSync(srcpath, dstpath);
|
|
3709
3709
|
srcpath = relative.toDst, type = symlinkTypeSync(relative.toCwd, type);
|
|
3710
|
-
let dir =
|
|
3710
|
+
let dir = path8.dirname(dstpath);
|
|
3711
3711
|
return fs4.existsSync(dir) || mkdirsSync2(dir), fs4.symlinkSync(srcpath, dstpath, type);
|
|
3712
3712
|
}
|
|
3713
3713
|
module.exports = {
|
|
@@ -3837,10 +3837,10 @@ var require_output_file = __commonJS({
|
|
|
3837
3837
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/output-file/index.js"(exports, module) {
|
|
3838
3838
|
"use strict";
|
|
3839
3839
|
init_cjs_shims();
|
|
3840
|
-
var u = require_universalify().fromCallback, fs4 = require_graceful_fs(),
|
|
3840
|
+
var u = require_universalify().fromCallback, fs4 = require_graceful_fs(), path8 = __require("path"), mkdir2 = require_mkdirs(), pathExists3 = require_path_exists().pathExists;
|
|
3841
3841
|
function outputFile2(file, data, encoding, callback) {
|
|
3842
3842
|
typeof encoding == "function" && (callback = encoding, encoding = "utf8");
|
|
3843
|
-
let dir =
|
|
3843
|
+
let dir = path8.dirname(file);
|
|
3844
3844
|
pathExists3(dir, (err, itDoes) => {
|
|
3845
3845
|
if (err)
|
|
3846
3846
|
return callback(err);
|
|
@@ -3854,7 +3854,7 @@ var require_output_file = __commonJS({
|
|
|
3854
3854
|
});
|
|
3855
3855
|
}
|
|
3856
3856
|
function outputFileSync2(file, ...args) {
|
|
3857
|
-
let dir =
|
|
3857
|
+
let dir = path8.dirname(file);
|
|
3858
3858
|
if (fs4.existsSync(dir))
|
|
3859
3859
|
return fs4.writeFileSync(file, ...args);
|
|
3860
3860
|
mkdir2.mkdirsSync(dir), fs4.writeFileSync(file, ...args);
|
|
@@ -3917,7 +3917,7 @@ var require_move = __commonJS({
|
|
|
3917
3917
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move.js"(exports, module) {
|
|
3918
3918
|
"use strict";
|
|
3919
3919
|
init_cjs_shims();
|
|
3920
|
-
var fs4 = require_graceful_fs(),
|
|
3920
|
+
var fs4 = require_graceful_fs(), path8 = __require("path"), copy2 = require_copy2().copy, remove2 = require_remove().remove, mkdirp2 = require_mkdirs().mkdirp, pathExists3 = require_path_exists().pathExists, stat = require_stat();
|
|
3921
3921
|
function move2(src, dest, opts, cb) {
|
|
3922
3922
|
typeof opts == "function" && (cb = opts, opts = {}), opts = opts || {};
|
|
3923
3923
|
let overwrite = opts.overwrite || opts.clobber || !1;
|
|
@@ -3930,13 +3930,13 @@ var require_move = __commonJS({
|
|
|
3930
3930
|
return cb(err2);
|
|
3931
3931
|
if (isParentRoot(dest))
|
|
3932
3932
|
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
3933
|
-
mkdirp2(
|
|
3933
|
+
mkdirp2(path8.dirname(dest), (err3) => err3 ? cb(err3) : doRename(src, dest, overwrite, isChangingCase, cb));
|
|
3934
3934
|
});
|
|
3935
3935
|
});
|
|
3936
3936
|
}
|
|
3937
3937
|
function isParentRoot(dest) {
|
|
3938
|
-
let parent =
|
|
3939
|
-
return
|
|
3938
|
+
let parent = path8.dirname(dest);
|
|
3939
|
+
return path8.parse(parent).root === parent;
|
|
3940
3940
|
}
|
|
3941
3941
|
function doRename(src, dest, overwrite, isChangingCase, cb) {
|
|
3942
3942
|
if (isChangingCase)
|
|
@@ -3963,15 +3963,15 @@ var require_move_sync = __commonJS({
|
|
|
3963
3963
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) {
|
|
3964
3964
|
"use strict";
|
|
3965
3965
|
init_cjs_shims();
|
|
3966
|
-
var fs4 = require_graceful_fs(),
|
|
3966
|
+
var fs4 = require_graceful_fs(), path8 = __require("path"), copySync2 = require_copy2().copySync, removeSync2 = require_remove().removeSync, mkdirpSync2 = require_mkdirs().mkdirpSync, stat = require_stat();
|
|
3967
3967
|
function moveSync2(src, dest, opts) {
|
|
3968
3968
|
opts = opts || {};
|
|
3969
3969
|
let overwrite = opts.overwrite || opts.clobber || !1, { srcStat, isChangingCase = !1 } = stat.checkPathsSync(src, dest, "move", opts);
|
|
3970
|
-
return stat.checkParentPathsSync(src, srcStat, dest, "move"), isParentRoot(dest) || mkdirpSync2(
|
|
3970
|
+
return stat.checkParentPathsSync(src, srcStat, dest, "move"), isParentRoot(dest) || mkdirpSync2(path8.dirname(dest)), doRename(src, dest, overwrite, isChangingCase);
|
|
3971
3971
|
}
|
|
3972
3972
|
function isParentRoot(dest) {
|
|
3973
|
-
let parent =
|
|
3974
|
-
return
|
|
3973
|
+
let parent = path8.dirname(dest);
|
|
3974
|
+
return path8.parse(parent).root === parent;
|
|
3975
3975
|
}
|
|
3976
3976
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
3977
3977
|
if (isChangingCase)
|
|
@@ -4019,9 +4019,9 @@ var require_temp_dir = __commonJS({
|
|
|
4019
4019
|
"../../node_modules/.pnpm/temp-dir@2.0.0/node_modules/temp-dir/index.js"(exports, module) {
|
|
4020
4020
|
"use strict";
|
|
4021
4021
|
init_cjs_shims();
|
|
4022
|
-
var fs4 = __require("fs"),
|
|
4022
|
+
var fs4 = __require("fs"), os4 = __require("os"), tempDirectorySymbol = Symbol.for("__RESOLVED_TEMP_DIRECTORY__");
|
|
4023
4023
|
global[tempDirectorySymbol] || Object.defineProperty(global, tempDirectorySymbol, {
|
|
4024
|
-
value: fs4.realpathSync(
|
|
4024
|
+
value: fs4.realpathSync(os4.tmpdir())
|
|
4025
4025
|
});
|
|
4026
4026
|
module.exports = global[tempDirectorySymbol];
|
|
4027
4027
|
}
|
|
@@ -4065,10 +4065,10 @@ var require_signals = __commonJS({
|
|
|
4065
4065
|
var require_signal_exit = __commonJS({
|
|
4066
4066
|
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module) {
|
|
4067
4067
|
init_cjs_shims();
|
|
4068
|
-
var
|
|
4069
|
-
return
|
|
4068
|
+
var process21 = global.process, processOk = function(process22) {
|
|
4069
|
+
return process22 && typeof process22 == "object" && typeof process22.removeListener == "function" && typeof process22.emit == "function" && typeof process22.reallyExit == "function" && typeof process22.listeners == "function" && typeof process22.kill == "function" && typeof process22.pid == "number" && typeof process22.on == "function";
|
|
4070
4070
|
};
|
|
4071
|
-
processOk(
|
|
4071
|
+
processOk(process21) ? (assert = __require("assert"), signals = require_signals(), isWin = /^win/i.test(process21.platform), EE = __require("events"), typeof EE != "function" && (EE = EE.EventEmitter), process21.__signal_exit_emitter__ ? emitter = process21.__signal_exit_emitter__ : (emitter = process21.__signal_exit_emitter__ = new EE(), emitter.count = 0, emitter.emitted = {}), emitter.infinite || (emitter.setMaxListeners(1 / 0), emitter.infinite = !0), module.exports = function(cb, opts) {
|
|
4072
4072
|
if (!processOk(global.process))
|
|
4073
4073
|
return function() {
|
|
4074
4074
|
};
|
|
@@ -4082,17 +4082,17 @@ var require_signal_exit = __commonJS({
|
|
|
4082
4082
|
}, unload = function() {
|
|
4083
4083
|
!loaded || !processOk(global.process) || (loaded = !1, signals.forEach(function(sig) {
|
|
4084
4084
|
try {
|
|
4085
|
-
|
|
4085
|
+
process21.removeListener(sig, sigListeners[sig]);
|
|
4086
4086
|
} catch {
|
|
4087
4087
|
}
|
|
4088
|
-
}),
|
|
4088
|
+
}), process21.emit = originalProcessEmit, process21.reallyExit = originalProcessReallyExit, emitter.count -= 1);
|
|
4089
4089
|
}, module.exports.unload = unload, emit = function(event, code, signal) {
|
|
4090
4090
|
emitter.emitted[event] || (emitter.emitted[event] = !0, emitter.emit(event, code, signal));
|
|
4091
4091
|
}, sigListeners = {}, signals.forEach(function(sig) {
|
|
4092
4092
|
sigListeners[sig] = function() {
|
|
4093
4093
|
if (processOk(global.process)) {
|
|
4094
|
-
var listeners =
|
|
4095
|
-
listeners.length === emitter.count && (unload(), emit("exit", null, sig), emit("afterexit", null, sig), isWin && sig === "SIGHUP" && (sig = "SIGINT"),
|
|
4094
|
+
var listeners = process21.listeners(sig);
|
|
4095
|
+
listeners.length === emitter.count && (unload(), emit("exit", null, sig), emit("afterexit", null, sig), isWin && sig === "SIGHUP" && (sig = "SIGINT"), process21.kill(process21.pid, sig));
|
|
4096
4096
|
}
|
|
4097
4097
|
};
|
|
4098
4098
|
}), module.exports.signals = function() {
|
|
@@ -4100,19 +4100,19 @@ var require_signal_exit = __commonJS({
|
|
|
4100
4100
|
}, loaded = !1, load = function() {
|
|
4101
4101
|
loaded || !processOk(global.process) || (loaded = !0, emitter.count += 1, signals = signals.filter(function(sig) {
|
|
4102
4102
|
try {
|
|
4103
|
-
return
|
|
4103
|
+
return process21.on(sig, sigListeners[sig]), !0;
|
|
4104
4104
|
} catch {
|
|
4105
4105
|
return !1;
|
|
4106
4106
|
}
|
|
4107
|
-
}),
|
|
4108
|
-
}, module.exports.load = load, originalProcessReallyExit =
|
|
4109
|
-
processOk(global.process) && (
|
|
4110
|
-
0, emit("exit",
|
|
4111
|
-
}, originalProcessEmit =
|
|
4107
|
+
}), process21.emit = processEmit, process21.reallyExit = processReallyExit);
|
|
4108
|
+
}, module.exports.load = load, originalProcessReallyExit = process21.reallyExit, processReallyExit = function(code) {
|
|
4109
|
+
processOk(global.process) && (process21.exitCode = code || /* istanbul ignore next */
|
|
4110
|
+
0, emit("exit", process21.exitCode, null), emit("afterexit", process21.exitCode, null), originalProcessReallyExit.call(process21, process21.exitCode));
|
|
4111
|
+
}, originalProcessEmit = process21.emit, processEmit = function(ev, arg) {
|
|
4112
4112
|
if (ev === "exit" && processOk(global.process)) {
|
|
4113
|
-
arg !== void 0 && (
|
|
4113
|
+
arg !== void 0 && (process21.exitCode = arg);
|
|
4114
4114
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
4115
|
-
return emit("exit",
|
|
4115
|
+
return emit("exit", process21.exitCode, null), emit("afterexit", process21.exitCode, null), ret;
|
|
4116
4116
|
} else
|
|
4117
4117
|
return originalProcessEmit.apply(this, arguments);
|
|
4118
4118
|
}) : module.exports = function() {
|
|
@@ -4340,8 +4340,8 @@ var require_getmacaddress_unix = __commonJS({
|
|
|
4340
4340
|
var require_getmacaddress = __commonJS({
|
|
4341
4341
|
"../../node_modules/.pnpm/macaddress@0.5.3/node_modules/macaddress/lib/getmacaddress.js"(exports, module) {
|
|
4342
4342
|
init_cjs_shims();
|
|
4343
|
-
var
|
|
4344
|
-
switch (
|
|
4343
|
+
var os4 = __require("os"), _getMacAddress, _validIfaceRegExp = "^[a-z0-9]+$";
|
|
4344
|
+
switch (os4.platform()) {
|
|
4345
4345
|
case "win32":
|
|
4346
4346
|
_validIfaceRegExp = "^[a-z0-9 -]+$", _getMacAddress = require_getmacaddress_windows();
|
|
4347
4347
|
break;
|
|
@@ -4445,8 +4445,8 @@ var require_getallinterfaces_unix = __commonJS({
|
|
|
4445
4445
|
var require_getallinterfaces = __commonJS({
|
|
4446
4446
|
"../../node_modules/.pnpm/macaddress@0.5.3/node_modules/macaddress/lib/getallinterfaces.js"(exports, module) {
|
|
4447
4447
|
init_cjs_shims();
|
|
4448
|
-
var
|
|
4449
|
-
switch (
|
|
4448
|
+
var os4 = __require("os"), _getAllInterfaces;
|
|
4449
|
+
switch (os4.platform()) {
|
|
4450
4450
|
case "win32":
|
|
4451
4451
|
_getAllInterfaces = require_getallinterfaces_windows();
|
|
4452
4452
|
break;
|
|
@@ -4470,11 +4470,11 @@ var require_getallinterfaces = __commonJS({
|
|
|
4470
4470
|
var require_networkinterfaces = __commonJS({
|
|
4471
4471
|
"../../node_modules/.pnpm/macaddress@0.5.3/node_modules/macaddress/lib/networkinterfaces.js"(exports, module) {
|
|
4472
4472
|
init_cjs_shims();
|
|
4473
|
-
var
|
|
4473
|
+
var os4 = __require("os");
|
|
4474
4474
|
module.exports = function() {
|
|
4475
4475
|
var allAddresses = {};
|
|
4476
4476
|
try {
|
|
4477
|
-
var ifaces =
|
|
4477
|
+
var ifaces = os4.networkInterfaces();
|
|
4478
4478
|
} catch (e) {
|
|
4479
4479
|
if (e.syscall === "uv_interface_addresses")
|
|
4480
4480
|
return allAddresses;
|
|
@@ -6553,7 +6553,7 @@ var require_ci_info = __commonJS({
|
|
|
6553
6553
|
"../../node_modules/.pnpm/ci-info@3.9.0/node_modules/ci-info/index.js"(exports) {
|
|
6554
6554
|
"use strict";
|
|
6555
6555
|
init_cjs_shims();
|
|
6556
|
-
var vendors = require_vendors(),
|
|
6556
|
+
var vendors = require_vendors(), env3 = process.env;
|
|
6557
6557
|
Object.defineProperty(exports, "_vendors", {
|
|
6558
6558
|
value: vendors.map(function(v) {
|
|
6559
6559
|
return v.constant;
|
|
@@ -6568,33 +6568,33 @@ var require_ci_info = __commonJS({
|
|
|
6568
6568
|
if (exports[vendor.constant] = isCI, !!isCI)
|
|
6569
6569
|
switch (exports.name = vendor.name, typeof vendor.pr) {
|
|
6570
6570
|
case "string":
|
|
6571
|
-
exports.isPR = !!
|
|
6571
|
+
exports.isPR = !!env3[vendor.pr];
|
|
6572
6572
|
break;
|
|
6573
6573
|
case "object":
|
|
6574
|
-
"env" in vendor.pr ? exports.isPR = vendor.pr.env in
|
|
6575
|
-
return !!
|
|
6574
|
+
"env" in vendor.pr ? exports.isPR = vendor.pr.env in env3 && env3[vendor.pr.env] !== vendor.pr.ne : "any" in vendor.pr ? exports.isPR = vendor.pr.any.some(function(key) {
|
|
6575
|
+
return !!env3[key];
|
|
6576
6576
|
}) : exports.isPR = checkEnv(vendor.pr);
|
|
6577
6577
|
break;
|
|
6578
6578
|
default:
|
|
6579
6579
|
exports.isPR = null;
|
|
6580
6580
|
}
|
|
6581
6581
|
});
|
|
6582
|
-
exports.isCI = !!(
|
|
6583
|
-
(
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6582
|
+
exports.isCI = !!(env3.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
6583
|
+
(env3.BUILD_ID || // Jenkins, Cloudbees
|
|
6584
|
+
env3.BUILD_NUMBER || // Jenkins, TeamCity
|
|
6585
|
+
env3.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
|
|
6586
|
+
env3.CI_APP_ID || // Appflow
|
|
6587
|
+
env3.CI_BUILD_ID || // Appflow
|
|
6588
|
+
env3.CI_BUILD_NUMBER || // Appflow
|
|
6589
|
+
env3.CI_NAME || // Codeship and others
|
|
6590
|
+
env3.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
|
6591
|
+
env3.RUN_ID || // TaskCluster, dsari
|
|
6592
6592
|
exports.name));
|
|
6593
6593
|
function checkEnv(obj) {
|
|
6594
|
-
return typeof obj == "string" ? !!
|
|
6595
|
-
return !!
|
|
6594
|
+
return typeof obj == "string" ? !!env3[obj] : "env" in obj ? env3[obj.env] && env3[obj.env].includes(obj.includes) : "any" in obj ? obj.any.some(function(k) {
|
|
6595
|
+
return !!env3[k];
|
|
6596
6596
|
}) : Object.keys(obj).every(function(k) {
|
|
6597
|
-
return
|
|
6597
|
+
return env3[k] === obj[k];
|
|
6598
6598
|
});
|
|
6599
6599
|
}
|
|
6600
6600
|
}
|
|
@@ -16133,8 +16133,8 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
16133
16133
|
{
|
|
16134
16134
|
switch (shouldError(workInProgress2)) {
|
|
16135
16135
|
case !1: {
|
|
16136
|
-
var
|
|
16137
|
-
|
|
16136
|
+
var _instance = workInProgress2.stateNode, ctor = workInProgress2.type, tempInstance = new ctor(workInProgress2.memoizedProps, _instance.context), state = tempInstance.state;
|
|
16137
|
+
_instance.updater.enqueueSetState(_instance, state, null);
|
|
16138
16138
|
break;
|
|
16139
16139
|
}
|
|
16140
16140
|
case !0: {
|
|
@@ -16995,12 +16995,12 @@ Check the render method of \`` + ownerName + "`.");
|
|
|
16995
16995
|
}
|
|
16996
16996
|
appendInitialChild(parent, instance2);
|
|
16997
16997
|
} else if (node.tag === HostText) {
|
|
16998
|
-
var
|
|
16998
|
+
var _instance = node.stateNode;
|
|
16999
16999
|
if (needsVisibilityToggle && isHidden2) {
|
|
17000
17000
|
var text = node.memoizedProps;
|
|
17001
|
-
|
|
17001
|
+
_instance = cloneHiddenTextInstance(_instance, text, node);
|
|
17002
17002
|
}
|
|
17003
|
-
appendInitialChild(parent,
|
|
17003
|
+
appendInitialChild(parent, _instance);
|
|
17004
17004
|
} else if (node.tag !== HostPortal) {
|
|
17005
17005
|
if (node.tag === OffscreenComponent && node.memoizedState !== null) {
|
|
17006
17006
|
var child = node.child;
|
|
@@ -17724,25 +17724,25 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
17724
17724
|
case HostRoot: {
|
|
17725
17725
|
var _updateQueue = finishedWork.updateQueue;
|
|
17726
17726
|
if (_updateQueue !== null) {
|
|
17727
|
-
var
|
|
17727
|
+
var _instance = null;
|
|
17728
17728
|
if (finishedWork.child !== null)
|
|
17729
17729
|
switch (finishedWork.child.tag) {
|
|
17730
17730
|
case HostComponent:
|
|
17731
|
-
|
|
17731
|
+
_instance = getPublicInstance(finishedWork.child.stateNode);
|
|
17732
17732
|
break;
|
|
17733
17733
|
case ClassComponent:
|
|
17734
|
-
|
|
17734
|
+
_instance = finishedWork.child.stateNode;
|
|
17735
17735
|
break;
|
|
17736
17736
|
}
|
|
17737
|
-
commitUpdateQueue(finishedWork, _updateQueue,
|
|
17737
|
+
commitUpdateQueue(finishedWork, _updateQueue, _instance);
|
|
17738
17738
|
}
|
|
17739
17739
|
break;
|
|
17740
17740
|
}
|
|
17741
17741
|
case HostComponent: {
|
|
17742
|
-
var
|
|
17742
|
+
var _instance2 = finishedWork.stateNode;
|
|
17743
17743
|
if (current2 === null && finishedWork.flags & Update) {
|
|
17744
17744
|
var type = finishedWork.type, props = finishedWork.memoizedProps;
|
|
17745
|
-
commitMount(
|
|
17745
|
+
commitMount(_instance2, type, props, finishedWork);
|
|
17746
17746
|
}
|
|
17747
17747
|
break;
|
|
17748
17748
|
}
|
|
@@ -20300,11 +20300,11 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
|
|
|
20300
20300
|
}
|
|
20301
20301
|
var overrideHookState = null, overrideHookStateDeletePath = null, overrideHookStateRenamePath = null, overrideProps = null, overridePropsDeletePath = null, overridePropsRenamePath = null, scheduleUpdate = null, setErrorHandler = null, setSuspenseHandler = null;
|
|
20302
20302
|
{
|
|
20303
|
-
var copyWithDeleteImpl = function(obj,
|
|
20304
|
-
var key =
|
|
20305
|
-
return index2 + 1 ===
|
|
20306
|
-
}, copyWithDelete = function(obj,
|
|
20307
|
-
return copyWithDeleteImpl(obj,
|
|
20303
|
+
var copyWithDeleteImpl = function(obj, path8, index2) {
|
|
20304
|
+
var key = path8[index2], updated = isArray(obj) ? obj.slice() : assign({}, obj);
|
|
20305
|
+
return index2 + 1 === path8.length ? (isArray(updated) ? updated.splice(key, 1) : delete updated[key], updated) : (updated[key] = copyWithDeleteImpl(obj[key], path8, index2 + 1), updated);
|
|
20306
|
+
}, copyWithDelete = function(obj, path8) {
|
|
20307
|
+
return copyWithDeleteImpl(obj, path8, 0);
|
|
20308
20308
|
}, copyWithRenameImpl = function(obj, oldPath, newPath, index2) {
|
|
20309
20309
|
var oldKey = oldPath[index2], updated = isArray(obj) ? obj.slice() : assign({}, obj);
|
|
20310
20310
|
if (index2 + 1 === oldPath.length) {
|
|
@@ -20330,30 +20330,30 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
|
|
|
20330
20330
|
return;
|
|
20331
20331
|
}
|
|
20332
20332
|
return copyWithRenameImpl(obj, oldPath, newPath, 0);
|
|
20333
|
-
}, copyWithSetImpl = function(obj,
|
|
20334
|
-
if (index2 >=
|
|
20333
|
+
}, copyWithSetImpl = function(obj, path8, index2, value) {
|
|
20334
|
+
if (index2 >= path8.length)
|
|
20335
20335
|
return value;
|
|
20336
|
-
var key =
|
|
20337
|
-
return updated[key] = copyWithSetImpl(obj[key],
|
|
20338
|
-
}, copyWithSet = function(obj,
|
|
20339
|
-
return copyWithSetImpl(obj,
|
|
20336
|
+
var key = path8[index2], updated = isArray(obj) ? obj.slice() : assign({}, obj);
|
|
20337
|
+
return updated[key] = copyWithSetImpl(obj[key], path8, index2 + 1, value), updated;
|
|
20338
|
+
}, copyWithSet = function(obj, path8, value) {
|
|
20339
|
+
return copyWithSetImpl(obj, path8, 0, value);
|
|
20340
20340
|
}, findHook = function(fiber, id) {
|
|
20341
20341
|
for (var currentHook2 = fiber.memoizedState; currentHook2 !== null && id > 0; )
|
|
20342
20342
|
currentHook2 = currentHook2.next, id--;
|
|
20343
20343
|
return currentHook2;
|
|
20344
20344
|
};
|
|
20345
|
-
overrideHookState = function(fiber, id,
|
|
20345
|
+
overrideHookState = function(fiber, id, path8, value) {
|
|
20346
20346
|
var hook = findHook(fiber, id);
|
|
20347
20347
|
if (hook !== null) {
|
|
20348
|
-
var newState = copyWithSet(hook.memoizedState,
|
|
20348
|
+
var newState = copyWithSet(hook.memoizedState, path8, value);
|
|
20349
20349
|
hook.memoizedState = newState, hook.baseState = newState, fiber.memoizedProps = assign({}, fiber.memoizedProps);
|
|
20350
20350
|
var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
20351
20351
|
root !== null && scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
|
|
20352
20352
|
}
|
|
20353
|
-
}, overrideHookStateDeletePath = function(fiber, id,
|
|
20353
|
+
}, overrideHookStateDeletePath = function(fiber, id, path8) {
|
|
20354
20354
|
var hook = findHook(fiber, id);
|
|
20355
20355
|
if (hook !== null) {
|
|
20356
|
-
var newState = copyWithDelete(hook.memoizedState,
|
|
20356
|
+
var newState = copyWithDelete(hook.memoizedState, path8);
|
|
20357
20357
|
hook.memoizedState = newState, hook.baseState = newState, fiber.memoizedProps = assign({}, fiber.memoizedProps);
|
|
20358
20358
|
var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
20359
20359
|
root !== null && scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
|
|
@@ -20366,12 +20366,12 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
|
|
|
20366
20366
|
var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
20367
20367
|
root !== null && scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
|
|
20368
20368
|
}
|
|
20369
|
-
}, overrideProps = function(fiber,
|
|
20370
|
-
fiber.pendingProps = copyWithSet(fiber.memoizedProps,
|
|
20369
|
+
}, overrideProps = function(fiber, path8, value) {
|
|
20370
|
+
fiber.pendingProps = copyWithSet(fiber.memoizedProps, path8, value), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps);
|
|
20371
20371
|
var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
20372
20372
|
root !== null && scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
|
|
20373
|
-
}, overridePropsDeletePath = function(fiber,
|
|
20374
|
-
fiber.pendingProps = copyWithDelete(fiber.memoizedProps,
|
|
20373
|
+
}, overridePropsDeletePath = function(fiber, path8) {
|
|
20374
|
+
fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path8), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps);
|
|
20375
20375
|
var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
20376
20376
|
root !== null && scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
|
|
20377
20377
|
}, overridePropsRenamePath = function(fiber, oldPath, newPath) {
|
|
@@ -21062,13 +21062,13 @@ var require_path = __commonJS({
|
|
|
21062
21062
|
"../../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/path.js"(exports, module) {
|
|
21063
21063
|
"use strict";
|
|
21064
21064
|
init_cjs_shims();
|
|
21065
|
-
var isBrowser2 = typeof window < "u" && window.window === window && window.navigator, cwd3 = isBrowser2 ? window.location.href : process.cwd(), urlRegexp = new RegExp("^((https|http)://)?[a-z0-9A-Z]{3}.[a-z0-9A-Z][a-z0-9A-Z]{0,61}?[a-z0-9A-Z].com|net|cn|cc (:s[0-9]{1-4})?/$"),
|
|
21065
|
+
var isBrowser2 = typeof window < "u" && window.window === window && window.navigator, cwd3 = isBrowser2 ? window.location.href : process.cwd(), urlRegexp = new RegExp("^((https|http)://)?[a-z0-9A-Z]{3}.[a-z0-9A-Z][a-z0-9A-Z]{0,61}?[a-z0-9A-Z].com|net|cn|cc (:s[0-9]{1-4})?/$"), path8 = module.exports = {
|
|
21066
21066
|
concat(a, b) {
|
|
21067
21067
|
let a_endsWithSlash = a[a.length - 1] === "/", b_startsWithSlash = b[0] === "/";
|
|
21068
21068
|
return a + (a_endsWithSlash || b_startsWithSlash ? "" : "/") + (a_endsWithSlash && b_startsWithSlash ? b.substring(1) : b);
|
|
21069
21069
|
},
|
|
21070
21070
|
resolve(x) {
|
|
21071
|
-
return
|
|
21071
|
+
return path8.isAbsolute(x) ? path8.normalize(x) : path8.normalize(path8.concat(cwd3, x));
|
|
21072
21072
|
},
|
|
21073
21073
|
normalize(x) {
|
|
21074
21074
|
let output = [], skip = 0;
|
|
@@ -21082,7 +21082,7 @@ var require_path = __commonJS({
|
|
|
21082
21082
|
isURL: (x) => urlRegexp.test(x),
|
|
21083
21083
|
isAbsolute: (x) => x[0] === "/" || /^[^\/]*:/.test(x),
|
|
21084
21084
|
relativeToFile(a, b) {
|
|
21085
|
-
return
|
|
21085
|
+
return path8.isData(a) || path8.isAbsolute(b) ? path8.normalize(b) : path8.normalize(path8.concat(a.split("/").slice(0, -1).join("/"), b));
|
|
21086
21086
|
}
|
|
21087
21087
|
};
|
|
21088
21088
|
}
|
|
@@ -21117,16 +21117,16 @@ var require_get_source = __commonJS({
|
|
|
21117
21117
|
"../../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/get-source.js"(exports, module) {
|
|
21118
21118
|
"use strict";
|
|
21119
21119
|
init_cjs_shims();
|
|
21120
|
-
var { assign } = Object, isBrowser2 = typeof window < "u" && window.window === window && window.navigator, SourceMapConsumer = require_source_map().SourceMapConsumer, SyncPromise = require_SyncPromise(),
|
|
21120
|
+
var { assign } = Object, isBrowser2 = typeof window < "u" && window.window === window && window.navigator, SourceMapConsumer = require_source_map().SourceMapConsumer, SyncPromise = require_SyncPromise(), path8 = require_path(), dataURIToBuffer = require_data_uri_to_buffer(), nodeRequire = isBrowser2 ? null : module.require, memoize = (f) => {
|
|
21121
21121
|
let m = (x) => x in m.cache ? m.cache[x] : m.cache[x] = f(x);
|
|
21122
21122
|
return m.forgetEverything = () => {
|
|
21123
21123
|
m.cache = /* @__PURE__ */ Object.create(null);
|
|
21124
21124
|
}, m.cache = /* @__PURE__ */ Object.create(null), m;
|
|
21125
21125
|
};
|
|
21126
21126
|
function impl(fetchFile, sync) {
|
|
21127
|
-
let PromiseImpl = sync ? SyncPromise : Promise, SourceFileMemoized = memoize((
|
|
21127
|
+
let PromiseImpl = sync ? SyncPromise : Promise, SourceFileMemoized = memoize((path9) => SourceFile(path9, fetchFile(path9)));
|
|
21128
21128
|
function SourceFile(srcPath, text) {
|
|
21129
|
-
return text === void 0 ? SourceFileMemoized(
|
|
21129
|
+
return text === void 0 ? SourceFileMemoized(path8.resolve(srcPath)) : PromiseImpl.resolve(text).then((text2) => {
|
|
21130
21130
|
let file, lines, resolver, _resolve = (loc) => (resolver = resolver || SourceMapResolverFromFetchedFile(file))(loc);
|
|
21131
21131
|
return file = {
|
|
21132
21132
|
path: srcPath,
|
|
@@ -21166,9 +21166,9 @@ var require_get_source = __commonJS({
|
|
|
21166
21166
|
return url ? SourceMapResolver(file.path, url, defaultResolver) : defaultResolver;
|
|
21167
21167
|
}
|
|
21168
21168
|
function SourceMapResolver(originalFilePath, sourceMapPath, fallbackResolve) {
|
|
21169
|
-
let srcFile = sourceMapPath.startsWith("data:") ? SourceFile(originalFilePath, dataURIToBuffer(sourceMapPath).toString()) : SourceFile(
|
|
21169
|
+
let srcFile = sourceMapPath.startsWith("data:") ? SourceFile(originalFilePath, dataURIToBuffer(sourceMapPath).toString()) : SourceFile(path8.relativeToFile(originalFilePath, sourceMapPath)), parsedMap = srcFile.then((f) => SourceMapConsumer(JSON.parse(f.text))), sourceFor = memoize(function(filePath) {
|
|
21170
21170
|
return srcFile.then((f) => {
|
|
21171
|
-
let fullPath =
|
|
21171
|
+
let fullPath = path8.relativeToFile(f.path, filePath);
|
|
21172
21172
|
return parsedMap.then((x) => SourceFile(
|
|
21173
21173
|
fullPath,
|
|
21174
21174
|
x.sourceContentFor(
|
|
@@ -21190,14 +21190,14 @@ var require_get_source = __commonJS({
|
|
|
21190
21190
|
) : fallbackResolve(loc);
|
|
21191
21191
|
}).catch((e) => assign(fallbackResolve(loc), { sourceMapError: e }));
|
|
21192
21192
|
}
|
|
21193
|
-
return assign(function(
|
|
21194
|
-
let file = SourceFile(
|
|
21193
|
+
return assign(function(path9) {
|
|
21194
|
+
let file = SourceFile(path9);
|
|
21195
21195
|
if (sync)
|
|
21196
21196
|
try {
|
|
21197
21197
|
return SyncPromise.valueFrom(file);
|
|
21198
21198
|
} catch (e) {
|
|
21199
21199
|
let noFile = {
|
|
21200
|
-
path:
|
|
21200
|
+
path: path9,
|
|
21201
21201
|
text: "",
|
|
21202
21202
|
lines: [],
|
|
21203
21203
|
error: e,
|
|
@@ -21213,29 +21213,29 @@ var require_get_source = __commonJS({
|
|
|
21213
21213
|
getCache: () => SourceFileMemoized.cache
|
|
21214
21214
|
});
|
|
21215
21215
|
}
|
|
21216
|
-
module.exports = impl(function(
|
|
21216
|
+
module.exports = impl(function(path9) {
|
|
21217
21217
|
return new SyncPromise((resolve) => {
|
|
21218
21218
|
if (isBrowser2) {
|
|
21219
21219
|
let xhr = new XMLHttpRequest();
|
|
21220
21220
|
xhr.open(
|
|
21221
21221
|
"GET",
|
|
21222
|
-
|
|
21222
|
+
path9,
|
|
21223
21223
|
!1
|
|
21224
21224
|
/* SYNCHRONOUS XHR FTW :) */
|
|
21225
21225
|
), xhr.send(null), resolve(xhr.responseText);
|
|
21226
21226
|
} else
|
|
21227
|
-
resolve(nodeRequire("fs").readFileSync(
|
|
21227
|
+
resolve(nodeRequire("fs").readFileSync(path9, { encoding: "utf8" }));
|
|
21228
21228
|
});
|
|
21229
21229
|
}, !0);
|
|
21230
|
-
module.exports.async = impl(function(
|
|
21230
|
+
module.exports.async = impl(function(path9) {
|
|
21231
21231
|
return new Promise((resolve, reject) => {
|
|
21232
21232
|
if (isBrowser2) {
|
|
21233
21233
|
let xhr = new XMLHttpRequest();
|
|
21234
|
-
xhr.open("GET",
|
|
21234
|
+
xhr.open("GET", path9), xhr.onreadystatechange = (event) => {
|
|
21235
21235
|
xhr.readyState === 4 && (xhr.status === 200 ? resolve(xhr.responseText) : reject(new Error(xhr.statusText)));
|
|
21236
21236
|
}, xhr.send(null);
|
|
21237
21237
|
} else
|
|
21238
|
-
nodeRequire("fs").readFile(
|
|
21238
|
+
nodeRequire("fs").readFile(path9, { encoding: "utf8" }, (e, x) => {
|
|
21239
21239
|
e ? reject(e) : resolve(x);
|
|
21240
21240
|
});
|
|
21241
21241
|
});
|
|
@@ -23933,22 +23933,22 @@ var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/, regExpEscape2 = (s) => s.replace(/[-[
|
|
|
23933
23933
|
return globParts.filter((gs) => gs.length);
|
|
23934
23934
|
}
|
|
23935
23935
|
partsMatch(a, b, emptyGSMatch = !1) {
|
|
23936
|
-
let ai = 0, bi = 0, result = [],
|
|
23936
|
+
let ai = 0, bi = 0, result = [], which2 = "";
|
|
23937
23937
|
for (; ai < a.length && bi < b.length; )
|
|
23938
23938
|
if (a[ai] === b[bi])
|
|
23939
|
-
result.push(
|
|
23939
|
+
result.push(which2 === "b" ? b[bi] : a[ai]), ai++, bi++;
|
|
23940
23940
|
else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1])
|
|
23941
23941
|
result.push(a[ai]), ai++;
|
|
23942
23942
|
else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1])
|
|
23943
23943
|
result.push(b[bi]), bi++;
|
|
23944
23944
|
else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
|
|
23945
|
-
if (
|
|
23945
|
+
if (which2 === "b")
|
|
23946
23946
|
return !1;
|
|
23947
|
-
|
|
23947
|
+
which2 = "a", result.push(a[ai]), ai++, bi++;
|
|
23948
23948
|
} else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
|
|
23949
|
-
if (
|
|
23949
|
+
if (which2 === "a")
|
|
23950
23950
|
return !1;
|
|
23951
|
-
|
|
23951
|
+
which2 = "b", result.push(b[bi]), ai++, bi++;
|
|
23952
23952
|
} else
|
|
23953
23953
|
return !1;
|
|
23954
23954
|
return a.length === b.length && result;
|
|
@@ -24100,74 +24100,74 @@ import { mkdir as fsMkdir, writeFile as fsWriteFile, readFile as fsReadFile, rea
|
|
|
24100
24100
|
async function inTemporaryDirectory(callback) {
|
|
24101
24101
|
return temporaryDirectoryTask(callback);
|
|
24102
24102
|
}
|
|
24103
|
-
async function readFile(
|
|
24104
|
-
return outputDebug(outputContent`Reading the content of file at ${outputToken.path(
|
|
24103
|
+
async function readFile(path8, options = { encoding: "utf8" }) {
|
|
24104
|
+
return outputDebug(outputContent`Reading the content of file at ${outputToken.path(path8)}...`), fsReadFile(path8, options);
|
|
24105
24105
|
}
|
|
24106
|
-
function readFileSync(
|
|
24107
|
-
return outputDebug(outputContent`Sync-reading the content of file at ${outputToken.path(
|
|
24106
|
+
function readFileSync(path8) {
|
|
24107
|
+
return outputDebug(outputContent`Sync-reading the content of file at ${outputToken.path(path8)}...`), fsReadFileSync(path8);
|
|
24108
24108
|
}
|
|
24109
|
-
async function fileRealPath(
|
|
24110
|
-
return fsRealPath(
|
|
24109
|
+
async function fileRealPath(path8) {
|
|
24110
|
+
return fsRealPath(path8);
|
|
24111
24111
|
}
|
|
24112
24112
|
async function copyFile(from, to) {
|
|
24113
24113
|
outputDebug(outputContent`Copying file from ${outputToken.path(from)} to ${outputToken.path(to)}...`), await copy(from, to);
|
|
24114
24114
|
}
|
|
24115
|
-
async function touchFile(
|
|
24116
|
-
outputDebug(outputContent`Creating an empty file at ${outputToken.path(
|
|
24115
|
+
async function touchFile(path8) {
|
|
24116
|
+
outputDebug(outputContent`Creating an empty file at ${outputToken.path(path8)}...`), await ensureFile(path8);
|
|
24117
24117
|
}
|
|
24118
|
-
async function appendFile(
|
|
24119
|
-
outputDebug(outputContent`Appending the following content to ${outputToken.path(
|
|
24118
|
+
async function appendFile(path8, content) {
|
|
24119
|
+
outputDebug(outputContent`Appending the following content to ${outputToken.path(path8)}:
|
|
24120
24120
|
${content.split(`
|
|
24121
24121
|
`).map((line) => ` ${line}`).join(`
|
|
24122
24122
|
`)}
|
|
24123
|
-
`), await fsAppendFile(
|
|
24123
|
+
`), await fsAppendFile(path8, content);
|
|
24124
24124
|
}
|
|
24125
|
-
async function writeFile(
|
|
24126
|
-
outputDebug(outputContent`Writing some content to file at ${outputToken.path(
|
|
24125
|
+
async function writeFile(path8, data, options = { encoding: "utf8" }) {
|
|
24126
|
+
outputDebug(outputContent`Writing some content to file at ${outputToken.path(path8)}...`), await fsWriteFile(path8, data, options);
|
|
24127
24127
|
}
|
|
24128
|
-
function writeFileSync(
|
|
24129
|
-
outputDebug(outputContent`File-writing some content to file at ${outputToken.path(
|
|
24128
|
+
function writeFileSync(path8, data) {
|
|
24129
|
+
outputDebug(outputContent`File-writing some content to file at ${outputToken.path(path8)}...`), fsWriteFileSync(path8, data);
|
|
24130
24130
|
}
|
|
24131
|
-
async function mkdir(
|
|
24132
|
-
outputDebug(outputContent`Creating directory at ${outputToken.path(
|
|
24131
|
+
async function mkdir(path8) {
|
|
24132
|
+
outputDebug(outputContent`Creating directory at ${outputToken.path(path8)}...`), await fsMkdir(path8, { recursive: !0 });
|
|
24133
24133
|
}
|
|
24134
|
-
function mkdirSync(
|
|
24135
|
-
outputDebug(outputContent`Sync-creating directory at ${outputToken.path(
|
|
24134
|
+
function mkdirSync(path8) {
|
|
24135
|
+
outputDebug(outputContent`Sync-creating directory at ${outputToken.path(path8)}...`), fsMkdirSync(path8, { recursive: !0 });
|
|
24136
24136
|
}
|
|
24137
|
-
async function removeFile(
|
|
24138
|
-
outputDebug(outputContent`Removing file at ${outputToken.path(
|
|
24137
|
+
async function removeFile(path8) {
|
|
24138
|
+
outputDebug(outputContent`Removing file at ${outputToken.path(path8)}...`), await remove(path8);
|
|
24139
24139
|
}
|
|
24140
24140
|
async function renameFile(from, to) {
|
|
24141
24141
|
outputDebug(outputContent`Renaming file from ${outputToken.path(from)} to ${outputToken.path(to)}...`), await fsRename(from, to);
|
|
24142
24142
|
}
|
|
24143
|
-
async function rmdir(
|
|
24144
|
-
let { default: del } = await import("./del-
|
|
24145
|
-
outputDebug(outputContent`Removing directory at ${outputToken.path(
|
|
24143
|
+
async function rmdir(path8, options = {}) {
|
|
24144
|
+
let { default: del } = await import("./del-K5ZJEWTD.js");
|
|
24145
|
+
outputDebug(outputContent`Removing directory at ${outputToken.path(path8)}...`), await del(path8, { force: options.force });
|
|
24146
24146
|
}
|
|
24147
|
-
async function isDirectory(
|
|
24148
|
-
return outputDebug(outputContent`Checking if ${outputToken.path(
|
|
24147
|
+
async function isDirectory(path8) {
|
|
24148
|
+
return outputDebug(outputContent`Checking if ${outputToken.path(path8)} is a directory...`), (await fsLstat(path8)).isDirectory();
|
|
24149
24149
|
}
|
|
24150
|
-
async function fileSize(
|
|
24151
|
-
return outputDebug(outputContent`Getting the size of file file at ${outputToken.path(
|
|
24150
|
+
async function fileSize(path8) {
|
|
24151
|
+
return outputDebug(outputContent`Getting the size of file file at ${outputToken.path(path8)}...`), (await fsStat(path8)).size;
|
|
24152
24152
|
}
|
|
24153
|
-
function fileSizeSync(
|
|
24154
|
-
return outputDebug(outputContent`Sync-getting the size of file file at ${outputToken.path(
|
|
24153
|
+
function fileSizeSync(path8) {
|
|
24154
|
+
return outputDebug(outputContent`Sync-getting the size of file file at ${outputToken.path(path8)}...`), fsStatSync(path8).size;
|
|
24155
24155
|
}
|
|
24156
|
-
function unlinkFileSync(
|
|
24157
|
-
fsUnlinkSync(
|
|
24156
|
+
function unlinkFileSync(path8) {
|
|
24157
|
+
fsUnlinkSync(path8);
|
|
24158
24158
|
}
|
|
24159
|
-
function createFileReadStream(
|
|
24160
|
-
return fsCreateReadStream(
|
|
24159
|
+
function createFileReadStream(path8, options) {
|
|
24160
|
+
return fsCreateReadStream(path8, options);
|
|
24161
24161
|
}
|
|
24162
|
-
function createFileWriteStream(
|
|
24163
|
-
return fsCreateWriteStream(
|
|
24162
|
+
function createFileWriteStream(path8) {
|
|
24163
|
+
return fsCreateWriteStream(path8);
|
|
24164
24164
|
}
|
|
24165
|
-
async function fileLastUpdated(
|
|
24166
|
-
return outputDebug(outputContent`Getting last updated timestamp for file at ${outputToken.path(
|
|
24165
|
+
async function fileLastUpdated(path8) {
|
|
24166
|
+
return outputDebug(outputContent`Getting last updated timestamp for file at ${outputToken.path(path8)}...`), (await fsStat(path8)).ctime;
|
|
24167
24167
|
}
|
|
24168
|
-
async function fileLastUpdatedTimestamp(
|
|
24168
|
+
async function fileLastUpdatedTimestamp(path8) {
|
|
24169
24169
|
try {
|
|
24170
|
-
return (await fileLastUpdated(
|
|
24170
|
+
return (await fileLastUpdated(path8)).getTime();
|
|
24171
24171
|
} catch {
|
|
24172
24172
|
return;
|
|
24173
24173
|
}
|
|
@@ -24175,32 +24175,32 @@ async function fileLastUpdatedTimestamp(path7) {
|
|
|
24175
24175
|
async function moveFile(src, dest, options = {}) {
|
|
24176
24176
|
await move(src, dest, options);
|
|
24177
24177
|
}
|
|
24178
|
-
async function chmod(
|
|
24179
|
-
await fsChmod(
|
|
24178
|
+
async function chmod(path8, mode) {
|
|
24179
|
+
await fsChmod(path8, mode);
|
|
24180
24180
|
}
|
|
24181
|
-
async function fileHasExecutablePermissions(
|
|
24181
|
+
async function fileHasExecutablePermissions(path8) {
|
|
24182
24182
|
try {
|
|
24183
|
-
return await fsAccess(
|
|
24183
|
+
return await fsAccess(path8, fsConstants.X_OK), !0;
|
|
24184
24184
|
} catch {
|
|
24185
24185
|
return !1;
|
|
24186
24186
|
}
|
|
24187
24187
|
}
|
|
24188
|
-
async function fileExists(
|
|
24188
|
+
async function fileExists(path8) {
|
|
24189
24189
|
try {
|
|
24190
|
-
return await fsAccess(
|
|
24190
|
+
return await fsAccess(path8), !0;
|
|
24191
24191
|
} catch {
|
|
24192
24192
|
return !1;
|
|
24193
24193
|
}
|
|
24194
24194
|
}
|
|
24195
|
-
function fileExistsSync(
|
|
24196
|
-
return fsFileExistsSync(
|
|
24195
|
+
function fileExistsSync(path8) {
|
|
24196
|
+
return fsFileExistsSync(path8);
|
|
24197
24197
|
}
|
|
24198
24198
|
async function generateRandomNameForSubdirectory(options) {
|
|
24199
24199
|
let generated = `${getRandomName(options.family ?? "business")}-${options.suffix}`, randomDirectoryPath = joinPath(options.directory, generated);
|
|
24200
24200
|
return await fileExists(randomDirectoryPath) ? generateRandomNameForSubdirectory(options) : generated;
|
|
24201
24201
|
}
|
|
24202
24202
|
async function glob(pattern, options) {
|
|
24203
|
-
let { default: fastGlob } = await import("./out-
|
|
24203
|
+
let { default: fastGlob } = await import("./out-MHEKZJWS.js"), overridenOptions = options;
|
|
24204
24204
|
return options?.dot == null && (overridenOptions = { ...options, dot: !0 }), fastGlob(pattern, overridenOptions);
|
|
24205
24205
|
}
|
|
24206
24206
|
async function findPathUp(matcher, options) {
|
|
@@ -24211,107 +24211,114 @@ function matchGlob(key, pattern, options) {
|
|
|
24211
24211
|
return minimatch(key, pattern, options);
|
|
24212
24212
|
}
|
|
24213
24213
|
|
|
24214
|
-
// ../cli-kit/dist/
|
|
24214
|
+
// ../cli-kit/dist/private/node/constants.js
|
|
24215
24215
|
init_cjs_shims();
|
|
24216
24216
|
|
|
24217
|
-
//
|
|
24217
|
+
// ../../node_modules/.pnpm/env-paths@3.0.0/node_modules/env-paths/index.js
|
|
24218
24218
|
init_cjs_shims();
|
|
24219
|
-
|
|
24220
|
-
|
|
24221
|
-
|
|
24222
|
-
var
|
|
24223
|
-
|
|
24224
|
-
|
|
24225
|
-
|
|
24226
|
-
|
|
24227
|
-
|
|
24228
|
-
|
|
24229
|
-
|
|
24230
|
-
|
|
24231
|
-
|
|
24232
|
-
|
|
24233
|
-
|
|
24234
|
-
|
|
24235
|
-
|
|
24236
|
-
|
|
24237
|
-
|
|
24238
|
-
|
|
24239
|
-
|
|
24240
|
-
|
|
24241
|
-
|
|
24242
|
-
|
|
24243
|
-
|
|
24244
|
-
|
|
24245
|
-
|
|
24246
|
-
|
|
24247
|
-
|
|
24248
|
-
|
|
24249
|
-
|
|
24250
|
-
|
|
24251
|
-
|
|
24252
|
-
|
|
24253
|
-
|
|
24254
|
-
|
|
24255
|
-
|
|
24256
|
-
|
|
24257
|
-
|
|
24258
|
-
|
|
24259
|
-
|
|
24260
|
-
|
|
24261
|
-
|
|
24262
|
-
|
|
24263
|
-
|
|
24264
|
-
|
|
24265
|
-
|
|
24266
|
-
|
|
24267
|
-
|
|
24268
|
-
|
|
24219
|
+
import path5 from "node:path";
|
|
24220
|
+
import os from "node:os";
|
|
24221
|
+
import process3 from "node:process";
|
|
24222
|
+
var homedir = os.homedir(), tmpdir = os.tmpdir(), { env } = process3, macos = (name) => {
|
|
24223
|
+
let library = path5.join(homedir, "Library");
|
|
24224
|
+
return {
|
|
24225
|
+
data: path5.join(library, "Application Support", name),
|
|
24226
|
+
config: path5.join(library, "Preferences", name),
|
|
24227
|
+
cache: path5.join(library, "Caches", name),
|
|
24228
|
+
log: path5.join(library, "Logs", name),
|
|
24229
|
+
temp: path5.join(tmpdir, name)
|
|
24230
|
+
};
|
|
24231
|
+
}, windows = (name) => {
|
|
24232
|
+
let appData = env.APPDATA || path5.join(homedir, "AppData", "Roaming"), localAppData = env.LOCALAPPDATA || path5.join(homedir, "AppData", "Local");
|
|
24233
|
+
return {
|
|
24234
|
+
// Data/config/cache/log are invented by me as Windows isn't opinionated about this
|
|
24235
|
+
data: path5.join(localAppData, name, "Data"),
|
|
24236
|
+
config: path5.join(appData, name, "Config"),
|
|
24237
|
+
cache: path5.join(localAppData, name, "Cache"),
|
|
24238
|
+
log: path5.join(localAppData, name, "Log"),
|
|
24239
|
+
temp: path5.join(tmpdir, name)
|
|
24240
|
+
};
|
|
24241
|
+
}, linux = (name) => {
|
|
24242
|
+
let username = path5.basename(homedir);
|
|
24243
|
+
return {
|
|
24244
|
+
data: path5.join(env.XDG_DATA_HOME || path5.join(homedir, ".local", "share"), name),
|
|
24245
|
+
config: path5.join(env.XDG_CONFIG_HOME || path5.join(homedir, ".config"), name),
|
|
24246
|
+
cache: path5.join(env.XDG_CACHE_HOME || path5.join(homedir, ".cache"), name),
|
|
24247
|
+
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
24248
|
+
log: path5.join(env.XDG_STATE_HOME || path5.join(homedir, ".local", "state"), name),
|
|
24249
|
+
temp: path5.join(tmpdir, username, name)
|
|
24250
|
+
};
|
|
24251
|
+
};
|
|
24252
|
+
function envPaths(name, { suffix = "nodejs" } = {}) {
|
|
24253
|
+
if (typeof name != "string")
|
|
24254
|
+
throw new TypeError(`Expected a string, got ${typeof name}`);
|
|
24255
|
+
return suffix && (name += `-${suffix}`), process3.platform === "darwin" ? macos(name) : process3.platform === "win32" ? windows(name) : linux(name);
|
|
24256
|
+
}
|
|
24257
|
+
|
|
24258
|
+
// ../cli-kit/dist/private/node/constants.js
|
|
24259
|
+
var identifier = "shopify-cli", cacheFolder = () => process.env.XDG_CACHE_HOME ? process.env.XDG_CACHE_HOME : envPaths(identifier).cache, logsFolder = () => envPaths(identifier).log, environmentVariables = {
|
|
24260
|
+
alwaysLogAnalytics: "SHOPIFY_CLI_ALWAYS_LOG_ANALYTICS",
|
|
24261
|
+
alwaysLogMetrics: "SHOPIFY_CLI_ALWAYS_LOG_METRICS",
|
|
24262
|
+
deviceAuth: "SHOPIFY_CLI_DEVICE_AUTH",
|
|
24263
|
+
enableCliRedirect: "SHOPIFY_CLI_ENABLE_CLI_REDIRECT",
|
|
24264
|
+
env: "SHOPIFY_CLI_ENV",
|
|
24265
|
+
firstPartyDev: "SHOPIFY_CLI_1P_DEV",
|
|
24266
|
+
noAnalytics: "SHOPIFY_CLI_NO_ANALYTICS",
|
|
24267
|
+
partnersToken: "SHOPIFY_CLI_PARTNERS_TOKEN",
|
|
24268
|
+
runAsUser: "SHOPIFY_RUN_AS_USER",
|
|
24269
|
+
serviceEnv: "SHOPIFY_SERVICE_ENV",
|
|
24270
|
+
skipCliRedirect: "SHOPIFY_CLI_SKIP_CLI_REDIRECT",
|
|
24271
|
+
spinInstance: "SPIN_INSTANCE",
|
|
24272
|
+
themeToken: "SHOPIFY_CLI_THEME_TOKEN",
|
|
24273
|
+
unitTest: "SHOPIFY_UNIT_TEST",
|
|
24274
|
+
verbose: "SHOPIFY_FLAG_VERBOSE",
|
|
24275
|
+
noThemeBundling: "SHOPIFY_CLI_NO_THEME_BUNDLING",
|
|
24276
|
+
bundledThemeCLI: "SHOPIFY_CLI_BUNDLED_THEME_CLI",
|
|
24277
|
+
// Variables to detect if the CLI is running in a cloud environment
|
|
24278
|
+
codespaces: "CODESPACES",
|
|
24279
|
+
codespaceName: "CODESPACE_NAME",
|
|
24280
|
+
codespacePortForwardingDomain: "GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN",
|
|
24281
|
+
gitpod: "GITPOD_WORKSPACE_URL",
|
|
24282
|
+
cloudShell: "CLOUD_SHELL",
|
|
24283
|
+
spin: "SPIN",
|
|
24284
|
+
spinAppPort: "SERVER_PORT",
|
|
24285
|
+
spinAppHost: "SPIN_APP_HOST",
|
|
24286
|
+
organization: "SHOPIFY_CLI_ORGANIZATION",
|
|
24287
|
+
identityToken: "SHOPIFY_CLI_IDENTITY_TOKEN",
|
|
24288
|
+
refreshToken: "SHOPIFY_CLI_REFRESH_TOKEN",
|
|
24289
|
+
otelURL: "SHOPIFY_CLI_OTEL_EXPORTER_OTLP_ENDPOINT",
|
|
24290
|
+
themeKitAccessDomain: "SHOPIFY_CLI_THEME_KIT_ACCESS_DOMAIN",
|
|
24291
|
+
json: "SHOPIFY_FLAG_JSON",
|
|
24292
|
+
useAppManagement: "USE_APP_MANAGEMENT_API"
|
|
24293
|
+
}, defaultThemeKitAccessDomain = "theme-kit-access.shopifyapps.com", systemEnvironmentVariables = {
|
|
24294
|
+
backendPort: "BACKEND_PORT"
|
|
24295
|
+
}, pathConstants = {
|
|
24296
|
+
executables: {
|
|
24297
|
+
dev: "/opt/dev/bin/dev"
|
|
24298
|
+
},
|
|
24299
|
+
directories: {
|
|
24300
|
+
cache: {
|
|
24301
|
+
path: () => cacheFolder(),
|
|
24302
|
+
vendor: {
|
|
24303
|
+
path: () => joinPath(cacheFolder(), "vendor"),
|
|
24304
|
+
binaries: () => joinPath(cacheFolder(), "vendor", "binaries")
|
|
24269
24305
|
}
|
|
24270
|
-
|
|
24271
|
-
});
|
|
24272
|
-
}
|
|
24273
|
-
}, NoopDemoRecorder = class {
|
|
24274
|
-
addEvent(_event) {
|
|
24275
|
-
}
|
|
24276
|
-
recordedEventsJson() {
|
|
24277
|
-
return JSON.stringify({ steps: [] }, null, 2);
|
|
24278
|
-
}
|
|
24279
|
-
addSleep() {
|
|
24280
|
-
}
|
|
24281
|
-
resetSleep() {
|
|
24282
|
-
}
|
|
24283
|
-
addOrUpdateConcurrentOutput(..._args) {
|
|
24306
|
+
}
|
|
24284
24307
|
}
|
|
24285
|
-
},
|
|
24286
|
-
|
|
24287
|
-
|
|
24288
|
-
|
|
24289
|
-
|
|
24290
|
-
|
|
24291
|
-
}
|
|
24292
|
-
function recordUIEvent(event) {
|
|
24293
|
-
ensureInstance(), _instance.addEvent(event);
|
|
24294
|
-
}
|
|
24295
|
-
function resetRecordedSleep() {
|
|
24296
|
-
ensureInstance(), _instance.resetSleep();
|
|
24297
|
-
}
|
|
24298
|
-
function printEventsJson() {
|
|
24299
|
-
isRecording() && (ensureInstance(), _instance.addSleep(), console.log(_instance.recordedEventsJson()));
|
|
24300
|
-
}
|
|
24301
|
-
function addOrUpdateConcurrentUIEventOutput(data) {
|
|
24302
|
-
ensureInstance(), _instance.addOrUpdateConcurrentOutput(data);
|
|
24303
|
-
}
|
|
24304
|
-
function isRecording() {
|
|
24305
|
-
return isTruthy(process.env.RECORD_DEMO);
|
|
24306
|
-
}
|
|
24308
|
+
}, sessionConstants = {
|
|
24309
|
+
expirationTimeMarginInMinutes: 4
|
|
24310
|
+
}, bugsnagApiKey = "9e1e6889176fd0c795d5c659225e0fae", reportingRateLimit = { limit: 300, timeout: { days: 1 } }, themeKitAccessDomain = process.env[environmentVariables.themeKitAccessDomain] ?? defaultThemeKitAccessDomain;
|
|
24311
|
+
|
|
24312
|
+
// ../cli-kit/dist/public/node/system.js
|
|
24313
|
+
init_cjs_shims();
|
|
24307
24314
|
|
|
24308
24315
|
// ../cli-kit/dist/public/node/tree-kill.js
|
|
24316
|
+
init_cjs_shims();
|
|
24309
24317
|
import { exec, spawn } from "child_process";
|
|
24310
24318
|
function treeKill(pid = process.pid, killSignal = "SIGTERM", killRoot = !0, callback) {
|
|
24311
|
-
|
|
24319
|
+
adaptedTreeKill(pid, killSignal, killRoot, callback ?? ((error) => {
|
|
24312
24320
|
error && outputDebug(`Failed to kill process ${pid}: ${error}`);
|
|
24313
|
-
});
|
|
24314
|
-
printEventsJson(), adaptedTreeKill(pid, killSignal, killRoot, after);
|
|
24321
|
+
}));
|
|
24315
24322
|
}
|
|
24316
24323
|
function adaptedTreeKill(pid, killSignal, killRoot, callback) {
|
|
24317
24324
|
let rootPid = typeof pid == "number" ? pid.toString() : pid;
|
|
@@ -24399,9 +24406,9 @@ function buildProcessTree(parentPid, tree, pidsToProcess, spawnChildProcessesLis
|
|
|
24399
24406
|
init_cjs_shims();
|
|
24400
24407
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
24401
24408
|
import { Buffer as Buffer3 } from "node:buffer";
|
|
24402
|
-
import
|
|
24409
|
+
import path7 from "node:path";
|
|
24403
24410
|
import childProcess from "node:child_process";
|
|
24404
|
-
import
|
|
24411
|
+
import process7 from "node:process";
|
|
24405
24412
|
|
|
24406
24413
|
// ../../node_modules/.pnpm/strip-final-newline@3.0.0/node_modules/strip-final-newline/index.js
|
|
24407
24414
|
init_cjs_shims();
|
|
@@ -24413,41 +24420,41 @@ function stripFinalNewline(input) {
|
|
|
24413
24420
|
|
|
24414
24421
|
// ../../node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.js
|
|
24415
24422
|
init_cjs_shims();
|
|
24416
|
-
import
|
|
24417
|
-
import
|
|
24423
|
+
import process4 from "node:process";
|
|
24424
|
+
import path6 from "node:path";
|
|
24418
24425
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
24419
24426
|
|
|
24420
24427
|
// ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
|
24421
24428
|
init_cjs_shims();
|
|
24422
24429
|
function pathKey(options = {}) {
|
|
24423
24430
|
let {
|
|
24424
|
-
env:
|
|
24431
|
+
env: env3 = process.env,
|
|
24425
24432
|
platform: platform2 = process.platform
|
|
24426
24433
|
} = options;
|
|
24427
|
-
return platform2 !== "win32" ? "PATH" : Object.keys(
|
|
24434
|
+
return platform2 !== "win32" ? "PATH" : Object.keys(env3).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
24428
24435
|
}
|
|
24429
24436
|
|
|
24430
24437
|
// ../../node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.js
|
|
24431
24438
|
var npmRunPath = ({
|
|
24432
|
-
cwd: cwd3 =
|
|
24433
|
-
path: pathOption =
|
|
24439
|
+
cwd: cwd3 = process4.cwd(),
|
|
24440
|
+
path: pathOption = process4.env[pathKey()],
|
|
24434
24441
|
preferLocal = !0,
|
|
24435
|
-
execPath =
|
|
24442
|
+
execPath = process4.execPath,
|
|
24436
24443
|
addExecPath = !0
|
|
24437
24444
|
} = {}) => {
|
|
24438
|
-
let cwdString = cwd3 instanceof URL ? fileURLToPath3(cwd3) : cwd3, cwdPath =
|
|
24439
|
-
return preferLocal && applyPreferLocal(result, cwdPath), addExecPath && applyExecPath(result, execPath, cwdPath), [...result, pathOption].join(
|
|
24445
|
+
let cwdString = cwd3 instanceof URL ? fileURLToPath3(cwd3) : cwd3, cwdPath = path6.resolve(cwdString), result = [];
|
|
24446
|
+
return preferLocal && applyPreferLocal(result, cwdPath), addExecPath && applyExecPath(result, execPath, cwdPath), [...result, pathOption].join(path6.delimiter);
|
|
24440
24447
|
}, applyPreferLocal = (result, cwdPath) => {
|
|
24441
24448
|
let previous;
|
|
24442
24449
|
for (; previous !== cwdPath; )
|
|
24443
|
-
result.push(
|
|
24450
|
+
result.push(path6.join(cwdPath, "node_modules/.bin")), previous = cwdPath, cwdPath = path6.resolve(cwdPath, "..");
|
|
24444
24451
|
}, applyExecPath = (result, execPath, cwdPath) => {
|
|
24445
24452
|
let execPathString = execPath instanceof URL ? fileURLToPath3(execPath) : execPath;
|
|
24446
|
-
result.push(
|
|
24447
|
-
}, npmRunPathEnv = ({ env:
|
|
24448
|
-
|
|
24449
|
-
let pathName = pathKey({ env:
|
|
24450
|
-
return options.path =
|
|
24453
|
+
result.push(path6.resolve(cwdPath, execPathString, ".."));
|
|
24454
|
+
}, npmRunPathEnv = ({ env: env3 = process4.env, ...options } = {}) => {
|
|
24455
|
+
env3 = { ...env3 };
|
|
24456
|
+
let pathName = pathKey({ env: env3 });
|
|
24457
|
+
return options.path = env3[pathName], env3[pathName] = npmRunPath(options), env3;
|
|
24451
24458
|
};
|
|
24452
24459
|
|
|
24453
24460
|
// ../../node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.js
|
|
@@ -24499,7 +24506,7 @@ var onetime_default = onetime;
|
|
|
24499
24506
|
|
|
24500
24507
|
// ../../node_modules/.pnpm/execa@7.2.0/node_modules/execa/lib/error.js
|
|
24501
24508
|
init_cjs_shims();
|
|
24502
|
-
import
|
|
24509
|
+
import process5 from "node:process";
|
|
24503
24510
|
|
|
24504
24511
|
// ../../node_modules/.pnpm/human-signals@4.3.1/node_modules/human-signals/build/src/main.js
|
|
24505
24512
|
init_cjs_shims();
|
|
@@ -24863,7 +24870,7 @@ var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription,
|
|
|
24863
24870
|
timedOut,
|
|
24864
24871
|
isCanceled,
|
|
24865
24872
|
killed,
|
|
24866
|
-
parsed: { options: { timeout, cwd: cwd3 =
|
|
24873
|
+
parsed: { options: { timeout, cwd: cwd3 = process5.cwd() } }
|
|
24867
24874
|
}) => {
|
|
24868
24875
|
exitCode = exitCode === null ? void 0 : exitCode, signal = signal === null ? void 0 : signal;
|
|
24869
24876
|
let signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description, errorCode = error && error.code, execaMessage = `Command ${getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled })}: ${command}`, isError = Object.prototype.toString.call(error) === "[object Error]", shortMessage = isError ? `${execaMessage}
|
|
@@ -24893,7 +24900,7 @@ var aliases = ["stdin", "stdout", "stderr"], hasAlias = (options) => aliases.som
|
|
|
24893
24900
|
// ../../node_modules/.pnpm/execa@7.2.0/node_modules/execa/lib/kill.js
|
|
24894
24901
|
init_cjs_shims();
|
|
24895
24902
|
var import_signal_exit = __toESM(require_signal_exit(), 1);
|
|
24896
|
-
import
|
|
24903
|
+
import os2 from "node:os";
|
|
24897
24904
|
var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5, spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
|
|
24898
24905
|
let killResult = kill(signal);
|
|
24899
24906
|
return setKillTimeout(kill, signal, options, killResult), killResult;
|
|
@@ -24904,7 +24911,7 @@ var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5, spawnedKill = (kill, signal = "SIGTERM
|
|
|
24904
24911
|
kill("SIGKILL");
|
|
24905
24912
|
}, timeout);
|
|
24906
24913
|
t.unref && t.unref();
|
|
24907
|
-
}, shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => isSigterm(signal) && forceKillAfterTimeout !== !1 && killResult, isSigterm = (signal) => signal ===
|
|
24914
|
+
}, shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => isSigterm(signal) && forceKillAfterTimeout !== !1 && killResult, isSigterm = (signal) => signal === os2.constants.signals.SIGTERM || typeof signal == "string" && signal.toUpperCase() === "SIGTERM", getForceKillAfterTimeout = ({ forceKillAfterTimeout = !0 }) => {
|
|
24908
24915
|
if (forceKillAfterTimeout === !0)
|
|
24909
24916
|
return DEFAULT_FORCE_KILL_TIMEOUT;
|
|
24910
24917
|
if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0)
|
|
@@ -25071,19 +25078,19 @@ var parseExpression = (expression) => {
|
|
|
25071
25078
|
// ../../node_modules/.pnpm/execa@7.2.0/node_modules/execa/lib/verbose.js
|
|
25072
25079
|
init_cjs_shims();
|
|
25073
25080
|
import { debuglog } from "node:util";
|
|
25074
|
-
import
|
|
25081
|
+
import process6 from "node:process";
|
|
25075
25082
|
var verboseDefault = debuglog("execa").enabled, padField = (field, padding) => String(field).padStart(padding, "0"), getTimestamp = () => {
|
|
25076
25083
|
let date = /* @__PURE__ */ new Date();
|
|
25077
25084
|
return `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;
|
|
25078
25085
|
}, logCommand = (escapedCommand, { verbose }) => {
|
|
25079
|
-
verbose &&
|
|
25086
|
+
verbose && process6.stderr.write(`[${getTimestamp()}] ${escapedCommand}
|
|
25080
25087
|
`);
|
|
25081
25088
|
};
|
|
25082
25089
|
|
|
25083
25090
|
// ../../node_modules/.pnpm/execa@7.2.0/node_modules/execa/index.js
|
|
25084
25091
|
var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100, getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
25085
|
-
let
|
|
25086
|
-
return preferLocal ? npmRunPathEnv({ env:
|
|
25092
|
+
let env3 = extendEnv ? { ...process7.env, ...envOption } : envOption;
|
|
25093
|
+
return preferLocal ? npmRunPathEnv({ env: env3, cwd: localDir, execPath }) : env3;
|
|
25087
25094
|
}, handleArguments = (file, args, options = {}) => {
|
|
25088
25095
|
let parsed = import_cross_spawn.default._parse(file, args, options);
|
|
25089
25096
|
return file = parsed.command, args = parsed.args, options = parsed.options, options = {
|
|
@@ -25092,8 +25099,8 @@ var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100, getEnv = ({ env: envOption, extendEnv,
|
|
|
25092
25099
|
stripFinalNewline: !0,
|
|
25093
25100
|
extendEnv: !0,
|
|
25094
25101
|
preferLocal: !1,
|
|
25095
|
-
localDir: options.cwd ||
|
|
25096
|
-
execPath:
|
|
25102
|
+
localDir: options.cwd || process7.cwd(),
|
|
25103
|
+
execPath: process7.execPath,
|
|
25097
25104
|
encoding: "utf8",
|
|
25098
25105
|
reject: !0,
|
|
25099
25106
|
cleanup: !0,
|
|
@@ -25101,7 +25108,7 @@ var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100, getEnv = ({ env: envOption, extendEnv,
|
|
|
25101
25108
|
windowsHide: !0,
|
|
25102
25109
|
verbose: verboseDefault,
|
|
25103
25110
|
...options
|
|
25104
|
-
}, options.env = getEnv(options), options.stdio = normalizeStdio(options),
|
|
25111
|
+
}, options.env = getEnv(options), options.stdio = normalizeStdio(options), process7.platform === "win32" && path7.basename(file, ".exe") === "cmd" && args.unshift("/q"), { file, args, options, parsed };
|
|
25105
25112
|
}, handleOutput = (options, value, error) => typeof value != "string" && !Buffer3.isBuffer(value) ? error === void 0 ? void 0 : "" : options.stripFinalNewline ? stripFinalNewline(value) : value;
|
|
25106
25113
|
function execa(file, args, options) {
|
|
25107
25114
|
let parsed = handleArguments(file, args, options), command = joinCommand(file, args), escapedCommand = getEscapedCommand(file, args);
|
|
@@ -25235,6 +25242,7 @@ function create$(options) {
|
|
|
25235
25242
|
var $ = create$();
|
|
25236
25243
|
|
|
25237
25244
|
// ../cli-kit/dist/public/node/system.js
|
|
25245
|
+
var import_which = __toESM(require_lib2());
|
|
25238
25246
|
async function openURL(url) {
|
|
25239
25247
|
await (await import("./open-MZGVNFZO.js")).default(url);
|
|
25240
25248
|
}
|
|
@@ -25263,10 +25271,10 @@ async function exec2(command, args, options) {
|
|
|
25263
25271
|
}
|
|
25264
25272
|
}
|
|
25265
25273
|
function buildExec(command, args, options) {
|
|
25266
|
-
let
|
|
25267
|
-
shouldDisplayColors() && (
|
|
25274
|
+
let env3 = options?.env ?? process.env;
|
|
25275
|
+
shouldDisplayColors() && (env3.FORCE_COLOR = "1"), checkCommandSafety(command);
|
|
25268
25276
|
let commandProcess = execa(command, args, {
|
|
25269
|
-
env:
|
|
25277
|
+
env: env3,
|
|
25270
25278
|
cwd: options?.cwd,
|
|
25271
25279
|
input: options?.input,
|
|
25272
25280
|
stdio: options?.stdio,
|
|
@@ -25283,6 +25291,12 @@ Running system process:
|
|
|
25283
25291
|
\xB7 Working directory: ${options?.cwd ?? cwd()}
|
|
25284
25292
|
`), commandProcess;
|
|
25285
25293
|
}
|
|
25294
|
+
function checkCommandSafety(command) {
|
|
25295
|
+
if (dirname(import_which.default.sync(command)) === cwd()) {
|
|
25296
|
+
let headline = ["Skipped run of unsecure binary", { command }, "found in the current directory."], body = "Please remove that file or review your current PATH.";
|
|
25297
|
+
throw renderWarning({ headline, body }), new AbortError(headline, body);
|
|
25298
|
+
}
|
|
25299
|
+
}
|
|
25286
25300
|
async function sleep(seconds) {
|
|
25287
25301
|
return new Promise((resolve) => {
|
|
25288
25302
|
setTimeout(resolve, 1e3 * seconds);
|
|
@@ -25308,9 +25322,9 @@ var Environment;
|
|
|
25308
25322
|
(function(Environment2) {
|
|
25309
25323
|
Environment2.Local = "local", Environment2.Production = "production", Environment2.Spin = "spin";
|
|
25310
25324
|
})(Environment || (Environment = {}));
|
|
25311
|
-
function serviceEnvironment(
|
|
25312
|
-
let value =
|
|
25313
|
-
return value === "local" ? Environment.Local : value === "spin" || isSpin(
|
|
25325
|
+
function serviceEnvironment(env3 = process.env) {
|
|
25326
|
+
let value = env3[environmentVariables.serviceEnv];
|
|
25327
|
+
return value === "local" ? Environment.Local : value === "spin" || isSpin(env3) ? Environment.Spin : Environment.Production;
|
|
25314
25328
|
}
|
|
25315
25329
|
|
|
25316
25330
|
// ../cli-kit/dist/public/node/context/spin.js
|
|
@@ -25320,41 +25334,41 @@ ${error}
|
|
|
25320
25334
|
`, nextSteps;
|
|
25321
25335
|
return spinInstance && (nextSteps = `Make sure ${spinInstance} is the instance name and not a fully qualified domain name`), { errorMessage, nextSteps };
|
|
25322
25336
|
}, spinFqdnFilePath = "/etc/spin/machine/fqdn";
|
|
25323
|
-
async function spinFqdn(
|
|
25337
|
+
async function spinFqdn(env3 = process.env) {
|
|
25324
25338
|
let spinFqdn2 = getCachedSpinFqdn();
|
|
25325
25339
|
if (spinFqdn2)
|
|
25326
25340
|
return spinFqdn2;
|
|
25327
25341
|
if (await fileExists(spinFqdnFilePath))
|
|
25328
25342
|
spinFqdn2 = await readFileSync(spinFqdnFilePath).toString();
|
|
25329
25343
|
else {
|
|
25330
|
-
let spinInstance = await instance(
|
|
25331
|
-
spinFqdn2 = (await show(spinInstance,
|
|
25344
|
+
let spinInstance = await instance(env3);
|
|
25345
|
+
spinFqdn2 = (await show(spinInstance, env3)).fqdn;
|
|
25332
25346
|
}
|
|
25333
25347
|
return setCachedSpinFqdn(spinFqdn2), spinFqdn2;
|
|
25334
25348
|
}
|
|
25335
|
-
async function show(spinInstance,
|
|
25336
|
-
let output = await captureOutput("spin", spinInstance === void 0 ? ["show", "--latest", "--json"] : ["show", "--json"], { env:
|
|
25349
|
+
async function show(spinInstance, env3 = process.env) {
|
|
25350
|
+
let output = await captureOutput("spin", spinInstance === void 0 ? ["show", "--latest", "--json"] : ["show", "--json"], { env: env3 }), json = JSON.parse(output);
|
|
25337
25351
|
if (json.error) {
|
|
25338
25352
|
let { errorMessage, nextSteps } = SpinInstanceNotFoundMessages(spinInstance, json.error);
|
|
25339
25353
|
throw new AbortError(errorMessage, nextSteps);
|
|
25340
25354
|
} else
|
|
25341
25355
|
return json;
|
|
25342
25356
|
}
|
|
25343
|
-
function isSpin(
|
|
25344
|
-
return isTruthy(
|
|
25357
|
+
function isSpin(env3 = process.env) {
|
|
25358
|
+
return isTruthy(env3[environmentVariables.spin]);
|
|
25345
25359
|
}
|
|
25346
|
-
function instance(
|
|
25347
|
-
return
|
|
25360
|
+
function instance(env3 = process.env) {
|
|
25361
|
+
return env3[environmentVariables.spinInstance];
|
|
25348
25362
|
}
|
|
25349
|
-
function isSpinEnvironment(
|
|
25350
|
-
return serviceEnvironment(
|
|
25363
|
+
function isSpinEnvironment(env3 = process.env) {
|
|
25364
|
+
return serviceEnvironment(env3) === Environment.Spin;
|
|
25351
25365
|
}
|
|
25352
|
-
function appPort(
|
|
25353
|
-
let port = Number(
|
|
25366
|
+
function appPort(env3 = process.env) {
|
|
25367
|
+
let port = Number(env3[environmentVariables.spinAppPort]);
|
|
25354
25368
|
return !isNaN(port) && port || void 0;
|
|
25355
25369
|
}
|
|
25356
|
-
function appHost(
|
|
25357
|
-
return
|
|
25370
|
+
function appHost(env3 = process.env) {
|
|
25371
|
+
return env3[environmentVariables.spinAppHost];
|
|
25358
25372
|
}
|
|
25359
25373
|
var spinVariables = {
|
|
25360
25374
|
partnersSpinService: "shopify--partners",
|
|
@@ -25451,60 +25465,63 @@ function isInteractive({ stream: stream2 = process.stdout } = {}) {
|
|
|
25451
25465
|
|
|
25452
25466
|
// ../cli-kit/dist/public/node/context/local.js
|
|
25453
25467
|
var import_macaddress = __toESM(require_macaddress(), 1);
|
|
25454
|
-
import { homedir } from "os";
|
|
25468
|
+
import { homedir as homedir2 } from "os";
|
|
25455
25469
|
function isTerminalInteractive() {
|
|
25456
25470
|
return isInteractive();
|
|
25457
25471
|
}
|
|
25458
25472
|
function homeDirectory() {
|
|
25459
|
-
return
|
|
25473
|
+
return homedir2();
|
|
25474
|
+
}
|
|
25475
|
+
function isDevelopment(env3 = process.env) {
|
|
25476
|
+
return env3[environmentVariables.env] === "development";
|
|
25460
25477
|
}
|
|
25461
|
-
function
|
|
25462
|
-
return
|
|
25478
|
+
function isVerbose(env3 = process.env) {
|
|
25479
|
+
return isTruthy(env3[environmentVariables.verbose]) || process.argv.includes("--verbose");
|
|
25463
25480
|
}
|
|
25464
|
-
function
|
|
25465
|
-
return isTruthy(
|
|
25481
|
+
function isAppManagementEnabled(env3 = process.env) {
|
|
25482
|
+
return isTruthy(env3[environmentVariables.useAppManagement]);
|
|
25466
25483
|
}
|
|
25467
|
-
async function isShopify(
|
|
25468
|
-
return Object.prototype.hasOwnProperty.call(
|
|
25484
|
+
async function isShopify(env3 = process.env) {
|
|
25485
|
+
return Object.prototype.hasOwnProperty.call(env3, environmentVariables.runAsUser) ? !isTruthy(env3[environmentVariables.runAsUser]) : await fileExists(pathConstants.executables.dev) || isSpin(env3);
|
|
25469
25486
|
}
|
|
25470
|
-
function isUnitTest(
|
|
25471
|
-
return isTruthy(
|
|
25487
|
+
function isUnitTest(env3 = process.env) {
|
|
25488
|
+
return isTruthy(env3[environmentVariables.unitTest]);
|
|
25472
25489
|
}
|
|
25473
|
-
function analyticsDisabled(
|
|
25474
|
-
return isTruthy(
|
|
25490
|
+
function analyticsDisabled(env3 = process.env) {
|
|
25491
|
+
return isTruthy(env3[environmentVariables.noAnalytics]) || isDevelopment(env3);
|
|
25475
25492
|
}
|
|
25476
|
-
function alwaysLogAnalytics(
|
|
25477
|
-
return isTruthy(
|
|
25493
|
+
function alwaysLogAnalytics(env3 = process.env) {
|
|
25494
|
+
return isTruthy(env3[environmentVariables.alwaysLogAnalytics]);
|
|
25478
25495
|
}
|
|
25479
|
-
function alwaysLogMetrics(
|
|
25480
|
-
return isTruthy(
|
|
25496
|
+
function alwaysLogMetrics(env3 = process.env) {
|
|
25497
|
+
return isTruthy(env3[environmentVariables.alwaysLogMetrics]);
|
|
25481
25498
|
}
|
|
25482
|
-
function firstPartyDev(
|
|
25483
|
-
return isTruthy(
|
|
25499
|
+
function firstPartyDev(env3 = process.env) {
|
|
25500
|
+
return isTruthy(env3[environmentVariables.firstPartyDev]);
|
|
25484
25501
|
}
|
|
25485
|
-
function useThemebundling(
|
|
25486
|
-
return !isTruthy(
|
|
25502
|
+
function useThemebundling(env3 = process.env) {
|
|
25503
|
+
return !isTruthy(env3[environmentVariables.noThemeBundling]);
|
|
25487
25504
|
}
|
|
25488
|
-
function useEmbeddedThemeCLI(
|
|
25489
|
-
return !isTruthy(
|
|
25505
|
+
function useEmbeddedThemeCLI(env3 = process.env) {
|
|
25506
|
+
return !isTruthy(env3[environmentVariables.bundledThemeCLI]);
|
|
25490
25507
|
}
|
|
25491
|
-
function gitpodURL(
|
|
25492
|
-
return
|
|
25508
|
+
function gitpodURL(env3 = process.env) {
|
|
25509
|
+
return env3[environmentVariables.gitpod];
|
|
25493
25510
|
}
|
|
25494
|
-
function codespaceURL(
|
|
25495
|
-
return
|
|
25511
|
+
function codespaceURL(env3 = process.env) {
|
|
25512
|
+
return env3[environmentVariables.codespaceName];
|
|
25496
25513
|
}
|
|
25497
|
-
function codespacePortForwardingDomain(
|
|
25498
|
-
return
|
|
25514
|
+
function codespacePortForwardingDomain(env3 = process.env) {
|
|
25515
|
+
return env3[environmentVariables.codespacePortForwardingDomain];
|
|
25499
25516
|
}
|
|
25500
|
-
function isCloudEnvironment(
|
|
25501
|
-
return cloudEnvironment(
|
|
25517
|
+
function isCloudEnvironment(env3 = process.env) {
|
|
25518
|
+
return cloudEnvironment(env3).platform !== "localhost";
|
|
25502
25519
|
}
|
|
25503
|
-
function themeToken(
|
|
25504
|
-
return
|
|
25520
|
+
function themeToken(env3 = process.env) {
|
|
25521
|
+
return env3[environmentVariables.themeToken];
|
|
25505
25522
|
}
|
|
25506
|
-
function cloudEnvironment(
|
|
25507
|
-
return isSet(
|
|
25523
|
+
function cloudEnvironment(env3 = process.env) {
|
|
25524
|
+
return isSet(env3[environmentVariables.codespaces]) ? { platform: "codespaces", editor: !0 } : isSet(env3[environmentVariables.gitpod]) ? { platform: "gitpod", editor: !0 } : isSet(env3[environmentVariables.cloudShell]) ? { platform: "cloudShell", editor: !0 } : isSpin(env3) ? { platform: "spin", editor: !1 } : { platform: "localhost", editor: !1 };
|
|
25508
25525
|
}
|
|
25509
25526
|
async function hasGit() {
|
|
25510
25527
|
try {
|
|
@@ -25513,19 +25530,19 @@ async function hasGit() {
|
|
|
25513
25530
|
return !1;
|
|
25514
25531
|
}
|
|
25515
25532
|
}
|
|
25516
|
-
function ciPlatform(
|
|
25517
|
-
if (isTruthy(
|
|
25533
|
+
function ciPlatform(env3 = process.env) {
|
|
25534
|
+
if (isTruthy(env3.CI)) {
|
|
25518
25535
|
let name = "unknown";
|
|
25519
|
-
return isSet(
|
|
25536
|
+
return isSet(env3.BITBUCKET_BUILD_NUMBER) ? name = "bitbucket" : isTruthy(env3.CIRCLECI) ? name = "circleci" : isSet(env3.GITHUB_ACTION) ? name = "github" : isTruthy(env3.GITLAB_CI) ? name = "gitlab" : isSet(env3.BUILDKITE) && (name = "buildkite"), {
|
|
25520
25537
|
isCI: !0,
|
|
25521
25538
|
name,
|
|
25522
|
-
metadata: getCIMetadata(name,
|
|
25539
|
+
metadata: getCIMetadata(name, env3)
|
|
25523
25540
|
};
|
|
25524
|
-
} else if (isTruthy(
|
|
25541
|
+
} else if (isTruthy(env3.TF_BUILD))
|
|
25525
25542
|
return {
|
|
25526
25543
|
isCI: !0,
|
|
25527
25544
|
name: "azure",
|
|
25528
|
-
metadata: getCIMetadata("azure",
|
|
25545
|
+
metadata: getCIMetadata("azure", env3)
|
|
25529
25546
|
};
|
|
25530
25547
|
return {
|
|
25531
25548
|
isCI: !1
|
|
@@ -25534,8 +25551,8 @@ function ciPlatform(env2 = process.env) {
|
|
|
25534
25551
|
function macAddress() {
|
|
25535
25552
|
return import_macaddress.default.one();
|
|
25536
25553
|
}
|
|
25537
|
-
function opentelemetryDomain(
|
|
25538
|
-
return isSet(
|
|
25554
|
+
function opentelemetryDomain(env3 = process.env) {
|
|
25555
|
+
return isSet(env3[environmentVariables.otelURL]) ? env3[environmentVariables.otelURL] : "https://otlp-http-production-cli.shopifysvc.com";
|
|
25539
25556
|
}
|
|
25540
25557
|
|
|
25541
25558
|
// ../cli-kit/dist/public/node/is-global.js
|
|
@@ -25544,13 +25561,13 @@ var _isGlobal;
|
|
|
25544
25561
|
function currentProcessIsGlobal(argv = process.argv) {
|
|
25545
25562
|
if (_isGlobal !== void 0 && !isUnitTest())
|
|
25546
25563
|
return _isGlobal;
|
|
25547
|
-
let
|
|
25564
|
+
let path8 = sniffForPath() ?? cwd(), npmPrefix = execaSync("npm", ["prefix"], { cwd: path8 }).stdout.trim();
|
|
25548
25565
|
return _isGlobal = !(argv[1] ?? "").startsWith(npmPrefix.trim()), _isGlobal;
|
|
25549
25566
|
}
|
|
25550
25567
|
async function isGlobalCLIInstalled() {
|
|
25551
25568
|
try {
|
|
25552
|
-
let
|
|
25553
|
-
return (await captureOutput("shopify", ["app"], { env:
|
|
25569
|
+
let env3 = { ...process.env, SHOPIFY_CLI_NO_ANALYTICS: "1" };
|
|
25570
|
+
return (await captureOutput("shopify", ["app"], { env: env3 })).includes("app dev");
|
|
25554
25571
|
} catch {
|
|
25555
25572
|
return !1;
|
|
25556
25573
|
}
|
|
@@ -25724,18 +25741,18 @@ var ansiStyles = assembleStyles(), ansi_styles_default = ansiStyles;
|
|
|
25724
25741
|
|
|
25725
25742
|
// ../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
25726
25743
|
init_cjs_shims();
|
|
25727
|
-
import
|
|
25728
|
-
import
|
|
25744
|
+
import process8 from "node:process";
|
|
25745
|
+
import os3 from "node:os";
|
|
25729
25746
|
import tty from "node:tty";
|
|
25730
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args :
|
|
25747
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process8.argv) {
|
|
25731
25748
|
let prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--", position = argv.indexOf(prefix + flag), terminatorPosition = argv.indexOf("--");
|
|
25732
25749
|
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
25733
25750
|
}
|
|
25734
|
-
var { env } =
|
|
25751
|
+
var { env: env2 } = process8, flagForceColor;
|
|
25735
25752
|
hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never") ? flagForceColor = 0 : (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) && (flagForceColor = 1);
|
|
25736
25753
|
function envForceColor() {
|
|
25737
|
-
if ("FORCE_COLOR" in
|
|
25738
|
-
return
|
|
25754
|
+
if ("FORCE_COLOR" in env2)
|
|
25755
|
+
return env2.FORCE_COLOR === "true" ? 1 : env2.FORCE_COLOR === "false" ? 0 : env2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
|
|
25739
25756
|
}
|
|
25740
25757
|
function translateLevel(level) {
|
|
25741
25758
|
return level === 0 ? !1 : {
|
|
@@ -25757,33 +25774,33 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = !0 } = {}) {
|
|
|
25757
25774
|
if (hasFlag("color=256"))
|
|
25758
25775
|
return 2;
|
|
25759
25776
|
}
|
|
25760
|
-
if ("TF_BUILD" in
|
|
25777
|
+
if ("TF_BUILD" in env2 && "AGENT_NAME" in env2)
|
|
25761
25778
|
return 1;
|
|
25762
25779
|
if (haveStream && !streamIsTTY && forceColor === void 0)
|
|
25763
25780
|
return 0;
|
|
25764
25781
|
let min = forceColor || 0;
|
|
25765
|
-
if (
|
|
25782
|
+
if (env2.TERM === "dumb")
|
|
25766
25783
|
return min;
|
|
25767
|
-
if (
|
|
25768
|
-
let osRelease =
|
|
25784
|
+
if (process8.platform === "win32") {
|
|
25785
|
+
let osRelease = os3.release().split(".");
|
|
25769
25786
|
return Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586 ? Number(osRelease[2]) >= 14931 ? 3 : 2 : 1;
|
|
25770
25787
|
}
|
|
25771
|
-
if ("CI" in
|
|
25772
|
-
return "GITHUB_ACTIONS" in
|
|
25773
|
-
if ("TEAMCITY_VERSION" in
|
|
25774
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
25775
|
-
if (
|
|
25788
|
+
if ("CI" in env2)
|
|
25789
|
+
return "GITHUB_ACTIONS" in env2 || "GITEA_ACTIONS" in env2 ? 3 : ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship" ? 1 : min;
|
|
25790
|
+
if ("TEAMCITY_VERSION" in env2)
|
|
25791
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
25792
|
+
if (env2.COLORTERM === "truecolor" || env2.TERM === "xterm-kitty")
|
|
25776
25793
|
return 3;
|
|
25777
|
-
if ("TERM_PROGRAM" in
|
|
25778
|
-
let version = Number.parseInt((
|
|
25779
|
-
switch (
|
|
25794
|
+
if ("TERM_PROGRAM" in env2) {
|
|
25795
|
+
let version = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
25796
|
+
switch (env2.TERM_PROGRAM) {
|
|
25780
25797
|
case "iTerm.app":
|
|
25781
25798
|
return version >= 3 ? 3 : 2;
|
|
25782
25799
|
case "Apple_Terminal":
|
|
25783
25800
|
return 2;
|
|
25784
25801
|
}
|
|
25785
25802
|
}
|
|
25786
|
-
return /-256(color)?$/i.test(
|
|
25803
|
+
return /-256(color)?$/i.test(env2.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM) || "COLORTERM" in env2 ? 1 : min;
|
|
25787
25804
|
}
|
|
25788
25805
|
function createSupportsColor(stream2, options = {}) {
|
|
25789
25806
|
let level = _supportsColor(stream2, {
|
|
@@ -26125,19 +26142,19 @@ init_cjs_shims();
|
|
|
26125
26142
|
// ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/render.js
|
|
26126
26143
|
init_cjs_shims();
|
|
26127
26144
|
import { Stream } from "node:stream";
|
|
26128
|
-
import
|
|
26145
|
+
import process18 from "node:process";
|
|
26129
26146
|
|
|
26130
26147
|
// ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/ink.js
|
|
26131
26148
|
init_cjs_shims();
|
|
26132
26149
|
var import_react10 = __toESM(require_react(), 1), import_throttle = __toESM(require_throttle(), 1);
|
|
26133
|
-
import
|
|
26150
|
+
import process17 from "node:process";
|
|
26134
26151
|
|
|
26135
26152
|
// ../../node_modules/.pnpm/ansi-escapes@6.2.0/node_modules/ansi-escapes/index.js
|
|
26136
26153
|
init_cjs_shims();
|
|
26137
|
-
import
|
|
26138
|
-
var ESC2 = "\x1B[", OSC2 = "\x1B]", BEL2 = "\x07", SEP2 = ";", isBrowser = typeof window < "u" && typeof window.document < "u", isTerminalApp2 = !isBrowser &&
|
|
26154
|
+
import process9 from "node:process";
|
|
26155
|
+
var ESC2 = "\x1B[", OSC2 = "\x1B]", BEL2 = "\x07", SEP2 = ";", isBrowser = typeof window < "u" && typeof window.document < "u", isTerminalApp2 = !isBrowser && process9.env.TERM_PROGRAM === "Apple_Terminal", isWindows = !isBrowser && process9.platform === "win32", cwdFunction = isBrowser ? () => {
|
|
26139
26156
|
throw new Error("`process.cwd()` only works in Node.js, not the browser.");
|
|
26140
|
-
} :
|
|
26157
|
+
} : process9.cwd, ansiEscapes2 = {};
|
|
26141
26158
|
ansiEscapes2.cursorTo = (x, y) => {
|
|
26142
26159
|
if (typeof x != "number")
|
|
26143
26160
|
throw new TypeError("The `x` argument is required");
|
|
@@ -27225,7 +27242,7 @@ var Yoga = await initYoga(await E(_(import.meta.url).resolve("./yoga.wasm")));
|
|
|
27225
27242
|
// ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/reconciler.js
|
|
27226
27243
|
init_cjs_shims();
|
|
27227
27244
|
var import_react_reconciler = __toESM(require_react_reconciler(), 1), import_constants4 = __toESM(require_constants(), 1);
|
|
27228
|
-
import
|
|
27245
|
+
import process10 from "node:process";
|
|
27229
27246
|
|
|
27230
27247
|
// ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/dom.js
|
|
27231
27248
|
init_cjs_shims();
|
|
@@ -27769,7 +27786,7 @@ var applyPositionStyles = (node, style) => {
|
|
|
27769
27786
|
}, styles_default = styles4;
|
|
27770
27787
|
|
|
27771
27788
|
// ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/reconciler.js
|
|
27772
|
-
if (
|
|
27789
|
+
if (process10.env.DEV === "true")
|
|
27773
27790
|
try {
|
|
27774
27791
|
await import("./devtools-KYKGATNX.js");
|
|
27775
27792
|
} catch (error) {
|
|
@@ -28428,24 +28445,24 @@ init_cjs_shims();
|
|
|
28428
28445
|
|
|
28429
28446
|
// ../../node_modules/.pnpm/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
|
|
28430
28447
|
init_cjs_shims();
|
|
28431
|
-
import
|
|
28448
|
+
import process12 from "node:process";
|
|
28432
28449
|
|
|
28433
28450
|
// ../../node_modules/.pnpm/restore-cursor@4.0.0/node_modules/restore-cursor/index.js
|
|
28434
28451
|
init_cjs_shims();
|
|
28435
28452
|
var import_onetime2 = __toESM(require_onetime(), 1), import_signal_exit2 = __toESM(require_signal_exit(), 1);
|
|
28436
|
-
import
|
|
28453
|
+
import process11 from "node:process";
|
|
28437
28454
|
var restoreCursor = (0, import_onetime2.default)(() => {
|
|
28438
28455
|
(0, import_signal_exit2.default)(() => {
|
|
28439
|
-
|
|
28456
|
+
process11.stderr.write("\x1B[?25h");
|
|
28440
28457
|
}, { alwaysLast: !0 });
|
|
28441
28458
|
}), restore_cursor_default = restoreCursor;
|
|
28442
28459
|
|
|
28443
28460
|
// ../../node_modules/.pnpm/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
|
|
28444
28461
|
var isHidden = !1, cliCursor = {};
|
|
28445
|
-
cliCursor.show = (writableStream =
|
|
28462
|
+
cliCursor.show = (writableStream = process12.stderr) => {
|
|
28446
28463
|
writableStream.isTTY && (isHidden = !1, writableStream.write("\x1B[?25h"));
|
|
28447
28464
|
};
|
|
28448
|
-
cliCursor.hide = (writableStream =
|
|
28465
|
+
cliCursor.hide = (writableStream = process12.stderr) => {
|
|
28449
28466
|
writableStream.isTTY && (restore_cursor_default(), isHidden = !0, writableStream.write("\x1B[?25l"));
|
|
28450
28467
|
};
|
|
28451
28468
|
cliCursor.toggle = (force, writableStream) => {
|
|
@@ -28477,7 +28494,7 @@ var instances = /* @__PURE__ */ new WeakMap(), instances_default = instances;
|
|
|
28477
28494
|
init_cjs_shims();
|
|
28478
28495
|
var import_react9 = __toESM(require_react(), 1);
|
|
28479
28496
|
import { EventEmitter as EventEmitter2 } from "node:events";
|
|
28480
|
-
import
|
|
28497
|
+
import process16 from "node:process";
|
|
28481
28498
|
|
|
28482
28499
|
// ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/components/AppContext.js
|
|
28483
28500
|
init_cjs_shims();
|
|
@@ -28492,9 +28509,9 @@ var AppContext_default = AppContext;
|
|
|
28492
28509
|
init_cjs_shims();
|
|
28493
28510
|
var import_react2 = __toESM(require_react(), 1);
|
|
28494
28511
|
import { EventEmitter } from "node:events";
|
|
28495
|
-
import
|
|
28512
|
+
import process13 from "node:process";
|
|
28496
28513
|
var StdinContext = (0, import_react2.createContext)({
|
|
28497
|
-
stdin:
|
|
28514
|
+
stdin: process13.stdin,
|
|
28498
28515
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
28499
28516
|
internal_eventEmitter: new EventEmitter(),
|
|
28500
28517
|
setRawMode() {
|
|
@@ -28509,9 +28526,9 @@ var StdinContext_default = StdinContext;
|
|
|
28509
28526
|
// ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/components/StdoutContext.js
|
|
28510
28527
|
init_cjs_shims();
|
|
28511
28528
|
var import_react3 = __toESM(require_react(), 1);
|
|
28512
|
-
import
|
|
28529
|
+
import process14 from "node:process";
|
|
28513
28530
|
var StdoutContext = (0, import_react3.createContext)({
|
|
28514
|
-
stdout:
|
|
28531
|
+
stdout: process14.stdout,
|
|
28515
28532
|
write() {
|
|
28516
28533
|
}
|
|
28517
28534
|
});
|
|
@@ -28521,9 +28538,9 @@ var StdoutContext_default = StdoutContext;
|
|
|
28521
28538
|
// ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/components/StderrContext.js
|
|
28522
28539
|
init_cjs_shims();
|
|
28523
28540
|
var import_react4 = __toESM(require_react(), 1);
|
|
28524
|
-
import
|
|
28541
|
+
import process15 from "node:process";
|
|
28525
28542
|
var StderrContext = (0, import_react4.createContext)({
|
|
28526
|
-
stderr:
|
|
28543
|
+
stderr: process15.stderr,
|
|
28527
28544
|
write() {
|
|
28528
28545
|
}
|
|
28529
28546
|
});
|
|
@@ -28613,7 +28630,7 @@ function Text({ color, backgroundColor, dimColor = !1, bold = !1, italic = !1, u
|
|
|
28613
28630
|
}
|
|
28614
28631
|
|
|
28615
28632
|
// ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/components/ErrorOverview.js
|
|
28616
|
-
var cleanupPath = (
|
|
28633
|
+
var cleanupPath = (path8) => path8?.replace(`file://${cwd2()}/`, ""), stackUtils = new import_stack_utils.default({
|
|
28617
28634
|
cwd: cwd2(),
|
|
28618
28635
|
internals: import_stack_utils.default.nodeInternals()
|
|
28619
28636
|
});
|
|
@@ -28734,7 +28751,7 @@ var tab = " ", shiftTab = "\x1B[Z", escape2 = "\x1B", App = class extends import
|
|
|
28734
28751
|
value: (isEnabled) => {
|
|
28735
28752
|
let { stdin } = this.props;
|
|
28736
28753
|
if (!this.isRawModeSupported())
|
|
28737
|
-
throw stdin ===
|
|
28754
|
+
throw stdin === process16.stdin ? new Error(`Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
|
|
28738
28755
|
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`) : new Error(`Raw mode is not supported on the stdin provided to Ink.
|
|
28739
28756
|
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);
|
|
28740
28757
|
if (stdin.setEncoding("utf8"), isEnabled) {
|
|
@@ -28987,7 +29004,7 @@ Object.defineProperty(App, "displayName", {
|
|
|
28987
29004
|
});
|
|
28988
29005
|
|
|
28989
29006
|
// ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/ink.js
|
|
28990
|
-
var isCi =
|
|
29007
|
+
var isCi = process17.env.CI === "false" ? !1 : import_is_ci.default, noop = () => {
|
|
28991
29008
|
}, Ink = class {
|
|
28992
29009
|
constructor(options) {
|
|
28993
29010
|
Object.defineProperty(this, "options", {
|
|
@@ -29118,7 +29135,7 @@ var isCi = process16.env.CI === "false" ? !1 : import_is_ci.default, noop = () =
|
|
|
29118
29135
|
() => {
|
|
29119
29136
|
},
|
|
29120
29137
|
null
|
|
29121
|
-
), this.unsubscribeExit = (0, import_signal_exit3.default)(this.unmount, { alwaysLast: !1 }),
|
|
29138
|
+
), this.unsubscribeExit = (0, import_signal_exit3.default)(this.unmount, { alwaysLast: !1 }), process17.env.DEV === "true" && reconciler_default.injectIntoDevTools({
|
|
29122
29139
|
bundleType: 0,
|
|
29123
29140
|
// Reporting React DOM's version, not Ink's
|
|
29124
29141
|
// See https://github.com/facebook/react/issues/16666#issuecomment-532639905
|
|
@@ -29181,9 +29198,9 @@ var isCi = process16.env.CI === "false" ? !1 : import_is_ci.default, noop = () =
|
|
|
29181
29198
|
// ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/render.js
|
|
29182
29199
|
var render = (node, options) => {
|
|
29183
29200
|
let inkOptions = {
|
|
29184
|
-
stdout:
|
|
29185
|
-
stdin:
|
|
29186
|
-
stderr:
|
|
29201
|
+
stdout: process18.stdout,
|
|
29202
|
+
stdin: process18.stdin,
|
|
29203
|
+
stderr: process18.stderr,
|
|
29187
29204
|
debug: !1,
|
|
29188
29205
|
exitOnCtrlC: !0,
|
|
29189
29206
|
patchConsole: !0,
|
|
@@ -29200,7 +29217,7 @@ var render = (node, options) => {
|
|
|
29200
29217
|
};
|
|
29201
29218
|
}, render_default = render, getOptions = (stdout = {}) => stdout instanceof Stream ? {
|
|
29202
29219
|
stdout,
|
|
29203
|
-
stdin:
|
|
29220
|
+
stdin: process18.stdin
|
|
29204
29221
|
} : stdout, getInstance = (stdout, createInstance) => {
|
|
29205
29222
|
let instance2 = instances_default.get(stdout);
|
|
29206
29223
|
return instance2 || (instance2 = createInstance(), instances_default.set(stdout, instance2)), instance2;
|
|
@@ -29489,6 +29506,8 @@ var import_react24 = __toESM(require_react(), 1);
|
|
|
29489
29506
|
var import_supports_hyperlinks2 = __toESM(require_supports_hyperlinks(), 1);
|
|
29490
29507
|
function link(label, url, linksContext) {
|
|
29491
29508
|
if (!import_supports_hyperlinks2.default.stdout) {
|
|
29509
|
+
if (url === (label ?? url))
|
|
29510
|
+
return url;
|
|
29492
29511
|
if (linksContext === null)
|
|
29493
29512
|
return label ? `${label} ${source_default.dim(`( ${url} )`)}` : url;
|
|
29494
29513
|
let linkId = linksContext.addLink(label, url);
|
|
@@ -29786,8 +29805,8 @@ function consoleError(message) {
|
|
|
29786
29805
|
function consoleWarn(message) {
|
|
29787
29806
|
console.warn(withOrWithoutStyle(message));
|
|
29788
29807
|
}
|
|
29789
|
-
function outputWhereAppropriate(logLevel, logger, message
|
|
29790
|
-
shouldOutput(logLevel) && (logger instanceof Writable ? logger.write(message) : logger(message, logLevel)
|
|
29808
|
+
function outputWhereAppropriate(logLevel, logger, message) {
|
|
29809
|
+
shouldOutput(logLevel) && (logger instanceof Writable ? logger.write(message) : logger(message, logLevel));
|
|
29791
29810
|
}
|
|
29792
29811
|
function withOrWithoutStyle(message) {
|
|
29793
29812
|
return shouldDisplayColors() ? message : unstyled(message);
|
|
@@ -29796,8 +29815,8 @@ function unstyled(message) {
|
|
|
29796
29815
|
return stripAnsi(message);
|
|
29797
29816
|
}
|
|
29798
29817
|
function shouldDisplayColors(_process = process) {
|
|
29799
|
-
let { env:
|
|
29800
|
-
return Object.hasOwnProperty.call(
|
|
29818
|
+
let { env: env3, stdout } = _process;
|
|
29819
|
+
return Object.hasOwnProperty.call(env3, "FORCE_COLOR") ? isTruthy(env3.FORCE_COLOR) : !!stdout.isTTY;
|
|
29801
29820
|
}
|
|
29802
29821
|
function formatSection(title, body) {
|
|
29803
29822
|
let formattedTitle = `${title.toUpperCase()}${" ".repeat(35 - title.length)}`;
|
|
@@ -29931,7 +29950,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
29931
29950
|
try {
|
|
29932
29951
|
await getAndSet();
|
|
29933
29952
|
} catch (error) {
|
|
29934
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
29953
|
+
let { sendErrorToBugsnag } = await import("./error-handler-GSXEX5NX.js");
|
|
29935
29954
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
29936
29955
|
}
|
|
29937
29956
|
}, durationStack = [];
|
|
@@ -29972,20 +29991,20 @@ var import_react30 = __toESM(require_react(), 1);
|
|
|
29972
29991
|
|
|
29973
29992
|
// ../../node_modules/.pnpm/figures@5.0.0/node_modules/figures/index.js
|
|
29974
29993
|
init_cjs_shims();
|
|
29975
|
-
import
|
|
29994
|
+
import process20 from "node:process";
|
|
29976
29995
|
|
|
29977
29996
|
// ../../node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js
|
|
29978
29997
|
init_cjs_shims();
|
|
29979
29998
|
|
|
29980
29999
|
// ../../node_modules/.pnpm/is-unicode-supported@1.3.0/node_modules/is-unicode-supported/index.js
|
|
29981
30000
|
init_cjs_shims();
|
|
29982
|
-
import
|
|
30001
|
+
import process19 from "node:process";
|
|
29983
30002
|
function isUnicodeSupported() {
|
|
29984
|
-
return
|
|
30003
|
+
return process19.platform !== "win32" ? process19.env.TERM !== "linux" : !!process19.env.CI || !!process19.env.WT_SESSION || !!process19.env.TERMINUS_SUBLIME || process19.env.ConEmuTask === "{cmd::Cmder}" || process19.env.TERM_PROGRAM === "Terminus-Sublime" || process19.env.TERM_PROGRAM === "vscode" || process19.env.TERM === "xterm-256color" || process19.env.TERM === "alacritty" || process19.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
29985
30004
|
}
|
|
29986
30005
|
|
|
29987
30006
|
// ../../node_modules/.pnpm/figures@5.0.0/node_modules/figures/index.js
|
|
29988
|
-
var { platform } =
|
|
30007
|
+
var { platform } = process20, common = {
|
|
29989
30008
|
square: "\u2588",
|
|
29990
30009
|
squareDarkShade: "\u2593",
|
|
29991
30010
|
squareMediumShade: "\u2592",
|
|
@@ -30278,7 +30297,7 @@ function useConcurrentOutputContext(context, callback) {
|
|
|
30278
30297
|
}
|
|
30279
30298
|
var ConcurrentOutput = ({ processes, prefixColumnSize, abortSignal, showTimestamps = !0, keepRunningAfterProcessesResolve = !1, useAlternativeColorPalette = !1 }) => {
|
|
30280
30299
|
let [processOutput, setProcessOutput] = (0, import_react30.useState)([]), { exit: unmountInk } = use_app_default(), concurrentColors = (0, import_react30.useMemo)(() => useAlternativeColorPalette ? ["#b994c3", "#e69e19", "#d17a73", "cyan", "magenta", "blue"] : ["yellow", "cyan", "magenta", "green", "blue"], [useAlternativeColorPalette]), calculatedPrefixColumnSize = (0, import_react30.useMemo)(() => {
|
|
30281
|
-
let columnSize = prefixColumnSize ?? processes.reduce((maxPrefixLength,
|
|
30300
|
+
let columnSize = prefixColumnSize ?? processes.reduce((maxPrefixLength, process21) => Math.max(maxPrefixLength, process21.prefix.length), 0);
|
|
30282
30301
|
return Math.min(columnSize, 25);
|
|
30283
30302
|
}, [processes, prefixColumnSize]), addPrefix = (prefix, prefixes) => {
|
|
30284
30303
|
let index = prefixes.indexOf(prefix);
|
|
@@ -30286,11 +30305,10 @@ var ConcurrentOutput = ({ processes, prefixColumnSize, abortSignal, showTimestam
|
|
|
30286
30305
|
}, lineColor = (0, import_react30.useCallback)((index) => {
|
|
30287
30306
|
let colorIndex = index % concurrentColors.length;
|
|
30288
30307
|
return concurrentColors[colorIndex];
|
|
30289
|
-
}, [concurrentColors]), writableStream = (0, import_react30.useCallback)((
|
|
30308
|
+
}, [concurrentColors]), writableStream = (0, import_react30.useCallback)((process21, prefixes) => new Writable2({
|
|
30290
30309
|
write(chunk, _encoding, next) {
|
|
30291
|
-
let context = outputContextStore.getStore(), prefix = context?.outputPrefix ??
|
|
30292
|
-
|
|
30293
|
-
`) }), setProcessOutput((previousProcessOutput) => [
|
|
30310
|
+
let context = outputContextStore.getStore(), prefix = context?.outputPrefix ?? process21.prefix, shouldStripAnsi = context?.stripAnsi ?? !0, log = chunk.toString("utf8").replace(/(\n)$/, ""), index = addPrefix(prefix, prefixes), lines = shouldStripAnsi ? stripAnsi(log).split(/\n/) : log.split(/\n/);
|
|
30311
|
+
setProcessOutput((previousProcessOutput) => [
|
|
30294
30312
|
...previousProcessOutput,
|
|
30295
30313
|
{
|
|
30296
30314
|
color: lineColor(index),
|
|
@@ -30304,9 +30322,9 @@ var ConcurrentOutput = ({ processes, prefixColumnSize, abortSignal, showTimestam
|
|
|
30304
30322
|
(async () => {
|
|
30305
30323
|
let prefixes = [];
|
|
30306
30324
|
try {
|
|
30307
|
-
await Promise.all(processes.map(async (
|
|
30308
|
-
let stdout = writableStream(
|
|
30309
|
-
await
|
|
30325
|
+
await Promise.all(processes.map(async (process21) => {
|
|
30326
|
+
let stdout = writableStream(process21, prefixes), stderr = writableStream(process21, prefixes);
|
|
30327
|
+
await process21.action(stdout, stderr, abortSignal);
|
|
30310
30328
|
})), keepRunningAfterProcessesResolve || unmountInk();
|
|
30311
30329
|
} catch (error) {
|
|
30312
30330
|
keepRunningAfterProcessesResolve || unmountInk(error);
|
|
@@ -30346,7 +30364,7 @@ init_cjs_shims();
|
|
|
30346
30364
|
import { EventEmitter as EventEmitter3 } from "events";
|
|
30347
30365
|
function renderOnce(element, { logLevel = "info", logger = consoleLog, renderOptions }) {
|
|
30348
30366
|
let { output, unmount } = renderString(element, renderOptions);
|
|
30349
|
-
return output && (isUnitTest() && collectLog(logLevel, output), outputWhereAppropriate(logLevel, logger, output
|
|
30367
|
+
return output && (isUnitTest() && collectLog(logLevel, output), outputWhereAppropriate(logLevel, logger, output)), unmount(), output;
|
|
30350
30368
|
}
|
|
30351
30369
|
async function render2(element, options) {
|
|
30352
30370
|
let { waitUntilExit } = render_default(element, options);
|
|
@@ -30511,8 +30529,8 @@ var import_react34 = __toESM(require_react(), 1), typeToLogLevel = {
|
|
|
30511
30529
|
error: consoleError
|
|
30512
30530
|
};
|
|
30513
30531
|
function alert({ type, headline, body, nextSteps, reference, link: link2, customSections, orderedNextSteps = !1, renderOptions }) {
|
|
30514
|
-
let { type: alertType, ...
|
|
30515
|
-
return
|
|
30532
|
+
let { type: alertType, ..._eventProps } = arguments[0];
|
|
30533
|
+
return renderOnce(import_react34.default.createElement(Alert, { type, headline, body, nextSteps, reference, link: link2, orderedNextSteps, customSections }), { logLevel: typeToLogLevel[type], logger: typeToLogger[type], renderOptions });
|
|
30516
30534
|
}
|
|
30517
30535
|
|
|
30518
30536
|
// ../cli-kit/dist/private/node/ui/components/FatalError.js
|
|
@@ -31448,28 +31466,21 @@ function renderError(options) {
|
|
|
31448
31466
|
return alert({ ...options, type: "error" });
|
|
31449
31467
|
}
|
|
31450
31468
|
function renderFatalError(error, { renderOptions } = {}) {
|
|
31451
|
-
return
|
|
31452
|
-
type: "fatalError",
|
|
31453
|
-
properties: { ...error, errorType: error.type === FatalErrorType.Bug ? "bug" : "abort" }
|
|
31454
|
-
}), renderOnce(import_react54.default.createElement(FatalError2, { error }), { logLevel: "error", logger: consoleError, renderOptions });
|
|
31469
|
+
return renderOnce(import_react54.default.createElement(FatalError2, { error }), { logLevel: "error", logger: consoleError, renderOptions });
|
|
31455
31470
|
}
|
|
31456
31471
|
async function renderSelectPrompt({ renderOptions, isConfirmationPrompt, ...props }, uiDebugOptions = defaultUIDebugOptions) {
|
|
31457
|
-
return throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions),
|
|
31472
|
+
return throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions), runWithTimer("cmd_all_timing_prompts_ms")(async () => {
|
|
31458
31473
|
let selectedValue;
|
|
31459
|
-
|
|
31460
|
-
|
|
31461
|
-
|
|
31462
|
-
|
|
31463
|
-
|
|
31464
|
-
|
|
31465
|
-
}), selectedValue;
|
|
31466
|
-
} finally {
|
|
31467
|
-
resetRecordedSleep();
|
|
31468
|
-
}
|
|
31474
|
+
return await render2(import_react54.default.createElement(SelectPrompt, { ...props, onSubmit: (value) => {
|
|
31475
|
+
selectedValue = value;
|
|
31476
|
+
} }), {
|
|
31477
|
+
...renderOptions,
|
|
31478
|
+
exitOnCtrlC: !1
|
|
31479
|
+
}), selectedValue;
|
|
31469
31480
|
});
|
|
31470
31481
|
}
|
|
31471
31482
|
async function renderConfirmationPrompt({ message, infoTable, confirmationMessage = "Yes, confirm", cancellationMessage = "No, cancel", renderOptions, defaultValue = !0, abortSignal, infoMessage }) {
|
|
31472
|
-
return
|
|
31483
|
+
return renderSelectPrompt({
|
|
31473
31484
|
choices: [
|
|
31474
31485
|
{
|
|
31475
31486
|
label: confirmationMessage,
|
|
@@ -31492,7 +31503,7 @@ async function renderConfirmationPrompt({ message, infoTable, confirmationMessag
|
|
|
31492
31503
|
});
|
|
31493
31504
|
}
|
|
31494
31505
|
async function renderAutocompletePrompt({ renderOptions, ...props }, uiDebugOptions = defaultUIDebugOptions) {
|
|
31495
|
-
throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions)
|
|
31506
|
+
throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions);
|
|
31496
31507
|
let newProps = {
|
|
31497
31508
|
search(term) {
|
|
31498
31509
|
let lowerTerm = term.toLowerCase();
|
|
@@ -31504,66 +31515,46 @@ async function renderAutocompletePrompt({ renderOptions, ...props }, uiDebugOpti
|
|
|
31504
31515
|
};
|
|
31505
31516
|
return runWithTimer("cmd_all_timing_prompts_ms")(async () => {
|
|
31506
31517
|
let selectedValue;
|
|
31507
|
-
|
|
31508
|
-
|
|
31509
|
-
|
|
31510
|
-
|
|
31511
|
-
|
|
31512
|
-
|
|
31513
|
-
}), selectedValue;
|
|
31514
|
-
} finally {
|
|
31515
|
-
resetRecordedSleep();
|
|
31516
|
-
}
|
|
31518
|
+
return await render2(import_react54.default.createElement(AutocompletePrompt, { ...newProps, onSubmit: (value) => {
|
|
31519
|
+
selectedValue = value;
|
|
31520
|
+
} }), {
|
|
31521
|
+
...renderOptions,
|
|
31522
|
+
exitOnCtrlC: !1
|
|
31523
|
+
}), selectedValue;
|
|
31517
31524
|
});
|
|
31518
31525
|
}
|
|
31519
31526
|
function renderTable({ renderOptions, ...props }) {
|
|
31520
|
-
return
|
|
31527
|
+
return renderOnce(import_react54.default.createElement(Table, { ...props }), { renderOptions });
|
|
31521
31528
|
}
|
|
31522
31529
|
async function renderTasks(tasks, { renderOptions } = {}) {
|
|
31523
|
-
return
|
|
31524
|
-
type: "taskbar",
|
|
31525
|
-
properties: {
|
|
31526
|
-
// Rather than timing exactly, pretend each step takes 2 seconds. This
|
|
31527
|
-
// should be easy to tweak manually.
|
|
31528
|
-
steps: tasks.map((task) => ({ title: task.title, duration: 2 }))
|
|
31529
|
-
}
|
|
31530
|
-
}), new Promise((resolve, reject) => {
|
|
31530
|
+
return new Promise((resolve, reject) => {
|
|
31531
31531
|
render2(import_react54.default.createElement(Tasks, { tasks, onComplete: resolve }), {
|
|
31532
31532
|
...renderOptions,
|
|
31533
31533
|
exitOnCtrlC: !1
|
|
31534
31534
|
}).then(() => {
|
|
31535
|
-
resetRecordedSleep();
|
|
31536
31535
|
}).catch(reject);
|
|
31537
31536
|
});
|
|
31538
31537
|
}
|
|
31539
31538
|
async function renderTextPrompt({ renderOptions, ...props }, uiDebugOptions = defaultUIDebugOptions) {
|
|
31540
|
-
return throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions),
|
|
31539
|
+
return throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions), runWithTimer("cmd_all_timing_prompts_ms")(async () => {
|
|
31541
31540
|
let enteredText = "";
|
|
31542
|
-
|
|
31543
|
-
|
|
31544
|
-
|
|
31545
|
-
|
|
31546
|
-
|
|
31547
|
-
|
|
31548
|
-
}), enteredText;
|
|
31549
|
-
} finally {
|
|
31550
|
-
resetRecordedSleep();
|
|
31551
|
-
}
|
|
31541
|
+
return await render2(import_react54.default.createElement(TextPrompt, { ...props, onSubmit: (value) => {
|
|
31542
|
+
enteredText = value;
|
|
31543
|
+
} }), {
|
|
31544
|
+
...renderOptions,
|
|
31545
|
+
exitOnCtrlC: !1
|
|
31546
|
+
}), enteredText;
|
|
31552
31547
|
});
|
|
31553
31548
|
}
|
|
31554
31549
|
async function renderDangerousConfirmationPrompt({ renderOptions, ...props }, uiDebugOptions = defaultUIDebugOptions) {
|
|
31555
|
-
return throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions),
|
|
31550
|
+
return throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions), runWithTimer("cmd_all_timing_prompts_ms")(async () => {
|
|
31556
31551
|
let confirmed;
|
|
31557
|
-
|
|
31558
|
-
|
|
31559
|
-
|
|
31560
|
-
|
|
31561
|
-
|
|
31562
|
-
|
|
31563
|
-
}), confirmed;
|
|
31564
|
-
} finally {
|
|
31565
|
-
resetRecordedSleep();
|
|
31566
|
-
}
|
|
31552
|
+
return await render2(import_react54.default.createElement(DangerousConfirmationPrompt, { ...props, onSubmit: (value) => {
|
|
31553
|
+
confirmed = value;
|
|
31554
|
+
} }), {
|
|
31555
|
+
...renderOptions,
|
|
31556
|
+
exitOnCtrlC: !1
|
|
31557
|
+
}), confirmed;
|
|
31567
31558
|
});
|
|
31568
31559
|
}
|
|
31569
31560
|
function renderText({ text, logLevel = "info", logger = consoleLog }) {
|
|
@@ -31604,8 +31595,6 @@ export {
|
|
|
31604
31595
|
addPublicMetadata,
|
|
31605
31596
|
addSensitiveMetadata,
|
|
31606
31597
|
runWithTimer,
|
|
31607
|
-
initDemoRecorder,
|
|
31608
|
-
printEventsJson,
|
|
31609
31598
|
require_react,
|
|
31610
31599
|
require_isObject,
|
|
31611
31600
|
ansi_escapes_default2 as ansi_escapes_default,
|
|
@@ -31773,6 +31762,14 @@ export {
|
|
|
31773
31762
|
glob,
|
|
31774
31763
|
findPathUp,
|
|
31775
31764
|
matchGlob,
|
|
31765
|
+
envPaths,
|
|
31766
|
+
logsFolder,
|
|
31767
|
+
environmentVariables,
|
|
31768
|
+
systemEnvironmentVariables,
|
|
31769
|
+
sessionConstants,
|
|
31770
|
+
bugsnagApiKey,
|
|
31771
|
+
reportingRateLimit,
|
|
31772
|
+
themeKitAccessDomain,
|
|
31776
31773
|
Environment,
|
|
31777
31774
|
serviceEnvironment,
|
|
31778
31775
|
spinFqdn,
|
|
@@ -31786,6 +31783,7 @@ export {
|
|
|
31786
31783
|
homeDirectory,
|
|
31787
31784
|
isDevelopment,
|
|
31788
31785
|
isVerbose,
|
|
31786
|
+
isAppManagementEnabled,
|
|
31789
31787
|
isShopify,
|
|
31790
31788
|
isUnitTest,
|
|
31791
31789
|
analyticsDisabled,
|
|
@@ -31895,4 +31893,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
31895
31893
|
* LICENSE file in the root directory of this source tree.
|
|
31896
31894
|
*)
|
|
31897
31895
|
*/
|
|
31898
|
-
//# sourceMappingURL=chunk-
|
|
31896
|
+
//# sourceMappingURL=chunk-5JZ5AGAQ.js.map
|