@shopify/cli 3.61.0 → 3.61.2
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/.eslintrc.cjs +1 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +65 -65
- package/dist/assets/hydrogen/starter/app/components/Footer.tsx +3 -3
- package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/lib/session.ts +5 -0
- package/dist/assets/hydrogen/starter/app/root.tsx +84 -51
- package/dist/assets/hydrogen/starter/app/routes/_index.tsx +62 -25
- package/dist/assets/hydrogen/starter/app/routes/account.$.tsx +1 -5
- package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +12 -70
- package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +7 -14
- package/dist/assets/hydrogen/starter/app/routes/account.orders._index.tsx +1 -8
- package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +5 -22
- package/dist/assets/hydrogen/starter/app/routes/account.tsx +0 -1
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +32 -6
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +36 -10
- package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +35 -12
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +0 -2
- package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +40 -7
- package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +32 -6
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +31 -6
- package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +36 -8
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +50 -11
- package/dist/assets/hydrogen/starter/package.json +6 -7
- package/dist/assets/hydrogen/starter/server.ts +4 -0
- package/dist/assets/hydrogen/virtual-routes/components/RequestDetails.jsx +1 -2
- package/dist/assets/hydrogen/virtual-routes/components/RequestTable.jsx +1 -2
- package/dist/assets/hydrogen/virtual-routes/routes/index.jsx +1 -2
- package/dist/{chunk-ZOTASNQ2.js → chunk-3RM5SOXY.js} +1 -1
- package/dist/{chunk-Q7PY7LVL.js → chunk-4757GPBG.js} +3 -3
- package/dist/{chunk-FFHJRSIP.js → chunk-4L37JOS5.js} +1 -1
- package/dist/{chunk-V67RXPI6.js → chunk-4TTAP7NN.js} +3 -3
- package/dist/{chunk-IIVL4DYB.js → chunk-5B2D56W6.js} +2 -2
- package/dist/{chunk-QX3YP6O5.js → chunk-5KRK4DLX.js} +2598 -795
- package/dist/{chunk-FWKRA64T.js → chunk-5MODHNUE.js} +3 -3
- package/dist/{chunk-LXXUWZRO.js → chunk-7IZTLXJ5.js} +2 -2
- package/dist/{chunk-AL4KPZUN.js → chunk-BUWM6JUU.js} +2 -2
- package/dist/{chunk-WNXHHHLZ.js → chunk-BYFLATOA.js} +3 -3
- package/dist/{chunk-4IXC46ZA.js → chunk-CK7MF3LY.js} +4 -4
- package/dist/{chunk-2AH5EBXL.js → chunk-CTETXMMM.js} +4 -4
- package/dist/{chunk-7YJH7P7B.js → chunk-CWYZA7C7.js} +1 -1
- package/dist/{chunk-463OPQAS.js → chunk-EHF6FVWH.js} +1 -1
- package/dist/{chunk-CMFKWJDJ.js → chunk-ETSILRIY.js} +3 -3
- package/dist/{chunk-EDVQGTOL.js → chunk-G4EQLT5B.js} +4 -4
- package/dist/{chunk-DWXXFI3U.js → chunk-JQPQJN44.js} +6 -6
- package/dist/{chunk-YZIPQNOG.js → chunk-KBXWK6XB.js} +2 -2
- package/dist/{chunk-EFL5CN6M.js → chunk-M73YMW2C.js} +4 -4
- package/dist/{chunk-HJ2JCW7E.js → chunk-NBIE3DNN.js} +2 -2
- package/dist/{chunk-2RKUO75O.js → chunk-NJP5GFNN.js} +129 -125
- package/dist/{chunk-TXDYKQZT.js → chunk-NJTSDTDU.js} +4 -4
- package/dist/{chunk-UJQBYPRO.js → chunk-OC4AY5G7.js} +1 -1
- package/dist/{chunk-75BJ33EP.js → chunk-Q3KADKQA.js} +2 -2
- package/dist/{chunk-LY6UIYOG.js → chunk-QDZF6IG4.js} +2 -2
- package/dist/{chunk-XDCNK2SU.js → chunk-QLLSCNEC.js} +2 -2
- package/dist/{chunk-O53XNGJU.js → chunk-QQP6JS5H.js} +1 -1
- package/dist/{chunk-2Q7SKRRM.js → chunk-QSO3GQEK.js} +162 -132
- package/dist/{chunk-5NBS5LAW.js → chunk-QTBH3GO6.js} +1 -1
- package/dist/{chunk-JZ5DN7RX.js → chunk-RPRKZ6JC.js} +2509 -728
- package/dist/{chunk-ONJCU4C5.js → chunk-TXXQWILO.js} +2 -2
- package/dist/{chunk-B4KDQK3X.js → chunk-UPM6XNBH.js} +2 -2
- package/dist/{chunk-3W2QB2OC.js → chunk-VC6CC75R.js} +2 -2
- package/dist/{chunk-XRFOYWYI.js → chunk-WZBNLCJ5.js} +2 -2
- package/dist/{chunk-63QEL3SZ.js → chunk-XMJDBJPP.js} +4 -4
- package/dist/{chunk-OOAZSPYS.js → chunk-YP5UVIUW.js} +3 -3
- package/dist/{chunk-LUGC3D2G.js → chunk-YWPV7MV2.js} +6 -6
- package/dist/{chunk-ABZKHSZ5.js → chunk-YZGLFVKK.js} +1 -1
- package/dist/{chunk-RW6YXHBL.js → chunk-ZE2ZPLYI.js} +12 -12
- package/dist/cli/commands/auth/logout.js +18 -18
- package/dist/cli/commands/auth/logout.test.js +19 -19
- package/dist/cli/commands/debug/command-flags.js +17 -17
- package/dist/cli/commands/demo/catalog.js +18 -18
- package/dist/cli/commands/demo/generate-file.js +18 -18
- package/dist/cli/commands/demo/index.js +17 -17
- package/dist/cli/commands/demo/print-ai-prompt.js +18 -18
- package/dist/cli/commands/docs/generate.js +17 -17
- package/dist/cli/commands/docs/generate.test.js +17 -17
- package/dist/cli/commands/help.js +17 -17
- package/dist/cli/commands/kitchen-sink/async.js +18 -18
- package/dist/cli/commands/kitchen-sink/async.test.js +18 -18
- package/dist/cli/commands/kitchen-sink/index.js +20 -20
- package/dist/cli/commands/kitchen-sink/index.test.js +20 -20
- package/dist/cli/commands/kitchen-sink/prompts.js +18 -18
- package/dist/cli/commands/kitchen-sink/prompts.test.js +18 -18
- package/dist/cli/commands/kitchen-sink/static.js +18 -18
- package/dist/cli/commands/kitchen-sink/static.test.js +18 -18
- package/dist/cli/commands/search.js +18 -18
- package/dist/cli/commands/upgrade.js +17 -17
- package/dist/cli/commands/version.js +18 -18
- package/dist/cli/commands/version.test.js +18 -18
- package/dist/cli/services/commands/search.js +8 -8
- package/dist/cli/services/commands/search.test.js +8 -8
- package/dist/cli/services/commands/version.js +11 -11
- package/dist/cli/services/commands/version.test.js +12 -12
- package/dist/cli/services/demo.js +8 -8
- package/dist/cli/services/demo.test.js +8 -8
- package/dist/cli/services/kitchen-sink/async.js +8 -8
- package/dist/cli/services/kitchen-sink/prompts.js +8 -8
- package/dist/cli/services/kitchen-sink/static.js +8 -8
- package/dist/cli/services/upgrade.js +10 -10
- package/dist/cli/services/upgrade.test.js +11 -11
- package/dist/{custom-oclif-loader-KLTAWG4B-VOMMA3PO.js → custom-oclif-loader-4SQGUQ7D-P5C4NLSX.js} +4 -4
- package/dist/{chunk-5R5656YY.js → custom-oclif-loader-OD47SFAU.js} +18 -3
- package/dist/{error-handler-UJK7WNJE.js → error-handler-EPMFPTYX.js} +10 -10
- package/dist/{error-handler-ND7WBMC3-CRFJKAS4.js → error-handler-WI4YVJIS-U3BMMYNJ.js} +6 -6
- package/dist/{error-handler-FUQWOW4J.js → error-handler-WL3Q25NI.js} +15 -15
- package/dist/hooks/postrun.js +13 -13
- package/dist/hooks/prerun.js +10 -10
- package/dist/index.js +1137 -1104
- package/dist/{lib-76RCE6WZ-AR3SQY6Y.js → lib-76RCE6WZ-5IYGTKKK.js} +2 -2
- package/dist/{lib-MWSNLG5P.js → lib-UYK3ZLZK.js} +3 -3
- package/dist/{local-5OND5PI5.js → local-KISH2IRF.js} +7 -7
- package/dist/{local-3LWDOA7J-UFWE2V6L.js → local-YKOG4EUR-XRRBWLSI.js} +4 -4
- package/dist/{morph-FQNWYET7.js → morph-DCIZUK2Q.js} +25 -8
- package/dist/{node-WNJUHXTR.js → node-3DKQAOFU.js} +14 -14
- package/dist/{node-package-manager-ISP2P5R3.js → node-package-manager-HYTHPJBI.js} +9 -9
- package/dist/{node-package-manager-TFY2ROCP-DDJAU44T.js → node-package-manager-S7TSAUJZ-KKDY6KSF.js} +5 -5
- package/dist/{system-G445DF53.js → system-LIP7AECY.js} +7 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-ITQVVPJU.js → ui-5LSDG3C5.js} +7 -7
- package/dist/{ui-MUGCNPLG-UG4N3GMV.js → ui-FUZYK6S3-PVVDPVD5.js} +4 -4
- package/dist/{workerd-EZVOCUQW.js → workerd-TFH7T6NI.js} +13 -13
- package/oclif.manifest.json +1 -1
- package/package.json +4 -5
- package/dist/custom-oclif-loader-PJJ3H2WB.js +0 -28
- package/dist/hooks/init.d.ts +0 -12
- package/dist/hooks/init.js +0 -66
- package/dist/hooks/init.js.map +0 -1
- package/dist/{chunk-67MDUPX5.js → chunk-I434ZJQI.js} +7 -7
- package/dist/{chunk-74JT4RJX.js → chunk-VF4VWJWS.js} +3 -3
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
camelize,
|
|
16
16
|
capitalize,
|
|
17
17
|
copyFile,
|
|
18
|
+
currentProcessIsGlobal,
|
|
18
19
|
cwd,
|
|
19
20
|
debugLogResponseInfo,
|
|
20
21
|
dirname,
|
|
@@ -38,6 +39,7 @@ import {
|
|
|
38
39
|
installNodeModules,
|
|
39
40
|
isDevelopment,
|
|
40
41
|
isDirectory,
|
|
42
|
+
isSpin,
|
|
41
43
|
isSpinEnvironment,
|
|
42
44
|
isTerminalInteractive,
|
|
43
45
|
isTruthy,
|
|
@@ -85,13 +87,13 @@ import {
|
|
|
85
87
|
useDeviceAuth,
|
|
86
88
|
writeFile,
|
|
87
89
|
writePackageJSON
|
|
88
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-NJP5GFNN.js";
|
|
89
91
|
import {
|
|
90
92
|
Conf,
|
|
91
93
|
checkPort,
|
|
92
94
|
require_find_process,
|
|
93
95
|
require_lib as require_lib2
|
|
94
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-OC4AY5G7.js";
|
|
95
97
|
import {
|
|
96
98
|
z
|
|
97
99
|
} from "./chunk-LAY4AEXX.js";
|
|
@@ -102,20 +104,20 @@ import {
|
|
|
102
104
|
ClientError,
|
|
103
105
|
GraphQLClient,
|
|
104
106
|
gql
|
|
105
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-5KRK4DLX.js";
|
|
106
108
|
import {
|
|
107
109
|
ansi_escapes_default,
|
|
108
110
|
source_default
|
|
109
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-YWPV7MV2.js";
|
|
110
112
|
import {
|
|
111
113
|
require_lib
|
|
112
|
-
} from "./chunk-
|
|
113
|
-
import {
|
|
114
|
-
require_source_map_support
|
|
115
|
-
} from "./chunk-PBFWVFAQ.js";
|
|
114
|
+
} from "./chunk-I434ZJQI.js";
|
|
116
115
|
import {
|
|
117
116
|
require_src
|
|
118
117
|
} from "./chunk-FWGRGI4R.js";
|
|
118
|
+
import {
|
|
119
|
+
require_source_map_support
|
|
120
|
+
} from "./chunk-PBFWVFAQ.js";
|
|
119
121
|
import {
|
|
120
122
|
__commonJS,
|
|
121
123
|
__require,
|
|
@@ -155591,11 +155593,11 @@ var require_main = __commonJS({
|
|
|
155591
155593
|
}
|
|
155592
155594
|
});
|
|
155593
155595
|
|
|
155594
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
155596
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
155595
155597
|
init_cjs_shims();
|
|
155596
155598
|
var import_core = __toESM(require_lib(), 1);
|
|
155597
155599
|
|
|
155598
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
155600
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/context/fqdn.js
|
|
155599
155601
|
init_cjs_shims();
|
|
155600
155602
|
var CouldntObtainPartnersSpinFQDNError = new AbortError("Couldn't obtain the Spin FQDN for Partners when the CLI is not running from a Spin environment.");
|
|
155601
155603
|
var CouldntObtainIdentitySpinFQDNError = new AbortError("Couldn't obtain the Spin FQDN for Identity when the CLI is not running from a Spin environment.");
|
|
@@ -155644,10 +155646,10 @@ async function normalizeStoreFqdn(store2) {
|
|
|
155644
155646
|
return containDomain(storeFqdn) ? storeFqdn : addDomain(storeFqdn);
|
|
155645
155647
|
}
|
|
155646
155648
|
|
|
155647
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
155649
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
155648
155650
|
init_cjs_shims();
|
|
155649
155651
|
|
|
155650
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
155652
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/format-code.js
|
|
155651
155653
|
init_cjs_shims();
|
|
155652
155654
|
var prettier = __toESM(require_prettier(), 1);
|
|
155653
155655
|
var DEFAULT_PRETTIER_CONFIG = {
|
|
@@ -155674,10 +155676,10 @@ async function formatCode(content, config = DEFAULT_PRETTIER_CONFIG, filePath =
|
|
|
155674
155676
|
});
|
|
155675
155677
|
}
|
|
155676
155678
|
|
|
155677
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
155679
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
155678
155680
|
init_cjs_shims();
|
|
155679
155681
|
|
|
155680
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
155682
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
155681
155683
|
init_cjs_shims();
|
|
155682
155684
|
import { readdir } from "node:fs/promises";
|
|
155683
155685
|
async function replaceFileContent(filepath, formatConfig, replacer) {
|
|
@@ -155773,7 +155775,7 @@ async function mergePackageJson(sourceDir, targetDir, options) {
|
|
|
155773
155775
|
);
|
|
155774
155776
|
}
|
|
155775
155777
|
|
|
155776
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
155778
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/ast.js
|
|
155777
155779
|
init_cjs_shims();
|
|
155778
155780
|
async function importLangAstGrep(lang) {
|
|
155779
155781
|
const astGrep = await import("@ast-grep/napi");
|
|
@@ -155783,17 +155785,17 @@ async function importLangAstGrep(lang) {
|
|
|
155783
155785
|
return astGrep[lang];
|
|
155784
155786
|
}
|
|
155785
155787
|
|
|
155786
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
155788
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/index.js
|
|
155787
155789
|
init_cjs_shims();
|
|
155788
155790
|
|
|
155789
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
155791
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
|
|
155790
155792
|
init_cjs_shims();
|
|
155791
155793
|
async function transpileFile(code, filepath, keepTypes = true) {
|
|
155792
|
-
const { transpileTs } = await import("./morph-
|
|
155794
|
+
const { transpileTs } = await import("./morph-DCIZUK2Q.js");
|
|
155793
155795
|
return transpileTs(code, filepath, keepTypes);
|
|
155794
155796
|
}
|
|
155795
155797
|
|
|
155796
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
155798
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/project.js
|
|
155797
155799
|
init_cjs_shims();
|
|
155798
155800
|
var DEFAULT_JS_CONFIG = {
|
|
155799
155801
|
checkJs: false,
|
|
@@ -155925,7 +155927,7 @@ async function transpileProject(projectDir, keepTypes = true) {
|
|
|
155925
155927
|
}
|
|
155926
155928
|
}
|
|
155927
155929
|
|
|
155928
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
155930
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
155929
155931
|
async function replaceServerI18n({ rootDirectory, serverEntryPoint = "server" }, formatConfig, localeExtractImpl, isJs) {
|
|
155930
155932
|
const { filepath, astType } = await findEntryFile({
|
|
155931
155933
|
rootDirectory,
|
|
@@ -156170,11 +156172,11 @@ async function findEntryFile({
|
|
|
156170
156172
|
return { filepath, astType };
|
|
156171
156173
|
}
|
|
156172
156174
|
|
|
156173
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156175
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
156174
156176
|
init_cjs_shims();
|
|
156175
156177
|
import { fileURLToPath } from "node:url";
|
|
156176
156178
|
|
|
156177
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156179
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/process.js
|
|
156178
156180
|
init_cjs_shims();
|
|
156179
156181
|
import { exec } from "node:child_process";
|
|
156180
156182
|
import { promisify } from "node:util";
|
|
@@ -156191,7 +156193,7 @@ function supressNodeExperimentalWarnings() {
|
|
|
156191
156193
|
}
|
|
156192
156194
|
}
|
|
156193
156195
|
|
|
156194
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156196
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
156195
156197
|
var monorepoPackagesPath = new URL("../../..", import.meta.url).pathname;
|
|
156196
156198
|
var isHydrogenMonorepo = monorepoPackagesPath.endsWith(
|
|
156197
156199
|
"/hydrogen/packages/"
|
|
@@ -156253,7 +156255,7 @@ async function getRepoNodeModules() {
|
|
|
156253
156255
|
return nodeModulesPath;
|
|
156254
156256
|
}
|
|
156255
156257
|
|
|
156256
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156258
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
156257
156259
|
var SETUP_I18N_STRATEGIES = [
|
|
156258
156260
|
"subfolders",
|
|
156259
156261
|
"domains",
|
|
@@ -156291,7 +156293,7 @@ async function renderI18nPrompt(options) {
|
|
|
156291
156293
|
});
|
|
156292
156294
|
}
|
|
156293
156295
|
|
|
156294
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156296
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
156295
156297
|
var DEFAULT_APP_PORT = 3e3;
|
|
156296
156298
|
var DEFAULT_INSPECTOR_PORT = 9229;
|
|
156297
156299
|
var commonFlags = {
|
|
@@ -156495,7 +156497,7 @@ function overrideFlag(flags, extra) {
|
|
|
156495
156497
|
);
|
|
156496
156498
|
}
|
|
156497
156499
|
|
|
156498
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156500
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/import-utils.js
|
|
156499
156501
|
init_cjs_shims();
|
|
156500
156502
|
import { createRequire } from "node:module";
|
|
156501
156503
|
var require2 = createRequire(import.meta.url);
|
|
@@ -156514,13 +156516,13 @@ function importLocal(packageName, path3) {
|
|
|
156514
156516
|
return import(realPath);
|
|
156515
156517
|
}
|
|
156516
156518
|
|
|
156517
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156519
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
156518
156520
|
init_cjs_shims();
|
|
156519
156521
|
import path from "node:path";
|
|
156520
156522
|
import { EventEmitter } from "node:events";
|
|
156521
156523
|
import { ReadableStream } from "node:stream/web";
|
|
156522
156524
|
|
|
156523
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156525
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphiql-url.js
|
|
156524
156526
|
init_cjs_shims();
|
|
156525
156527
|
function getGraphiQLUrl({
|
|
156526
156528
|
host = "",
|
|
@@ -156539,7 +156541,7 @@ function getGraphiQLUrl({
|
|
|
156539
156541
|
return url2;
|
|
156540
156542
|
}
|
|
156541
156543
|
|
|
156542
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156544
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
156543
156545
|
var import_source_map_support = __toESM(require_source_map_support(), 1);
|
|
156544
156546
|
var H2O_BINDING_NAME = "H2O_LOG_EVENT";
|
|
156545
156547
|
var ResponseConstructor;
|
|
@@ -156677,7 +156679,7 @@ function handleDebugNetworkRequest(request) {
|
|
|
156677
156679
|
return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
|
|
156678
156680
|
}
|
|
156679
156681
|
|
|
156680
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156682
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/common.js
|
|
156681
156683
|
init_cjs_shims();
|
|
156682
156684
|
var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
|
|
156683
156685
|
function handleMiniOxygenImportFail() {
|
|
@@ -156718,19 +156720,19 @@ function logRequestLine({
|
|
|
156718
156720
|
}
|
|
156719
156721
|
}
|
|
156720
156722
|
|
|
156721
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156723
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
156722
156724
|
init_cjs_shims();
|
|
156723
156725
|
|
|
156724
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156726
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
156725
156727
|
init_cjs_shims();
|
|
156726
156728
|
|
|
156727
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
156729
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/base-command.js
|
|
156728
156730
|
init_cjs_shims();
|
|
156729
156731
|
|
|
156730
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
156732
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/environments.js
|
|
156731
156733
|
init_cjs_shims();
|
|
156732
156734
|
|
|
156733
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
156735
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/toml.js
|
|
156734
156736
|
init_cjs_shims();
|
|
156735
156737
|
var toml = __toESM(require_toml(), 1);
|
|
156736
156738
|
function decodeToml(input) {
|
|
@@ -156738,7 +156740,7 @@ function decodeToml(input) {
|
|
|
156738
156740
|
return toml.parse(normalizedInput);
|
|
156739
156741
|
}
|
|
156740
156742
|
|
|
156741
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
156743
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/environments.js
|
|
156742
156744
|
async function loadEnvironment(environmentName, fileName, options) {
|
|
156743
156745
|
const basePath = options?.from && options?.from !== "." ? options.from : cwd();
|
|
156744
156746
|
const filePath = await findPathUp(fileName, {
|
|
@@ -156768,7 +156770,7 @@ async function loadEnvironment(environmentName, fileName, options) {
|
|
|
156768
156770
|
return environment;
|
|
156769
156771
|
}
|
|
156770
156772
|
|
|
156771
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
156773
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/base-command.js
|
|
156772
156774
|
var import_core2 = __toESM(require_lib(), 1);
|
|
156773
156775
|
var BaseCommand = class extends import_core2.Command {
|
|
156774
156776
|
// Replace markdown links to plain text like: "link label" (url)
|
|
@@ -156923,23 +156925,23 @@ function argsFromEnvironment(environment, options, noDefaultsResult) {
|
|
|
156923
156925
|
}
|
|
156924
156926
|
var base_command_default = BaseCommand;
|
|
156925
156927
|
|
|
156926
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156928
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
156927
156929
|
var import_core4 = __toESM(require_lib(), 1);
|
|
156928
156930
|
|
|
156929
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156931
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
156930
156932
|
init_cjs_shims();
|
|
156931
156933
|
var import_core3 = __toESM(require_lib(), 1);
|
|
156932
156934
|
|
|
156933
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156935
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
156934
156936
|
init_cjs_shims();
|
|
156935
156937
|
|
|
156936
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
156938
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
156937
156939
|
init_cjs_shims();
|
|
156938
156940
|
|
|
156939
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
156941
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/api/graphql.js
|
|
156940
156942
|
init_cjs_shims();
|
|
156941
156943
|
|
|
156942
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
156944
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/api/graphql.js
|
|
156943
156945
|
init_cjs_shims();
|
|
156944
156946
|
function debugLogRequestInfo(api, query, variables, headers = {}) {
|
|
156945
156947
|
outputDebug(outputContent`Sending ${outputToken.json(api)} GraphQL request:
|
|
@@ -156987,7 +156989,7 @@ Request ID: ${requestId}
|
|
|
156987
156989
|
};
|
|
156988
156990
|
}
|
|
156989
156991
|
|
|
156990
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
156992
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/api/graphql.js
|
|
156991
156993
|
async function graphqlRequest(options) {
|
|
156992
156994
|
const { query, api, url: url2, token, addedHeaders, variables, responseOptions } = options;
|
|
156993
156995
|
const headers = {
|
|
@@ -157006,7 +157008,7 @@ async function graphqlRequest(options) {
|
|
|
157006
157008
|
});
|
|
157007
157009
|
}
|
|
157008
157010
|
|
|
157009
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
157011
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
157010
157012
|
async function adminRequest(query, session, variables) {
|
|
157011
157013
|
const api = "Admin";
|
|
157012
157014
|
const url2 = `https://${session.storeFqdn}/admin/api/unstable/graphql.json`;
|
|
@@ -157048,7 +157050,7 @@ async function adminRequest(query, session, variables) {
|
|
|
157048
157050
|
}
|
|
157049
157051
|
}
|
|
157050
157052
|
|
|
157051
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
157053
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/gid.js
|
|
157052
157054
|
init_cjs_shims();
|
|
157053
157055
|
var GID_REGEXP = /gid:\/\/shopify\/\w*\/(\d+)/;
|
|
157054
157056
|
function parseGid(gid) {
|
|
@@ -157059,7 +157061,7 @@ function parseGid(gid) {
|
|
|
157059
157061
|
throw new AbortError(`Invalid Global ID: ${gid}`);
|
|
157060
157062
|
}
|
|
157061
157063
|
|
|
157062
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
157064
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
157063
157065
|
var LinkStorefrontQuery = `#graphql
|
|
157064
157066
|
query LinkStorefront {
|
|
157065
157067
|
hydrogenStorefronts {
|
|
@@ -157080,7 +157082,7 @@ async function getStorefronts(adminSession) {
|
|
|
157080
157082
|
}));
|
|
157081
157083
|
}
|
|
157082
157084
|
|
|
157083
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
157085
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shopify-config.js
|
|
157084
157086
|
init_cjs_shims();
|
|
157085
157087
|
var SHOPIFY_DIR = ".shopify";
|
|
157086
157088
|
var SHOPIFY_DIR_PROJECT = "project.json";
|
|
@@ -157186,7 +157188,7 @@ async function setCustomerAccountConfig(root, customerAccountConfig) {
|
|
|
157186
157188
|
}
|
|
157187
157189
|
}
|
|
157188
157190
|
|
|
157189
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
157191
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/create-storefront.js
|
|
157190
157192
|
init_cjs_shims();
|
|
157191
157193
|
var CreateStorefrontMutation = `#graphql
|
|
157192
157194
|
mutation CreateStorefront($title: String!) {
|
|
@@ -157220,7 +157222,7 @@ async function createStorefront(adminSession, title) {
|
|
|
157220
157222
|
return { jobId, storefront: hydrogenStorefront };
|
|
157221
157223
|
}
|
|
157222
157224
|
|
|
157223
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
157225
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/fetch-job.js
|
|
157224
157226
|
init_cjs_shims();
|
|
157225
157227
|
var FetchJobQuery = `#graphql
|
|
157226
157228
|
query FetchJob($id: ID!) {
|
|
@@ -157258,7 +157260,7 @@ function waitForJob(adminSession, jobId) {
|
|
|
157258
157260
|
});
|
|
157259
157261
|
}
|
|
157260
157262
|
|
|
157261
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
157263
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/string.js
|
|
157262
157264
|
init_cjs_shims();
|
|
157263
157265
|
function titleize(name = "") {
|
|
157264
157266
|
return name.replace(/[\W_]+/g, " ").split(" ").filter((word) => word.length > 0).map(
|
|
@@ -157266,7 +157268,7 @@ function titleize(name = "") {
|
|
|
157266
157268
|
).join(" ");
|
|
157267
157269
|
}
|
|
157268
157270
|
|
|
157269
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
157271
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shell.js
|
|
157270
157272
|
init_cjs_shims();
|
|
157271
157273
|
import os from "node:os";
|
|
157272
157274
|
var ALIAS_NAME = "h2";
|
|
@@ -157430,22 +157432,22 @@ async function getCliCommand(directory = process.cwd(), forcePkgManager) {
|
|
|
157430
157432
|
return `${cli} shopify hydrogen`;
|
|
157431
157433
|
}
|
|
157432
157434
|
|
|
157433
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
157435
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
157434
157436
|
init_cjs_shims();
|
|
157435
157437
|
|
|
157436
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157438
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/session.js
|
|
157437
157439
|
init_cjs_shims();
|
|
157438
157440
|
|
|
157439
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157441
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/store.js
|
|
157440
157442
|
init_cjs_shims();
|
|
157441
157443
|
|
|
157442
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157444
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/schema.js
|
|
157443
157445
|
init_cjs_shims();
|
|
157444
157446
|
|
|
157445
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157447
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/schema.js
|
|
157446
157448
|
init_cjs_shims();
|
|
157447
157449
|
|
|
157448
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157450
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/schema.js
|
|
157449
157451
|
var DateSchema = z.preprocess((arg) => {
|
|
157450
157452
|
if (typeof arg === "string" || arg instanceof Date)
|
|
157451
157453
|
return new Date(arg);
|
|
@@ -157476,10 +157478,10 @@ var SessionSchema = z.object({}).catchall(z.object({
|
|
|
157476
157478
|
applications: z.object({}).catchall(ApplicationTokenSchema)
|
|
157477
157479
|
}));
|
|
157478
157480
|
|
|
157479
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157481
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/conf-store.js
|
|
157480
157482
|
init_cjs_shims();
|
|
157481
157483
|
|
|
157482
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157484
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/local-storage.js
|
|
157483
157485
|
init_cjs_shims();
|
|
157484
157486
|
var LocalStorage = class {
|
|
157485
157487
|
constructor(options) {
|
|
@@ -157519,7 +157521,7 @@ var LocalStorage = class {
|
|
|
157519
157521
|
}
|
|
157520
157522
|
};
|
|
157521
157523
|
|
|
157522
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157524
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/conf-store.js
|
|
157523
157525
|
var _instance;
|
|
157524
157526
|
function cliKitStore() {
|
|
157525
157527
|
if (!_instance) {
|
|
@@ -157551,7 +157553,7 @@ async function cacheRetrieveOrRepopulate(key, fn, timeout, config = cliKitStore(
|
|
|
157551
157553
|
return value;
|
|
157552
157554
|
}
|
|
157553
157555
|
|
|
157554
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157556
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/store.js
|
|
157555
157557
|
async function store(session) {
|
|
157556
157558
|
const jsonSession = JSON.stringify(session);
|
|
157557
157559
|
setSession(jsonSession);
|
|
@@ -157574,10 +157576,10 @@ async function remove() {
|
|
|
157574
157576
|
removeSession();
|
|
157575
157577
|
}
|
|
157576
157578
|
|
|
157577
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157579
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/exchange.js
|
|
157578
157580
|
init_cjs_shims();
|
|
157579
157581
|
|
|
157580
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157582
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/identity.js
|
|
157581
157583
|
init_cjs_shims();
|
|
157582
157584
|
function clientId() {
|
|
157583
157585
|
const environment = serviceEnvironment();
|
|
@@ -157631,12 +157633,20 @@ function applicationId(api) {
|
|
|
157631
157633
|
return "ace6dc89-b526-456d-a942-4b8ef6acda4b";
|
|
157632
157634
|
}
|
|
157633
157635
|
}
|
|
157636
|
+
case "app-management": {
|
|
157637
|
+
const environment = serviceEnvironment();
|
|
157638
|
+
if (environment === Environment.Production) {
|
|
157639
|
+
return "7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c";
|
|
157640
|
+
} else {
|
|
157641
|
+
return "e92482cebb9bfb9fb5a0199cc770fde3de6c8d16b798ee73e36c9d815e070e52";
|
|
157642
|
+
}
|
|
157643
|
+
}
|
|
157634
157644
|
default:
|
|
157635
157645
|
throw new BugError(`Application id for API of type: ${api}`);
|
|
157636
157646
|
}
|
|
157637
157647
|
}
|
|
157638
157648
|
|
|
157639
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157649
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/result.js
|
|
157640
157650
|
init_cjs_shims();
|
|
157641
157651
|
var ok = (value) => new Ok(value);
|
|
157642
157652
|
var err = (err2) => new Err(err2);
|
|
@@ -157756,7 +157766,7 @@ var Err = class {
|
|
|
157756
157766
|
}
|
|
157757
157767
|
};
|
|
157758
157768
|
|
|
157759
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157769
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/exchange.js
|
|
157760
157770
|
var InvalidGrantError = class extends import_ts_error.ExtendableError {
|
|
157761
157771
|
};
|
|
157762
157772
|
var InvalidRequestError = class extends import_ts_error.ExtendableError {
|
|
@@ -157776,17 +157786,20 @@ async function exchangeCodeForAccessToken(codeData) {
|
|
|
157776
157786
|
}
|
|
157777
157787
|
async function exchangeAccessForApplicationTokens(identityToken, scopes, store2) {
|
|
157778
157788
|
const token = identityToken.accessToken;
|
|
157779
|
-
const
|
|
157789
|
+
const appManagementEnabled = isTruthy(process.env.USE_APP_MANAGEMENT_API);
|
|
157790
|
+
const [partners, storefront, businessPlatform, admin, appManagement] = await Promise.all([
|
|
157780
157791
|
requestAppToken("partners", token, scopes.partners),
|
|
157781
157792
|
requestAppToken("storefront-renderer", token, scopes.storefront),
|
|
157782
157793
|
requestAppToken("business-platform", token, scopes.businessPlatform),
|
|
157783
|
-
store2 ? requestAppToken("admin", token, scopes.admin, store2) : {}
|
|
157794
|
+
store2 ? requestAppToken("admin", token, scopes.admin, store2) : {},
|
|
157795
|
+
appManagementEnabled ? requestAppToken("app-management", token, scopes.appManagement) : {}
|
|
157784
157796
|
]);
|
|
157785
157797
|
return {
|
|
157786
157798
|
...partners,
|
|
157787
157799
|
...storefront,
|
|
157788
157800
|
...businessPlatform,
|
|
157789
|
-
...admin
|
|
157801
|
+
...admin,
|
|
157802
|
+
...appManagement
|
|
157790
157803
|
};
|
|
157791
157804
|
}
|
|
157792
157805
|
async function refreshAccessToken(currentToken) {
|
|
@@ -157843,7 +157856,7 @@ async function requestAppToken(api, token, scopes = [], store2) {
|
|
|
157843
157856
|
}
|
|
157844
157857
|
const tokenResult = await tokenRequest(params);
|
|
157845
157858
|
const value = tokenResult.mapError(tokenRequestErrorHandler).valueOrBug();
|
|
157846
|
-
const appToken =
|
|
157859
|
+
const appToken = buildApplicationToken(value);
|
|
157847
157860
|
return { [identifier]: appToken };
|
|
157848
157861
|
}
|
|
157849
157862
|
function tokenRequestErrorHandler(error) {
|
|
@@ -157881,15 +157894,17 @@ function buildApplicationToken(result) {
|
|
|
157881
157894
|
};
|
|
157882
157895
|
}
|
|
157883
157896
|
|
|
157884
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157897
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session.js
|
|
157885
157898
|
init_cjs_shims();
|
|
157886
157899
|
|
|
157887
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157900
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/validate.js
|
|
157888
157901
|
init_cjs_shims();
|
|
157889
157902
|
|
|
157890
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157903
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/identity-token-validation.js
|
|
157891
157904
|
init_cjs_shims();
|
|
157892
157905
|
async function validateIdentityToken(token) {
|
|
157906
|
+
if (isSpin() && firstPartyDev())
|
|
157907
|
+
return true;
|
|
157893
157908
|
try {
|
|
157894
157909
|
return withIntrospectionURL(async (introspectionURL) => {
|
|
157895
157910
|
const options = {
|
|
@@ -157940,7 +157955,7 @@ async function getIntrospectionURL() {
|
|
|
157940
157955
|
return json.introspection_endpoint;
|
|
157941
157956
|
}
|
|
157942
157957
|
|
|
157943
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
157958
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/validate.js
|
|
157944
157959
|
function validateScopes(requestedScopes, identity) {
|
|
157945
157960
|
const currentScopes = identity.scopes;
|
|
157946
157961
|
if (firstPartyDev() !== currentScopes.includes("employee"))
|
|
@@ -157960,6 +157975,11 @@ async function validateSession(scopes, applications, session) {
|
|
|
157960
157975
|
const token = session.applications[appId];
|
|
157961
157976
|
tokensAreExpired = tokensAreExpired || isTokenExpired(token);
|
|
157962
157977
|
}
|
|
157978
|
+
if (applications.appManagementApi) {
|
|
157979
|
+
const appId = applicationId("app-management");
|
|
157980
|
+
const token = session.applications[appId];
|
|
157981
|
+
tokensAreExpired = tokensAreExpired || isTokenExpired(token);
|
|
157982
|
+
}
|
|
157963
157983
|
if (applications.storefrontRendererApi) {
|
|
157964
157984
|
const appId = applicationId("storefront-renderer");
|
|
157965
157985
|
const token = session.applications[appId];
|
|
@@ -157991,7 +158011,7 @@ function expireThreshold() {
|
|
|
157991
158011
|
return new Date(Date.now() + sessionConstants.expirationTimeMarginInMinutes * 60 * 1e3);
|
|
157992
158012
|
}
|
|
157993
158013
|
|
|
157994
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
158014
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/scopes.js
|
|
157995
158015
|
init_cjs_shims();
|
|
157996
158016
|
function allDefaultScopes(extraScopes = []) {
|
|
157997
158017
|
let scopes = allAPIs.map(defaultApiScopes).flat();
|
|
@@ -158012,6 +158032,8 @@ function defaultApiScopes(api) {
|
|
|
158012
158032
|
return ["cli"];
|
|
158013
158033
|
case "business-platform":
|
|
158014
158034
|
return ["destinations"];
|
|
158035
|
+
case "app-management":
|
|
158036
|
+
return ["app-management"];
|
|
158015
158037
|
default:
|
|
158016
158038
|
throw new BugError(`Unknown API: ${api}`);
|
|
158017
158039
|
}
|
|
@@ -158030,18 +158052,20 @@ function scopeTransform(scope) {
|
|
|
158030
158052
|
return "https://api.shopify.com/auth/shop.storefront-renderer.devtools";
|
|
158031
158053
|
case "destinations":
|
|
158032
158054
|
return "https://api.shopify.com/auth/destinations.readonly";
|
|
158055
|
+
case "app-management":
|
|
158056
|
+
return "https://api.shopify.com/auth/organization.apps.manage";
|
|
158033
158057
|
default:
|
|
158034
158058
|
return scope;
|
|
158035
158059
|
}
|
|
158036
158060
|
}
|
|
158037
158061
|
|
|
158038
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
158062
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/authorize.js
|
|
158039
158063
|
init_cjs_shims();
|
|
158040
158064
|
|
|
158041
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
158065
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/redirect-listener.js
|
|
158042
158066
|
init_cjs_shims();
|
|
158043
158067
|
|
|
158044
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
158068
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/post-auth.js
|
|
158045
158069
|
init_cjs_shims();
|
|
158046
158070
|
var HTMLFileNames = [
|
|
158047
158071
|
"empty-url.html",
|
|
@@ -158095,7 +158119,7 @@ var MissingCodeString = "The authentication can't continue because the redirect
|
|
|
158095
158119
|
var MissingStateString = "The authentication can't continue because the redirect doesn't include the state.";
|
|
158096
158120
|
var RedirectPageAssetNotFoundError = () => new BugError(`Redirect page asset not found`);
|
|
158097
158121
|
|
|
158098
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
158122
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/redirect-listener.js
|
|
158099
158123
|
import url from "url";
|
|
158100
158124
|
import { createServer } from "http";
|
|
158101
158125
|
var ResponseTimeoutSeconds = 10;
|
|
@@ -158185,7 +158209,7 @@ async function listenRedirect(host, port, url2) {
|
|
|
158185
158209
|
return result;
|
|
158186
158210
|
}
|
|
158187
158211
|
|
|
158188
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
158212
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/authorize.js
|
|
158189
158213
|
var import_find_process = __toESM(require_find_process(), 1);
|
|
158190
158214
|
async function authorize(scopes, state = randomHex(30)) {
|
|
158191
158215
|
const port = 3456;
|
|
@@ -158244,7 +158268,7 @@ async function terminateBlockingPortProcessPrompt(port, stepDescription) {
|
|
|
158244
158268
|
});
|
|
158245
158269
|
}
|
|
158246
158270
|
|
|
158247
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
158271
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/device-authorization.js
|
|
158248
158272
|
init_cjs_shims();
|
|
158249
158273
|
async function requestDeviceAuthorization(scopes) {
|
|
158250
158274
|
const fqdn = await identityFqdn();
|
|
@@ -158304,10 +158328,10 @@ function convertRequestToParams(queryParams) {
|
|
|
158304
158328
|
return Object.entries(queryParams).map(([key, value]) => value && `${key}=${value}`).filter((hasValue) => Boolean(hasValue)).join("&");
|
|
158305
158329
|
}
|
|
158306
158330
|
|
|
158307
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
158331
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/api/partners.js
|
|
158308
158332
|
init_cjs_shims();
|
|
158309
158333
|
|
|
158310
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
158334
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/context/deprecations-store.js
|
|
158311
158335
|
init_cjs_shims();
|
|
158312
158336
|
var globalWithDeprecationsStore = {
|
|
158313
158337
|
...globalThis,
|
|
@@ -158334,7 +158358,7 @@ function earliestDateTimeAfter(afterTime, dates) {
|
|
|
158334
158358
|
return times.sort().find((time) => time > afterTime);
|
|
158335
158359
|
}
|
|
158336
158360
|
|
|
158337
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
158361
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/api/partners.js
|
|
158338
158362
|
var import_bottleneck = __toESM(require_lib2(), 1);
|
|
158339
158363
|
var limiter = new import_bottleneck.default({
|
|
158340
158364
|
minTime: 150,
|
|
@@ -158379,7 +158403,7 @@ function handleDeprecations(response) {
|
|
|
158379
158403
|
setNextDeprecationDate(deprecationDates);
|
|
158380
158404
|
}
|
|
158381
158405
|
|
|
158382
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
158406
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session.js
|
|
158383
158407
|
async function ensureAuthenticated(applications, _env, { forceRefresh = false, noPrompt = false } = {}) {
|
|
158384
158408
|
const fqdn = await identityFqdn();
|
|
158385
158409
|
const previousStoreFqdn = applications.adminApi?.storeFqdn;
|
|
@@ -158400,7 +158424,7 @@ ${outputToken.json(applications)}
|
|
|
158400
158424
|
const validationResult = await validateSession(scopes, applications, fqdnSession);
|
|
158401
158425
|
let newSession = {};
|
|
158402
158426
|
function throwOnNoPrompt() {
|
|
158403
|
-
if (!noPrompt)
|
|
158427
|
+
if (!noPrompt || isSpin() && firstPartyDev())
|
|
158404
158428
|
return;
|
|
158405
158429
|
throw new AbortError(`The currently available CLI credentials are invalid.
|
|
158406
158430
|
|
|
@@ -158474,7 +158498,7 @@ async function executeCompleteFlow(applications, identityFqdn2) {
|
|
|
158474
158498
|
return session;
|
|
158475
158499
|
}
|
|
158476
158500
|
async function ensureUserHasPartnerAccount(partnersToken) {
|
|
158477
|
-
if (isTruthy(process.env.
|
|
158501
|
+
if (isTruthy(process.env.USE_APP_MANAGEMENT_API))
|
|
158478
158502
|
return;
|
|
158479
158503
|
outputDebug(outputContent`Verifying that the user has a Partner organization`);
|
|
158480
158504
|
if (!await hasPartnerAccount(partnersToken)) {
|
|
@@ -158549,6 +158573,10 @@ async function tokensFor(applications, session, fqdn) {
|
|
|
158549
158573
|
const appId = applicationId("business-platform");
|
|
158550
158574
|
tokens.businessPlatform = fqdnSession.applications[appId]?.accessToken;
|
|
158551
158575
|
}
|
|
158576
|
+
if (applications.appManagementApi) {
|
|
158577
|
+
const appId = applicationId("app-management");
|
|
158578
|
+
tokens.appManagement = fqdnSession.applications[appId]?.accessToken;
|
|
158579
|
+
}
|
|
158552
158580
|
return tokens;
|
|
158553
158581
|
}
|
|
158554
158582
|
function getFlattenScopes(apps) {
|
|
@@ -158556,7 +158584,8 @@ function getFlattenScopes(apps) {
|
|
|
158556
158584
|
const partner = apps.partnersApi?.scopes || [];
|
|
158557
158585
|
const storefront = apps.storefrontRendererApi?.scopes || [];
|
|
158558
158586
|
const businessPlatform = apps.businessPlatformApi?.scopes || [];
|
|
158559
|
-
const
|
|
158587
|
+
const appManagement = apps.appManagementApi?.scopes || [];
|
|
158588
|
+
const requestedScopes = [...admin, ...partner, ...storefront, ...businessPlatform, ...appManagement];
|
|
158560
158589
|
return allDefaultScopes(requestedScopes);
|
|
158561
158590
|
}
|
|
158562
158591
|
function getExchangeScopes(apps) {
|
|
@@ -158564,11 +158593,13 @@ function getExchangeScopes(apps) {
|
|
|
158564
158593
|
const partnerScope = apps.partnersApi?.scopes || [];
|
|
158565
158594
|
const storefrontScopes = apps.storefrontRendererApi?.scopes || [];
|
|
158566
158595
|
const businessPlatformScopes = apps.businessPlatformApi?.scopes || [];
|
|
158596
|
+
const appManagementScopes = apps.appManagementApi?.scopes || [];
|
|
158567
158597
|
return {
|
|
158568
158598
|
admin: apiScopes("admin", adminScope),
|
|
158569
158599
|
partners: apiScopes("partners", partnerScope),
|
|
158570
158600
|
storefront: apiScopes("storefront-renderer", storefrontScopes),
|
|
158571
|
-
businessPlatform: apiScopes("business-platform", businessPlatformScopes)
|
|
158601
|
+
businessPlatform: apiScopes("business-platform", businessPlatformScopes),
|
|
158602
|
+
appManagement: apiScopes("app-management", appManagementScopes)
|
|
158572
158603
|
};
|
|
158573
158604
|
}
|
|
158574
158605
|
function buildIdentityTokenFromEnv(scopes, identityTokenInformation) {
|
|
@@ -158579,7 +158610,7 @@ function buildIdentityTokenFromEnv(scopes, identityTokenInformation) {
|
|
|
158579
158610
|
};
|
|
158580
158611
|
}
|
|
158581
158612
|
|
|
158582
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
158613
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/session.js
|
|
158583
158614
|
async function ensureAuthenticatedAdmin(store2, scopes = [], forceRefresh = false, options = {}) {
|
|
158584
158615
|
outputDebug(outputContent`Ensuring that the user is authenticated with the Admin API with the following scopes for the store ${outputToken.raw(store2)}:
|
|
158585
158616
|
${outputToken.json(scopes)}
|
|
@@ -158607,10 +158638,10 @@ function logout() {
|
|
|
158607
158638
|
return remove();
|
|
158608
158639
|
}
|
|
158609
158640
|
|
|
158610
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
158641
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
158611
158642
|
init_cjs_shims();
|
|
158612
158643
|
|
|
158613
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
158644
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/api/business-platform.js
|
|
158614
158645
|
init_cjs_shims();
|
|
158615
158646
|
async function businessPlatformRequest(query, token, variables) {
|
|
158616
158647
|
const api = "BusinessPlatform";
|
|
@@ -158626,7 +158657,7 @@ async function businessPlatformRequest(query, token, variables) {
|
|
|
158626
158657
|
});
|
|
158627
158658
|
}
|
|
158628
158659
|
|
|
158629
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
158660
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
158630
158661
|
var CurrentUserAccountQuery = `#graphql
|
|
158631
158662
|
query currentUserAccount {
|
|
158632
158663
|
currentUserAccount {
|
|
@@ -158706,7 +158737,7 @@ async function getUserAccount(token) {
|
|
|
158706
158737
|
};
|
|
158707
158738
|
}
|
|
158708
158739
|
|
|
158709
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
158740
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/log.js
|
|
158710
158741
|
init_cjs_shims();
|
|
158711
158742
|
var originalConsole = { ...console };
|
|
158712
158743
|
var methodsReplaced = /* @__PURE__ */ new Set();
|
|
@@ -159086,7 +159117,7 @@ function isH2Verbose() {
|
|
|
159086
159117
|
return !!(process.env.DEBUG === "*" || process.env.DEBUG?.includes("h2:*"));
|
|
159087
159118
|
}
|
|
159088
159119
|
|
|
159089
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
159120
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/defer.js
|
|
159090
159121
|
init_cjs_shims();
|
|
159091
159122
|
function deferPromise() {
|
|
159092
159123
|
const deferred2 = { state: "pending" };
|
|
@@ -159105,7 +159136,7 @@ function deferPromise() {
|
|
|
159105
159136
|
return deferred2;
|
|
159106
159137
|
}
|
|
159107
159138
|
|
|
159108
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
159139
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
159109
159140
|
async function logout2(root) {
|
|
159110
159141
|
await logout();
|
|
159111
159142
|
await resetConfig(root);
|
|
@@ -159214,11 +159245,11 @@ function renderLoginSuccess(config) {
|
|
|
159214
159245
|
});
|
|
159215
159246
|
}
|
|
159216
159247
|
|
|
159217
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
159248
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
159218
159249
|
init_cjs_shims();
|
|
159219
159250
|
import { readdir as readdir4 } from "node:fs/promises";
|
|
159220
159251
|
|
|
159221
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
159252
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/git.js
|
|
159222
159253
|
init_cjs_shims();
|
|
159223
159254
|
|
|
159224
159255
|
// ../../node_modules/.pnpm/simple-git@3.19.1/node_modules/simple-git/dist/esm/index.js
|
|
@@ -163124,7 +163155,7 @@ function gitInstanceFactory(baseDir, options) {
|
|
|
163124
163155
|
init_git_response_error();
|
|
163125
163156
|
var esm_default = gitInstanceFactory;
|
|
163126
163157
|
|
|
163127
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
163158
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/git.js
|
|
163128
163159
|
async function initializeGitRepository(directory, initialBranch = "main") {
|
|
163129
163160
|
outputDebug(outputContent`Initializing git repository at ${outputToken.path(directory)}...`);
|
|
163130
163161
|
await ensureGitIsPresentOrAbort();
|
|
@@ -163231,10 +163262,10 @@ async function isClean(directory) {
|
|
|
163231
163262
|
return (await esm_default({ baseDir: directory }).status()).isClean();
|
|
163232
163263
|
}
|
|
163233
163264
|
|
|
163234
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163265
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
163235
163266
|
init_cjs_shims();
|
|
163236
163267
|
|
|
163237
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163268
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
163238
163269
|
init_cjs_shims();
|
|
163239
163270
|
var SETUP_CSS_STRATEGIES = [
|
|
163240
163271
|
"tailwind",
|
|
@@ -163279,10 +163310,10 @@ async function canWriteFiles(assetMap, directory, force) {
|
|
|
163279
163310
|
return true;
|
|
163280
163311
|
}
|
|
163281
163312
|
|
|
163282
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163313
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
163283
163314
|
init_cjs_shims();
|
|
163284
163315
|
|
|
163285
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163316
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
163286
163317
|
init_cjs_shims();
|
|
163287
163318
|
async function replaceRootLinks(appDirectory, formatConfig, importer) {
|
|
163288
163319
|
const { filepath, astType } = await findFileWithExtension(appDirectory, "root");
|
|
@@ -163352,7 +163383,7 @@ function injectCssBundlingLink(appDirectory, formatConfig) {
|
|
|
163352
163383
|
});
|
|
163353
163384
|
}
|
|
163354
163385
|
|
|
163355
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163386
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
163356
163387
|
var tailwindCssPath = "styles/tailwind.css";
|
|
163357
163388
|
async function setupTailwind({ rootDirectory, appDirectory, ...futureOptions }, force = false) {
|
|
163358
163389
|
const relativeAppDirectory = relativePath(rootDirectory, appDirectory);
|
|
@@ -163394,7 +163425,7 @@ async function setupTailwind({ rootDirectory, appDirectory, ...futureOptions },
|
|
|
163394
163425
|
};
|
|
163395
163426
|
}
|
|
163396
163427
|
|
|
163397
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163428
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/postcss.js
|
|
163398
163429
|
init_cjs_shims();
|
|
163399
163430
|
async function setupPostCss({ rootDirectory, appDirectory, ...futureOptions }, force = false) {
|
|
163400
163431
|
const assetMap = {
|
|
@@ -163421,7 +163452,7 @@ async function setupPostCss({ rootDirectory, appDirectory, ...futureOptions }, f
|
|
|
163421
163452
|
};
|
|
163422
163453
|
}
|
|
163423
163454
|
|
|
163424
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163455
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/css-modules.js
|
|
163425
163456
|
init_cjs_shims();
|
|
163426
163457
|
async function setupCssModules({
|
|
163427
163458
|
rootDirectory,
|
|
@@ -163440,7 +163471,7 @@ async function setupCssModules({
|
|
|
163440
163471
|
};
|
|
163441
163472
|
}
|
|
163442
163473
|
|
|
163443
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163474
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/vanilla-extract.js
|
|
163444
163475
|
init_cjs_shims();
|
|
163445
163476
|
async function setupVanillaExtract({
|
|
163446
163477
|
rootDirectory,
|
|
@@ -163459,7 +163490,7 @@ async function setupVanillaExtract({
|
|
|
163459
163490
|
};
|
|
163460
163491
|
}
|
|
163461
163492
|
|
|
163462
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163493
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
163463
163494
|
var STYLING_CHOICES = [...SETUP_CSS_STRATEGIES, "none"];
|
|
163464
163495
|
var CSS_STRATEGY_NAME_MAP = {
|
|
163465
163496
|
tailwind: "Tailwind",
|
|
@@ -163497,11 +163528,11 @@ async function renderCssPrompt(options) {
|
|
|
163497
163528
|
});
|
|
163498
163529
|
}
|
|
163499
163530
|
|
|
163500
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163531
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
163501
163532
|
init_cjs_shims();
|
|
163502
163533
|
import { readdir as readdir3 } from "node:fs/promises";
|
|
163503
163534
|
|
|
163504
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163535
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-interop.js
|
|
163505
163536
|
init_cjs_shims();
|
|
163506
163537
|
import { createRequire as createRequire2 } from "module";
|
|
163507
163538
|
function convertRouteToV1(route) {
|
|
@@ -163517,13 +163548,13 @@ function isV1RouteConventionInstalled() {
|
|
|
163517
163548
|
}
|
|
163518
163549
|
}
|
|
163519
163550
|
|
|
163520
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163551
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
163521
163552
|
init_cjs_shims();
|
|
163522
163553
|
import { createRequire as createRequire4 } from "node:module";
|
|
163523
163554
|
import path2 from "node:path";
|
|
163524
163555
|
import { readdir as readdir2 } from "node:fs/promises";
|
|
163525
163556
|
|
|
163526
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163557
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-check.js
|
|
163527
163558
|
init_cjs_shims();
|
|
163528
163559
|
import { createRequire as createRequire3 } from "node:module";
|
|
163529
163560
|
var REQUIRED_REMIX_VERSION = "^2.1.0";
|
|
@@ -163572,7 +163603,7 @@ function getRemixPackageVersion(require22, name, root) {
|
|
|
163572
163603
|
return result;
|
|
163573
163604
|
}
|
|
163574
163605
|
|
|
163575
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163606
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/vite-config.js
|
|
163576
163607
|
init_cjs_shims();
|
|
163577
163608
|
async function hasViteConfig(root) {
|
|
163578
163609
|
const result = await findFileWithExtension(root, "vite.config");
|
|
@@ -163645,7 +163676,7 @@ function findOxygenPlugin(config) {
|
|
|
163645
163676
|
return findPlugin(config, "oxygen:main");
|
|
163646
163677
|
}
|
|
163647
163678
|
|
|
163648
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163679
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
163649
163680
|
async function hasRemixConfigFile(root) {
|
|
163650
163681
|
const result = await findFileWithExtension(root, "remix.config");
|
|
163651
163682
|
return !!result.filepath;
|
|
@@ -163797,7 +163828,7 @@ async function assertEntryFileExists(root, fileRelative) {
|
|
|
163797
163828
|
}
|
|
163798
163829
|
}
|
|
163799
163830
|
|
|
163800
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
163831
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
163801
163832
|
var NO_LOCALE_PATTERNS = [/robots\.txt/];
|
|
163802
163833
|
var ROUTE_MAP = {
|
|
163803
163834
|
home: ["_index", "$"],
|
|
@@ -164058,7 +164089,7 @@ async function copyRouteTemplate({
|
|
|
164058
164089
|
await writeFile(routePath, templateContent);
|
|
164059
164090
|
}
|
|
164060
164091
|
|
|
164061
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
164092
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
164062
164093
|
var LANGUAGES = {
|
|
164063
164094
|
js: "JavaScript",
|
|
164064
164095
|
ts: "TypeScript"
|
|
@@ -164333,7 +164364,7 @@ async function createInitialCommit(directory) {
|
|
|
164333
164364
|
return commitAll(directory, "Scaffold Storefront");
|
|
164334
164365
|
} catch (error) {
|
|
164335
164366
|
outputDebug(
|
|
164336
|
-
"Failed to initialize Git.\n" + error?.stack
|
|
164367
|
+
"Failed to initialize Git.\n" + (error?.stack ?? error?.message ?? error)
|
|
164337
164368
|
);
|
|
164338
164369
|
}
|
|
164339
164370
|
}
|
|
@@ -164343,7 +164374,7 @@ async function commitAll(directory, message) {
|
|
|
164343
164374
|
await createGitCommit(message, { directory });
|
|
164344
164375
|
} catch (error) {
|
|
164345
164376
|
outputDebug(
|
|
164346
|
-
"Failed to commit code.\n" + error?.stack
|
|
164377
|
+
"Failed to commit code.\n" + (error?.stack ?? error?.message ?? error)
|
|
164347
164378
|
);
|
|
164348
164379
|
}
|
|
164349
164380
|
}
|
|
@@ -164436,7 +164467,7 @@ async function renderProjectReady(project, {
|
|
|
164436
164467
|
command: [
|
|
164437
164468
|
project.directory === process.cwd() ? void 0 : `cd ${project.location.replace(/^\.\//, "")}`,
|
|
164438
164469
|
depsInstalled ? void 0 : `${packageManager} install`,
|
|
164439
|
-
formatPackageManagerCommand(packageManager, "dev")
|
|
164470
|
+
currentProcessIsGlobal() ? "npm run dev" : formatPackageManagerCommand(packageManager, "dev")
|
|
164440
164471
|
].filter(Boolean).join(" && ")
|
|
164441
164472
|
}
|
|
164442
164473
|
]
|
|
@@ -164458,7 +164489,7 @@ function createAbortHandler(controller, project) {
|
|
|
164458
164489
|
}
|
|
164459
164490
|
renderFatalError(
|
|
164460
164491
|
new AbortError(
|
|
164461
|
-
"Failed to initialize project: " + error?.message,
|
|
164492
|
+
"Failed to initialize project: " + (error?.message ?? ""),
|
|
164462
164493
|
error?.tryMessage ?? error?.stack
|
|
164463
164494
|
)
|
|
164464
164495
|
);
|
|
@@ -164542,7 +164573,7 @@ function generateRandomName() {
|
|
|
164542
164573
|
return `${colorNames} ${geographicalFeature}`;
|
|
164543
164574
|
}
|
|
164544
164575
|
|
|
164545
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
164576
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
164546
164577
|
var Link = class _Link extends base_command_default {
|
|
164547
164578
|
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.
|
|
164548
164579
|
|
|
@@ -164688,7 +164719,7 @@ async function createNewStorefront(root, session, storefronts) {
|
|
|
164688
164719
|
return storefront;
|
|
164689
164720
|
}
|
|
164690
164721
|
|
|
164691
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
164722
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/customer-application-update.js
|
|
164692
164723
|
init_cjs_shims();
|
|
164693
164724
|
var CUSTOMER_APPLICATION_URLS_REPLACE = `#graphql
|
|
164694
164725
|
mutation CustomerApplicationUrlsReplace($storefrontId: ID!, $urlsReplaceInput: HydrogenStorefrontCustomerApplicationUrlsReplaceInput!) {
|
|
@@ -164716,7 +164747,7 @@ async function replaceCustomerApplicationUrls(adminSession, storefrontId, urlsRe
|
|
|
164716
164747
|
return { success, userErrors };
|
|
164717
164748
|
}
|
|
164718
164749
|
|
|
164719
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
164750
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
164720
164751
|
var CustomerAccountPush = class _CustomerAccountPush extends base_command_default {
|
|
164721
164752
|
static description = "Push project configuration to admin";
|
|
164722
164753
|
static flags = {
|
|
@@ -164875,10 +164906,10 @@ async function getStorefrontId(root, storefrontIdFromFlag) {
|
|
|
164875
164906
|
return newConfig.storefront?.id;
|
|
164876
164907
|
}
|
|
164877
164908
|
|
|
164878
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
164909
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
164879
164910
|
init_cjs_shims();
|
|
164880
164911
|
|
|
164881
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
164912
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/dot-env.js
|
|
164882
164913
|
init_cjs_shims();
|
|
164883
164914
|
var import_dotenv = __toESM(require_main(), 1);
|
|
164884
164915
|
async function readAndParseDotEnv(path3) {
|
|
@@ -164960,7 +164991,7 @@ function createDotEnvFileLine(key, value, quote2) {
|
|
|
164960
164991
|
return `${key}=${value}`;
|
|
164961
164992
|
}
|
|
164962
164993
|
|
|
164963
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
164994
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/pull-variables.js
|
|
164964
164995
|
init_cjs_shims();
|
|
164965
164996
|
var PullVariablesQuery = `#graphql
|
|
164966
164997
|
query PullVariables($id: ID!, $handle: String) {
|
|
@@ -164988,7 +165019,7 @@ async function getStorefrontEnvVariables(adminSession, storefrontId, envHandle)
|
|
|
164988
165019
|
return hydrogenStorefront;
|
|
164989
165020
|
}
|
|
164990
165021
|
|
|
164991
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
165022
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-environments.js
|
|
164992
165023
|
init_cjs_shims();
|
|
164993
165024
|
var ListEnvironmentsQuery = `#graphql
|
|
164994
165025
|
query ListStorefronts($id: ID!) {
|
|
@@ -165016,7 +165047,7 @@ async function getStorefrontEnvironments(adminSession, storefrontId) {
|
|
|
165016
165047
|
return hydrogenStorefront;
|
|
165017
165048
|
}
|
|
165018
165049
|
|
|
165019
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
165050
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/common.js
|
|
165020
165051
|
init_cjs_shims();
|
|
165021
165052
|
function orderEnvironmentsBySafety(environments) {
|
|
165022
165053
|
return [
|
|
@@ -165064,7 +165095,7 @@ function environmentNotFound(criterion, value) {
|
|
|
165064
165095
|
);
|
|
165065
165096
|
}
|
|
165066
165097
|
|
|
165067
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
165098
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
165068
165099
|
var createEmptyRemoteVars = () => ({
|
|
165069
165100
|
remoteVariables: {},
|
|
165070
165101
|
remoteSecrets: {}
|
|
@@ -165145,7 +165176,7 @@ async function getLocalVariables(root) {
|
|
|
165145
165176
|
);
|
|
165146
165177
|
}
|
|
165147
165178
|
|
|
165148
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
165179
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/tunneling.js
|
|
165149
165180
|
init_cjs_shims();
|
|
165150
165181
|
async function startTunnelPlugin(config, port, provider) {
|
|
165151
165182
|
const hooks = await fanoutHooks(config, "tunnel_start", { port, provider });
|
|
@@ -165186,7 +165217,7 @@ async function pollTunnelURL(tunnelClient) {
|
|
|
165186
165217
|
});
|
|
165187
165218
|
}
|
|
165188
165219
|
|
|
165189
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
165220
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
165190
165221
|
function isMockShop(envVariables) {
|
|
165191
165222
|
return envVariables.PUBLIC_STORE_DOMAIN === "mock.shop" || // We fallback to mock.shop if the env var is falsy.
|
|
165192
165223
|
// When it's undefined, it might be overwritten by remote variables.
|
|
@@ -165287,7 +165318,6 @@ export {
|
|
|
165287
165318
|
supressNodeExperimentalWarnings,
|
|
165288
165319
|
isHydrogenMonorepo,
|
|
165289
165320
|
hydrogenPackagesPath,
|
|
165290
|
-
getPkgJsonPath,
|
|
165291
165321
|
getAssetsDir,
|
|
165292
165322
|
getTemplateAppFile,
|
|
165293
165323
|
getStarterDir,
|