@shopify/cli 3.91.1 → 3.92.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/bin/run.js +2 -2
- package/dist/assets/dev-console/extensions/dev-console/assets/{index-0hw3R_TS.css → index-DISeE29z.css} +1 -1
- package/dist/assets/dev-console/extensions/dev-console/assets/{index-C12jKScn.js → index-WDo4Zf8i.js} +10 -10
- package/dist/assets/dev-console/index.html +2 -2
- package/dist/{chunk-LFMBIRVC.js → chunk-2GBRPYQO.js} +3 -3
- package/dist/{chunk-R622IPZN.js → chunk-3PJMBRB6.js} +3 -3
- package/dist/{chunk-SUFC4ISB.js → chunk-3Q7HT6Z6.js} +6 -6
- package/dist/{chunk-FKP67FZI.js → chunk-3R4Y7JP2.js} +3 -3
- package/dist/{chunk-54FE2FGU.js → chunk-4ZJ6IMY7.js} +2 -2
- package/dist/{chunk-K52ORY26.js → chunk-5Z2EIBKO.js} +7 -7
- package/dist/{chunk-Z5FK5H2M.js → chunk-6QAGQRBW.js} +7 -7
- package/dist/{chunk-RLJICWO6.js → chunk-7HBHG7AR.js} +4 -4
- package/dist/{chunk-E44JKFB6.js → chunk-7LLU6ZWI.js} +2 -2
- package/dist/{chunk-DUNGALP3.js → chunk-7ZPI3YZT.js} +3 -3
- package/dist/{chunk-I23GZAC4.js → chunk-ALCWBCTB.js} +6 -7
- package/dist/{chunk-HAG3HJ2V.js → chunk-CETXO4QF.js} +35 -47
- package/dist/{chunk-5ZDTGPNX.js → chunk-CFMCPDKD.js} +3 -3
- package/dist/{chunk-OIUDJFV2.js → chunk-CLSOJHPG.js} +12 -5
- package/dist/{chunk-NYP3N62G.js → chunk-D5DIBYZM.js} +2 -2
- package/dist/{chunk-77BDQRQW.js → chunk-DELDMHFW.js} +6 -6
- package/dist/{chunk-TY5YKCUW.js → chunk-EKSKCUFY.js} +5 -5
- package/dist/{chunk-HTGTTXQL.js → chunk-EURIZXCA.js} +7 -17
- package/dist/{chunk-CEUL3KX5.js → chunk-EZZRDRCA.js} +7757 -6910
- package/dist/{chunk-VRUH5BDH.js → chunk-GISQNWKA.js} +4 -4
- package/dist/{chunk-EG6MBBEN.js → chunk-H4D3T5OG.js} +14 -1
- package/dist/{chunk-E4GUDBAR.js → chunk-HOM3AURQ.js} +17174 -13656
- package/dist/{chunk-SJXHR42U.js → chunk-KMZDRVOH.js} +2 -2
- package/dist/{chunk-ATQVKUJC.js → chunk-L332YARR.js} +4 -4
- package/dist/{chunk-A2CZGTAP.js → chunk-NCTTAHU4.js} +110 -166
- package/dist/{chunk-DR5R5UTE.js → chunk-PEQG7FIO.js} +6 -6
- package/dist/{chunk-ZLV2A27J.js → chunk-PV4DS7Q3.js} +2 -2
- package/dist/{chunk-ITTNM7I4.js → chunk-QJQS7BBK.js} +2 -2
- package/dist/{chunk-TH7ZYYDZ.js → chunk-QLJ6X5VL.js} +1144 -79
- package/dist/{chunk-463KYFYO.js → chunk-S6E4CCUW.js} +2 -2
- package/dist/{chunk-VUYVHHZY.js → chunk-SHITJREU.js} +4 -4
- package/dist/{chunk-IUKBWIQY.js → chunk-SK7ID6O3.js} +3 -3
- package/dist/{chunk-5JYQJQ2E.js → chunk-TCRGWXEM.js} +2 -2
- package/dist/{chunk-K45ALTZ7.js → chunk-TKKSRIK5.js} +3 -3
- package/dist/{chunk-QFO7QSBW.js → chunk-TSCSVXFR.js} +4 -4
- package/dist/{chunk-HOIU6WRE.js → chunk-UB4S5CPZ.js} +3 -3
- package/dist/{chunk-RKFRXKFE.js → chunk-UKXV3TI2.js} +3 -3
- package/dist/{chunk-2YAGQHB2.js → chunk-UL3ZEXYW.js} +3 -3
- package/dist/{chunk-XDCBS7SY.js → chunk-ULMWBRHO.js} +3 -3
- package/dist/{chunk-KV3364EL.js → chunk-USGISM5H.js} +1 -1
- package/dist/{chunk-PCNR4TMY.js → chunk-VK6V5QGU.js} +5 -5
- package/dist/{chunk-SVV4RJVX.js → chunk-VNO7KUNW.js} +4 -4
- package/dist/{chunk-WDYPK6VH.js → chunk-WORXIBDA.js} +5 -5
- package/dist/cli/commands/auth/login.js +10 -10
- package/dist/cli/commands/auth/login.test.js +12 -12
- package/dist/cli/commands/auth/logout.js +10 -10
- package/dist/cli/commands/auth/logout.test.js +12 -12
- package/dist/cli/commands/cache/clear.js +11 -11
- package/dist/cli/commands/debug/command-flags.js +10 -10
- package/dist/cli/commands/docs/generate.js +10 -10
- package/dist/cli/commands/docs/generate.test.js +11 -11
- package/dist/cli/commands/doctor-release/doctor-release.js +10 -10
- package/dist/cli/commands/doctor-release/theme/index.js +16 -16
- package/dist/cli/commands/help.js +10 -10
- package/dist/cli/commands/kitchen-sink/async.js +11 -11
- package/dist/cli/commands/kitchen-sink/async.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/index.js +13 -13
- package/dist/cli/commands/kitchen-sink/index.test.js +14 -14
- package/dist/cli/commands/kitchen-sink/prompts.js +11 -11
- package/dist/cli/commands/kitchen-sink/prompts.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.js +11 -11
- package/dist/cli/commands/kitchen-sink/static.test.js +12 -12
- package/dist/cli/commands/notifications/generate.js +11 -11
- package/dist/cli/commands/notifications/list.js +11 -11
- package/dist/cli/commands/search.js +11 -11
- package/dist/cli/commands/upgrade.js +11 -11
- package/dist/cli/commands/upgrade.test.js +1 -1
- package/dist/cli/commands/version.js +11 -11
- package/dist/cli/commands/version.test.js +12 -12
- package/dist/cli/services/commands/notifications.js +9 -9
- package/dist/cli/services/commands/search.js +5 -5
- package/dist/cli/services/commands/search.test.js +6 -6
- package/dist/cli/services/commands/version.js +6 -6
- package/dist/cli/services/commands/version.test.js +8 -8
- package/dist/cli/services/doctor-release/context.js +2 -2
- package/dist/cli/services/doctor-release/theme/runner.js +9 -9
- package/dist/cli/services/doctor-release/theme/tests/init.js +6 -6
- package/dist/cli/services/doctor-release/theme/tests/push.js +6 -6
- package/dist/cli/services/kitchen-sink/async.js +5 -5
- package/dist/cli/services/kitchen-sink/prompts.js +5 -5
- package/dist/cli/services/kitchen-sink/static.js +5 -5
- package/dist/{custom-oclif-loader-AAJZ7WBW.js → custom-oclif-loader-QHZYLDHD.js} +5 -5
- package/dist/{devtools-BAOTGU3O.js → devtools-PI7DMKVT.js} +4 -4
- package/dist/{error-handler-GSQRFK57.js → error-handler-25WG4VTL.js} +8 -8
- package/dist/hooks/postrun.js +8 -8
- package/dist/hooks/prerun.js +9 -9
- package/dist/index.js +68761 -58531
- package/dist/{lib-HAW436ZI.js → lib-R4TQWF6K.js} +3 -3
- package/dist/{local-GOP2BHNI.js → local-QBNR7GHY.js} +5 -5
- package/dist/{morph-7WAMUK6I.js → morph-32Y5BUJM.js} +9 -9
- package/dist/{node-package-manager-W4R4DUTE.js → node-package-manager-TKOPH3K5.js} +6 -6
- package/dist/{path-GB4VIEM6.js → path-H3TILUQU.js} +4 -2
- package/dist/{prettier-5ODD6NHV.js → prettier-4RCJTIXY.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-VRLRLHWH.js → ui-QCEOAQDC.js} +5 -5
- package/dist/{workerd-AO3T6IIJ.js → workerd-L2OEKCQL.js} +13 -13
- package/oclif.manifest.json +6 -6
- package/package.json +7 -59
- package/dist/chunk-2EQNSO7C.js +0 -142
- package/dist/cli/services/upgrade.d.ts +0 -5
- package/dist/cli/services/upgrade.js +0 -21
- package/dist/cli/services/upgrade.test.js +0 -171
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
format2,
|
|
3
3
|
init_prettier,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-USGISM5H.js";
|
|
6
6
|
import {
|
|
7
7
|
require_globby
|
|
8
8
|
} from "./chunk-56ELYGPH.js";
|
|
9
9
|
import {
|
|
10
10
|
base_command_default
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ALCWBCTB.js";
|
|
12
12
|
import {
|
|
13
13
|
businessPlatformRequest,
|
|
14
14
|
ensureAuthenticatedAdmin,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
graphqlRequest,
|
|
18
18
|
logout,
|
|
19
19
|
normalizeStoreFqdn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NCTTAHU4.js";
|
|
21
21
|
import {
|
|
22
22
|
findUpAndReadPackageJson,
|
|
23
23
|
getPackageManager,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
packageManagerFromUserAgent,
|
|
26
26
|
readAndParsePackageJson,
|
|
27
27
|
writePackageJSON
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-CETXO4QF.js";
|
|
29
29
|
import {
|
|
30
30
|
AbortError,
|
|
31
31
|
BugError,
|
|
@@ -65,14 +65,13 @@ import {
|
|
|
65
65
|
runWithTimer,
|
|
66
66
|
source_default,
|
|
67
67
|
writeFile
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-HOM3AURQ.js";
|
|
69
69
|
import {
|
|
70
70
|
require_ansi_escapes,
|
|
71
71
|
require_ansi_styles,
|
|
72
72
|
require_clean_stack,
|
|
73
73
|
require_color_convert,
|
|
74
74
|
require_color_name,
|
|
75
|
-
require_commonjs,
|
|
76
75
|
require_ejs,
|
|
77
76
|
require_get_package_type,
|
|
78
77
|
require_is_fullwidth_code_point,
|
|
@@ -82,7 +81,7 @@ import {
|
|
|
82
81
|
require_widest_line,
|
|
83
82
|
require_wordwrap,
|
|
84
83
|
require_wrap_ansi
|
|
85
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-EZZRDRCA.js";
|
|
86
85
|
import {
|
|
87
86
|
require_source_map_support
|
|
88
87
|
} from "./chunk-KUJQ4AB6.js";
|
|
@@ -90,12 +89,12 @@ import {
|
|
|
90
89
|
require_src,
|
|
91
90
|
require_supports_color
|
|
92
91
|
} from "./chunk-UMUTXITN.js";
|
|
93
|
-
import {
|
|
94
|
-
require_is_wsl
|
|
95
|
-
} from "./chunk-G2ZZKGSV.js";
|
|
96
92
|
import {
|
|
97
93
|
require_indent_string
|
|
98
94
|
} from "./chunk-UV5N2VL7.js";
|
|
95
|
+
import {
|
|
96
|
+
require_is_wsl
|
|
97
|
+
} from "./chunk-G2ZZKGSV.js";
|
|
99
98
|
import {
|
|
100
99
|
basename,
|
|
101
100
|
cwd,
|
|
@@ -105,7 +104,7 @@ import {
|
|
|
105
104
|
relativePath,
|
|
106
105
|
relativizePath,
|
|
107
106
|
resolvePath
|
|
108
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-H4D3T5OG.js";
|
|
109
108
|
import {
|
|
110
109
|
__commonJS,
|
|
111
110
|
__require,
|
|
@@ -11173,6 +11172,1071 @@ var require_os = __commonJS({
|
|
|
11173
11172
|
}
|
|
11174
11173
|
});
|
|
11175
11174
|
|
|
11175
|
+
// ../../node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/commonjs/index.js
|
|
11176
|
+
var require_commonjs = __commonJS({
|
|
11177
|
+
"../../node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/commonjs/index.js"(exports) {
|
|
11178
|
+
"use strict";
|
|
11179
|
+
init_cjs_shims();
|
|
11180
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
11181
|
+
exports.range = exports.balanced = void 0;
|
|
11182
|
+
var balanced = (a, b, str) => {
|
|
11183
|
+
let ma = a instanceof RegExp ? maybeMatch(a, str) : a, mb = b instanceof RegExp ? maybeMatch(b, str) : b, r = ma !== null && mb != null && (0, exports.range)(ma, mb, str);
|
|
11184
|
+
return r && {
|
|
11185
|
+
start: r[0],
|
|
11186
|
+
end: r[1],
|
|
11187
|
+
pre: str.slice(0, r[0]),
|
|
11188
|
+
body: str.slice(r[0] + ma.length, r[1]),
|
|
11189
|
+
post: str.slice(r[1] + mb.length)
|
|
11190
|
+
};
|
|
11191
|
+
};
|
|
11192
|
+
exports.balanced = balanced;
|
|
11193
|
+
var maybeMatch = (reg, str) => {
|
|
11194
|
+
let m = str.match(reg);
|
|
11195
|
+
return m ? m[0] : null;
|
|
11196
|
+
}, range = (a, b, str) => {
|
|
11197
|
+
let begs, beg, left, right, result, ai = str.indexOf(a), bi = str.indexOf(b, ai + 1), i = ai;
|
|
11198
|
+
if (ai >= 0 && bi > 0) {
|
|
11199
|
+
if (a === b)
|
|
11200
|
+
return [ai, bi];
|
|
11201
|
+
for (begs = [], left = str.length; i >= 0 && !result; ) {
|
|
11202
|
+
if (i === ai)
|
|
11203
|
+
begs.push(i), ai = str.indexOf(a, i + 1);
|
|
11204
|
+
else if (begs.length === 1) {
|
|
11205
|
+
let r = begs.pop();
|
|
11206
|
+
r !== void 0 && (result = [r, bi]);
|
|
11207
|
+
} else
|
|
11208
|
+
beg = begs.pop(), beg !== void 0 && beg < left && (left = beg, right = bi), bi = str.indexOf(b, i + 1);
|
|
11209
|
+
i = ai < bi && ai >= 0 ? ai : bi;
|
|
11210
|
+
}
|
|
11211
|
+
begs.length && right !== void 0 && (result = [left, right]);
|
|
11212
|
+
}
|
|
11213
|
+
return result;
|
|
11214
|
+
};
|
|
11215
|
+
exports.range = range;
|
|
11216
|
+
}
|
|
11217
|
+
});
|
|
11218
|
+
|
|
11219
|
+
// ../../node_modules/.pnpm/brace-expansion@5.0.4/node_modules/brace-expansion/dist/commonjs/index.js
|
|
11220
|
+
var require_commonjs2 = __commonJS({
|
|
11221
|
+
"../../node_modules/.pnpm/brace-expansion@5.0.4/node_modules/brace-expansion/dist/commonjs/index.js"(exports) {
|
|
11222
|
+
"use strict";
|
|
11223
|
+
init_cjs_shims();
|
|
11224
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
11225
|
+
exports.EXPANSION_MAX = void 0;
|
|
11226
|
+
exports.expand = expand;
|
|
11227
|
+
var balanced_match_1 = require_commonjs(), escSlash = "\0SLASH" + Math.random() + "\0", escOpen = "\0OPEN" + Math.random() + "\0", escClose = "\0CLOSE" + Math.random() + "\0", escComma = "\0COMMA" + Math.random() + "\0", escPeriod = "\0PERIOD" + Math.random() + "\0", escSlashPattern = new RegExp(escSlash, "g"), escOpenPattern = new RegExp(escOpen, "g"), escClosePattern = new RegExp(escClose, "g"), escCommaPattern = new RegExp(escComma, "g"), escPeriodPattern = new RegExp(escPeriod, "g"), slashPattern = /\\\\/g, openPattern = /\\{/g, closePattern = /\\}/g, commaPattern = /\\,/g, periodPattern = /\\\./g;
|
|
11228
|
+
exports.EXPANSION_MAX = 1e5;
|
|
11229
|
+
function numeric(str) {
|
|
11230
|
+
return isNaN(str) ? str.charCodeAt(0) : parseInt(str, 10);
|
|
11231
|
+
}
|
|
11232
|
+
function escapeBraces(str) {
|
|
11233
|
+
return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
|
|
11234
|
+
}
|
|
11235
|
+
function unescapeBraces(str) {
|
|
11236
|
+
return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
|
|
11237
|
+
}
|
|
11238
|
+
function parseCommaParts(str) {
|
|
11239
|
+
if (!str)
|
|
11240
|
+
return [""];
|
|
11241
|
+
let parts = [], m = (0, balanced_match_1.balanced)("{", "}", str);
|
|
11242
|
+
if (!m)
|
|
11243
|
+
return str.split(",");
|
|
11244
|
+
let { pre, body, post } = m, p = pre.split(",");
|
|
11245
|
+
p[p.length - 1] += "{" + body + "}";
|
|
11246
|
+
let postParts = parseCommaParts(post);
|
|
11247
|
+
return post.length && (p[p.length - 1] += postParts.shift(), p.push.apply(p, postParts)), parts.push.apply(parts, p), parts;
|
|
11248
|
+
}
|
|
11249
|
+
function expand(str, options = {}) {
|
|
11250
|
+
if (!str)
|
|
11251
|
+
return [];
|
|
11252
|
+
let { max = exports.EXPANSION_MAX } = options;
|
|
11253
|
+
return str.slice(0, 2) === "{}" && (str = "\\{\\}" + str.slice(2)), expand_(escapeBraces(str), max, !0).map(unescapeBraces);
|
|
11254
|
+
}
|
|
11255
|
+
function embrace(str) {
|
|
11256
|
+
return "{" + str + "}";
|
|
11257
|
+
}
|
|
11258
|
+
function isPadded(el) {
|
|
11259
|
+
return /^-?0\d/.test(el);
|
|
11260
|
+
}
|
|
11261
|
+
function lte(i, y) {
|
|
11262
|
+
return i <= y;
|
|
11263
|
+
}
|
|
11264
|
+
function gte(i, y) {
|
|
11265
|
+
return i >= y;
|
|
11266
|
+
}
|
|
11267
|
+
function expand_(str, max, isTop) {
|
|
11268
|
+
let expansions = [], m = (0, balanced_match_1.balanced)("{", "}", str);
|
|
11269
|
+
if (!m)
|
|
11270
|
+
return [str];
|
|
11271
|
+
let pre = m.pre, post = m.post.length ? expand_(m.post, max, !1) : [""];
|
|
11272
|
+
if (/\$$/.test(m.pre))
|
|
11273
|
+
for (let k = 0; k < post.length && k < max; k++) {
|
|
11274
|
+
let expansion = pre + "{" + m.body + "}" + post[k];
|
|
11275
|
+
expansions.push(expansion);
|
|
11276
|
+
}
|
|
11277
|
+
else {
|
|
11278
|
+
let isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body), isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body), isSequence = isNumericSequence || isAlphaSequence, isOptions = m.body.indexOf(",") >= 0;
|
|
11279
|
+
if (!isSequence && !isOptions)
|
|
11280
|
+
return m.post.match(/,(?!,).*\}/) ? (str = m.pre + "{" + m.body + escClose + m.post, expand_(str, max, !0)) : [str];
|
|
11281
|
+
let n;
|
|
11282
|
+
if (isSequence)
|
|
11283
|
+
n = m.body.split(/\.\./);
|
|
11284
|
+
else if (n = parseCommaParts(m.body), n.length === 1 && n[0] !== void 0 && (n = expand_(n[0], max, !1).map(embrace), n.length === 1))
|
|
11285
|
+
return post.map((p) => m.pre + n[0] + p);
|
|
11286
|
+
let N;
|
|
11287
|
+
if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
|
|
11288
|
+
let x = numeric(n[0]), y = numeric(n[1]), width = Math.max(n[0].length, n[1].length), incr = n.length === 3 && n[2] !== void 0 ? Math.abs(numeric(n[2])) : 1, test = lte;
|
|
11289
|
+
y < x && (incr *= -1, test = gte);
|
|
11290
|
+
let pad = n.some(isPadded);
|
|
11291
|
+
N = [];
|
|
11292
|
+
for (let i = x; test(i, y); i += incr) {
|
|
11293
|
+
let c;
|
|
11294
|
+
if (isAlphaSequence)
|
|
11295
|
+
c = String.fromCharCode(i), c === "\\" && (c = "");
|
|
11296
|
+
else if (c = String(i), pad) {
|
|
11297
|
+
let need = width - c.length;
|
|
11298
|
+
if (need > 0) {
|
|
11299
|
+
let z = new Array(need + 1).join("0");
|
|
11300
|
+
i < 0 ? c = "-" + z + c.slice(1) : c = z + c;
|
|
11301
|
+
}
|
|
11302
|
+
}
|
|
11303
|
+
N.push(c);
|
|
11304
|
+
}
|
|
11305
|
+
} else {
|
|
11306
|
+
N = [];
|
|
11307
|
+
for (let j = 0; j < n.length; j++)
|
|
11308
|
+
N.push.apply(N, expand_(n[j], max, !1));
|
|
11309
|
+
}
|
|
11310
|
+
for (let j = 0; j < N.length; j++)
|
|
11311
|
+
for (let k = 0; k < post.length && expansions.length < max; k++) {
|
|
11312
|
+
let expansion = pre + N[j] + post[k];
|
|
11313
|
+
(!isTop || isSequence || expansion) && expansions.push(expansion);
|
|
11314
|
+
}
|
|
11315
|
+
}
|
|
11316
|
+
return expansions;
|
|
11317
|
+
}
|
|
11318
|
+
}
|
|
11319
|
+
});
|
|
11320
|
+
|
|
11321
|
+
// ../../node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
|
|
11322
|
+
var require_assert_valid_pattern = __commonJS({
|
|
11323
|
+
"../../node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"(exports) {
|
|
11324
|
+
"use strict";
|
|
11325
|
+
init_cjs_shims();
|
|
11326
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
11327
|
+
exports.assertValidPattern = void 0;
|
|
11328
|
+
var MAX_PATTERN_LENGTH = 1024 * 64, assertValidPattern = (pattern) => {
|
|
11329
|
+
if (typeof pattern != "string")
|
|
11330
|
+
throw new TypeError("invalid pattern");
|
|
11331
|
+
if (pattern.length > MAX_PATTERN_LENGTH)
|
|
11332
|
+
throw new TypeError("pattern is too long");
|
|
11333
|
+
};
|
|
11334
|
+
exports.assertValidPattern = assertValidPattern;
|
|
11335
|
+
}
|
|
11336
|
+
});
|
|
11337
|
+
|
|
11338
|
+
// ../../node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/brace-expressions.js
|
|
11339
|
+
var require_brace_expressions = __commonJS({
|
|
11340
|
+
"../../node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/brace-expressions.js"(exports) {
|
|
11341
|
+
"use strict";
|
|
11342
|
+
init_cjs_shims();
|
|
11343
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
11344
|
+
exports.parseClass = void 0;
|
|
11345
|
+
var posixClasses = {
|
|
11346
|
+
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", !0],
|
|
11347
|
+
"[:alpha:]": ["\\p{L}\\p{Nl}", !0],
|
|
11348
|
+
"[:ascii:]": ["\\x00-\\x7f", !1],
|
|
11349
|
+
"[:blank:]": ["\\p{Zs}\\t", !0],
|
|
11350
|
+
"[:cntrl:]": ["\\p{Cc}", !0],
|
|
11351
|
+
"[:digit:]": ["\\p{Nd}", !0],
|
|
11352
|
+
"[:graph:]": ["\\p{Z}\\p{C}", !0, !0],
|
|
11353
|
+
"[:lower:]": ["\\p{Ll}", !0],
|
|
11354
|
+
"[:print:]": ["\\p{C}", !0],
|
|
11355
|
+
"[:punct:]": ["\\p{P}", !0],
|
|
11356
|
+
"[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", !0],
|
|
11357
|
+
"[:upper:]": ["\\p{Lu}", !0],
|
|
11358
|
+
"[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", !0],
|
|
11359
|
+
"[:xdigit:]": ["A-Fa-f0-9", !1]
|
|
11360
|
+
}, braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&"), regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), rangesToString = (ranges) => ranges.join(""), parseClass = (glob2, position) => {
|
|
11361
|
+
let pos = position;
|
|
11362
|
+
if (glob2.charAt(pos) !== "[")
|
|
11363
|
+
throw new Error("not in a brace expression");
|
|
11364
|
+
let ranges = [], negs = [], i = pos + 1, sawStart = !1, uflag = !1, escaping = !1, negate = !1, endPos = pos, rangeStart = "";
|
|
11365
|
+
WHILE: for (; i < glob2.length; ) {
|
|
11366
|
+
let c = glob2.charAt(i);
|
|
11367
|
+
if ((c === "!" || c === "^") && i === pos + 1) {
|
|
11368
|
+
negate = !0, i++;
|
|
11369
|
+
continue;
|
|
11370
|
+
}
|
|
11371
|
+
if (c === "]" && sawStart && !escaping) {
|
|
11372
|
+
endPos = i + 1;
|
|
11373
|
+
break;
|
|
11374
|
+
}
|
|
11375
|
+
if (sawStart = !0, c === "\\" && !escaping) {
|
|
11376
|
+
escaping = !0, i++;
|
|
11377
|
+
continue;
|
|
11378
|
+
}
|
|
11379
|
+
if (c === "[" && !escaping) {
|
|
11380
|
+
for (let [cls, [unip, u, neg]] of Object.entries(posixClasses))
|
|
11381
|
+
if (glob2.startsWith(cls, i)) {
|
|
11382
|
+
if (rangeStart)
|
|
11383
|
+
return ["$.", !1, glob2.length - pos, !0];
|
|
11384
|
+
i += cls.length, neg ? negs.push(unip) : ranges.push(unip), uflag = uflag || u;
|
|
11385
|
+
continue WHILE;
|
|
11386
|
+
}
|
|
11387
|
+
}
|
|
11388
|
+
if (escaping = !1, rangeStart) {
|
|
11389
|
+
c > rangeStart ? ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c)) : c === rangeStart && ranges.push(braceEscape(c)), rangeStart = "", i++;
|
|
11390
|
+
continue;
|
|
11391
|
+
}
|
|
11392
|
+
if (glob2.startsWith("-]", i + 1)) {
|
|
11393
|
+
ranges.push(braceEscape(c + "-")), i += 2;
|
|
11394
|
+
continue;
|
|
11395
|
+
}
|
|
11396
|
+
if (glob2.startsWith("-", i + 1)) {
|
|
11397
|
+
rangeStart = c, i += 2;
|
|
11398
|
+
continue;
|
|
11399
|
+
}
|
|
11400
|
+
ranges.push(braceEscape(c)), i++;
|
|
11401
|
+
}
|
|
11402
|
+
if (endPos < i)
|
|
11403
|
+
return ["", !1, 0, !1];
|
|
11404
|
+
if (!ranges.length && !negs.length)
|
|
11405
|
+
return ["$.", !1, glob2.length - pos, !0];
|
|
11406
|
+
if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
|
|
11407
|
+
let r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
|
|
11408
|
+
return [regexpEscape(r), !1, endPos - pos, !1];
|
|
11409
|
+
}
|
|
11410
|
+
let sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]", snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
|
|
11411
|
+
return [ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs, uflag, endPos - pos, !0];
|
|
11412
|
+
};
|
|
11413
|
+
exports.parseClass = parseClass;
|
|
11414
|
+
}
|
|
11415
|
+
});
|
|
11416
|
+
|
|
11417
|
+
// ../../node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/unescape.js
|
|
11418
|
+
var require_unescape = __commonJS({
|
|
11419
|
+
"../../node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/unescape.js"(exports) {
|
|
11420
|
+
"use strict";
|
|
11421
|
+
init_cjs_shims();
|
|
11422
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
11423
|
+
exports.unescape = void 0;
|
|
11424
|
+
var unescape = (s, { windowsPathsNoEscape = !1 } = {}) => windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
11425
|
+
exports.unescape = unescape;
|
|
11426
|
+
}
|
|
11427
|
+
});
|
|
11428
|
+
|
|
11429
|
+
// ../../node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/ast.js
|
|
11430
|
+
var require_ast = __commonJS({
|
|
11431
|
+
"../../node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/ast.js"(exports) {
|
|
11432
|
+
"use strict";
|
|
11433
|
+
init_cjs_shims();
|
|
11434
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
11435
|
+
exports.AST = void 0;
|
|
11436
|
+
var brace_expressions_js_1 = require_brace_expressions(), unescape_js_1 = require_unescape(), types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), isExtglobType = (c) => types.has(c), startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))", startNoDot = "(?!\\.)", addPatternStart = /* @__PURE__ */ new Set(["[", "."]), justDots = /* @__PURE__ */ new Set(["..", "."]), reSpecials = new Set("().*{}+?[]^$\\!"), regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), qmark = "[^/]", star = qmark + "*?", starNoEmpty = qmark + "+?", AST = class _AST {
|
|
11437
|
+
type;
|
|
11438
|
+
#root;
|
|
11439
|
+
#hasMagic;
|
|
11440
|
+
#uflag = !1;
|
|
11441
|
+
#parts = [];
|
|
11442
|
+
#parent;
|
|
11443
|
+
#parentIndex;
|
|
11444
|
+
#negs;
|
|
11445
|
+
#filledNegs = !1;
|
|
11446
|
+
#options;
|
|
11447
|
+
#toString;
|
|
11448
|
+
// set to true if it's an extglob with no children
|
|
11449
|
+
// (which really means one child of '')
|
|
11450
|
+
#emptyExt = !1;
|
|
11451
|
+
constructor(type, parent, options = {}) {
|
|
11452
|
+
this.type = type, type && (this.#hasMagic = !0), this.#parent = parent, this.#root = this.#parent ? this.#parent.#root : this, this.#options = this.#root === this ? options : this.#root.#options, this.#negs = this.#root === this ? [] : this.#root.#negs, type === "!" && !this.#root.#filledNegs && this.#negs.push(this), this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
|
|
11453
|
+
}
|
|
11454
|
+
get hasMagic() {
|
|
11455
|
+
if (this.#hasMagic !== void 0)
|
|
11456
|
+
return this.#hasMagic;
|
|
11457
|
+
for (let p of this.#parts)
|
|
11458
|
+
if (typeof p != "string" && (p.type || p.hasMagic))
|
|
11459
|
+
return this.#hasMagic = !0;
|
|
11460
|
+
return this.#hasMagic;
|
|
11461
|
+
}
|
|
11462
|
+
// reconstructs the pattern
|
|
11463
|
+
toString() {
|
|
11464
|
+
return this.#toString !== void 0 ? this.#toString : this.type ? this.#toString = this.type + "(" + this.#parts.map((p) => String(p)).join("|") + ")" : this.#toString = this.#parts.map((p) => String(p)).join("");
|
|
11465
|
+
}
|
|
11466
|
+
#fillNegs() {
|
|
11467
|
+
if (this !== this.#root)
|
|
11468
|
+
throw new Error("should only call on root");
|
|
11469
|
+
if (this.#filledNegs)
|
|
11470
|
+
return this;
|
|
11471
|
+
this.toString(), this.#filledNegs = !0;
|
|
11472
|
+
let n;
|
|
11473
|
+
for (; n = this.#negs.pop(); ) {
|
|
11474
|
+
if (n.type !== "!")
|
|
11475
|
+
continue;
|
|
11476
|
+
let p = n, pp = p.#parent;
|
|
11477
|
+
for (; pp; ) {
|
|
11478
|
+
for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++)
|
|
11479
|
+
for (let part of n.#parts) {
|
|
11480
|
+
if (typeof part == "string")
|
|
11481
|
+
throw new Error("string part in extglob AST??");
|
|
11482
|
+
part.copyIn(pp.#parts[i]);
|
|
11483
|
+
}
|
|
11484
|
+
p = pp, pp = p.#parent;
|
|
11485
|
+
}
|
|
11486
|
+
}
|
|
11487
|
+
return this;
|
|
11488
|
+
}
|
|
11489
|
+
push(...parts) {
|
|
11490
|
+
for (let p of parts)
|
|
11491
|
+
if (p !== "") {
|
|
11492
|
+
if (typeof p != "string" && !(p instanceof _AST && p.#parent === this))
|
|
11493
|
+
throw new Error("invalid part: " + p);
|
|
11494
|
+
this.#parts.push(p);
|
|
11495
|
+
}
|
|
11496
|
+
}
|
|
11497
|
+
toJSON() {
|
|
11498
|
+
let ret = this.type === null ? this.#parts.slice().map((p) => typeof p == "string" ? p : p.toJSON()) : [this.type, ...this.#parts.map((p) => p.toJSON())];
|
|
11499
|
+
return this.isStart() && !this.type && ret.unshift([]), this.isEnd() && (this === this.#root || this.#root.#filledNegs && this.#parent?.type === "!") && ret.push({}), ret;
|
|
11500
|
+
}
|
|
11501
|
+
isStart() {
|
|
11502
|
+
if (this.#root === this)
|
|
11503
|
+
return !0;
|
|
11504
|
+
if (!this.#parent?.isStart())
|
|
11505
|
+
return !1;
|
|
11506
|
+
if (this.#parentIndex === 0)
|
|
11507
|
+
return !0;
|
|
11508
|
+
let p = this.#parent;
|
|
11509
|
+
for (let i = 0; i < this.#parentIndex; i++) {
|
|
11510
|
+
let pp = p.#parts[i];
|
|
11511
|
+
if (!(pp instanceof _AST && pp.type === "!"))
|
|
11512
|
+
return !1;
|
|
11513
|
+
}
|
|
11514
|
+
return !0;
|
|
11515
|
+
}
|
|
11516
|
+
isEnd() {
|
|
11517
|
+
if (this.#root === this || this.#parent?.type === "!")
|
|
11518
|
+
return !0;
|
|
11519
|
+
if (!this.#parent?.isEnd())
|
|
11520
|
+
return !1;
|
|
11521
|
+
if (!this.type)
|
|
11522
|
+
return this.#parent?.isEnd();
|
|
11523
|
+
let pl = this.#parent ? this.#parent.#parts.length : 0;
|
|
11524
|
+
return this.#parentIndex === pl - 1;
|
|
11525
|
+
}
|
|
11526
|
+
copyIn(part) {
|
|
11527
|
+
typeof part == "string" ? this.push(part) : this.push(part.clone(this));
|
|
11528
|
+
}
|
|
11529
|
+
clone(parent) {
|
|
11530
|
+
let c = new _AST(this.type, parent);
|
|
11531
|
+
for (let p of this.#parts)
|
|
11532
|
+
c.copyIn(p);
|
|
11533
|
+
return c;
|
|
11534
|
+
}
|
|
11535
|
+
static #parseAST(str, ast, pos, opt) {
|
|
11536
|
+
let escaping = !1, inBrace = !1, braceStart = -1, braceNeg = !1;
|
|
11537
|
+
if (ast.type === null) {
|
|
11538
|
+
let i2 = pos, acc2 = "";
|
|
11539
|
+
for (; i2 < str.length; ) {
|
|
11540
|
+
let c = str.charAt(i2++);
|
|
11541
|
+
if (escaping || c === "\\") {
|
|
11542
|
+
escaping = !escaping, acc2 += c;
|
|
11543
|
+
continue;
|
|
11544
|
+
}
|
|
11545
|
+
if (inBrace) {
|
|
11546
|
+
i2 === braceStart + 1 ? (c === "^" || c === "!") && (braceNeg = !0) : c === "]" && !(i2 === braceStart + 2 && braceNeg) && (inBrace = !1), acc2 += c;
|
|
11547
|
+
continue;
|
|
11548
|
+
} else if (c === "[") {
|
|
11549
|
+
inBrace = !0, braceStart = i2, braceNeg = !1, acc2 += c;
|
|
11550
|
+
continue;
|
|
11551
|
+
}
|
|
11552
|
+
if (!opt.noext && isExtglobType(c) && str.charAt(i2) === "(") {
|
|
11553
|
+
ast.push(acc2), acc2 = "";
|
|
11554
|
+
let ext = new _AST(c, ast);
|
|
11555
|
+
i2 = _AST.#parseAST(str, ext, i2, opt), ast.push(ext);
|
|
11556
|
+
continue;
|
|
11557
|
+
}
|
|
11558
|
+
acc2 += c;
|
|
11559
|
+
}
|
|
11560
|
+
return ast.push(acc2), i2;
|
|
11561
|
+
}
|
|
11562
|
+
let i = pos + 1, part = new _AST(null, ast), parts = [], acc = "";
|
|
11563
|
+
for (; i < str.length; ) {
|
|
11564
|
+
let c = str.charAt(i++);
|
|
11565
|
+
if (escaping || c === "\\") {
|
|
11566
|
+
escaping = !escaping, acc += c;
|
|
11567
|
+
continue;
|
|
11568
|
+
}
|
|
11569
|
+
if (inBrace) {
|
|
11570
|
+
i === braceStart + 1 ? (c === "^" || c === "!") && (braceNeg = !0) : c === "]" && !(i === braceStart + 2 && braceNeg) && (inBrace = !1), acc += c;
|
|
11571
|
+
continue;
|
|
11572
|
+
} else if (c === "[") {
|
|
11573
|
+
inBrace = !0, braceStart = i, braceNeg = !1, acc += c;
|
|
11574
|
+
continue;
|
|
11575
|
+
}
|
|
11576
|
+
if (isExtglobType(c) && str.charAt(i) === "(") {
|
|
11577
|
+
part.push(acc), acc = "";
|
|
11578
|
+
let ext = new _AST(c, part);
|
|
11579
|
+
part.push(ext), i = _AST.#parseAST(str, ext, i, opt);
|
|
11580
|
+
continue;
|
|
11581
|
+
}
|
|
11582
|
+
if (c === "|") {
|
|
11583
|
+
part.push(acc), acc = "", parts.push(part), part = new _AST(null, ast);
|
|
11584
|
+
continue;
|
|
11585
|
+
}
|
|
11586
|
+
if (c === ")")
|
|
11587
|
+
return acc === "" && ast.#parts.length === 0 && (ast.#emptyExt = !0), part.push(acc), acc = "", ast.push(...parts, part), i;
|
|
11588
|
+
acc += c;
|
|
11589
|
+
}
|
|
11590
|
+
return ast.type = null, ast.#hasMagic = void 0, ast.#parts = [str.substring(pos - 1)], i;
|
|
11591
|
+
}
|
|
11592
|
+
static fromGlob(pattern, options = {}) {
|
|
11593
|
+
let ast = new _AST(null, void 0, options);
|
|
11594
|
+
return _AST.#parseAST(pattern, ast, 0, options), ast;
|
|
11595
|
+
}
|
|
11596
|
+
// returns the regular expression if there's magic, or the unescaped
|
|
11597
|
+
// string if not.
|
|
11598
|
+
toMMPattern() {
|
|
11599
|
+
if (this !== this.#root)
|
|
11600
|
+
return this.#root.toMMPattern();
|
|
11601
|
+
let glob2 = this.toString(), [re, body, hasMagic, uflag] = this.toRegExpSource();
|
|
11602
|
+
if (!(hasMagic || this.#hasMagic || this.#options.nocase && !this.#options.nocaseMagicOnly && glob2.toUpperCase() !== glob2.toLowerCase()))
|
|
11603
|
+
return body;
|
|
11604
|
+
let flags = (this.#options.nocase ? "i" : "") + (uflag ? "u" : "");
|
|
11605
|
+
return Object.assign(new RegExp(`^${re}$`, flags), {
|
|
11606
|
+
_src: re,
|
|
11607
|
+
_glob: glob2
|
|
11608
|
+
});
|
|
11609
|
+
}
|
|
11610
|
+
get options() {
|
|
11611
|
+
return this.#options;
|
|
11612
|
+
}
|
|
11613
|
+
// returns the string match, the regexp source, whether there's magic
|
|
11614
|
+
// in the regexp (so a regular expression is required) and whether or
|
|
11615
|
+
// not the uflag is needed for the regular expression (for posix classes)
|
|
11616
|
+
// TODO: instead of injecting the start/end at this point, just return
|
|
11617
|
+
// the BODY of the regexp, along with the start/end portions suitable
|
|
11618
|
+
// for binding the start/end in either a joined full-path makeRe context
|
|
11619
|
+
// (where we bind to (^|/), or a standalone matchPart context (where
|
|
11620
|
+
// we bind to ^, and not /). Otherwise slashes get duped!
|
|
11621
|
+
//
|
|
11622
|
+
// In part-matching mode, the start is:
|
|
11623
|
+
// - if not isStart: nothing
|
|
11624
|
+
// - if traversal possible, but not allowed: ^(?!\.\.?$)
|
|
11625
|
+
// - if dots allowed or not possible: ^
|
|
11626
|
+
// - if dots possible and not allowed: ^(?!\.)
|
|
11627
|
+
// end is:
|
|
11628
|
+
// - if not isEnd(): nothing
|
|
11629
|
+
// - else: $
|
|
11630
|
+
//
|
|
11631
|
+
// In full-path matching mode, we put the slash at the START of the
|
|
11632
|
+
// pattern, so start is:
|
|
11633
|
+
// - if first pattern: same as part-matching mode
|
|
11634
|
+
// - if not isStart(): nothing
|
|
11635
|
+
// - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
|
|
11636
|
+
// - if dots allowed or not possible: /
|
|
11637
|
+
// - if dots possible and not allowed: /(?!\.)
|
|
11638
|
+
// end is:
|
|
11639
|
+
// - if last pattern, same as part-matching mode
|
|
11640
|
+
// - else nothing
|
|
11641
|
+
//
|
|
11642
|
+
// Always put the (?:$|/) on negated tails, though, because that has to be
|
|
11643
|
+
// there to bind the end of the negated pattern portion, and it's easier to
|
|
11644
|
+
// just stick it in now rather than try to inject it later in the middle of
|
|
11645
|
+
// the pattern.
|
|
11646
|
+
//
|
|
11647
|
+
// We can just always return the same end, and leave it up to the caller
|
|
11648
|
+
// to know whether it's going to be used joined or in parts.
|
|
11649
|
+
// And, if the start is adjusted slightly, can do the same there:
|
|
11650
|
+
// - if not isStart: nothing
|
|
11651
|
+
// - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
|
|
11652
|
+
// - if dots allowed or not possible: (?:/|^)
|
|
11653
|
+
// - if dots possible and not allowed: (?:/|^)(?!\.)
|
|
11654
|
+
//
|
|
11655
|
+
// But it's better to have a simpler binding without a conditional, for
|
|
11656
|
+
// performance, so probably better to return both start options.
|
|
11657
|
+
//
|
|
11658
|
+
// Then the caller just ignores the end if it's not the first pattern,
|
|
11659
|
+
// and the start always gets applied.
|
|
11660
|
+
//
|
|
11661
|
+
// But that's always going to be $ if it's the ending pattern, or nothing,
|
|
11662
|
+
// so the caller can just attach $ at the end of the pattern when building.
|
|
11663
|
+
//
|
|
11664
|
+
// So the todo is:
|
|
11665
|
+
// - better detect what kind of start is needed
|
|
11666
|
+
// - return both flavors of starting pattern
|
|
11667
|
+
// - attach $ at the end of the pattern when creating the actual RegExp
|
|
11668
|
+
//
|
|
11669
|
+
// Ah, but wait, no, that all only applies to the root when the first pattern
|
|
11670
|
+
// is not an extglob. If the first pattern IS an extglob, then we need all
|
|
11671
|
+
// that dot prevention biz to live in the extglob portions, because eg
|
|
11672
|
+
// +(*|.x*) can match .xy but not .yx.
|
|
11673
|
+
//
|
|
11674
|
+
// So, return the two flavors if it's #root and the first child is not an
|
|
11675
|
+
// AST, otherwise leave it to the child AST to handle it, and there,
|
|
11676
|
+
// use the (?:^|/) style of start binding.
|
|
11677
|
+
//
|
|
11678
|
+
// Even simplified further:
|
|
11679
|
+
// - Since the start for a join is eg /(?!\.) and the start for a part
|
|
11680
|
+
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
|
|
11681
|
+
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
11682
|
+
toRegExpSource(allowDot) {
|
|
11683
|
+
let dot = allowDot ?? !!this.#options.dot;
|
|
11684
|
+
if (this.#root === this && this.#fillNegs(), !this.type) {
|
|
11685
|
+
let noEmpty = this.isStart() && this.isEnd(), src = this.#parts.map((p) => {
|
|
11686
|
+
let [re, _, hasMagic, uflag] = typeof p == "string" ? _AST.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
|
|
11687
|
+
return this.#hasMagic = this.#hasMagic || hasMagic, this.#uflag = this.#uflag || uflag, re;
|
|
11688
|
+
}).join(""), start2 = "";
|
|
11689
|
+
if (this.isStart() && typeof this.#parts[0] == "string" && !(this.#parts.length === 1 && justDots.has(this.#parts[0]))) {
|
|
11690
|
+
let aps = addPatternStart, needNoTrav = (
|
|
11691
|
+
// dots are allowed, and the pattern starts with [ or .
|
|
11692
|
+
dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
|
|
11693
|
+
src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
|
|
11694
|
+
src.startsWith("\\.\\.") && aps.has(src.charAt(4))
|
|
11695
|
+
), needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
|
|
11696
|
+
start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
|
|
11697
|
+
}
|
|
11698
|
+
let end = "";
|
|
11699
|
+
return this.isEnd() && this.#root.#filledNegs && this.#parent?.type === "!" && (end = "(?:$|\\/)"), [
|
|
11700
|
+
start2 + src + end,
|
|
11701
|
+
(0, unescape_js_1.unescape)(src),
|
|
11702
|
+
this.#hasMagic = !!this.#hasMagic,
|
|
11703
|
+
this.#uflag
|
|
11704
|
+
];
|
|
11705
|
+
}
|
|
11706
|
+
let repeated = this.type === "*" || this.type === "+", start = this.type === "!" ? "(?:(?!(?:" : "(?:", body = this.#partsToRegExp(dot);
|
|
11707
|
+
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
11708
|
+
let s = this.toString();
|
|
11709
|
+
return this.#parts = [s], this.type = null, this.#hasMagic = void 0, [s, (0, unescape_js_1.unescape)(this.toString()), !1, !1];
|
|
11710
|
+
}
|
|
11711
|
+
let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : this.#partsToRegExp(!0);
|
|
11712
|
+
bodyDotAllowed === body && (bodyDotAllowed = ""), bodyDotAllowed && (body = `(?:${body})(?:${bodyDotAllowed})*?`);
|
|
11713
|
+
let final = "";
|
|
11714
|
+
if (this.type === "!" && this.#emptyExt)
|
|
11715
|
+
final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
|
|
11716
|
+
else {
|
|
11717
|
+
let close = this.type === "!" ? (
|
|
11718
|
+
// !() must match something,but !(x) can match ''
|
|
11719
|
+
"))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")"
|
|
11720
|
+
) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? ")?" : `)${this.type}`;
|
|
11721
|
+
final = start + body + close;
|
|
11722
|
+
}
|
|
11723
|
+
return [
|
|
11724
|
+
final,
|
|
11725
|
+
(0, unescape_js_1.unescape)(body),
|
|
11726
|
+
this.#hasMagic = !!this.#hasMagic,
|
|
11727
|
+
this.#uflag
|
|
11728
|
+
];
|
|
11729
|
+
}
|
|
11730
|
+
#partsToRegExp(dot) {
|
|
11731
|
+
return this.#parts.map((p) => {
|
|
11732
|
+
if (typeof p == "string")
|
|
11733
|
+
throw new Error("string type in extglob ast??");
|
|
11734
|
+
let [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
|
|
11735
|
+
return this.#uflag = this.#uflag || uflag, re;
|
|
11736
|
+
}).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
|
|
11737
|
+
}
|
|
11738
|
+
static #parseGlob(glob2, hasMagic, noEmpty = !1) {
|
|
11739
|
+
let escaping = !1, re = "", uflag = !1, inStar = !1;
|
|
11740
|
+
for (let i = 0; i < glob2.length; i++) {
|
|
11741
|
+
let c = glob2.charAt(i);
|
|
11742
|
+
if (escaping) {
|
|
11743
|
+
escaping = !1, re += (reSpecials.has(c) ? "\\" : "") + c, inStar = !1;
|
|
11744
|
+
continue;
|
|
11745
|
+
}
|
|
11746
|
+
if (c === "\\") {
|
|
11747
|
+
i === glob2.length - 1 ? re += "\\\\" : escaping = !0;
|
|
11748
|
+
continue;
|
|
11749
|
+
}
|
|
11750
|
+
if (c === "[") {
|
|
11751
|
+
let [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob2, i);
|
|
11752
|
+
if (consumed) {
|
|
11753
|
+
re += src, uflag = uflag || needUflag, i += consumed - 1, hasMagic = hasMagic || magic, inStar = !1;
|
|
11754
|
+
continue;
|
|
11755
|
+
}
|
|
11756
|
+
}
|
|
11757
|
+
if (c === "*") {
|
|
11758
|
+
if (inStar)
|
|
11759
|
+
continue;
|
|
11760
|
+
inStar = !0, re += noEmpty && /^[*]+$/.test(glob2) ? starNoEmpty : star, hasMagic = !0;
|
|
11761
|
+
continue;
|
|
11762
|
+
} else
|
|
11763
|
+
inStar = !1;
|
|
11764
|
+
if (c === "?") {
|
|
11765
|
+
re += qmark, hasMagic = !0;
|
|
11766
|
+
continue;
|
|
11767
|
+
}
|
|
11768
|
+
re += regExpEscape(c);
|
|
11769
|
+
}
|
|
11770
|
+
return [re, (0, unescape_js_1.unescape)(glob2), !!hasMagic, uflag];
|
|
11771
|
+
}
|
|
11772
|
+
};
|
|
11773
|
+
exports.AST = AST;
|
|
11774
|
+
}
|
|
11775
|
+
});
|
|
11776
|
+
|
|
11777
|
+
// ../../node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/escape.js
|
|
11778
|
+
var require_escape = __commonJS({
|
|
11779
|
+
"../../node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/escape.js"(exports) {
|
|
11780
|
+
"use strict";
|
|
11781
|
+
init_cjs_shims();
|
|
11782
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
11783
|
+
exports.escape = void 0;
|
|
11784
|
+
var escape = (s, { windowsPathsNoEscape = !1 } = {}) => windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
11785
|
+
exports.escape = escape;
|
|
11786
|
+
}
|
|
11787
|
+
});
|
|
11788
|
+
|
|
11789
|
+
// ../../node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/index.js
|
|
11790
|
+
var require_commonjs3 = __commonJS({
|
|
11791
|
+
"../../node_modules/.pnpm/minimatch@9.0.6/node_modules/minimatch/dist/commonjs/index.js"(exports) {
|
|
11792
|
+
"use strict";
|
|
11793
|
+
init_cjs_shims();
|
|
11794
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
11795
|
+
exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0;
|
|
11796
|
+
var brace_expansion_1 = require_commonjs2(), assert_valid_pattern_js_1 = require_assert_valid_pattern(), ast_js_1 = require_ast(), escape_js_1 = require_escape(), unescape_js_1 = require_unescape(), minimatch = (p, pattern, options = {}) => ((0, assert_valid_pattern_js_1.assertValidPattern)(pattern), !options.nocomment && pattern.charAt(0) === "#" ? !1 : new Minimatch(pattern, options).match(p));
|
|
11797
|
+
exports.minimatch = minimatch;
|
|
11798
|
+
var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/, starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2), starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2), starDotExtTestNocase = (ext2) => (ext2 = ext2.toLowerCase(), (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2)), starDotExtTestNocaseDot = (ext2) => (ext2 = ext2.toLowerCase(), (f) => f.toLowerCase().endsWith(ext2)), starDotStarRE = /^\*+\.\*+$/, starDotStarTest = (f) => !f.startsWith(".") && f.includes("."), starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes("."), dotStarRE = /^\.\*+$/, dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith("."), starRE = /^\*+$/, starTest = (f) => f.length !== 0 && !f.startsWith("."), starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..", qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/, qmarksTestNocase = ([$0, ext2 = ""]) => {
|
|
11799
|
+
let noext = qmarksTestNoExt([$0]);
|
|
11800
|
+
return ext2 ? (ext2 = ext2.toLowerCase(), (f) => noext(f) && f.toLowerCase().endsWith(ext2)) : noext;
|
|
11801
|
+
}, qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
|
|
11802
|
+
let noext = qmarksTestNoExtDot([$0]);
|
|
11803
|
+
return ext2 ? (ext2 = ext2.toLowerCase(), (f) => noext(f) && f.toLowerCase().endsWith(ext2)) : noext;
|
|
11804
|
+
}, qmarksTestDot = ([$0, ext2 = ""]) => {
|
|
11805
|
+
let noext = qmarksTestNoExtDot([$0]);
|
|
11806
|
+
return ext2 ? (f) => noext(f) && f.endsWith(ext2) : noext;
|
|
11807
|
+
}, qmarksTest = ([$0, ext2 = ""]) => {
|
|
11808
|
+
let noext = qmarksTestNoExt([$0]);
|
|
11809
|
+
return ext2 ? (f) => noext(f) && f.endsWith(ext2) : noext;
|
|
11810
|
+
}, qmarksTestNoExt = ([$0]) => {
|
|
11811
|
+
let len = $0.length;
|
|
11812
|
+
return (f) => f.length === len && !f.startsWith(".");
|
|
11813
|
+
}, qmarksTestNoExtDot = ([$0]) => {
|
|
11814
|
+
let len = $0.length;
|
|
11815
|
+
return (f) => f.length === len && f !== "." && f !== "..";
|
|
11816
|
+
}, defaultPlatform = typeof process == "object" && process ? typeof process.env == "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix", path3 = {
|
|
11817
|
+
win32: { sep: "\\" },
|
|
11818
|
+
posix: { sep: "/" }
|
|
11819
|
+
};
|
|
11820
|
+
exports.sep = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
|
|
11821
|
+
exports.minimatch.sep = exports.sep;
|
|
11822
|
+
exports.GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
|
|
11823
|
+
exports.minimatch.GLOBSTAR = exports.GLOBSTAR;
|
|
11824
|
+
var qmark = "[^/]", star = qmark + "*?", twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?", twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?", filter = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options);
|
|
11825
|
+
exports.filter = filter;
|
|
11826
|
+
exports.minimatch.filter = exports.filter;
|
|
11827
|
+
var ext = (a, b = {}) => Object.assign({}, a, b), defaults = (def) => {
|
|
11828
|
+
if (!def || typeof def != "object" || !Object.keys(def).length)
|
|
11829
|
+
return exports.minimatch;
|
|
11830
|
+
let orig = exports.minimatch;
|
|
11831
|
+
return Object.assign((p, pattern, options = {}) => orig(p, pattern, ext(def, options)), {
|
|
11832
|
+
Minimatch: class extends orig.Minimatch {
|
|
11833
|
+
constructor(pattern, options = {}) {
|
|
11834
|
+
super(pattern, ext(def, options));
|
|
11835
|
+
}
|
|
11836
|
+
static defaults(options) {
|
|
11837
|
+
return orig.defaults(ext(def, options)).Minimatch;
|
|
11838
|
+
}
|
|
11839
|
+
},
|
|
11840
|
+
AST: class extends orig.AST {
|
|
11841
|
+
/* c8 ignore start */
|
|
11842
|
+
constructor(type, parent, options = {}) {
|
|
11843
|
+
super(type, parent, ext(def, options));
|
|
11844
|
+
}
|
|
11845
|
+
/* c8 ignore stop */
|
|
11846
|
+
static fromGlob(pattern, options = {}) {
|
|
11847
|
+
return orig.AST.fromGlob(pattern, ext(def, options));
|
|
11848
|
+
}
|
|
11849
|
+
},
|
|
11850
|
+
unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
|
|
11851
|
+
escape: (s, options = {}) => orig.escape(s, ext(def, options)),
|
|
11852
|
+
filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
|
|
11853
|
+
defaults: (options) => orig.defaults(ext(def, options)),
|
|
11854
|
+
makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
|
|
11855
|
+
braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
|
|
11856
|
+
match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
|
|
11857
|
+
sep: orig.sep,
|
|
11858
|
+
GLOBSTAR: exports.GLOBSTAR
|
|
11859
|
+
});
|
|
11860
|
+
};
|
|
11861
|
+
exports.defaults = defaults;
|
|
11862
|
+
exports.minimatch.defaults = exports.defaults;
|
|
11863
|
+
var braceExpand = (pattern, options = {}) => ((0, assert_valid_pattern_js_1.assertValidPattern)(pattern), options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern) ? [pattern] : (0, brace_expansion_1.expand)(pattern));
|
|
11864
|
+
exports.braceExpand = braceExpand;
|
|
11865
|
+
exports.minimatch.braceExpand = exports.braceExpand;
|
|
11866
|
+
var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
11867
|
+
exports.makeRe = makeRe;
|
|
11868
|
+
exports.minimatch.makeRe = exports.makeRe;
|
|
11869
|
+
var match = (list, pattern, options = {}) => {
|
|
11870
|
+
let mm = new Minimatch(pattern, options);
|
|
11871
|
+
return list = list.filter((f) => mm.match(f)), mm.options.nonull && !list.length && list.push(pattern), list;
|
|
11872
|
+
};
|
|
11873
|
+
exports.match = match;
|
|
11874
|
+
exports.minimatch.match = exports.match;
|
|
11875
|
+
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/, regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), Minimatch = class {
|
|
11876
|
+
options;
|
|
11877
|
+
set;
|
|
11878
|
+
pattern;
|
|
11879
|
+
windowsPathsNoEscape;
|
|
11880
|
+
nonegate;
|
|
11881
|
+
negate;
|
|
11882
|
+
comment;
|
|
11883
|
+
empty;
|
|
11884
|
+
preserveMultipleSlashes;
|
|
11885
|
+
partial;
|
|
11886
|
+
globSet;
|
|
11887
|
+
globParts;
|
|
11888
|
+
nocase;
|
|
11889
|
+
isWindows;
|
|
11890
|
+
platform;
|
|
11891
|
+
windowsNoMagicRoot;
|
|
11892
|
+
regexp;
|
|
11893
|
+
constructor(pattern, options = {}) {
|
|
11894
|
+
(0, assert_valid_pattern_js_1.assertValidPattern)(pattern), options = options || {}, this.options = options, this.pattern = pattern, this.platform = options.platform || defaultPlatform, this.isWindows = this.platform === "win32", this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === !1, this.windowsPathsNoEscape && (this.pattern = this.pattern.replace(/\\/g, "/")), this.preserveMultipleSlashes = !!options.preserveMultipleSlashes, this.regexp = null, this.negate = !1, this.nonegate = !!options.nonegate, this.comment = !1, this.empty = !1, this.partial = !!options.partial, this.nocase = !!this.options.nocase, this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase), this.globSet = [], this.globParts = [], this.set = [], this.make();
|
|
11895
|
+
}
|
|
11896
|
+
hasMagic() {
|
|
11897
|
+
if (this.options.magicalBraces && this.set.length > 1)
|
|
11898
|
+
return !0;
|
|
11899
|
+
for (let pattern of this.set)
|
|
11900
|
+
for (let part of pattern)
|
|
11901
|
+
if (typeof part != "string")
|
|
11902
|
+
return !0;
|
|
11903
|
+
return !1;
|
|
11904
|
+
}
|
|
11905
|
+
debug(..._) {
|
|
11906
|
+
}
|
|
11907
|
+
make() {
|
|
11908
|
+
let pattern = this.pattern, options = this.options;
|
|
11909
|
+
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
11910
|
+
this.comment = !0;
|
|
11911
|
+
return;
|
|
11912
|
+
}
|
|
11913
|
+
if (!pattern) {
|
|
11914
|
+
this.empty = !0;
|
|
11915
|
+
return;
|
|
11916
|
+
}
|
|
11917
|
+
this.parseNegate(), this.globSet = [...new Set(this.braceExpand())], options.debug && (this.debug = (...args) => console.error(...args)), this.debug(this.pattern, this.globSet);
|
|
11918
|
+
let rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
|
|
11919
|
+
this.globParts = this.preprocess(rawGlobParts), this.debug(this.pattern, this.globParts);
|
|
11920
|
+
let set = this.globParts.map((s, _, __) => {
|
|
11921
|
+
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
11922
|
+
let isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]), isDrive = /^[a-z]:/i.test(s[0]);
|
|
11923
|
+
if (isUNC)
|
|
11924
|
+
return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
|
|
11925
|
+
if (isDrive)
|
|
11926
|
+
return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
|
|
11927
|
+
}
|
|
11928
|
+
return s.map((ss) => this.parse(ss));
|
|
11929
|
+
});
|
|
11930
|
+
if (this.debug(this.pattern, set), this.set = set.filter((s) => s.indexOf(!1) === -1), this.isWindows)
|
|
11931
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
11932
|
+
let p = this.set[i];
|
|
11933
|
+
p[0] === "" && p[1] === "" && this.globParts[i][2] === "?" && typeof p[3] == "string" && /^[a-z]:$/i.test(p[3]) && (p[2] = "?");
|
|
11934
|
+
}
|
|
11935
|
+
this.debug(this.pattern, this.set);
|
|
11936
|
+
}
|
|
11937
|
+
// various transforms to equivalent pattern sets that are
|
|
11938
|
+
// faster to process in a filesystem walk. The goal is to
|
|
11939
|
+
// eliminate what we can, and push all ** patterns as far
|
|
11940
|
+
// to the right as possible, even if it increases the number
|
|
11941
|
+
// of patterns that we have to process.
|
|
11942
|
+
preprocess(globParts) {
|
|
11943
|
+
if (this.options.noglobstar)
|
|
11944
|
+
for (let i = 0; i < globParts.length; i++)
|
|
11945
|
+
for (let j = 0; j < globParts[i].length; j++)
|
|
11946
|
+
globParts[i][j] === "**" && (globParts[i][j] = "*");
|
|
11947
|
+
let { optimizationLevel = 1 } = this.options;
|
|
11948
|
+
return optimizationLevel >= 2 ? (globParts = this.firstPhasePreProcess(globParts), globParts = this.secondPhasePreProcess(globParts)) : optimizationLevel >= 1 ? globParts = this.levelOneOptimize(globParts) : globParts = this.adjascentGlobstarOptimize(globParts), globParts;
|
|
11949
|
+
}
|
|
11950
|
+
// just get rid of adjascent ** portions
|
|
11951
|
+
adjascentGlobstarOptimize(globParts) {
|
|
11952
|
+
return globParts.map((parts) => {
|
|
11953
|
+
let gs = -1;
|
|
11954
|
+
for (; (gs = parts.indexOf("**", gs + 1)) !== -1; ) {
|
|
11955
|
+
let i = gs;
|
|
11956
|
+
for (; parts[i + 1] === "**"; )
|
|
11957
|
+
i++;
|
|
11958
|
+
i !== gs && parts.splice(gs, i - gs);
|
|
11959
|
+
}
|
|
11960
|
+
return parts;
|
|
11961
|
+
});
|
|
11962
|
+
}
|
|
11963
|
+
// get rid of adjascent ** and resolve .. portions
|
|
11964
|
+
levelOneOptimize(globParts) {
|
|
11965
|
+
return globParts.map((parts) => (parts = parts.reduce((set, part) => {
|
|
11966
|
+
let prev = set[set.length - 1];
|
|
11967
|
+
return part === "**" && prev === "**" ? set : part === ".." && prev && prev !== ".." && prev !== "." && prev !== "**" ? (set.pop(), set) : (set.push(part), set);
|
|
11968
|
+
}, []), parts.length === 0 ? [""] : parts));
|
|
11969
|
+
}
|
|
11970
|
+
levelTwoFileOptimize(parts) {
|
|
11971
|
+
Array.isArray(parts) || (parts = this.slashSplit(parts));
|
|
11972
|
+
let didSomething = !1;
|
|
11973
|
+
do {
|
|
11974
|
+
if (didSomething = !1, !this.preserveMultipleSlashes) {
|
|
11975
|
+
for (let i = 1; i < parts.length - 1; i++) {
|
|
11976
|
+
let p = parts[i];
|
|
11977
|
+
i === 1 && p === "" && parts[0] === "" || (p === "." || p === "") && (didSomething = !0, parts.splice(i, 1), i--);
|
|
11978
|
+
}
|
|
11979
|
+
parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "") && (didSomething = !0, parts.pop());
|
|
11980
|
+
}
|
|
11981
|
+
let dd = 0;
|
|
11982
|
+
for (; (dd = parts.indexOf("..", dd + 1)) !== -1; ) {
|
|
11983
|
+
let p = parts[dd - 1];
|
|
11984
|
+
p && p !== "." && p !== ".." && p !== "**" && (didSomething = !0, parts.splice(dd - 1, 2), dd -= 2);
|
|
11985
|
+
}
|
|
11986
|
+
} while (didSomething);
|
|
11987
|
+
return parts.length === 0 ? [""] : parts;
|
|
11988
|
+
}
|
|
11989
|
+
// First phase: single-pattern processing
|
|
11990
|
+
// <pre> is 1 or more portions
|
|
11991
|
+
// <rest> is 1 or more portions
|
|
11992
|
+
// <p> is any portion other than ., .., '', or **
|
|
11993
|
+
// <e> is . or ''
|
|
11994
|
+
//
|
|
11995
|
+
// **/.. is *brutal* for filesystem walking performance, because
|
|
11996
|
+
// it effectively resets the recursive walk each time it occurs,
|
|
11997
|
+
// and ** cannot be reduced out by a .. pattern part like a regexp
|
|
11998
|
+
// or most strings (other than .., ., and '') can be.
|
|
11999
|
+
//
|
|
12000
|
+
// <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
|
|
12001
|
+
// <pre>/<e>/<rest> -> <pre>/<rest>
|
|
12002
|
+
// <pre>/<p>/../<rest> -> <pre>/<rest>
|
|
12003
|
+
// **/**/<rest> -> **/<rest>
|
|
12004
|
+
//
|
|
12005
|
+
// **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
|
|
12006
|
+
// this WOULD be allowed if ** did follow symlinks, or * didn't
|
|
12007
|
+
firstPhasePreProcess(globParts) {
|
|
12008
|
+
let didSomething = !1;
|
|
12009
|
+
do {
|
|
12010
|
+
didSomething = !1;
|
|
12011
|
+
for (let parts of globParts) {
|
|
12012
|
+
let gs = -1;
|
|
12013
|
+
for (; (gs = parts.indexOf("**", gs + 1)) !== -1; ) {
|
|
12014
|
+
let gss = gs;
|
|
12015
|
+
for (; parts[gss + 1] === "**"; )
|
|
12016
|
+
gss++;
|
|
12017
|
+
gss > gs && parts.splice(gs + 1, gss - gs);
|
|
12018
|
+
let next = parts[gs + 1], p = parts[gs + 2], p2 = parts[gs + 3];
|
|
12019
|
+
if (next !== ".." || !p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..")
|
|
12020
|
+
continue;
|
|
12021
|
+
didSomething = !0, parts.splice(gs, 1);
|
|
12022
|
+
let other = parts.slice(0);
|
|
12023
|
+
other[gs] = "**", globParts.push(other), gs--;
|
|
12024
|
+
}
|
|
12025
|
+
if (!this.preserveMultipleSlashes) {
|
|
12026
|
+
for (let i = 1; i < parts.length - 1; i++) {
|
|
12027
|
+
let p = parts[i];
|
|
12028
|
+
i === 1 && p === "" && parts[0] === "" || (p === "." || p === "") && (didSomething = !0, parts.splice(i, 1), i--);
|
|
12029
|
+
}
|
|
12030
|
+
parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "") && (didSomething = !0, parts.pop());
|
|
12031
|
+
}
|
|
12032
|
+
let dd = 0;
|
|
12033
|
+
for (; (dd = parts.indexOf("..", dd + 1)) !== -1; ) {
|
|
12034
|
+
let p = parts[dd - 1];
|
|
12035
|
+
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
12036
|
+
didSomething = !0;
|
|
12037
|
+
let splin = dd === 1 && parts[dd + 1] === "**" ? ["."] : [];
|
|
12038
|
+
parts.splice(dd - 1, 2, ...splin), parts.length === 0 && parts.push(""), dd -= 2;
|
|
12039
|
+
}
|
|
12040
|
+
}
|
|
12041
|
+
}
|
|
12042
|
+
} while (didSomething);
|
|
12043
|
+
return globParts;
|
|
12044
|
+
}
|
|
12045
|
+
// second phase: multi-pattern dedupes
|
|
12046
|
+
// {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
|
|
12047
|
+
// {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
|
|
12048
|
+
// {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
|
|
12049
|
+
//
|
|
12050
|
+
// {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
|
|
12051
|
+
// ^-- not valid because ** doens't follow symlinks
|
|
12052
|
+
secondPhasePreProcess(globParts) {
|
|
12053
|
+
for (let i = 0; i < globParts.length - 1; i++)
|
|
12054
|
+
for (let j = i + 1; j < globParts.length; j++) {
|
|
12055
|
+
let matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
|
|
12056
|
+
if (matched) {
|
|
12057
|
+
globParts[i] = [], globParts[j] = matched;
|
|
12058
|
+
break;
|
|
12059
|
+
}
|
|
12060
|
+
}
|
|
12061
|
+
return globParts.filter((gs) => gs.length);
|
|
12062
|
+
}
|
|
12063
|
+
partsMatch(a, b, emptyGSMatch = !1) {
|
|
12064
|
+
let ai = 0, bi = 0, result = [], which = "";
|
|
12065
|
+
for (; ai < a.length && bi < b.length; )
|
|
12066
|
+
if (a[ai] === b[bi])
|
|
12067
|
+
result.push(which === "b" ? b[bi] : a[ai]), ai++, bi++;
|
|
12068
|
+
else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1])
|
|
12069
|
+
result.push(a[ai]), ai++;
|
|
12070
|
+
else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1])
|
|
12071
|
+
result.push(b[bi]), bi++;
|
|
12072
|
+
else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
|
|
12073
|
+
if (which === "b")
|
|
12074
|
+
return !1;
|
|
12075
|
+
which = "a", result.push(a[ai]), ai++, bi++;
|
|
12076
|
+
} else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
|
|
12077
|
+
if (which === "a")
|
|
12078
|
+
return !1;
|
|
12079
|
+
which = "b", result.push(b[bi]), ai++, bi++;
|
|
12080
|
+
} else
|
|
12081
|
+
return !1;
|
|
12082
|
+
return a.length === b.length && result;
|
|
12083
|
+
}
|
|
12084
|
+
parseNegate() {
|
|
12085
|
+
if (this.nonegate)
|
|
12086
|
+
return;
|
|
12087
|
+
let pattern = this.pattern, negate = !1, negateOffset = 0;
|
|
12088
|
+
for (let i = 0; i < pattern.length && pattern.charAt(i) === "!"; i++)
|
|
12089
|
+
negate = !negate, negateOffset++;
|
|
12090
|
+
negateOffset && (this.pattern = pattern.slice(negateOffset)), this.negate = negate;
|
|
12091
|
+
}
|
|
12092
|
+
// set partial to true to test if, for example,
|
|
12093
|
+
// "/a/b" matches the start of "/*/b/*/d"
|
|
12094
|
+
// Partial means, if you run out of file before you run
|
|
12095
|
+
// out of pattern, then that's fine, as long as all
|
|
12096
|
+
// the parts match.
|
|
12097
|
+
matchOne(file, pattern, partial = !1) {
|
|
12098
|
+
let options = this.options;
|
|
12099
|
+
if (this.isWindows) {
|
|
12100
|
+
let fileDrive = typeof file[0] == "string" && /^[a-z]:$/i.test(file[0]), fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]), patternDrive = typeof pattern[0] == "string" && /^[a-z]:$/i.test(pattern[0]), patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] == "string" && /^[a-z]:$/i.test(pattern[3]), fdi = fileUNC ? 3 : fileDrive ? 0 : void 0, pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
12101
|
+
if (typeof fdi == "number" && typeof pdi == "number") {
|
|
12102
|
+
let [fd, pd] = [file[fdi], pattern[pdi]];
|
|
12103
|
+
fd.toLowerCase() === pd.toLowerCase() && (pattern[pdi] = fd, pdi > fdi ? pattern = pattern.slice(pdi) : fdi > pdi && (file = file.slice(fdi)));
|
|
12104
|
+
}
|
|
12105
|
+
}
|
|
12106
|
+
let { optimizationLevel = 1 } = this.options;
|
|
12107
|
+
optimizationLevel >= 2 && (file = this.levelTwoFileOptimize(file)), this.debug("matchOne", this, { file, pattern }), this.debug("matchOne", file.length, pattern.length);
|
|
12108
|
+
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
12109
|
+
this.debug("matchOne loop");
|
|
12110
|
+
var p = pattern[pi], f = file[fi];
|
|
12111
|
+
if (this.debug(pattern, p, f), p === !1)
|
|
12112
|
+
return !1;
|
|
12113
|
+
if (p === exports.GLOBSTAR) {
|
|
12114
|
+
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
12115
|
+
var fr = fi, pr = pi + 1;
|
|
12116
|
+
if (pr === pl) {
|
|
12117
|
+
for (this.debug("** at the end"); fi < fl; fi++)
|
|
12118
|
+
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
|
|
12119
|
+
return !1;
|
|
12120
|
+
return !0;
|
|
12121
|
+
}
|
|
12122
|
+
for (; fr < fl; ) {
|
|
12123
|
+
var swallowee = file[fr];
|
|
12124
|
+
if (this.debug(`
|
|
12125
|
+
globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr), pattern.slice(pr), partial))
|
|
12126
|
+
return this.debug("globstar found match!", fr, fl, swallowee), !0;
|
|
12127
|
+
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
12128
|
+
this.debug("dot detected!", file, fr, pattern, pr);
|
|
12129
|
+
break;
|
|
12130
|
+
}
|
|
12131
|
+
this.debug("globstar swallow a segment, and continue"), fr++;
|
|
12132
|
+
}
|
|
12133
|
+
return !!(partial && (this.debug(`
|
|
12134
|
+
>>> no match, partial?`, file, fr, pattern, pr), fr === fl));
|
|
12135
|
+
}
|
|
12136
|
+
let hit;
|
|
12137
|
+
if (typeof p == "string" ? (hit = f === p, this.debug("string match", p, f, hit)) : (hit = p.test(f), this.debug("pattern match", p, f, hit)), !hit)
|
|
12138
|
+
return !1;
|
|
12139
|
+
}
|
|
12140
|
+
if (fi === fl && pi === pl)
|
|
12141
|
+
return !0;
|
|
12142
|
+
if (fi === fl)
|
|
12143
|
+
return partial;
|
|
12144
|
+
if (pi === pl)
|
|
12145
|
+
return fi === fl - 1 && file[fi] === "";
|
|
12146
|
+
throw new Error("wtf?");
|
|
12147
|
+
}
|
|
12148
|
+
braceExpand() {
|
|
12149
|
+
return (0, exports.braceExpand)(this.pattern, this.options);
|
|
12150
|
+
}
|
|
12151
|
+
parse(pattern) {
|
|
12152
|
+
(0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
|
|
12153
|
+
let options = this.options;
|
|
12154
|
+
if (pattern === "**")
|
|
12155
|
+
return exports.GLOBSTAR;
|
|
12156
|
+
if (pattern === "")
|
|
12157
|
+
return "";
|
|
12158
|
+
let m, fastTest = null;
|
|
12159
|
+
(m = pattern.match(starRE)) ? fastTest = options.dot ? starTestDot : starTest : (m = pattern.match(starDotExtRE)) ? fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]) : (m = pattern.match(qmarksRE)) ? fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m) : (m = pattern.match(starDotStarRE)) ? fastTest = options.dot ? starDotStarTestDot : starDotStarTest : (m = pattern.match(dotStarRE)) && (fastTest = dotStarTest);
|
|
12160
|
+
let re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
|
|
12161
|
+
return fastTest && typeof re == "object" && Reflect.defineProperty(re, "test", { value: fastTest }), re;
|
|
12162
|
+
}
|
|
12163
|
+
makeRe() {
|
|
12164
|
+
if (this.regexp || this.regexp === !1)
|
|
12165
|
+
return this.regexp;
|
|
12166
|
+
let set = this.set;
|
|
12167
|
+
if (!set.length)
|
|
12168
|
+
return this.regexp = !1, this.regexp;
|
|
12169
|
+
let options = this.options, twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot, flags = new Set(options.nocase ? ["i"] : []), re = set.map((pattern) => {
|
|
12170
|
+
let pp = pattern.map((p) => {
|
|
12171
|
+
if (p instanceof RegExp)
|
|
12172
|
+
for (let f of p.flags.split(""))
|
|
12173
|
+
flags.add(f);
|
|
12174
|
+
return typeof p == "string" ? regExpEscape(p) : p === exports.GLOBSTAR ? exports.GLOBSTAR : p._src;
|
|
12175
|
+
});
|
|
12176
|
+
return pp.forEach((p, i) => {
|
|
12177
|
+
let next = pp[i + 1], prev = pp[i - 1];
|
|
12178
|
+
p !== exports.GLOBSTAR || prev === exports.GLOBSTAR || (prev === void 0 ? next !== void 0 && next !== exports.GLOBSTAR ? pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next : pp[i] = twoStar : next === void 0 ? pp[i - 1] = prev + "(?:\\/|" + twoStar + ")?" : next !== exports.GLOBSTAR && (pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next, pp[i + 1] = exports.GLOBSTAR));
|
|
12179
|
+
}), pp.filter((p) => p !== exports.GLOBSTAR).join("/");
|
|
12180
|
+
}).join("|"), [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
12181
|
+
re = "^" + open + re + close + "$", this.negate && (re = "^(?!" + re + ").+$");
|
|
12182
|
+
try {
|
|
12183
|
+
this.regexp = new RegExp(re, [...flags].join(""));
|
|
12184
|
+
} catch {
|
|
12185
|
+
this.regexp = !1;
|
|
12186
|
+
}
|
|
12187
|
+
return this.regexp;
|
|
12188
|
+
}
|
|
12189
|
+
slashSplit(p) {
|
|
12190
|
+
return this.preserveMultipleSlashes ? p.split("/") : this.isWindows && /^\/\/[^\/]+/.test(p) ? ["", ...p.split(/\/+/)] : p.split(/\/+/);
|
|
12191
|
+
}
|
|
12192
|
+
match(f, partial = this.partial) {
|
|
12193
|
+
if (this.debug("match", f, this.pattern), this.comment)
|
|
12194
|
+
return !1;
|
|
12195
|
+
if (this.empty)
|
|
12196
|
+
return f === "";
|
|
12197
|
+
if (f === "/" && partial)
|
|
12198
|
+
return !0;
|
|
12199
|
+
let options = this.options;
|
|
12200
|
+
this.isWindows && (f = f.split("\\").join("/"));
|
|
12201
|
+
let ff = this.slashSplit(f);
|
|
12202
|
+
this.debug(this.pattern, "split", ff);
|
|
12203
|
+
let set = this.set;
|
|
12204
|
+
this.debug(this.pattern, "set", set);
|
|
12205
|
+
let filename = ff[ff.length - 1];
|
|
12206
|
+
if (!filename)
|
|
12207
|
+
for (let i = ff.length - 2; !filename && i >= 0; i--)
|
|
12208
|
+
filename = ff[i];
|
|
12209
|
+
for (let i = 0; i < set.length; i++) {
|
|
12210
|
+
let pattern = set[i], file = ff;
|
|
12211
|
+
if (options.matchBase && pattern.length === 1 && (file = [filename]), this.matchOne(file, pattern, partial))
|
|
12212
|
+
return options.flipNegate ? !0 : !this.negate;
|
|
12213
|
+
}
|
|
12214
|
+
return options.flipNegate ? !1 : this.negate;
|
|
12215
|
+
}
|
|
12216
|
+
static defaults(def) {
|
|
12217
|
+
return exports.minimatch.defaults(def).Minimatch;
|
|
12218
|
+
}
|
|
12219
|
+
};
|
|
12220
|
+
exports.Minimatch = Minimatch;
|
|
12221
|
+
var ast_js_2 = require_ast();
|
|
12222
|
+
Object.defineProperty(exports, "AST", { enumerable: !0, get: function() {
|
|
12223
|
+
return ast_js_2.AST;
|
|
12224
|
+
} });
|
|
12225
|
+
var escape_js_2 = require_escape();
|
|
12226
|
+
Object.defineProperty(exports, "escape", { enumerable: !0, get: function() {
|
|
12227
|
+
return escape_js_2.escape;
|
|
12228
|
+
} });
|
|
12229
|
+
var unescape_js_2 = require_unescape();
|
|
12230
|
+
Object.defineProperty(exports, "unescape", { enumerable: !0, get: function() {
|
|
12231
|
+
return unescape_js_2.unescape;
|
|
12232
|
+
} });
|
|
12233
|
+
exports.minimatch.AST = ast_js_1.AST;
|
|
12234
|
+
exports.minimatch.Minimatch = Minimatch;
|
|
12235
|
+
exports.minimatch.escape = escape_js_1.escape;
|
|
12236
|
+
exports.minimatch.unescape = unescape_js_1.unescape;
|
|
12237
|
+
}
|
|
12238
|
+
});
|
|
12239
|
+
|
|
11176
12240
|
// ../../node_modules/.pnpm/@oclif+core@3.26.5/node_modules/@oclif/core/lib/util/aggregate-flags.js
|
|
11177
12241
|
var require_aggregate_flags = __commonJS({
|
|
11178
12242
|
"../../node_modules/.pnpm/@oclif+core@3.26.5/node_modules/@oclif/core/lib/util/aggregate-flags.js"(exports) {
|
|
@@ -11661,7 +12725,7 @@ var require_plugin_loader = __commonJS({
|
|
|
11661
12725
|
return __setModuleDefault(result, mod), result;
|
|
11662
12726
|
};
|
|
11663
12727
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
11664
|
-
var minimatch_1 =
|
|
12728
|
+
var minimatch_1 = require_commonjs3(), node_path_1 = __require("node:path"), performance_1 = require_performance(), fs_1 = require_fs(), util_1 = require_util(), Plugin = __importStar(require_plugin()), util_2 = require_util2(), debug2 = (0, util_2.Debug)();
|
|
11665
12729
|
function findMatchingDependencies(dependencies, patterns) {
|
|
11666
12730
|
return Object.keys(dependencies).filter((p) => patterns.some((w) => (0, minimatch_1.minimatch)(p, w)));
|
|
11667
12731
|
}
|
|
@@ -14044,7 +15108,7 @@ var require_main2 = __commonJS({
|
|
|
14044
15108
|
}
|
|
14045
15109
|
});
|
|
14046
15110
|
|
|
14047
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15111
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/import-utils.js
|
|
14048
15112
|
init_cjs_shims();
|
|
14049
15113
|
import { createRequire } from "node:module";
|
|
14050
15114
|
import { pathToFileURL } from "node:url";
|
|
@@ -14069,13 +15133,13 @@ function importLocal(packageName, path3) {
|
|
|
14069
15133
|
return import(pathToFileURL(realPath).href);
|
|
14070
15134
|
}
|
|
14071
15135
|
|
|
14072
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15136
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
14073
15137
|
init_cjs_shims();
|
|
14074
15138
|
import path from "node:path";
|
|
14075
15139
|
import { EventEmitter } from "node:events";
|
|
14076
15140
|
import { ReadableStream } from "node:stream/web";
|
|
14077
15141
|
|
|
14078
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15142
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/graphiql-url.js
|
|
14079
15143
|
init_cjs_shims();
|
|
14080
15144
|
function getGraphiQLUrl({
|
|
14081
15145
|
host = "",
|
|
@@ -14089,7 +15153,7 @@ function getGraphiQLUrl({
|
|
|
14089
15153
|
return url;
|
|
14090
15154
|
}
|
|
14091
15155
|
|
|
14092
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15156
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
14093
15157
|
var import_source_map_support = __toESM(require_source_map_support(), 1), H2O_BINDING_NAME = "H2O_LOG_EVENT", ResponseConstructor;
|
|
14094
15158
|
function setConstructors(constructors) {
|
|
14095
15159
|
ResponseConstructor = constructors.Response;
|
|
@@ -14190,7 +15254,7 @@ function handleDebugNetworkRequest(request) {
|
|
|
14190
15254
|
return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
|
|
14191
15255
|
}
|
|
14192
15256
|
|
|
14193
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15257
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/common.js
|
|
14194
15258
|
init_cjs_shims();
|
|
14195
15259
|
var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
|
|
14196
15260
|
function handleMiniOxygenImportFail() {
|
|
@@ -14224,33 +15288,33 @@ function logRequestLine({
|
|
|
14224
15288
|
}
|
|
14225
15289
|
}
|
|
14226
15290
|
|
|
14227
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15291
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
14228
15292
|
init_cjs_shims();
|
|
14229
15293
|
|
|
14230
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15294
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
14231
15295
|
init_cjs_shims();
|
|
14232
15296
|
var import_core3 = __toESM(require_lib2(), 1);
|
|
14233
15297
|
|
|
14234
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15298
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
14235
15299
|
init_cjs_shims();
|
|
14236
15300
|
var import_core2 = __toESM(require_lib2(), 1);
|
|
14237
15301
|
|
|
14238
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15302
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
14239
15303
|
init_cjs_shims();
|
|
14240
15304
|
var import_core = __toESM(require_lib2(), 1);
|
|
14241
15305
|
|
|
14242
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15306
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
14243
15307
|
init_cjs_shims();
|
|
14244
15308
|
|
|
14245
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15309
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
14246
15310
|
init_cjs_shims();
|
|
14247
15311
|
|
|
14248
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15312
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
14249
15313
|
init_cjs_shims();
|
|
14250
15314
|
import { fileURLToPath } from "node:url";
|
|
14251
15315
|
import { existsSync } from "node:fs";
|
|
14252
15316
|
|
|
14253
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15317
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/process.js
|
|
14254
15318
|
init_cjs_shims();
|
|
14255
15319
|
import { exec } from "node:child_process";
|
|
14256
15320
|
import { promisify } from "node:util";
|
|
@@ -14262,7 +15326,7 @@ function supressNodeExperimentalWarnings() {
|
|
|
14262
15326
|
}));
|
|
14263
15327
|
}
|
|
14264
15328
|
|
|
14265
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15329
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
14266
15330
|
var monorepoPackagesPath = new URL("../../..", import.meta.url).pathname, isHydrogenMonorepo = (() => {
|
|
14267
15331
|
try {
|
|
14268
15332
|
let skeletonPath = joinPath(
|
|
@@ -14323,7 +15387,7 @@ async function getRepoNodeModules() {
|
|
|
14323
15387
|
return stdout.trim();
|
|
14324
15388
|
}
|
|
14325
15389
|
|
|
14326
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15390
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
14327
15391
|
var SETUP_CSS_STRATEGIES = [
|
|
14328
15392
|
"tailwind",
|
|
14329
15393
|
"vanilla-extract",
|
|
@@ -14358,14 +15422,14 @@ async function canWriteFiles(assetMap, directory, force) {
|
|
|
14358
15422
|
}));
|
|
14359
15423
|
}
|
|
14360
15424
|
|
|
14361
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15425
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
14362
15426
|
init_cjs_shims();
|
|
14363
15427
|
|
|
14364
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15428
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
14365
15429
|
init_cjs_shims();
|
|
14366
15430
|
import { readdir } from "node:fs/promises";
|
|
14367
15431
|
|
|
14368
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15432
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/format-code.js
|
|
14369
15433
|
init_cjs_shims();
|
|
14370
15434
|
init_prettier();
|
|
14371
15435
|
import * as FS from "fs/promises";
|
|
@@ -14395,7 +15459,7 @@ async function formatCode(content, config = DEFAULT_PRETTIER_CONFIG, filePath =
|
|
|
14395
15459
|
});
|
|
14396
15460
|
}
|
|
14397
15461
|
|
|
14398
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15462
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
14399
15463
|
async function replaceFileContent(filepath, formatConfig, replacer) {
|
|
14400
15464
|
let content = await replacer(await readFile(filepath));
|
|
14401
15465
|
if (typeof content == "string")
|
|
@@ -14470,10 +15534,10 @@ async function mergePackageJson(sourceDir, targetDir, options) {
|
|
|
14470
15534
|
);
|
|
14471
15535
|
}
|
|
14472
15536
|
|
|
14473
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15537
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
14474
15538
|
init_cjs_shims();
|
|
14475
15539
|
|
|
14476
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15540
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/ast.js
|
|
14477
15541
|
init_cjs_shims();
|
|
14478
15542
|
async function importLangAstGrep(lang) {
|
|
14479
15543
|
let astGrep = await import("@ast-grep/napi");
|
|
@@ -14482,7 +15546,7 @@ async function importLangAstGrep(lang) {
|
|
|
14482
15546
|
return astGrep[lang];
|
|
14483
15547
|
}
|
|
14484
15548
|
|
|
14485
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15549
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
14486
15550
|
async function replaceRootLinks(appDirectory, formatConfig, importer) {
|
|
14487
15551
|
let { filepath, astType } = await findFileWithExtension(appDirectory, "root");
|
|
14488
15552
|
if (!filepath || !astType)
|
|
@@ -14584,7 +15648,7 @@ var vitePluginListRule = {
|
|
|
14584
15648
|
}
|
|
14585
15649
|
};
|
|
14586
15650
|
|
|
14587
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15651
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
14588
15652
|
var tailwindCssPath = "styles/tailwind.css";
|
|
14589
15653
|
async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
|
|
14590
15654
|
let relativeAppDirectory = relativePath(rootDirectory, appDirectory), assetMap = {
|
|
@@ -14620,7 +15684,7 @@ async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
|
|
|
14620
15684
|
};
|
|
14621
15685
|
}
|
|
14622
15686
|
|
|
14623
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15687
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/vanilla-extract.js
|
|
14624
15688
|
init_cjs_shims();
|
|
14625
15689
|
async function setupVanillaExtract({
|
|
14626
15690
|
rootDirectory
|
|
@@ -14641,7 +15705,7 @@ async function setupVanillaExtract({
|
|
|
14641
15705
|
};
|
|
14642
15706
|
}
|
|
14643
15707
|
|
|
14644
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15708
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
14645
15709
|
var STYLING_CHOICES = [...SETUP_CSS_STRATEGIES, "none"], CSS_STRATEGY_NAME_MAP = {
|
|
14646
15710
|
tailwind: "Tailwind v4",
|
|
14647
15711
|
"vanilla-extract": "Vanilla Extract",
|
|
@@ -14686,23 +15750,23 @@ async function renderCssPrompt(options) {
|
|
|
14686
15750
|
});
|
|
14687
15751
|
}
|
|
14688
15752
|
|
|
14689
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15753
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
14690
15754
|
init_cjs_shims();
|
|
14691
15755
|
|
|
14692
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15756
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
14693
15757
|
init_cjs_shims();
|
|
14694
15758
|
|
|
14695
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15759
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/index.js
|
|
14696
15760
|
init_cjs_shims();
|
|
14697
15761
|
|
|
14698
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15762
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
|
|
14699
15763
|
init_cjs_shims();
|
|
14700
15764
|
async function transpileFile(code, filepath, keepTypes = !0) {
|
|
14701
|
-
let { transpileTs } = await import("./morph-
|
|
15765
|
+
let { transpileTs } = await import("./morph-32Y5BUJM.js");
|
|
14702
15766
|
return transpileTs(code, filepath, keepTypes);
|
|
14703
15767
|
}
|
|
14704
15768
|
|
|
14705
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15769
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/project.js
|
|
14706
15770
|
init_cjs_shims();
|
|
14707
15771
|
var DEFAULT_JS_CONFIG = {
|
|
14708
15772
|
checkJs: !1,
|
|
@@ -14820,7 +15884,7 @@ async function transpileProject(projectDir, keepTypes = !0) {
|
|
|
14820
15884
|
}
|
|
14821
15885
|
}
|
|
14822
15886
|
|
|
14823
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
15887
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
14824
15888
|
async function replaceContextI18n({
|
|
14825
15889
|
rootDirectory,
|
|
14826
15890
|
contextCreate = joinPath("app", "lib", "context.ts")
|
|
@@ -14959,7 +16023,7 @@ async function findContextCreateFile({
|
|
|
14959
16023
|
return { filepath, astType };
|
|
14960
16024
|
}
|
|
14961
16025
|
|
|
14962
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16026
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
14963
16027
|
var SETUP_I18N_STRATEGIES = [
|
|
14964
16028
|
"subfolders",
|
|
14965
16029
|
"domains",
|
|
@@ -14991,7 +16055,7 @@ async function renderI18nPrompt(options) {
|
|
|
14991
16055
|
});
|
|
14992
16056
|
}
|
|
14993
16057
|
|
|
14994
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16058
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
14995
16059
|
var DEFAULT_APP_PORT = 3e3, DEFAULT_INSPECTOR_PORT = 9229, commonFlags = {
|
|
14996
16060
|
path: {
|
|
14997
16061
|
path: import_core.Flags.string({
|
|
@@ -15165,10 +16229,10 @@ function overrideFlag(flags, extra) {
|
|
|
15165
16229
|
);
|
|
15166
16230
|
}
|
|
15167
16231
|
|
|
15168
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16232
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
15169
16233
|
init_cjs_shims();
|
|
15170
16234
|
|
|
15171
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16235
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
15172
16236
|
init_cjs_shims();
|
|
15173
16237
|
async function adminRequest(query, session, variables) {
|
|
15174
16238
|
let api = "Admin", url = `https://${session.storeFqdn}/admin/api/unstable/graphql.json`;
|
|
@@ -15204,7 +16268,7 @@ async function adminRequest(query, session, variables) {
|
|
|
15204
16268
|
}
|
|
15205
16269
|
}
|
|
15206
16270
|
|
|
15207
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16271
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/gid.js
|
|
15208
16272
|
init_cjs_shims();
|
|
15209
16273
|
var GID_REGEXP = /gid:\/\/shopify\/\w*\/(\d+)/;
|
|
15210
16274
|
function parseGid(gid) {
|
|
@@ -15214,7 +16278,7 @@ function parseGid(gid) {
|
|
|
15214
16278
|
throw new AbortError(`Invalid Global ID: ${gid}`);
|
|
15215
16279
|
}
|
|
15216
16280
|
|
|
15217
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16281
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
15218
16282
|
var LinkStorefrontQuery = `#graphql
|
|
15219
16283
|
query LinkStorefront {
|
|
15220
16284
|
hydrogenStorefronts {
|
|
@@ -15235,7 +16299,7 @@ async function getStorefronts(adminSession) {
|
|
|
15235
16299
|
}));
|
|
15236
16300
|
}
|
|
15237
16301
|
|
|
15238
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16302
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/shopify-config.js
|
|
15239
16303
|
init_cjs_shims();
|
|
15240
16304
|
var SHOPIFY_DIR = ".shopify", SHOPIFY_DIR_PROJECT = "project.json";
|
|
15241
16305
|
async function resetConfig(root) {
|
|
@@ -15306,7 +16370,7 @@ async function setCustomerAccountConfig(root, customerAccountConfig) {
|
|
|
15306
16370
|
}
|
|
15307
16371
|
}
|
|
15308
16372
|
|
|
15309
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16373
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/create-storefront.js
|
|
15310
16374
|
init_cjs_shims();
|
|
15311
16375
|
var CreateStorefrontMutation = `#graphql
|
|
15312
16376
|
mutation CreateStorefront($title: String!) {
|
|
@@ -15340,7 +16404,7 @@ async function createStorefront(adminSession, title) {
|
|
|
15340
16404
|
return { jobId, storefront: hydrogenStorefront };
|
|
15341
16405
|
}
|
|
15342
16406
|
|
|
15343
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16407
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/fetch-job.js
|
|
15344
16408
|
init_cjs_shims();
|
|
15345
16409
|
var FetchJobQuery = `#graphql
|
|
15346
16410
|
query FetchJob($id: ID!) {
|
|
@@ -15374,7 +16438,7 @@ function waitForJob(adminSession, jobId) {
|
|
|
15374
16438
|
});
|
|
15375
16439
|
}
|
|
15376
16440
|
|
|
15377
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16441
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/string.js
|
|
15378
16442
|
init_cjs_shims();
|
|
15379
16443
|
function titleize(name = "") {
|
|
15380
16444
|
return name.replace(/[\W_]+/g, " ").split(" ").filter((word) => word.length > 0).map(
|
|
@@ -15382,7 +16446,7 @@ function titleize(name = "") {
|
|
|
15382
16446
|
).join(" ");
|
|
15383
16447
|
}
|
|
15384
16448
|
|
|
15385
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16449
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/shell.js
|
|
15386
16450
|
init_cjs_shims();
|
|
15387
16451
|
import os from "node:os";
|
|
15388
16452
|
var ALIAS_NAME = "h2", isWindows = () => os.platform() === "win32", isGitBash = () => !!process.env.MINGW_PREFIX;
|
|
@@ -15497,10 +16561,10 @@ async function getCliCommand(directory = process.cwd(), forcePkgManager) {
|
|
|
15497
16561
|
return (pkgManager === "bun" || pkgManager === "pnpm" || pkgManager === "yarn") && (cli = pkgManager), `${cli} shopify hydrogen`;
|
|
15498
16562
|
}
|
|
15499
16563
|
|
|
15500
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16564
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
15501
16565
|
init_cjs_shims();
|
|
15502
16566
|
|
|
15503
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16567
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
15504
16568
|
init_cjs_shims();
|
|
15505
16569
|
var CurrentUserAccountQuery = `#graphql
|
|
15506
16570
|
query currentUserAccount {
|
|
@@ -15580,7 +16644,7 @@ async function getUserAccount(token) {
|
|
|
15580
16644
|
};
|
|
15581
16645
|
}
|
|
15582
16646
|
|
|
15583
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16647
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/log.js
|
|
15584
16648
|
init_cjs_shims();
|
|
15585
16649
|
var originalConsole = { ...console }, methodsReplaced = /* @__PURE__ */ new Set(), addedReplacers = /* @__PURE__ */ new Set(), messageReplacers = [];
|
|
15586
16650
|
function addMessageReplacers(key, ...items) {
|
|
@@ -15816,7 +16880,7 @@ function isH2Verbose() {
|
|
|
15816
16880
|
return !!(process.env.DEBUG === "*" || process.env.DEBUG?.includes("h2:*"));
|
|
15817
16881
|
}
|
|
15818
16882
|
|
|
15819
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16883
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
15820
16884
|
async function logout2(root) {
|
|
15821
16885
|
await logout(), await resetConfig(root);
|
|
15822
16886
|
}
|
|
@@ -15855,7 +16919,7 @@ function renderLoginSuccess(config) {
|
|
|
15855
16919
|
});
|
|
15856
16920
|
}
|
|
15857
16921
|
|
|
15858
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
16922
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
15859
16923
|
init_cjs_shims();
|
|
15860
16924
|
import { symlink, readdir as readdir3 } from "node:fs/promises";
|
|
15861
16925
|
|
|
@@ -19330,11 +20394,11 @@ async function withGit({ directory }, callback) {
|
|
|
19330
20394
|
}
|
|
19331
20395
|
}
|
|
19332
20396
|
|
|
19333
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
20397
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
19334
20398
|
init_cjs_shims();
|
|
19335
20399
|
import { readdir as readdir2 } from "node:fs/promises";
|
|
19336
20400
|
|
|
19337
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
20401
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-interop.js
|
|
19338
20402
|
init_cjs_shims();
|
|
19339
20403
|
import { createRequire as createRequire2 } from "module";
|
|
19340
20404
|
function convertRouteToV1(route) {
|
|
@@ -19348,15 +20412,15 @@ function isV1RouteConventionInstalled() {
|
|
|
19348
20412
|
}
|
|
19349
20413
|
}
|
|
19350
20414
|
|
|
19351
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
20415
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
19352
20416
|
init_cjs_shims();
|
|
19353
20417
|
import { createRequire as createRequire3 } from "node:module";
|
|
19354
20418
|
import path2 from "node:path";
|
|
19355
20419
|
|
|
19356
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
20420
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-check.js
|
|
19357
20421
|
init_cjs_shims();
|
|
19358
20422
|
|
|
19359
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
20423
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/vite-config.js
|
|
19360
20424
|
init_cjs_shims();
|
|
19361
20425
|
var REMIX_COMPILER_ERROR_MESSAGE = "Classic Remix Compiler projects are no longer supported, please upgrade to Vite by running 'npx shopify hydrogen setup vite'";
|
|
19362
20426
|
async function hasViteConfig(root) {
|
|
@@ -19441,7 +20505,7 @@ function findOxygenPlugin(config) {
|
|
|
19441
20505
|
return findPlugin(config, "oxygen:main");
|
|
19442
20506
|
}
|
|
19443
20507
|
|
|
19444
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
20508
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
19445
20509
|
async function hasRemixConfigFile(root) {
|
|
19446
20510
|
return !!(await findFileWithExtension(root, "remix.config")).filepath;
|
|
19447
20511
|
}
|
|
@@ -19471,7 +20535,7 @@ async function getRemixConfig(root, mode = process.env.NODE_ENV) {
|
|
|
19471
20535
|
return (await getViteConfig(root)).remixConfig;
|
|
19472
20536
|
}
|
|
19473
20537
|
|
|
19474
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
20538
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
19475
20539
|
var NO_LOCALE_PATTERNS = [/robots\.txt/], ROUTE_MAP = {
|
|
19476
20540
|
home: ["_index", "$"],
|
|
19477
20541
|
page: "pages*",
|
|
@@ -19672,7 +20736,7 @@ async function copyRouteTemplate({
|
|
|
19672
20736
|
adapter && (templateContent = replaceAdapters(templateContent, adapter)), typescript || (templateContent = await transpileFile(templateContent, templatePath)), templateContent = await formatCode(templateContent, formatOptions, routePath), await writeFile(routePath, templateContent);
|
|
19673
20737
|
}
|
|
19674
20738
|
|
|
19675
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
20739
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
19676
20740
|
var LANGUAGES = {
|
|
19677
20741
|
js: "JavaScript",
|
|
19678
20742
|
ts: "TypeScript"
|
|
@@ -20113,7 +21177,7 @@ function generateRandomName() {
|
|
|
20113
21177
|
])} ${geographicalFeature}`;
|
|
20114
21178
|
}
|
|
20115
21179
|
|
|
20116
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
21180
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
20117
21181
|
var Link = class _Link extends base_command_default {
|
|
20118
21182
|
static descriptionWithMarkdown = `Links your local development environment to a remote Hydrogen storefront. You can link an unlimited number of development environments to a single Hydrogen storefront.
|
|
20119
21183
|
|
|
@@ -20234,7 +21298,7 @@ async function createNewStorefront(root, session, storefronts) {
|
|
|
20234
21298
|
return storefront;
|
|
20235
21299
|
}
|
|
20236
21300
|
|
|
20237
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
21301
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/customer-application-update.js
|
|
20238
21302
|
init_cjs_shims();
|
|
20239
21303
|
var CUSTOMER_APPLICATION_URLS_REPLACE = `#graphql
|
|
20240
21304
|
mutation CustomerApplicationUrlsReplace($storefrontId: ID!, $urlsReplaceInput: HydrogenStorefrontCustomerApplicationUrlsReplaceInput!) {
|
|
@@ -20262,7 +21326,7 @@ async function replaceCustomerApplicationUrls(adminSession, storefrontId, urlsRe
|
|
|
20262
21326
|
return { success, userErrors };
|
|
20263
21327
|
}
|
|
20264
21328
|
|
|
20265
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
21329
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
20266
21330
|
var CustomerAccountPush = class _CustomerAccountPush extends base_command_default {
|
|
20267
21331
|
static description = "Push project configuration to admin";
|
|
20268
21332
|
static flags = {
|
|
@@ -20395,7 +21459,7 @@ async function getStorefrontId(root, storefrontIdFromFlag) {
|
|
|
20395
21459
|
}) ? (await getConfig(root)).storefront?.id : void 0;
|
|
20396
21460
|
}
|
|
20397
21461
|
|
|
20398
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
21462
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
20399
21463
|
init_cjs_shims();
|
|
20400
21464
|
|
|
20401
21465
|
// ../cli-kit/dist/public/node/dot-env.js
|
|
@@ -20460,7 +21524,7 @@ function createDotEnvFileLine(key, value, quote) {
|
|
|
20460
21524
|
return `${key}=${value}`;
|
|
20461
21525
|
}
|
|
20462
21526
|
|
|
20463
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
21527
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/pull-variables.js
|
|
20464
21528
|
init_cjs_shims();
|
|
20465
21529
|
var PullVariablesQuery = `#graphql
|
|
20466
21530
|
query PullVariables($id: ID!, $handle: String) {
|
|
@@ -20488,7 +21552,7 @@ async function getStorefrontEnvVariables(adminSession, storefrontId, envHandle)
|
|
|
20488
21552
|
return hydrogenStorefront;
|
|
20489
21553
|
}
|
|
20490
21554
|
|
|
20491
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
21555
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-environments.js
|
|
20492
21556
|
init_cjs_shims();
|
|
20493
21557
|
var ListEnvironmentsQuery = `#graphql
|
|
20494
21558
|
query ListStorefronts($id: ID!) {
|
|
@@ -20516,7 +21580,7 @@ async function getStorefrontEnvironments(adminSession, storefrontId) {
|
|
|
20516
21580
|
return hydrogenStorefront;
|
|
20517
21581
|
}
|
|
20518
21582
|
|
|
20519
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
21583
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/common.js
|
|
20520
21584
|
init_cjs_shims();
|
|
20521
21585
|
function orderEnvironmentsBySafety(environments) {
|
|
20522
21586
|
return [
|
|
@@ -20557,7 +21621,7 @@ function environmentNotFound(criterion, value) {
|
|
|
20557
21621
|
);
|
|
20558
21622
|
}
|
|
20559
21623
|
|
|
20560
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
21624
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
20561
21625
|
var createEmptyRemoteVars = () => ({
|
|
20562
21626
|
remoteVariables: {},
|
|
20563
21627
|
remoteSecrets: {}
|
|
@@ -20628,7 +21692,7 @@ async function getLocalVariables(root, envFile) {
|
|
|
20628
21692
|
);
|
|
20629
21693
|
}
|
|
20630
21694
|
|
|
20631
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
21695
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/tunneling.js
|
|
20632
21696
|
init_cjs_shims();
|
|
20633
21697
|
async function startTunnelPlugin(config, port, provider) {
|
|
20634
21698
|
let hooks = await fanoutHooks(config, "tunnel_start", { port, provider }), first2 = Object.values(hooks).filter(
|
|
@@ -20659,7 +21723,7 @@ async function pollTunnelURL(tunnelClient) {
|
|
|
20659
21723
|
});
|
|
20660
21724
|
}
|
|
20661
21725
|
|
|
20662
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+
|
|
21726
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.10_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+n_224b49f683ddd0894a6efb2678941bc0/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
20663
21727
|
function isMockShop(envVariables) {
|
|
20664
21728
|
return envVariables.PUBLIC_STORE_DOMAIN === "mock.shop" || // We fallback to mock.shop if the env var is falsy.
|
|
20665
21729
|
// When it's undefined, it might be overwritten by remote variables.
|
|
@@ -20746,6 +21810,7 @@ ${host}/subrequest-profiler`
|
|
|
20746
21810
|
}
|
|
20747
21811
|
|
|
20748
21812
|
export {
|
|
21813
|
+
require_commonjs3 as require_commonjs,
|
|
20749
21814
|
require_ignore,
|
|
20750
21815
|
initializeGitRepository,
|
|
20751
21816
|
checkIfIgnoredInGitRepository,
|
|
@@ -20865,4 +21930,4 @@ export {
|
|
|
20865
21930
|
getDebugBannerLine,
|
|
20866
21931
|
getUtilityBannerlines
|
|
20867
21932
|
};
|
|
20868
|
-
//# sourceMappingURL=chunk-
|
|
21933
|
+
//# sourceMappingURL=chunk-QLJ6X5VL.js.map
|