@shopify/cli 3.75.3 → 3.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/hydrogen/starter/CHANGELOG.md +9 -0
- package/dist/assets/hydrogen/starter/package.json +3 -3
- package/dist/{chunk-YJQB4KNO.js → chunk-247SAMPG.js} +3 -3
- package/dist/{chunk-FNGSPBMI.js → chunk-2LCBNWGB.js} +11 -11
- package/dist/{chunk-BI6OG3SW.js → chunk-3HWN5QZP.js} +3 -3
- package/dist/{chunk-33Y36JTQ.js → chunk-7MKO46I5.js} +3 -3
- package/dist/{chunk-G4AWJOUT.js → chunk-AS4YOVZB.js} +3 -3
- package/dist/{chunk-PD5FJTJV.js → chunk-AW63CHBD.js} +3 -3
- package/dist/{chunk-MW2DSTSP.js → chunk-CUEBFCNF.js} +4 -4
- package/dist/{chunk-5R65XQBB.js → chunk-DSEDXHIL.js} +3 -3
- package/dist/{chunk-GXE74MLK.js → chunk-F5WG7YRC.js} +2 -2
- package/dist/{chunk-B5KBQUD7.js → chunk-FKVY6WNT.js} +4 -4
- package/dist/{chunk-WMN57UOI.js → chunk-FSL57OBM.js} +127 -87
- package/dist/{chunk-QODWZ6PQ.js → chunk-FVI46GAE.js} +3 -3
- package/dist/{chunk-EIDXBYRF.js → chunk-GDAGNYN6.js} +2 -2
- package/dist/{chunk-22VHHB6E.js → chunk-GSC3DSZN.js} +3 -2
- package/dist/{chunk-MAEFXTUW.js → chunk-IB2GR2NI.js} +4 -4
- package/dist/{chunk-3QMRSRBQ.js → chunk-IGXCBQCI.js} +2 -2
- package/dist/{chunk-LCLDLGWN.js → chunk-IV3Z7KW6.js} +5 -5
- package/dist/{chunk-IKLIMBXL.js → chunk-KRBTUAPG.js} +3 -3
- package/dist/{chunk-G4WKRFAA.js → chunk-LLYJXSNC.js} +3 -3
- package/dist/{chunk-QGVSI72K.js → chunk-LQLKKAEX.js} +3 -3
- package/dist/{chunk-A2VS5S6I.js → chunk-M7TO4P43.js} +2 -2
- package/dist/{chunk-5U5CBWN6.js → chunk-NGMTB27N.js} +36 -15
- package/dist/{chunk-YFC422QN.js → chunk-OAIHYIZM.js} +3 -3
- package/dist/{chunk-2NZ7C43W.js → chunk-OLVUPFMV.js} +6 -6
- package/dist/{chunk-USS26MJN.js → chunk-QFEXM6TL.js} +2 -2
- package/dist/{chunk-C33FHDOM.js → chunk-R3OLOJM7.js} +74 -11
- package/dist/{chunk-VJRNACS6.js → chunk-SPTKJZLQ.js} +3 -3
- package/dist/{chunk-K4H4V3DT.js → chunk-VCFDSABQ.js} +6 -6
- package/dist/{chunk-OV2HTJBT.js → chunk-WF3LQ6VY.js} +3 -3
- package/dist/{chunk-KD3XBFOR.js → chunk-WJRSLVVW.js} +2 -2
- package/dist/{chunk-LZMNVVKL.js → chunk-WRB46MIH.js} +10 -9
- package/dist/{chunk-RR6KDBGU.js → chunk-WXEVFXY4.js} +93 -163
- package/dist/{chunk-KTZUTNES.js → chunk-Y5V7ZNMS.js} +3 -3
- package/dist/{chunk-JTBKPH2T.js → chunk-YJUMZEX7.js} +2 -2
- package/dist/{chunk-WZLRLCYA.js → chunk-YWGDPGEE.js} +7 -6
- package/dist/cli/commands/auth/logout.js +11 -12
- package/dist/cli/commands/auth/logout.test.js +12 -13
- package/dist/cli/commands/cache/clear.js +10 -11
- package/dist/cli/commands/debug/command-flags.js +10 -11
- package/dist/cli/commands/docs/generate.js +10 -11
- package/dist/cli/commands/docs/generate.test.js +10 -11
- package/dist/cli/commands/help.js +10 -11
- package/dist/cli/commands/kitchen-sink/async.js +11 -12
- package/dist/cli/commands/kitchen-sink/async.test.js +11 -12
- package/dist/cli/commands/kitchen-sink/index.js +13 -14
- package/dist/cli/commands/kitchen-sink/index.test.js +13 -14
- package/dist/cli/commands/kitchen-sink/prompts.js +11 -12
- package/dist/cli/commands/kitchen-sink/prompts.test.js +11 -12
- package/dist/cli/commands/kitchen-sink/static.js +11 -12
- package/dist/cli/commands/kitchen-sink/static.test.js +11 -12
- package/dist/cli/commands/notifications/generate.js +11 -12
- package/dist/cli/commands/notifications/list.js +11 -12
- package/dist/cli/commands/search.js +11 -12
- package/dist/cli/commands/upgrade.js +11 -12
- package/dist/cli/commands/version.js +11 -12
- package/dist/cli/commands/version.test.js +11 -12
- package/dist/cli/services/commands/notifications.js +6 -6
- package/dist/cli/services/commands/search.js +2 -2
- package/dist/cli/services/commands/search.test.js +2 -2
- package/dist/cli/services/commands/version.js +3 -3
- package/dist/cli/services/commands/version.test.js +4 -4
- package/dist/cli/services/kitchen-sink/async.js +2 -2
- package/dist/cli/services/kitchen-sink/prompts.js +2 -2
- package/dist/cli/services/kitchen-sink/static.js +2 -2
- package/dist/cli/services/upgrade.js +3 -3
- package/dist/cli/services/upgrade.test.js +5 -7
- package/dist/{custom-oclif-loader-T46YXHAL.js → custom-oclif-loader-K3EL2OAR.js} +2 -2
- package/dist/{error-handler-CQQM6XL7.js → error-handler-BADTRHFV.js} +8 -9
- package/dist/hooks/postrun.js +8 -8
- package/dist/hooks/prerun.js +10 -8
- package/dist/index.js +7314 -6967
- package/dist/{local-UIVNM7TY.js → local-OPE3NHTK.js} +2 -2
- package/dist/{morph-K3QSNZNW.js → morph-WRZ7XCTF.js} +9 -9
- package/dist/{node-Y5CCPBME.js → node-KXPRSMZI.js} +14 -15
- package/dist/{node-package-manager-LYGJUDK2.js → node-package-manager-I364XLRB.js} +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-6CY7AHOT.js → ui-OLBMRQ45.js} +2 -2
- package/dist/{workerd-S3A3XU2A.js → workerd-U7MSRKWK.js} +13 -14
- package/oclif.manifest.json +46 -22
- package/package.json +7 -7
- package/dist/chunk-CM7HYAXG.js +0 -63
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
ensureAuthenticatedAdmin,
|
|
9
9
|
ensureAuthenticatedBusinessPlatform,
|
|
10
10
|
logout
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-247SAMPG.js";
|
|
12
12
|
import {
|
|
13
13
|
base_command_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WRB46MIH.js";
|
|
15
15
|
import {
|
|
16
16
|
fanoutHooks,
|
|
17
17
|
requestIdsCollection
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OLVUPFMV.js";
|
|
19
19
|
import {
|
|
20
20
|
businessPlatformFqdn,
|
|
21
21
|
normalizeStoreFqdn,
|
|
22
22
|
partnersFqdn
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WXEVFXY4.js";
|
|
24
24
|
import {
|
|
25
25
|
ClientError,
|
|
26
26
|
GraphQLClient,
|
|
@@ -31,15 +31,20 @@ import {
|
|
|
31
31
|
retryAwareRequest,
|
|
32
32
|
sanitizeURL,
|
|
33
33
|
sanitizedHeadersOutput
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FKVY6WNT.js";
|
|
35
35
|
import {
|
|
36
|
+
CLI_KIT_VERSION
|
|
37
|
+
} from "./chunk-F5WG7YRC.js";
|
|
38
|
+
import {
|
|
39
|
+
cacheRetrieveOrRepopulate,
|
|
36
40
|
findUpAndReadPackageJson,
|
|
37
41
|
getPackageManager,
|
|
38
42
|
installNodeModules,
|
|
39
43
|
packageManagerFromUserAgent,
|
|
40
44
|
readAndParsePackageJson,
|
|
45
|
+
timeIntervalToMilliseconds,
|
|
41
46
|
writePackageJSON
|
|
42
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-GSC3DSZN.js";
|
|
43
48
|
import {
|
|
44
49
|
AbortError,
|
|
45
50
|
BugError,
|
|
@@ -61,6 +66,7 @@ import {
|
|
|
61
66
|
isTerminalInteractive,
|
|
62
67
|
linesToColumns,
|
|
63
68
|
mkdir,
|
|
69
|
+
nonRandomUUID,
|
|
64
70
|
outputContent,
|
|
65
71
|
outputDebug,
|
|
66
72
|
outputInfo,
|
|
@@ -83,7 +89,7 @@ import {
|
|
|
83
89
|
stringifyMessage,
|
|
84
90
|
writeFile,
|
|
85
91
|
writeFileSync
|
|
86
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-R3OLOJM7.js";
|
|
87
93
|
import {
|
|
88
94
|
basename,
|
|
89
95
|
cwd,
|
|
@@ -135347,21 +135353,21 @@ var require_main = __commonJS({
|
|
|
135347
135353
|
}
|
|
135348
135354
|
});
|
|
135349
135355
|
|
|
135350
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135356
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
135351
135357
|
init_cjs_shims();
|
|
135352
135358
|
var import_core = __toESM(require_lib(), 1);
|
|
135353
135359
|
|
|
135354
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135360
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
135355
135361
|
init_cjs_shims();
|
|
135356
135362
|
|
|
135357
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135363
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
135358
135364
|
init_cjs_shims();
|
|
135359
135365
|
|
|
135360
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135366
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
135361
135367
|
init_cjs_shims();
|
|
135362
135368
|
import { fileURLToPath } from "node:url";
|
|
135363
135369
|
|
|
135364
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135370
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/process.js
|
|
135365
135371
|
init_cjs_shims();
|
|
135366
135372
|
import { exec } from "node:child_process";
|
|
135367
135373
|
import { promisify } from "node:util";
|
|
@@ -135373,7 +135379,7 @@ function supressNodeExperimentalWarnings() {
|
|
|
135373
135379
|
}));
|
|
135374
135380
|
}
|
|
135375
135381
|
|
|
135376
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135382
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
135377
135383
|
var monorepoPackagesPath = new URL("../../..", import.meta.url).pathname, isHydrogenMonorepo = monorepoPackagesPath.endsWith(
|
|
135378
135384
|
"/hydrogen/packages/"
|
|
135379
135385
|
), hydrogenPackagesPath = isHydrogenMonorepo ? monorepoPackagesPath : void 0, ASSETS_DIR_PREFIX = "assets/hydrogen", ASSETS_STARTER_DIR = "starter", ASSETS_STARTER_DIR_ROUTES = "routes", pkgJsonPath;
|
|
@@ -135420,7 +135426,7 @@ async function getRepoNodeModules() {
|
|
|
135420
135426
|
return !nodeModulesPath && isHydrogenMonorepo && (nodeModulesPath = joinPath(dirname(monorepoPackagesPath), "node_modules")), nodeModulesPath;
|
|
135421
135427
|
}
|
|
135422
135428
|
|
|
135423
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135429
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
135424
135430
|
var SETUP_CSS_STRATEGIES = [
|
|
135425
135431
|
"tailwind",
|
|
135426
135432
|
"vanilla-extract",
|
|
@@ -135455,14 +135461,14 @@ async function canWriteFiles(assetMap, directory, force) {
|
|
|
135455
135461
|
}));
|
|
135456
135462
|
}
|
|
135457
135463
|
|
|
135458
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135464
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
135459
135465
|
init_cjs_shims();
|
|
135460
135466
|
|
|
135461
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135467
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
135462
135468
|
init_cjs_shims();
|
|
135463
135469
|
import { readdir } from "node:fs/promises";
|
|
135464
135470
|
|
|
135465
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135471
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/format-code.js
|
|
135466
135472
|
init_cjs_shims();
|
|
135467
135473
|
var prettier = __toESM(require_prettier(), 1), DEFAULT_PRETTIER_CONFIG = {
|
|
135468
135474
|
arrowParens: "always",
|
|
@@ -135488,7 +135494,7 @@ async function formatCode(content, config = DEFAULT_PRETTIER_CONFIG, filePath =
|
|
|
135488
135494
|
});
|
|
135489
135495
|
}
|
|
135490
135496
|
|
|
135491
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135497
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
135492
135498
|
async function replaceFileContent(filepath, formatConfig, replacer) {
|
|
135493
135499
|
let content = await replacer(await readFile(filepath));
|
|
135494
135500
|
if (typeof content == "string")
|
|
@@ -135568,10 +135574,10 @@ async function mergeTsConfig(sourceDir, targetDir) {
|
|
|
135568
135574
|
);
|
|
135569
135575
|
}
|
|
135570
135576
|
|
|
135571
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135577
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
135572
135578
|
init_cjs_shims();
|
|
135573
135579
|
|
|
135574
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135580
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/ast.js
|
|
135575
135581
|
init_cjs_shims();
|
|
135576
135582
|
async function importLangAstGrep(lang) {
|
|
135577
135583
|
let astGrep = await import("@ast-grep/napi");
|
|
@@ -135580,7 +135586,7 @@ async function importLangAstGrep(lang) {
|
|
|
135580
135586
|
return astGrep[lang];
|
|
135581
135587
|
}
|
|
135582
135588
|
|
|
135583
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135589
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
135584
135590
|
async function replaceRootLinks(appDirectory, formatConfig, importer) {
|
|
135585
135591
|
let { filepath, astType } = await findFileWithExtension(appDirectory, "root");
|
|
135586
135592
|
if (!filepath || !astType)
|
|
@@ -135682,7 +135688,7 @@ var vitePluginListRule = {
|
|
|
135682
135688
|
}
|
|
135683
135689
|
};
|
|
135684
135690
|
|
|
135685
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135691
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
135686
135692
|
var tailwindCssPath = "styles/tailwind.css";
|
|
135687
135693
|
async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
|
|
135688
135694
|
let relativeAppDirectory = relativePath(rootDirectory, appDirectory), assetMap = {
|
|
@@ -135718,7 +135724,7 @@ async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
|
|
|
135718
135724
|
};
|
|
135719
135725
|
}
|
|
135720
135726
|
|
|
135721
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135727
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/vanilla-extract.js
|
|
135722
135728
|
init_cjs_shims();
|
|
135723
135729
|
async function setupVanillaExtract({
|
|
135724
135730
|
rootDirectory
|
|
@@ -135739,7 +135745,7 @@ async function setupVanillaExtract({
|
|
|
135739
135745
|
};
|
|
135740
135746
|
}
|
|
135741
135747
|
|
|
135742
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135748
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
135743
135749
|
var STYLING_CHOICES = [...SETUP_CSS_STRATEGIES, "none"], CSS_STRATEGY_NAME_MAP = {
|
|
135744
135750
|
tailwind: "Tailwind (v4 beta)",
|
|
135745
135751
|
"vanilla-extract": "Vanilla Extract",
|
|
@@ -135784,23 +135790,23 @@ async function renderCssPrompt(options2) {
|
|
|
135784
135790
|
});
|
|
135785
135791
|
}
|
|
135786
135792
|
|
|
135787
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135793
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
135788
135794
|
init_cjs_shims();
|
|
135789
135795
|
|
|
135790
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135796
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
135791
135797
|
init_cjs_shims();
|
|
135792
135798
|
|
|
135793
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135799
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/index.js
|
|
135794
135800
|
init_cjs_shims();
|
|
135795
135801
|
|
|
135796
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135802
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
|
|
135797
135803
|
init_cjs_shims();
|
|
135798
135804
|
async function transpileFile(code, filepath, keepTypes = !0) {
|
|
135799
|
-
let { transpileTs } = await import("./morph-
|
|
135805
|
+
let { transpileTs } = await import("./morph-WRZ7XCTF.js");
|
|
135800
135806
|
return transpileTs(code, filepath, keepTypes);
|
|
135801
135807
|
}
|
|
135802
135808
|
|
|
135803
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135809
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/project.js
|
|
135804
135810
|
init_cjs_shims();
|
|
135805
135811
|
var DEFAULT_JS_CONFIG = {
|
|
135806
135812
|
checkJs: !1,
|
|
@@ -135906,7 +135912,7 @@ async function transpileProject(projectDir, keepTypes = !0) {
|
|
|
135906
135912
|
}
|
|
135907
135913
|
}
|
|
135908
135914
|
|
|
135909
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135915
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
135910
135916
|
async function replaceContextI18n({
|
|
135911
135917
|
rootDirectory,
|
|
135912
135918
|
contextCreate = joinPath("app", "lib", "context.ts")
|
|
@@ -136045,7 +136051,7 @@ async function findContextCreateFile({
|
|
|
136045
136051
|
return { filepath, astType };
|
|
136046
136052
|
}
|
|
136047
136053
|
|
|
136048
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136054
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
136049
136055
|
var SETUP_I18N_STRATEGIES = [
|
|
136050
136056
|
"subfolders",
|
|
136051
136057
|
"domains",
|
|
@@ -136077,7 +136083,7 @@ async function renderI18nPrompt(options2) {
|
|
|
136077
136083
|
});
|
|
136078
136084
|
}
|
|
136079
136085
|
|
|
136080
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136086
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
136081
136087
|
var DEFAULT_APP_PORT = 3e3, DEFAULT_INSPECTOR_PORT = 9229, commonFlags = {
|
|
136082
136088
|
path: {
|
|
136083
136089
|
path: import_core.Flags.string({
|
|
@@ -136265,7 +136271,7 @@ function overrideFlag(flags, extra) {
|
|
|
136265
136271
|
);
|
|
136266
136272
|
}
|
|
136267
136273
|
|
|
136268
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136274
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/import-utils.js
|
|
136269
136275
|
init_cjs_shims();
|
|
136270
136276
|
import { createRequire } from "node:module";
|
|
136271
136277
|
import { pathToFileURL } from "node:url";
|
|
@@ -136288,13 +136294,13 @@ function importLocal(packageName, path3) {
|
|
|
136288
136294
|
return import(pathToFileURL(realPath).href);
|
|
136289
136295
|
}
|
|
136290
136296
|
|
|
136291
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136297
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
136292
136298
|
init_cjs_shims();
|
|
136293
136299
|
import path from "node:path";
|
|
136294
136300
|
import { EventEmitter } from "node:events";
|
|
136295
136301
|
import { ReadableStream } from "node:stream/web";
|
|
136296
136302
|
|
|
136297
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136303
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphiql-url.js
|
|
136298
136304
|
init_cjs_shims();
|
|
136299
136305
|
function getGraphiQLUrl({
|
|
136300
136306
|
host = "",
|
|
@@ -136308,7 +136314,7 @@ function getGraphiQLUrl({
|
|
|
136308
136314
|
return url;
|
|
136309
136315
|
}
|
|
136310
136316
|
|
|
136311
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136317
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
136312
136318
|
var import_source_map_support = __toESM(require_source_map_support(), 1), H2O_BINDING_NAME = "H2O_LOG_EVENT", ResponseConstructor;
|
|
136313
136319
|
function setConstructors(constructors) {
|
|
136314
136320
|
ResponseConstructor = constructors.Response;
|
|
@@ -136409,7 +136415,7 @@ function handleDebugNetworkRequest(request) {
|
|
|
136409
136415
|
return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
|
|
136410
136416
|
}
|
|
136411
136417
|
|
|
136412
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136418
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/common.js
|
|
136413
136419
|
init_cjs_shims();
|
|
136414
136420
|
var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
|
|
136415
136421
|
function handleMiniOxygenImportFail() {
|
|
@@ -136443,21 +136449,21 @@ function logRequestLine({
|
|
|
136443
136449
|
}
|
|
136444
136450
|
}
|
|
136445
136451
|
|
|
136446
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136452
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
136447
136453
|
init_cjs_shims();
|
|
136448
136454
|
|
|
136449
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136455
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
136450
136456
|
init_cjs_shims();
|
|
136451
136457
|
var import_core3 = __toESM(require_lib(), 1);
|
|
136452
136458
|
|
|
136453
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136459
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
136454
136460
|
init_cjs_shims();
|
|
136455
136461
|
var import_core2 = __toESM(require_lib(), 1);
|
|
136456
136462
|
|
|
136457
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136463
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
136458
136464
|
init_cjs_shims();
|
|
136459
136465
|
|
|
136460
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136466
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
136461
136467
|
init_cjs_shims();
|
|
136462
136468
|
|
|
136463
136469
|
// ../cli-kit/dist/public/node/api/graphql.js
|
|
@@ -136477,8 +136483,33 @@ ${sanitizedHeadersOutput(headers)}\n
|
|
|
136477
136483
|
to ${sanitizeURL(url)}`);
|
|
136478
136484
|
}
|
|
136479
136485
|
function sanitizeVariables(variables) {
|
|
136480
|
-
let result = { ...variables };
|
|
136481
|
-
return
|
|
136486
|
+
let result = { ...variables }, sanitizedResult = sanitizeDeepVariables(result, ["apiKey", "serialized_script"]);
|
|
136487
|
+
return JSON.stringify(sanitizedResult, null, 2);
|
|
136488
|
+
}
|
|
136489
|
+
function sanitizeDeepVariables(value, sensitiveKeys) {
|
|
136490
|
+
if (typeof value == "string")
|
|
136491
|
+
try {
|
|
136492
|
+
let parsed = JSON.parse(value);
|
|
136493
|
+
if (typeof parsed == "object" && parsed !== null) {
|
|
136494
|
+
let sanitized = sanitizeDeepVariables(parsed, sensitiveKeys);
|
|
136495
|
+
return JSON.stringify(sanitized, null);
|
|
136496
|
+
}
|
|
136497
|
+
} catch {
|
|
136498
|
+
return value;
|
|
136499
|
+
}
|
|
136500
|
+
if (typeof value != "object" || value === null)
|
|
136501
|
+
return value;
|
|
136502
|
+
if (Array.isArray(value))
|
|
136503
|
+
return value.map((item) => sanitizeDeepVariables(item, sensitiveKeys));
|
|
136504
|
+
let result = {};
|
|
136505
|
+
for (let [key, val] of Object.entries(value)) {
|
|
136506
|
+
if (sensitiveKeys.includes(key) && typeof val == "string") {
|
|
136507
|
+
result[key] = "*****";
|
|
136508
|
+
continue;
|
|
136509
|
+
}
|
|
136510
|
+
result[key] = sanitizeDeepVariables(val, sensitiveKeys);
|
|
136511
|
+
}
|
|
136512
|
+
return result;
|
|
136482
136513
|
}
|
|
136483
136514
|
function errorHandler(api) {
|
|
136484
136515
|
return (error, requestId) => {
|
|
@@ -136500,7 +136531,7 @@ Request ID: ${requestId}
|
|
|
136500
136531
|
|
|
136501
136532
|
// ../cli-kit/dist/public/node/api/graphql.js
|
|
136502
136533
|
async function performGraphQLRequest(options2) {
|
|
136503
|
-
let { token, addedHeaders, queryAsString, variables, api, url, responseOptions, unauthorizedHandler } = options2, headers = {
|
|
136534
|
+
let { token, addedHeaders, queryAsString, variables, api, url, responseOptions, unauthorizedHandler, cacheOptions } = options2, headers = {
|
|
136504
136535
|
...addedHeaders,
|
|
136505
136536
|
...buildHeaders(token)
|
|
136506
136537
|
};
|
|
@@ -136512,11 +136543,17 @@ async function performGraphQLRequest(options2) {
|
|
|
136512
136543
|
} catch (error) {
|
|
136513
136544
|
throw error instanceof ClientError && await logLastRequestIdFromResponse(error.response), error;
|
|
136514
136545
|
}
|
|
136515
|
-
}
|
|
136516
|
-
return runWithTimer("cmd_all_timing_network_ms")(async () => {
|
|
136546
|
+
}, executeWithTimer = () => runWithTimer("cmd_all_timing_network_ms")(async () => {
|
|
136517
136547
|
let response = await retryAwareRequest({ request: performRequest, url }, responseOptions?.handleErrors === !1 ? void 0 : errorHandler(api), unauthorizedHandler);
|
|
136518
136548
|
return responseOptions?.onResponse && responseOptions.onResponse(response), response.data;
|
|
136519
136549
|
});
|
|
136550
|
+
if (cacheOptions === void 0)
|
|
136551
|
+
return executeWithTimer();
|
|
136552
|
+
let { cacheTTL, cacheExtraKey, cacheStore } = cacheOptions, queryHash = nonRandomUUID(queryAsString), variablesHash = nonRandomUUID(JSON.stringify(variables ?? {})), cacheKey = `q-${queryHash}-${variablesHash}-${CLI_KIT_VERSION}-${cacheExtraKey ?? ""}`, result = await cacheRetrieveOrRepopulate(cacheKey, async () => {
|
|
136553
|
+
let result2 = await executeWithTimer();
|
|
136554
|
+
return JSON.stringify(result2);
|
|
136555
|
+
}, timeIntervalToMilliseconds(cacheTTL), cacheStore);
|
|
136556
|
+
return JSON.parse(result);
|
|
136520
136557
|
}
|
|
136521
136558
|
async function logLastRequestIdFromResponse(response) {
|
|
136522
136559
|
try {
|
|
@@ -136540,7 +136577,7 @@ async function graphqlRequestDoc(options2) {
|
|
|
136540
136577
|
});
|
|
136541
136578
|
}
|
|
136542
136579
|
|
|
136543
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136580
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
136544
136581
|
async function adminRequest(query, session, variables) {
|
|
136545
136582
|
let api = "Admin", url = `https://${session.storeFqdn}/admin/api/unstable/graphql.json`;
|
|
136546
136583
|
try {
|
|
@@ -136575,7 +136612,7 @@ async function adminRequest(query, session, variables) {
|
|
|
136575
136612
|
}
|
|
136576
136613
|
}
|
|
136577
136614
|
|
|
136578
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136615
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/gid.js
|
|
136579
136616
|
init_cjs_shims();
|
|
136580
136617
|
var GID_REGEXP = /gid:\/\/shopify\/\w*\/(\d+)/;
|
|
136581
136618
|
function parseGid(gid) {
|
|
@@ -136585,7 +136622,7 @@ function parseGid(gid) {
|
|
|
136585
136622
|
throw new AbortError(`Invalid Global ID: ${gid}`);
|
|
136586
136623
|
}
|
|
136587
136624
|
|
|
136588
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136625
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
136589
136626
|
var LinkStorefrontQuery = `#graphql
|
|
136590
136627
|
query LinkStorefront {
|
|
136591
136628
|
hydrogenStorefronts {
|
|
@@ -136606,7 +136643,7 @@ async function getStorefronts(adminSession) {
|
|
|
136606
136643
|
}));
|
|
136607
136644
|
}
|
|
136608
136645
|
|
|
136609
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136646
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shopify-config.js
|
|
136610
136647
|
init_cjs_shims();
|
|
136611
136648
|
var SHOPIFY_DIR = ".shopify", SHOPIFY_DIR_PROJECT = "project.json";
|
|
136612
136649
|
async function resetConfig(root) {
|
|
@@ -136677,7 +136714,7 @@ async function setCustomerAccountConfig(root, customerAccountConfig) {
|
|
|
136677
136714
|
}
|
|
136678
136715
|
}
|
|
136679
136716
|
|
|
136680
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136717
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/create-storefront.js
|
|
136681
136718
|
init_cjs_shims();
|
|
136682
136719
|
var CreateStorefrontMutation = `#graphql
|
|
136683
136720
|
mutation CreateStorefront($title: String!) {
|
|
@@ -136711,7 +136748,7 @@ async function createStorefront(adminSession, title) {
|
|
|
136711
136748
|
return { jobId, storefront: hydrogenStorefront };
|
|
136712
136749
|
}
|
|
136713
136750
|
|
|
136714
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136751
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/fetch-job.js
|
|
136715
136752
|
init_cjs_shims();
|
|
136716
136753
|
var FetchJobQuery = `#graphql
|
|
136717
136754
|
query FetchJob($id: ID!) {
|
|
@@ -136745,7 +136782,7 @@ function waitForJob(adminSession, jobId) {
|
|
|
136745
136782
|
});
|
|
136746
136783
|
}
|
|
136747
136784
|
|
|
136748
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136785
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/string.js
|
|
136749
136786
|
init_cjs_shims();
|
|
136750
136787
|
function titleize(name = "") {
|
|
136751
136788
|
return name.replace(/[\W_]+/g, " ").split(" ").filter((word) => word.length > 0).map(
|
|
@@ -136753,7 +136790,7 @@ function titleize(name = "") {
|
|
|
136753
136790
|
).join(" ");
|
|
136754
136791
|
}
|
|
136755
136792
|
|
|
136756
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136793
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shell.js
|
|
136757
136794
|
init_cjs_shims();
|
|
136758
136795
|
import os from "node:os";
|
|
136759
136796
|
var ALIAS_NAME = "h2", isWindows = () => os.platform() === "win32", isGitBash = () => !!process.env.MINGW_PREFIX;
|
|
@@ -136868,10 +136905,10 @@ async function getCliCommand(directory = process.cwd(), forcePkgManager) {
|
|
|
136868
136905
|
return (pkgManager === "bun" || pkgManager === "pnpm" || pkgManager === "yarn") && (cli = pkgManager), `${cli} shopify hydrogen`;
|
|
136869
136906
|
}
|
|
136870
136907
|
|
|
136871
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136908
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
136872
136909
|
init_cjs_shims();
|
|
136873
136910
|
|
|
136874
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136911
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
136875
136912
|
init_cjs_shims();
|
|
136876
136913
|
|
|
136877
136914
|
// ../cli-kit/dist/public/node/api/business-platform.js
|
|
@@ -136892,12 +136929,13 @@ async function setupRequest(token) {
|
|
|
136892
136929
|
responseOptions: { onResponse: handleDeprecations }
|
|
136893
136930
|
};
|
|
136894
136931
|
}
|
|
136895
|
-
async function partnersRequest(query, token, variables) {
|
|
136932
|
+
async function partnersRequest(query, token, variables, cacheOptions) {
|
|
136896
136933
|
let opts = await setupRequest(token);
|
|
136897
136934
|
return limiter.schedule(() => graphqlRequest({
|
|
136898
136935
|
...opts,
|
|
136899
136936
|
query,
|
|
136900
|
-
variables
|
|
136937
|
+
variables,
|
|
136938
|
+
cacheOptions
|
|
136901
136939
|
}));
|
|
136902
136940
|
}
|
|
136903
136941
|
async function partnersRequestDoc(query, token, variables) {
|
|
@@ -136927,18 +136965,20 @@ async function setupRequest2(token) {
|
|
|
136927
136965
|
responseOptions: { onResponse: handleDeprecations }
|
|
136928
136966
|
};
|
|
136929
136967
|
}
|
|
136930
|
-
async function businessPlatformRequest(query, token, variables) {
|
|
136968
|
+
async function businessPlatformRequest(query, token, variables, cacheOptions) {
|
|
136931
136969
|
return graphqlRequest({
|
|
136932
136970
|
...await setupRequest2(token),
|
|
136933
136971
|
query,
|
|
136934
|
-
variables
|
|
136972
|
+
variables,
|
|
136973
|
+
cacheOptions
|
|
136935
136974
|
});
|
|
136936
136975
|
}
|
|
136937
|
-
async function businessPlatformRequestDoc(query, token, variables) {
|
|
136976
|
+
async function businessPlatformRequestDoc(query, token, variables, cacheOptions) {
|
|
136938
136977
|
return graphqlRequestDoc({
|
|
136939
136978
|
...await setupRequest2(token),
|
|
136940
136979
|
query,
|
|
136941
|
-
variables
|
|
136980
|
+
variables,
|
|
136981
|
+
cacheOptions
|
|
136942
136982
|
});
|
|
136943
136983
|
}
|
|
136944
136984
|
async function setupOrganizationsRequest(token, organizationId) {
|
|
@@ -136965,7 +137005,7 @@ async function businessPlatformOrganizationsRequestDoc(query, token, organizatio
|
|
|
136965
137005
|
});
|
|
136966
137006
|
}
|
|
136967
137007
|
|
|
136968
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
137008
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
136969
137009
|
var CurrentUserAccountQuery = `#graphql
|
|
136970
137010
|
query currentUserAccount {
|
|
136971
137011
|
currentUserAccount {
|
|
@@ -137044,7 +137084,7 @@ async function getUserAccount(token) {
|
|
|
137044
137084
|
};
|
|
137045
137085
|
}
|
|
137046
137086
|
|
|
137047
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
137087
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/log.js
|
|
137048
137088
|
init_cjs_shims();
|
|
137049
137089
|
var originalConsole = { ...console }, methodsReplaced = /* @__PURE__ */ new Set(), addedReplacers = /* @__PURE__ */ new Set(), messageReplacers = [];
|
|
137050
137090
|
function addMessageReplacers(key, ...items) {
|
|
@@ -137317,7 +137357,7 @@ function isH2Verbose() {
|
|
|
137317
137357
|
return !!(process.env.DEBUG === "*" || process.env.DEBUG?.includes("h2:*"));
|
|
137318
137358
|
}
|
|
137319
137359
|
|
|
137320
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
137360
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
137321
137361
|
async function logout2(root) {
|
|
137322
137362
|
await logout(), await resetConfig(root);
|
|
137323
137363
|
}
|
|
@@ -137356,7 +137396,7 @@ function renderLoginSuccess(config) {
|
|
|
137356
137396
|
});
|
|
137357
137397
|
}
|
|
137358
137398
|
|
|
137359
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
137399
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
137360
137400
|
init_cjs_shims();
|
|
137361
137401
|
import { symlink, readdir as readdir4 } from "node:fs/promises";
|
|
137362
137402
|
|
|
@@ -140804,11 +140844,11 @@ async function isClean(directory) {
|
|
|
140804
140844
|
return (await esm_default({ baseDir: directory }).status()).isClean();
|
|
140805
140845
|
}
|
|
140806
140846
|
|
|
140807
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
140847
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
140808
140848
|
init_cjs_shims();
|
|
140809
140849
|
import { readdir as readdir3 } from "node:fs/promises";
|
|
140810
140850
|
|
|
140811
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
140851
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-interop.js
|
|
140812
140852
|
init_cjs_shims();
|
|
140813
140853
|
import { createRequire as createRequire2 } from "module";
|
|
140814
140854
|
function convertRouteToV1(route) {
|
|
@@ -140822,13 +140862,13 @@ function isV1RouteConventionInstalled() {
|
|
|
140822
140862
|
}
|
|
140823
140863
|
}
|
|
140824
140864
|
|
|
140825
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
140865
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
140826
140866
|
init_cjs_shims();
|
|
140827
140867
|
import { createRequire as createRequire4 } from "node:module";
|
|
140828
140868
|
import path2 from "node:path";
|
|
140829
140869
|
import { readdir as readdir2 } from "node:fs/promises";
|
|
140830
140870
|
|
|
140831
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
140871
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-check.js
|
|
140832
140872
|
init_cjs_shims();
|
|
140833
140873
|
import { createRequire as createRequire3 } from "node:module";
|
|
140834
140874
|
var REQUIRED_REMIX_VERSION = "^2.1.0";
|
|
@@ -140867,7 +140907,7 @@ function getRemixPackageVersion(require22, name, root) {
|
|
|
140867
140907
|
return result;
|
|
140868
140908
|
}
|
|
140869
140909
|
|
|
140870
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
140910
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/vite-config.js
|
|
140871
140911
|
init_cjs_shims();
|
|
140872
140912
|
async function hasViteConfig(root) {
|
|
140873
140913
|
return !!(await findFileWithExtension(root, "vite.config")).filepath;
|
|
@@ -140934,7 +140974,7 @@ function findOxygenPlugin(config) {
|
|
|
140934
140974
|
return findPlugin(config, "oxygen:main");
|
|
140935
140975
|
}
|
|
140936
140976
|
|
|
140937
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
140977
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
140938
140978
|
async function hasRemixConfigFile(root) {
|
|
140939
140979
|
return !!(await findFileWithExtension(root, "remix.config")).filepath;
|
|
140940
140980
|
}
|
|
@@ -141059,7 +141099,7 @@ async function assertEntryFileExists(root, fileRelative) {
|
|
|
141059
141099
|
}
|
|
141060
141100
|
}
|
|
141061
141101
|
|
|
141062
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
141102
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
141063
141103
|
var NO_LOCALE_PATTERNS = [/robots\.txt/], ROUTE_MAP = {
|
|
141064
141104
|
home: ["_index", "$"],
|
|
141065
141105
|
page: "pages*",
|
|
@@ -141267,7 +141307,7 @@ async function copyRouteTemplate({
|
|
|
141267
141307
|
adapter && (templateContent = replaceAdapters(templateContent, adapter)), typescript || (templateContent = await transpileFile(templateContent, templatePath)), templateContent = await formatCode(templateContent, formatOptions, routePath), await writeFile(routePath, templateContent);
|
|
141268
141308
|
}
|
|
141269
141309
|
|
|
141270
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
141310
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
141271
141311
|
var LANGUAGES = {
|
|
141272
141312
|
js: "JavaScript",
|
|
141273
141313
|
ts: "TypeScript"
|
|
@@ -141714,7 +141754,7 @@ function generateRandomName() {
|
|
|
141714
141754
|
])} ${geographicalFeature}`;
|
|
141715
141755
|
}
|
|
141716
141756
|
|
|
141717
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
141757
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
141718
141758
|
var Link = class _Link extends base_command_default {
|
|
141719
141759
|
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.
|
|
141720
141760
|
|
|
@@ -141835,7 +141875,7 @@ async function createNewStorefront(root, session, storefronts) {
|
|
|
141835
141875
|
return storefront;
|
|
141836
141876
|
}
|
|
141837
141877
|
|
|
141838
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
141878
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/customer-application-update.js
|
|
141839
141879
|
init_cjs_shims();
|
|
141840
141880
|
var CUSTOMER_APPLICATION_URLS_REPLACE = `#graphql
|
|
141841
141881
|
mutation CustomerApplicationUrlsReplace($storefrontId: ID!, $urlsReplaceInput: HydrogenStorefrontCustomerApplicationUrlsReplaceInput!) {
|
|
@@ -141863,7 +141903,7 @@ async function replaceCustomerApplicationUrls(adminSession, storefrontId, urlsRe
|
|
|
141863
141903
|
return { success, userErrors };
|
|
141864
141904
|
}
|
|
141865
141905
|
|
|
141866
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
141906
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
141867
141907
|
var CustomerAccountPush = class _CustomerAccountPush extends base_command_default {
|
|
141868
141908
|
static description = "Push project configuration to admin";
|
|
141869
141909
|
static flags = {
|
|
@@ -141996,7 +142036,7 @@ async function getStorefrontId(root, storefrontIdFromFlag) {
|
|
|
141996
142036
|
}) ? (await getConfig(root)).storefront?.id : void 0;
|
|
141997
142037
|
}
|
|
141998
142038
|
|
|
141999
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
142039
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
142000
142040
|
init_cjs_shims();
|
|
142001
142041
|
|
|
142002
142042
|
// ../cli-kit/dist/public/node/dot-env.js
|
|
@@ -142061,7 +142101,7 @@ function createDotEnvFileLine(key, value, quote2) {
|
|
|
142061
142101
|
return `${key}=${value}`;
|
|
142062
142102
|
}
|
|
142063
142103
|
|
|
142064
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
142104
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/pull-variables.js
|
|
142065
142105
|
init_cjs_shims();
|
|
142066
142106
|
var PullVariablesQuery = `#graphql
|
|
142067
142107
|
query PullVariables($id: ID!, $handle: String) {
|
|
@@ -142089,7 +142129,7 @@ async function getStorefrontEnvVariables(adminSession, storefrontId, envHandle)
|
|
|
142089
142129
|
return hydrogenStorefront;
|
|
142090
142130
|
}
|
|
142091
142131
|
|
|
142092
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
142132
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-environments.js
|
|
142093
142133
|
init_cjs_shims();
|
|
142094
142134
|
var ListEnvironmentsQuery = `#graphql
|
|
142095
142135
|
query ListStorefronts($id: ID!) {
|
|
@@ -142117,7 +142157,7 @@ async function getStorefrontEnvironments(adminSession, storefrontId) {
|
|
|
142117
142157
|
return hydrogenStorefront;
|
|
142118
142158
|
}
|
|
142119
142159
|
|
|
142120
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
142160
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/common.js
|
|
142121
142161
|
init_cjs_shims();
|
|
142122
142162
|
function orderEnvironmentsBySafety(environments) {
|
|
142123
142163
|
return [
|
|
@@ -142158,7 +142198,7 @@ function environmentNotFound(criterion, value) {
|
|
|
142158
142198
|
);
|
|
142159
142199
|
}
|
|
142160
142200
|
|
|
142161
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
142201
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
142162
142202
|
var createEmptyRemoteVars = () => ({
|
|
142163
142203
|
remoteVariables: {},
|
|
142164
142204
|
remoteSecrets: {}
|
|
@@ -142229,7 +142269,7 @@ async function getLocalVariables(root, envFile) {
|
|
|
142229
142269
|
);
|
|
142230
142270
|
}
|
|
142231
142271
|
|
|
142232
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
142272
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/tunneling.js
|
|
142233
142273
|
init_cjs_shims();
|
|
142234
142274
|
async function startTunnelPlugin(config, port, provider) {
|
|
142235
142275
|
let hooks = await fanoutHooks(config, "tunnel_start", { port, provider }), first2 = Object.values(hooks).filter(
|
|
@@ -142260,7 +142300,7 @@ async function pollTunnelURL(tunnelClient) {
|
|
|
142260
142300
|
});
|
|
142261
142301
|
}
|
|
142262
142302
|
|
|
142263
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
142303
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
142264
142304
|
function isMockShop(envVariables) {
|
|
142265
142305
|
return envVariables.PUBLIC_STORE_DOMAIN === "mock.shop" || // We fallback to mock.shop if the env var is falsy.
|
|
142266
142306
|
// When it's undefined, it might be overwritten by remote variables.
|
|
@@ -142479,4 +142519,4 @@ export {
|
|
|
142479
142519
|
getDebugBannerLine,
|
|
142480
142520
|
getUtilityBannerlines
|
|
142481
142521
|
};
|
|
142482
|
-
//# sourceMappingURL=chunk-
|
|
142522
|
+
//# sourceMappingURL=chunk-FSL57OBM.js.map
|