@shopify/cli 3.80.7 → 3.81.1
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/dev-console/extensions/dev-console/assets/index-ohOjvIJh.js +64 -0
- package/dist/assets/dev-console/index.html +1 -1
- package/dist/assets/hydrogen/starter/.cursor/rules/cookbook-recipe-subscriptions.mdc +921 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +0 -35
- package/dist/assets/hydrogen/starter/app/components/AddToCartButton.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/Footer.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/Header.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/ProductItem.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchForm.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchFormPredictive.tsx +6 -1
- package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/entry.client.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/entry.server.tsx +4 -9
- package/dist/assets/hydrogen/starter/app/lib/variants.ts +1 -1
- package/dist/assets/hydrogen/starter/app/root.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/_index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +4 -4
- package/dist/assets/hydrogen/starter/app/routes/account.orders._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +7 -1
- package/dist/assets/hydrogen/starter/app/routes/account.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +2 -7
- package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/search.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes.ts +2 -2
- package/dist/assets/hydrogen/starter/env.d.ts +2 -12
- package/dist/assets/hydrogen/starter/eslint.config.js +0 -2
- package/dist/assets/hydrogen/starter/package.json +12 -11
- package/dist/assets/hydrogen/starter/server.ts +5 -2
- package/dist/assets/hydrogen/starter/tsconfig.json +6 -18
- package/dist/assets/hydrogen/starter/vite.config.ts +24 -3
- package/dist/assets/hydrogen/tailwind/package.json +1 -4
- package/dist/assets/hydrogen/virtual-routes/components/RequestDetails.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/layout.jsx +7 -1
- package/dist/assets/hydrogen/virtual-routes/routes/index.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/routes/subrequest-profiler.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/virtual-root-with-layout.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/virtual-root.jsx +1 -1
- package/dist/assets/hydrogen/vite/vite.config.js +1 -1
- package/dist/{chunk-TNF6QFVZ.js → chunk-27MYZBXV.js} +28 -31
- package/dist/{chunk-63DIRIVX.js → chunk-2Y3UFXD6.js} +242 -216
- package/dist/{chunk-YQXBJZRZ.js → chunk-5CZUSVND.js} +2 -2
- package/dist/{chunk-TMYCLPMW.js → chunk-5LMBCQDG.js} +544 -336
- package/dist/{chunk-KGZTFG3M.js → chunk-5NWUTFCV.js} +3 -3
- package/dist/{chunk-JRAEVQWT.js → chunk-5OBLOY7U.js} +2 -2
- package/dist/{chunk-RJJFC36J.js → chunk-5RPSJUXQ.js} +28 -28
- package/dist/{chunk-5K4EFFDY.js → chunk-6CJ6BGWA.js} +9 -8
- package/dist/{chunk-OQ7ZCSZM.js → chunk-6GAIDVJR.js} +8 -6
- package/dist/{chunk-PJZWUPY4.js → chunk-6NGGBF47.js} +5 -5
- package/dist/{chunk-XZM7J5LL.js → chunk-ALHM5GST.js} +5 -5
- package/dist/{chunk-ECV2CLGW.js → chunk-B44H2P6E.js} +4 -4
- package/dist/{chunk-T6CKLCY3.js → chunk-B5JZHKPR.js} +3 -3
- package/dist/{chunk-IHC7Q4LY.js → chunk-CN7P6XXP.js} +4 -4
- package/dist/{chunk-TJM3YBLQ.js → chunk-CTFDRWUN.js} +15 -12
- package/dist/{chunk-HWRJLLWI.js → chunk-DDYH6337.js} +2 -2
- package/dist/{chunk-NY2OPNXU.js → chunk-E6T6HFSE.js} +5 -5
- package/dist/{chunk-CDBXAE2F.js → chunk-EG6MBBEN.js} +99 -11
- package/dist/{chunk-OWRPRJTD.js → chunk-FAITFLRX.js} +2 -2
- package/dist/{chunk-ZOUELNMC.js → chunk-GMFX4XJF.js} +3 -3
- package/dist/{chunk-2W6OLZFD.js → chunk-H37YPI3Y.js} +3 -3
- package/dist/{chunk-RJ4CN43L.js → chunk-I2M5KL5Z.js} +4 -4
- package/dist/{chunk-VYIBTTN2.js → chunk-JKKYVUPT.js} +3 -3
- package/dist/{chunk-QPXAGLXJ.js → chunk-JV3N43QW.js} +5 -5
- package/dist/{chunk-NSTNFY7W.js → chunk-KJXXNUND.js} +45 -23
- package/dist/{chunk-5AFYDRV4.js → chunk-LPU2VGJR.js} +42 -507
- package/dist/{chunk-KUZYMDX4.js → chunk-NEQJPNB5.js} +8 -8
- package/dist/{chunk-5YH5HMRM.js → chunk-NZVDI2PG.js} +3 -3
- package/dist/{chunk-W4ZWJMX2.js → chunk-O66CPW2Z.js} +2 -2
- package/dist/{chunk-PDNRVFZE.js → chunk-OU2VE5NL.js} +16 -11
- package/dist/{chunk-RFO2FC5M.js → chunk-PINTEIWG.js} +6 -6
- package/dist/{chunk-JDRMHPFL.js → chunk-PLXKIAXS.js} +4 -4
- package/dist/{chunk-MQCYR4KR.js → chunk-R7PQLQRT.js} +4 -4
- package/dist/{chunk-MSHN7O5N.js → chunk-SOZ33QZX.js} +2 -2
- package/dist/{chunk-LQ2ZKVR6.js → chunk-UMUTXITN.js} +87 -4
- package/dist/chunk-V67D4V7T.js +107 -0
- package/dist/{chunk-77RMKCKT.js → chunk-VANXFY34.js} +2 -2
- package/dist/chunk-W5G2YPO2.js +11805 -0
- package/dist/{chunk-3DYG3ZWU.js → chunk-WSP4T6BG.js} +3 -3
- package/dist/{chunk-JU6SOKDJ.js → chunk-X2GG47RT.js} +4 -4
- package/dist/{chunk-HYECXSZG.js → chunk-ZARNHYRC.js} +276 -77
- package/dist/cli/commands/auth/logout.js +16 -17
- package/dist/cli/commands/auth/logout.test.js +18 -19
- package/dist/cli/commands/cache/clear.js +15 -16
- package/dist/cli/commands/debug/command-flags.js +15 -16
- package/dist/cli/commands/docs/generate.js +15 -16
- package/dist/cli/commands/docs/generate.test.js +16 -17
- package/dist/cli/commands/help.js +15 -16
- package/dist/cli/commands/kitchen-sink/async.js +16 -17
- package/dist/cli/commands/kitchen-sink/async.test.js +17 -18
- package/dist/cli/commands/kitchen-sink/index.js +18 -19
- package/dist/cli/commands/kitchen-sink/index.test.js +19 -20
- package/dist/cli/commands/kitchen-sink/prompts.js +16 -17
- package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -18
- package/dist/cli/commands/kitchen-sink/static.js +16 -17
- package/dist/cli/commands/kitchen-sink/static.test.js +17 -18
- package/dist/cli/commands/notifications/generate.js +16 -17
- package/dist/cli/commands/notifications/list.js +16 -17
- package/dist/cli/commands/search.js +16 -17
- package/dist/cli/commands/upgrade.js +16 -17
- package/dist/cli/commands/upgrade.test.js +1 -2
- package/dist/cli/commands/version.js +16 -17
- package/dist/cli/commands/version.test.js +17 -18
- package/dist/cli/services/commands/notifications.js +11 -12
- package/dist/cli/services/commands/search.js +7 -8
- package/dist/cli/services/commands/search.test.js +8 -9
- package/dist/cli/services/commands/version.js +8 -9
- package/dist/cli/services/commands/version.test.js +10 -11
- package/dist/cli/services/kitchen-sink/async.js +7 -8
- package/dist/cli/services/kitchen-sink/prompts.js +7 -8
- package/dist/cli/services/kitchen-sink/static.js +7 -8
- package/dist/cli/services/upgrade.js +8 -9
- package/dist/cli/services/upgrade.test.js +10 -11
- package/dist/{custom-oclif-loader-XTWWK7GM.js → custom-oclif-loader-7E5Z2M56.js} +7 -8
- package/dist/{del-YIU34DZ5.js → del-4JSTEFDW.js} +3 -3
- package/dist/{devtools-J4QAI6HR.js → devtools-LDCSRUXB.js} +4 -4
- package/dist/{error-handler-MIQWANES.js → error-handler-GHVJK7OK.js} +13 -14
- package/dist/hooks/postrun.js +11 -12
- package/dist/hooks/prerun.js +12 -13
- package/dist/{http-proxy-KGLXPNEY.js → http-proxy-LHSVRGJ5.js} +14 -10
- package/dist/index.js +153266 -162667
- package/dist/{lib-MIBR2T7P.js → lib-2ZBT3UR2.js} +5 -5
- package/dist/{local-OL4QQF7A.js → local-GLHD5LYH.js} +9 -14
- package/dist/{magic-string.es-BSVDQOZI.js → magic-string.es-UZAAPNRE.js} +42 -36
- package/dist/{morph-3VOLMA55.js → morph-DFRO3NRL.js} +10 -10
- package/dist/node-OFSPLONP.js +164 -0
- package/dist/{node-package-manager-YZ7SC7JY.js → node-package-manager-K7DEALW5.js} +8 -9
- package/dist/{out-5KP5WGIK.js → out-NKJPLKLB.js} +2 -2
- package/dist/{path-2K5HIMHZ.js → path-GB4VIEM6.js} +2 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-UMSB2BWG.js → ui-G7IYCY5T.js} +7 -10
- package/dist/{workerd-K4ZX64LQ.js → workerd-IDTCFUND.js} +18 -20
- package/oclif.manifest.json +29 -9
- package/package.json +10 -11
- package/dist/assets/dev-console/extensions/dev-console/assets/index-CqNhY1h-.js +0 -64
- package/dist/assets/hydrogen/starter/.cursor/rules/hydrogen-react-router.mdc +0 -52
- package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +0 -14
- package/dist/assets/hydrogen/starter/react-router.config.ts +0 -7
- package/dist/chunk-3I3GQNEW.js +0 -95
- package/dist/chunk-57Q6OQG4.js +0 -111
- package/dist/chunk-ZEM3T4UY.js +0 -10590
- package/dist/toml-patch-wasm-J5VGG6WG.js +0 -140
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
require_src
|
|
3
|
-
} from "./chunk-LQ2ZKVR6.js";
|
|
4
1
|
import {
|
|
5
2
|
setNextDeprecationDate
|
|
6
3
|
} from "./chunk-CP3BRHWK.js";
|
|
@@ -8,19 +5,19 @@ import {
|
|
|
8
5
|
ensureAuthenticatedAdmin,
|
|
9
6
|
ensureAuthenticatedBusinessPlatform,
|
|
10
7
|
logout
|
|
11
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-R7PQLQRT.js";
|
|
12
9
|
import {
|
|
13
10
|
base_command_default
|
|
14
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KJXXNUND.js";
|
|
15
12
|
import {
|
|
16
13
|
fanoutHooks,
|
|
17
14
|
requestIdsCollection
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5RPSJUXQ.js";
|
|
19
16
|
import {
|
|
20
17
|
businessPlatformFqdn,
|
|
21
18
|
normalizeStoreFqdn,
|
|
22
19
|
partnersFqdn
|
|
23
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6GAIDVJR.js";
|
|
24
21
|
import {
|
|
25
22
|
ClientError,
|
|
26
23
|
GraphQLClient,
|
|
@@ -34,10 +31,10 @@ import {
|
|
|
34
31
|
retryAwareRequest,
|
|
35
32
|
sanitizeURL,
|
|
36
33
|
sanitizedHeadersOutput
|
|
37
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-27MYZBXV.js";
|
|
38
35
|
import {
|
|
39
36
|
CLI_KIT_VERSION
|
|
40
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-DDYH6337.js";
|
|
41
38
|
import {
|
|
42
39
|
cacheRetrieveOrRepopulate,
|
|
43
40
|
findUpAndReadPackageJson,
|
|
@@ -47,7 +44,7 @@ import {
|
|
|
47
44
|
readAndParsePackageJson,
|
|
48
45
|
timeIntervalToMilliseconds,
|
|
49
46
|
writePackageJSON
|
|
50
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-ZARNHYRC.js";
|
|
51
48
|
import {
|
|
52
49
|
AbortError,
|
|
53
50
|
BugError,
|
|
@@ -71,6 +68,7 @@ import {
|
|
|
71
68
|
outputDebug,
|
|
72
69
|
outputInfo,
|
|
73
70
|
outputToken,
|
|
71
|
+
outputWarn,
|
|
74
72
|
readFile,
|
|
75
73
|
removeFile,
|
|
76
74
|
renderConfirmationPrompt,
|
|
@@ -86,7 +84,7 @@ import {
|
|
|
86
84
|
source_default,
|
|
87
85
|
stringifyMessage,
|
|
88
86
|
writeFile
|
|
89
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-2Y3UFXD6.js";
|
|
90
88
|
import {
|
|
91
89
|
basename,
|
|
92
90
|
cwd,
|
|
@@ -96,10 +94,13 @@ import {
|
|
|
96
94
|
relativePath,
|
|
97
95
|
relativizePath,
|
|
98
96
|
resolvePath
|
|
99
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-EG6MBBEN.js";
|
|
100
98
|
import {
|
|
101
99
|
require_lib
|
|
102
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-LPU2VGJR.js";
|
|
101
|
+
import {
|
|
102
|
+
require_src
|
|
103
|
+
} from "./chunk-UMUTXITN.js";
|
|
103
104
|
import {
|
|
104
105
|
require_source_map_support
|
|
105
106
|
} from "./chunk-G5R6YD27.js";
|
|
@@ -119235,7 +119236,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
119235
119236
|
readdirWithFileTypes(directory, settings, callback);
|
|
119236
119237
|
return;
|
|
119237
119238
|
}
|
|
119238
|
-
|
|
119239
|
+
readdir5(directory, settings, callback);
|
|
119239
119240
|
}
|
|
119240
119241
|
exports22.read = read;
|
|
119241
119242
|
function readdirWithFileTypes(directory, settings, callback) {
|
|
@@ -119285,7 +119286,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
119285
119286
|
});
|
|
119286
119287
|
};
|
|
119287
119288
|
}
|
|
119288
|
-
function
|
|
119289
|
+
function readdir5(directory, settings, callback) {
|
|
119289
119290
|
settings.fs.readdir(directory, (readdirError, names) => {
|
|
119290
119291
|
if (readdirError !== null) {
|
|
119291
119292
|
callFailureCallback(callback, readdirError);
|
|
@@ -119317,7 +119318,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
119317
119318
|
});
|
|
119318
119319
|
});
|
|
119319
119320
|
}
|
|
119320
|
-
exports22.readdir =
|
|
119321
|
+
exports22.readdir = readdir5;
|
|
119321
119322
|
function callFailureCallback(callback, error) {
|
|
119322
119323
|
callback(error);
|
|
119323
119324
|
}
|
|
@@ -119333,7 +119334,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
119333
119334
|
}), exports22.readdir = exports22.readdirWithFileTypes = exports22.read = void 0;
|
|
119334
119335
|
var fsStat = require_out(), constants_1 = require_constants4(), utils = require_utils5(), common = require_common3();
|
|
119335
119336
|
function read(directory, settings) {
|
|
119336
|
-
return !settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES ? readdirWithFileTypes(directory, settings) :
|
|
119337
|
+
return !settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES ? readdirWithFileTypes(directory, settings) : readdir5(directory, settings);
|
|
119337
119338
|
}
|
|
119338
119339
|
exports22.read = read;
|
|
119339
119340
|
function readdirWithFileTypes(directory, settings) {
|
|
@@ -119357,7 +119358,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
119357
119358
|
});
|
|
119358
119359
|
}
|
|
119359
119360
|
exports22.readdirWithFileTypes = readdirWithFileTypes;
|
|
119360
|
-
function
|
|
119361
|
+
function readdir5(directory, settings) {
|
|
119361
119362
|
return settings.fs.readdirSync(directory).map((name) => {
|
|
119362
119363
|
let entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator), stats = fsStat.statSync(entryPath, settings.fsStatSettings), entry = {
|
|
119363
119364
|
name,
|
|
@@ -119367,7 +119368,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
119367
119368
|
return settings.stats && (entry.stats = stats), entry;
|
|
119368
119369
|
});
|
|
119369
119370
|
}
|
|
119370
|
-
exports22.readdir =
|
|
119371
|
+
exports22.readdir = readdir5;
|
|
119371
119372
|
}
|
|
119372
119373
|
}), require_fs4 = __commonJS22({
|
|
119373
119374
|
"node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports22) {
|
|
@@ -135350,212 +135351,21 @@ var require_main = __commonJS({
|
|
|
135350
135351
|
}
|
|
135351
135352
|
});
|
|
135352
135353
|
|
|
135353
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135354
|
-
init_cjs_shims();
|
|
135355
|
-
import { createRequire } from "node:module";
|
|
135356
|
-
import { pathToFileURL } from "node:url";
|
|
135357
|
-
var require2 = createRequire(import.meta.url);
|
|
135358
|
-
async function importVite(root) {
|
|
135359
|
-
let vitePath = require2.resolve(
|
|
135360
|
-
"vite",
|
|
135361
|
-
process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [root] }
|
|
135362
|
-
), vitePackageJson = await findUpAndReadPackageJson(vitePath), viteNodeIndexFile = vitePackageJson.content.exports?.["."].import;
|
|
135363
|
-
typeof viteNodeIndexFile != "string" && (viteNodeIndexFile = viteNodeIndexFile.default);
|
|
135364
|
-
let viteNodePath = joinPath(
|
|
135365
|
-
dirname(vitePackageJson.path),
|
|
135366
|
-
viteNodeIndexFile
|
|
135367
|
-
);
|
|
135368
|
-
return import(pathToFileURL(viteNodePath).href);
|
|
135369
|
-
}
|
|
135370
|
-
function importLocal(packageName, path3) {
|
|
135371
|
-
let realPath = require2.resolve(
|
|
135372
|
-
packageName,
|
|
135373
|
-
process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [path3] }
|
|
135374
|
-
);
|
|
135375
|
-
return import(pathToFileURL(realPath).href);
|
|
135376
|
-
}
|
|
135377
|
-
|
|
135378
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.0_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
135379
|
-
init_cjs_shims();
|
|
135380
|
-
import path from "node:path";
|
|
135381
|
-
import { EventEmitter } from "node:events";
|
|
135382
|
-
import { ReadableStream } from "node:stream/web";
|
|
135383
|
-
|
|
135384
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.0_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphiql-url.js
|
|
135385
|
-
init_cjs_shims();
|
|
135386
|
-
function getGraphiQLUrl({
|
|
135387
|
-
host = "",
|
|
135388
|
-
graphql
|
|
135389
|
-
}) {
|
|
135390
|
-
let url = `${host.endsWith("/") ? host.slice(0, -1) : host}/graphiql`;
|
|
135391
|
-
if (graphql) {
|
|
135392
|
-
let { query, variables } = graphql;
|
|
135393
|
-
typeof variables != "string" && (variables = JSON.stringify(variables)), url += `?query=${encodeURIComponent(query)}${variables ? `&variables=${encodeURIComponent(variables)}` : ""}`, graphql.schema && (url += `&schema=${graphql.schema}`);
|
|
135394
|
-
}
|
|
135395
|
-
return url;
|
|
135396
|
-
}
|
|
135397
|
-
|
|
135398
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.0_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
135399
|
-
var import_source_map_support = __toESM(require_source_map_support(), 1), H2O_BINDING_NAME = "H2O_LOG_EVENT", ResponseConstructor;
|
|
135400
|
-
function setConstructors(constructors) {
|
|
135401
|
-
ResponseConstructor = constructors.Response;
|
|
135402
|
-
}
|
|
135403
|
-
var DEV_ROUTES = /* @__PURE__ */ new Set([
|
|
135404
|
-
"/graphiql",
|
|
135405
|
-
"/graphiql/customer-account.schema.json",
|
|
135406
|
-
"/subrequest-profiler",
|
|
135407
|
-
"/debug-network-server"
|
|
135408
|
-
]), EVENT_MAP = {
|
|
135409
|
-
request: "Request",
|
|
135410
|
-
subrequest: "Sub request"
|
|
135411
|
-
};
|
|
135412
|
-
async function getRequestInfo(request) {
|
|
135413
|
-
let data = await request.json();
|
|
135414
|
-
return {
|
|
135415
|
-
...data,
|
|
135416
|
-
requestId: data.requestId ?? "",
|
|
135417
|
-
eventType: data.eventType || "unknown",
|
|
135418
|
-
endTime: data.endTime || Date.now(),
|
|
135419
|
-
purpose: data.purpose === "prefetch" ? "(prefetch)" : "",
|
|
135420
|
-
cacheStatus: data.cacheStatus ?? "",
|
|
135421
|
-
graphql: data.graphql ? JSON.parse(data.graphql) : null
|
|
135422
|
-
};
|
|
135423
|
-
}
|
|
135424
|
-
var eventEmitter = new EventEmitter(), eventHistory = [];
|
|
135425
|
-
function createResponse(main = "ok", init) {
|
|
135426
|
-
return new ResponseConstructor(main, init);
|
|
135427
|
-
}
|
|
135428
|
-
function clearHistory(request) {
|
|
135429
|
-
return eventHistory.length = 0, createResponse();
|
|
135430
|
-
}
|
|
135431
|
-
function createLogRequestEvent(options2) {
|
|
135432
|
-
return async function(request) {
|
|
135433
|
-
let url = new URL(request.url);
|
|
135434
|
-
if (DEV_ROUTES.has(url.pathname))
|
|
135435
|
-
return createResponse();
|
|
135436
|
-
let {
|
|
135437
|
-
url: displayUrl,
|
|
135438
|
-
displayName: displayNameData,
|
|
135439
|
-
eventType,
|
|
135440
|
-
purpose,
|
|
135441
|
-
graphql,
|
|
135442
|
-
stackInfo,
|
|
135443
|
-
...data
|
|
135444
|
-
} = await getRequestInfo(request), graphiqlLink = "", descriptionUrl = request.url, displayName = displayNameData;
|
|
135445
|
-
eventType === "subrequest" && (displayName = displayName || graphql?.query.match(/(query|mutation)\s+(\w+)/)?.[0]?.replace(/\s+/, " "), descriptionUrl = displayUrl || request.url, graphql && (graphiqlLink = getGraphiQLUrl({ graphql })));
|
|
135446
|
-
let stackLine = null, stackLink = null;
|
|
135447
|
-
if (stackInfo?.file) {
|
|
135448
|
-
options2?.transformLocation && (stackInfo.file = options2.transformLocation(stackInfo.file));
|
|
135449
|
-
let { source, line, column } = (0, import_source_map_support.mapSourcePosition)({
|
|
135450
|
-
source: stackInfo.file,
|
|
135451
|
-
line: stackInfo.line ?? 0,
|
|
135452
|
-
column: stackInfo.column ?? 0
|
|
135453
|
-
});
|
|
135454
|
-
stackLine = `${source}:${line}:${column + 1}`, stackLink = `vscode://${path.join("file", stackLine)}`, stackLine = stackLine.split(path.sep + "app" + path.sep)[1] ?? stackLine, stackInfo.func && (stackLine = `${stackInfo.func.replace(/\d+$/, "")} (${stackLine})`);
|
|
135455
|
-
}
|
|
135456
|
-
let event = {
|
|
135457
|
-
event: EVENT_MAP[eventType] || eventType,
|
|
135458
|
-
data: JSON.stringify({
|
|
135459
|
-
...data,
|
|
135460
|
-
displayName,
|
|
135461
|
-
url: `${purpose} ${descriptionUrl}`.trim(),
|
|
135462
|
-
graphiqlLink,
|
|
135463
|
-
stackLine,
|
|
135464
|
-
stackLink
|
|
135465
|
-
})
|
|
135466
|
-
};
|
|
135467
|
-
return eventHistory.push(event), eventHistory.length > 100 && eventHistory.shift(), eventEmitter.emit("request", event), createResponse();
|
|
135468
|
-
};
|
|
135469
|
-
}
|
|
135470
|
-
function streamRequestEvents(request) {
|
|
135471
|
-
let stream = new ReadableStream({
|
|
135472
|
-
start(controller) {
|
|
135473
|
-
let encoder = new TextEncoder(), enqueueEvent = ({ event = "message", data }) => {
|
|
135474
|
-
controller.enqueue(encoder.encode(`event: ${event}
|
|
135475
|
-
`)), controller.enqueue(encoder.encode(`data: ${data}
|
|
135476
|
-
|
|
135477
|
-
`));
|
|
135478
|
-
};
|
|
135479
|
-
eventHistory.forEach(enqueueEvent), eventEmitter.addListener("request", enqueueEvent);
|
|
135480
|
-
let closed = !1;
|
|
135481
|
-
function close() {
|
|
135482
|
-
closed || (closed = !0, request.signal.removeEventListener("abort", close), eventEmitter.removeListener("request", enqueueEvent), controller.close());
|
|
135483
|
-
}
|
|
135484
|
-
if (request.signal.addEventListener("abort", close), request.signal.aborted) return close();
|
|
135485
|
-
}
|
|
135486
|
-
});
|
|
135487
|
-
return createResponse(stream, {
|
|
135488
|
-
headers: {
|
|
135489
|
-
"Content-Type": "text/event-stream",
|
|
135490
|
-
"Cache-Control": "no-store",
|
|
135491
|
-
Connection: "keep-alive"
|
|
135492
|
-
}
|
|
135493
|
-
});
|
|
135494
|
-
}
|
|
135495
|
-
function handleDebugNetworkRequest(request) {
|
|
135496
|
-
return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
|
|
135497
|
-
}
|
|
135498
|
-
|
|
135499
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.0_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/common.js
|
|
135500
|
-
init_cjs_shims();
|
|
135501
|
-
var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
|
|
135502
|
-
function handleMiniOxygenImportFail() {
|
|
135503
|
-
throw new AbortError(
|
|
135504
|
-
"Could not load MiniOxygen.",
|
|
135505
|
-
"Please make sure you have `@shopify/mini-oxygen` installed."
|
|
135506
|
-
);
|
|
135507
|
-
}
|
|
135508
|
-
function logRequestLine({
|
|
135509
|
-
request,
|
|
135510
|
-
response,
|
|
135511
|
-
meta
|
|
135512
|
-
}) {
|
|
135513
|
-
try {
|
|
135514
|
-
let url = new URL(request.url);
|
|
135515
|
-
if (DEV_ROUTES.has(url.pathname) || url.pathname === "/favicon.ico") return;
|
|
135516
|
-
let isDataRequest = url.searchParams.has("_data"), route = request.url.replace(url.origin, ""), info = "", type = "render";
|
|
135517
|
-
if (isDataRequest) {
|
|
135518
|
-
type = request.method === "GET" ? "loader" : "action";
|
|
135519
|
-
let dataParam = url.searchParams.get("_data")?.replace("routes/", "");
|
|
135520
|
-
route = url.pathname, info = `[${dataParam}]`;
|
|
135521
|
-
}
|
|
135522
|
-
let colorizeStatus = response.status < 300 ? outputToken.green : response.status < 400 ? outputToken.cyan : outputToken.errorText;
|
|
135523
|
-
outputInfo(
|
|
135524
|
-
outputContent`${request.method.padStart(6)} ${colorizeStatus(
|
|
135525
|
-
String(response.status)
|
|
135526
|
-
)} ${outputToken.italic(type.padEnd(7, " "))} ${route} ${meta.durationMs > 0 ? source_default.dim(` ${meta.durationMs}ms`) : ""}${info ? " " + source_default.dim(info) : ""}${request.headers.purpose === "prefetch" ? outputToken.italic(source_default.dim(" prefetch")) : ""}`
|
|
135527
|
-
);
|
|
135528
|
-
} catch {
|
|
135529
|
-
request && response?.status && outputInfo(`${request.method} ${response.status} ${request.url}`);
|
|
135530
|
-
}
|
|
135531
|
-
}
|
|
135532
|
-
|
|
135533
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.0_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
135534
|
-
init_cjs_shims();
|
|
135535
|
-
|
|
135536
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.0_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
135537
|
-
init_cjs_shims();
|
|
135538
|
-
var import_core3 = __toESM(require_lib(), 1);
|
|
135539
|
-
|
|
135540
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.0_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
135541
|
-
init_cjs_shims();
|
|
135542
|
-
var import_core2 = __toESM(require_lib(), 1);
|
|
135543
|
-
|
|
135544
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.0_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
135354
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
135545
135355
|
init_cjs_shims();
|
|
135546
135356
|
var import_core = __toESM(require_lib(), 1);
|
|
135547
135357
|
|
|
135548
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135358
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
135549
135359
|
init_cjs_shims();
|
|
135550
135360
|
|
|
135551
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135361
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
135552
135362
|
init_cjs_shims();
|
|
135553
135363
|
|
|
135554
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135364
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
135555
135365
|
init_cjs_shims();
|
|
135556
135366
|
import { fileURLToPath } from "node:url";
|
|
135557
135367
|
|
|
135558
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135368
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/process.js
|
|
135559
135369
|
init_cjs_shims();
|
|
135560
135370
|
import { exec } from "node:child_process";
|
|
135561
135371
|
import { promisify } from "node:util";
|
|
@@ -135567,7 +135377,7 @@ function supressNodeExperimentalWarnings() {
|
|
|
135567
135377
|
}));
|
|
135568
135378
|
}
|
|
135569
135379
|
|
|
135570
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135380
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
135571
135381
|
var monorepoPackagesPath = new URL("../../..", import.meta.url).pathname, isHydrogenMonorepo = monorepoPackagesPath.endsWith(
|
|
135572
135382
|
"/hydrogen/packages/"
|
|
135573
135383
|
), hydrogenPackagesPath = isHydrogenMonorepo ? monorepoPackagesPath : void 0, ASSETS_DIR_PREFIX = "assets/hydrogen", ASSETS_STARTER_DIR = "starter", ASSETS_STARTER_DIR_ROUTES = "routes", pkgJsonPath;
|
|
@@ -135614,7 +135424,7 @@ async function getRepoNodeModules() {
|
|
|
135614
135424
|
return !nodeModulesPath && isHydrogenMonorepo && (nodeModulesPath = joinPath(dirname(monorepoPackagesPath), "node_modules")), nodeModulesPath;
|
|
135615
135425
|
}
|
|
135616
135426
|
|
|
135617
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135427
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
135618
135428
|
var SETUP_CSS_STRATEGIES = [
|
|
135619
135429
|
"tailwind",
|
|
135620
135430
|
"vanilla-extract",
|
|
@@ -135649,14 +135459,14 @@ async function canWriteFiles(assetMap, directory, force) {
|
|
|
135649
135459
|
}));
|
|
135650
135460
|
}
|
|
135651
135461
|
|
|
135652
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135462
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
135653
135463
|
init_cjs_shims();
|
|
135654
135464
|
|
|
135655
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135465
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
135656
135466
|
init_cjs_shims();
|
|
135657
135467
|
import { readdir } from "node:fs/promises";
|
|
135658
135468
|
|
|
135659
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135469
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/format-code.js
|
|
135660
135470
|
init_cjs_shims();
|
|
135661
135471
|
var prettier = __toESM(require_prettier(), 1);
|
|
135662
135472
|
import * as FS from "fs/promises";
|
|
@@ -135686,7 +135496,7 @@ async function formatCode(content, config = DEFAULT_PRETTIER_CONFIG, filePath =
|
|
|
135686
135496
|
});
|
|
135687
135497
|
}
|
|
135688
135498
|
|
|
135689
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135499
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
135690
135500
|
async function replaceFileContent(filepath, formatConfig, replacer) {
|
|
135691
135501
|
let content = await replacer(await readFile(filepath));
|
|
135692
135502
|
if (typeof content == "string")
|
|
@@ -135769,10 +135579,10 @@ async function mergeTsConfig(sourceDir, targetDir) {
|
|
|
135769
135579
|
);
|
|
135770
135580
|
}
|
|
135771
135581
|
|
|
135772
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135582
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
135773
135583
|
init_cjs_shims();
|
|
135774
135584
|
|
|
135775
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135585
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/ast.js
|
|
135776
135586
|
init_cjs_shims();
|
|
135777
135587
|
async function importLangAstGrep(lang) {
|
|
135778
135588
|
let astGrep = await import("@ast-grep/napi");
|
|
@@ -135781,7 +135591,7 @@ async function importLangAstGrep(lang) {
|
|
|
135781
135591
|
return astGrep[lang];
|
|
135782
135592
|
}
|
|
135783
135593
|
|
|
135784
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135594
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
135785
135595
|
async function replaceRootLinks(appDirectory, formatConfig, importer) {
|
|
135786
135596
|
let { filepath, astType } = await findFileWithExtension(appDirectory, "root");
|
|
135787
135597
|
if (!filepath || !astType)
|
|
@@ -135883,7 +135693,7 @@ var vitePluginListRule = {
|
|
|
135883
135693
|
}
|
|
135884
135694
|
};
|
|
135885
135695
|
|
|
135886
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135696
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
135887
135697
|
var tailwindCssPath = "styles/tailwind.css";
|
|
135888
135698
|
async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
|
|
135889
135699
|
let relativeAppDirectory = relativePath(rootDirectory, appDirectory), assetMap = {
|
|
@@ -135919,7 +135729,7 @@ async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
|
|
|
135919
135729
|
};
|
|
135920
135730
|
}
|
|
135921
135731
|
|
|
135922
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135732
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/vanilla-extract.js
|
|
135923
135733
|
init_cjs_shims();
|
|
135924
135734
|
async function setupVanillaExtract({
|
|
135925
135735
|
rootDirectory
|
|
@@ -135940,7 +135750,7 @@ async function setupVanillaExtract({
|
|
|
135940
135750
|
};
|
|
135941
135751
|
}
|
|
135942
135752
|
|
|
135943
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135753
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
135944
135754
|
var STYLING_CHOICES = [...SETUP_CSS_STRATEGIES, "none"], CSS_STRATEGY_NAME_MAP = {
|
|
135945
135755
|
tailwind: "Tailwind v4",
|
|
135946
135756
|
"vanilla-extract": "Vanilla Extract",
|
|
@@ -135985,23 +135795,23 @@ async function renderCssPrompt(options2) {
|
|
|
135985
135795
|
});
|
|
135986
135796
|
}
|
|
135987
135797
|
|
|
135988
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135798
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
135989
135799
|
init_cjs_shims();
|
|
135990
135800
|
|
|
135991
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135801
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
135992
135802
|
init_cjs_shims();
|
|
135993
135803
|
|
|
135994
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135804
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/index.js
|
|
135995
135805
|
init_cjs_shims();
|
|
135996
135806
|
|
|
135997
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135807
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
|
|
135998
135808
|
init_cjs_shims();
|
|
135999
135809
|
async function transpileFile(code, filepath, keepTypes = !0) {
|
|
136000
|
-
let { transpileTs } = await import("./morph-
|
|
135810
|
+
let { transpileTs } = await import("./morph-DFRO3NRL.js");
|
|
136001
135811
|
return transpileTs(code, filepath, keepTypes);
|
|
136002
135812
|
}
|
|
136003
135813
|
|
|
136004
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135814
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/project.js
|
|
136005
135815
|
init_cjs_shims();
|
|
136006
135816
|
var DEFAULT_JS_CONFIG = {
|
|
136007
135817
|
checkJs: !1,
|
|
@@ -136112,7 +135922,7 @@ async function transpileProject(projectDir, keepTypes = !0) {
|
|
|
136112
135922
|
}
|
|
136113
135923
|
}
|
|
136114
135924
|
|
|
136115
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
135925
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
136116
135926
|
async function replaceContextI18n({
|
|
136117
135927
|
rootDirectory,
|
|
136118
135928
|
contextCreate = joinPath("app", "lib", "context.ts")
|
|
@@ -136251,7 +136061,7 @@ async function findContextCreateFile({
|
|
|
136251
136061
|
return { filepath, astType };
|
|
136252
136062
|
}
|
|
136253
136063
|
|
|
136254
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136064
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
136255
136065
|
var SETUP_I18N_STRATEGIES = [
|
|
136256
136066
|
"subfolders",
|
|
136257
136067
|
"domains",
|
|
@@ -136283,7 +136093,7 @@ async function renderI18nPrompt(options2) {
|
|
|
136283
136093
|
});
|
|
136284
136094
|
}
|
|
136285
136095
|
|
|
136286
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136096
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
136287
136097
|
var DEFAULT_APP_PORT = 3e3, DEFAULT_INSPECTOR_PORT = 9229, commonFlags = {
|
|
136288
136098
|
path: {
|
|
136289
136099
|
path: import_core.Flags.string({
|
|
@@ -136297,6 +136107,12 @@ var DEFAULT_APP_PORT = 3e3, DEFAULT_INSPECTOR_PORT = 9229, commonFlags = {
|
|
|
136297
136107
|
env: "SHOPIFY_HYDROGEN_FLAG_PORT"
|
|
136298
136108
|
})
|
|
136299
136109
|
},
|
|
136110
|
+
legacyRuntime: {
|
|
136111
|
+
"legacy-runtime": import_core.Flags.boolean({
|
|
136112
|
+
description: "Runs the app in a Node.js sandbox instead of an Oxygen worker.",
|
|
136113
|
+
env: "SHOPIFY_HYDROGEN_FLAG_LEGACY_RUNTIME"
|
|
136114
|
+
})
|
|
136115
|
+
},
|
|
136300
136116
|
force: {
|
|
136301
136117
|
force: import_core.Flags.boolean({
|
|
136302
136118
|
description: "Overwrites the destination directory and files if they already exist.",
|
|
@@ -136465,10 +136281,201 @@ function overrideFlag(flags, extra) {
|
|
|
136465
136281
|
);
|
|
136466
136282
|
}
|
|
136467
136283
|
|
|
136468
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136284
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/import-utils.js
|
|
136285
|
+
init_cjs_shims();
|
|
136286
|
+
import { createRequire } from "node:module";
|
|
136287
|
+
import { pathToFileURL } from "node:url";
|
|
136288
|
+
var require2 = createRequire(import.meta.url);
|
|
136289
|
+
async function importVite(root) {
|
|
136290
|
+
let vitePath = require2.resolve(
|
|
136291
|
+
"vite",
|
|
136292
|
+
process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [root] }
|
|
136293
|
+
), vitePackageJson = await findUpAndReadPackageJson(vitePath), viteNodeIndexFile = vitePackageJson.content.exports?.["."].import;
|
|
136294
|
+
typeof viteNodeIndexFile != "string" && (viteNodeIndexFile = viteNodeIndexFile.default);
|
|
136295
|
+
let viteNodePath = joinPath(
|
|
136296
|
+
dirname(vitePackageJson.path),
|
|
136297
|
+
viteNodeIndexFile
|
|
136298
|
+
);
|
|
136299
|
+
return import(pathToFileURL(viteNodePath).href);
|
|
136300
|
+
}
|
|
136301
|
+
function importLocal(packageName, path3) {
|
|
136302
|
+
let realPath = require2.resolve(
|
|
136303
|
+
packageName,
|
|
136304
|
+
process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [path3] }
|
|
136305
|
+
);
|
|
136306
|
+
return import(pathToFileURL(realPath).href);
|
|
136307
|
+
}
|
|
136308
|
+
|
|
136309
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
136310
|
+
init_cjs_shims();
|
|
136311
|
+
import path from "node:path";
|
|
136312
|
+
import { EventEmitter } from "node:events";
|
|
136313
|
+
import { ReadableStream } from "node:stream/web";
|
|
136314
|
+
|
|
136315
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphiql-url.js
|
|
136316
|
+
init_cjs_shims();
|
|
136317
|
+
function getGraphiQLUrl({
|
|
136318
|
+
host = "",
|
|
136319
|
+
graphql
|
|
136320
|
+
}) {
|
|
136321
|
+
let url = `${host.endsWith("/") ? host.slice(0, -1) : host}/graphiql`;
|
|
136322
|
+
if (graphql) {
|
|
136323
|
+
let { query, variables } = graphql;
|
|
136324
|
+
typeof variables != "string" && (variables = JSON.stringify(variables)), url += `?query=${encodeURIComponent(query)}${variables ? `&variables=${encodeURIComponent(variables)}` : ""}`, graphql.schema && (url += `&schema=${graphql.schema}`);
|
|
136325
|
+
}
|
|
136326
|
+
return url;
|
|
136327
|
+
}
|
|
136328
|
+
|
|
136329
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
136330
|
+
var import_source_map_support = __toESM(require_source_map_support(), 1), H2O_BINDING_NAME = "H2O_LOG_EVENT", ResponseConstructor;
|
|
136331
|
+
function setConstructors(constructors) {
|
|
136332
|
+
ResponseConstructor = constructors.Response;
|
|
136333
|
+
}
|
|
136334
|
+
var DEV_ROUTES = /* @__PURE__ */ new Set([
|
|
136335
|
+
"/graphiql",
|
|
136336
|
+
"/graphiql/customer-account.schema.json",
|
|
136337
|
+
"/subrequest-profiler",
|
|
136338
|
+
"/debug-network-server"
|
|
136339
|
+
]), EVENT_MAP = {
|
|
136340
|
+
request: "Request",
|
|
136341
|
+
subrequest: "Sub request"
|
|
136342
|
+
};
|
|
136343
|
+
async function getRequestInfo(request) {
|
|
136344
|
+
let data = await request.json();
|
|
136345
|
+
return {
|
|
136346
|
+
...data,
|
|
136347
|
+
requestId: data.requestId ?? "",
|
|
136348
|
+
eventType: data.eventType || "unknown",
|
|
136349
|
+
endTime: data.endTime || Date.now(),
|
|
136350
|
+
purpose: data.purpose === "prefetch" ? "(prefetch)" : "",
|
|
136351
|
+
cacheStatus: data.cacheStatus ?? "",
|
|
136352
|
+
graphql: data.graphql ? JSON.parse(data.graphql) : null
|
|
136353
|
+
};
|
|
136354
|
+
}
|
|
136355
|
+
var eventEmitter = new EventEmitter(), eventHistory = [];
|
|
136356
|
+
function createResponse(main = "ok", init) {
|
|
136357
|
+
return new ResponseConstructor(main, init);
|
|
136358
|
+
}
|
|
136359
|
+
function clearHistory(request) {
|
|
136360
|
+
return eventHistory.length = 0, createResponse();
|
|
136361
|
+
}
|
|
136362
|
+
function createLogRequestEvent(options2) {
|
|
136363
|
+
return async function(request) {
|
|
136364
|
+
let url = new URL(request.url);
|
|
136365
|
+
if (DEV_ROUTES.has(url.pathname))
|
|
136366
|
+
return createResponse();
|
|
136367
|
+
let {
|
|
136368
|
+
url: displayUrl,
|
|
136369
|
+
displayName: displayNameData,
|
|
136370
|
+
eventType,
|
|
136371
|
+
purpose,
|
|
136372
|
+
graphql,
|
|
136373
|
+
stackInfo,
|
|
136374
|
+
...data
|
|
136375
|
+
} = await getRequestInfo(request), graphiqlLink = "", descriptionUrl = request.url, displayName = displayNameData;
|
|
136376
|
+
eventType === "subrequest" && (displayName = displayName || graphql?.query.match(/(query|mutation)\s+(\w+)/)?.[0]?.replace(/\s+/, " "), descriptionUrl = displayUrl || request.url, graphql && (graphiqlLink = getGraphiQLUrl({ graphql })));
|
|
136377
|
+
let stackLine = null, stackLink = null;
|
|
136378
|
+
if (stackInfo?.file) {
|
|
136379
|
+
options2?.transformLocation && (stackInfo.file = options2.transformLocation(stackInfo.file));
|
|
136380
|
+
let { source, line, column } = (0, import_source_map_support.mapSourcePosition)({
|
|
136381
|
+
source: stackInfo.file,
|
|
136382
|
+
line: stackInfo.line ?? 0,
|
|
136383
|
+
column: stackInfo.column ?? 0
|
|
136384
|
+
});
|
|
136385
|
+
stackLine = `${source}:${line}:${column + 1}`, stackLink = `vscode://${path.join("file", stackLine)}`, stackLine = stackLine.split(path.sep + "app" + path.sep)[1] ?? stackLine, stackInfo.func && (stackLine = `${stackInfo.func.replace(/\d+$/, "")} (${stackLine})`);
|
|
136386
|
+
}
|
|
136387
|
+
let event = {
|
|
136388
|
+
event: EVENT_MAP[eventType] || eventType,
|
|
136389
|
+
data: JSON.stringify({
|
|
136390
|
+
...data,
|
|
136391
|
+
displayName,
|
|
136392
|
+
url: `${purpose} ${descriptionUrl}`.trim(),
|
|
136393
|
+
graphiqlLink,
|
|
136394
|
+
stackLine,
|
|
136395
|
+
stackLink
|
|
136396
|
+
})
|
|
136397
|
+
};
|
|
136398
|
+
return eventHistory.push(event), eventHistory.length > 100 && eventHistory.shift(), eventEmitter.emit("request", event), createResponse();
|
|
136399
|
+
};
|
|
136400
|
+
}
|
|
136401
|
+
function streamRequestEvents(request) {
|
|
136402
|
+
let stream = new ReadableStream({
|
|
136403
|
+
start(controller) {
|
|
136404
|
+
let encoder = new TextEncoder(), enqueueEvent = ({ event = "message", data }) => {
|
|
136405
|
+
controller.enqueue(encoder.encode(`event: ${event}
|
|
136406
|
+
`)), controller.enqueue(encoder.encode(`data: ${data}
|
|
136407
|
+
|
|
136408
|
+
`));
|
|
136409
|
+
};
|
|
136410
|
+
eventHistory.forEach(enqueueEvent), eventEmitter.addListener("request", enqueueEvent);
|
|
136411
|
+
let closed = !1;
|
|
136412
|
+
function close() {
|
|
136413
|
+
closed || (closed = !0, request.signal.removeEventListener("abort", close), eventEmitter.removeListener("request", enqueueEvent), controller.close());
|
|
136414
|
+
}
|
|
136415
|
+
if (request.signal.addEventListener("abort", close), request.signal.aborted) return close();
|
|
136416
|
+
}
|
|
136417
|
+
});
|
|
136418
|
+
return createResponse(stream, {
|
|
136419
|
+
headers: {
|
|
136420
|
+
"Content-Type": "text/event-stream",
|
|
136421
|
+
"Cache-Control": "no-store",
|
|
136422
|
+
Connection: "keep-alive"
|
|
136423
|
+
}
|
|
136424
|
+
});
|
|
136425
|
+
}
|
|
136426
|
+
function handleDebugNetworkRequest(request) {
|
|
136427
|
+
return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
|
|
136428
|
+
}
|
|
136429
|
+
|
|
136430
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/common.js
|
|
136431
|
+
init_cjs_shims();
|
|
136432
|
+
var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
|
|
136433
|
+
function handleMiniOxygenImportFail() {
|
|
136434
|
+
throw new AbortError(
|
|
136435
|
+
"Could not load MiniOxygen.",
|
|
136436
|
+
"Please make sure you have `@shopify/mini-oxygen` installed."
|
|
136437
|
+
);
|
|
136438
|
+
}
|
|
136439
|
+
function logRequestLine({
|
|
136440
|
+
request,
|
|
136441
|
+
response,
|
|
136442
|
+
meta
|
|
136443
|
+
}) {
|
|
136444
|
+
try {
|
|
136445
|
+
let url = new URL(request.url);
|
|
136446
|
+
if (DEV_ROUTES.has(url.pathname) || url.pathname === "/favicon.ico") return;
|
|
136447
|
+
let isDataRequest = url.searchParams.has("_data"), route = request.url.replace(url.origin, ""), info = "", type = "render";
|
|
136448
|
+
if (isDataRequest) {
|
|
136449
|
+
type = request.method === "GET" ? "loader" : "action";
|
|
136450
|
+
let dataParam = url.searchParams.get("_data")?.replace("routes/", "");
|
|
136451
|
+
route = url.pathname, info = `[${dataParam}]`;
|
|
136452
|
+
}
|
|
136453
|
+
let colorizeStatus = response.status < 300 ? outputToken.green : response.status < 400 ? outputToken.cyan : outputToken.errorText;
|
|
136454
|
+
outputInfo(
|
|
136455
|
+
outputContent`${request.method.padStart(6)} ${colorizeStatus(
|
|
136456
|
+
String(response.status)
|
|
136457
|
+
)} ${outputToken.italic(type.padEnd(7, " "))} ${route} ${meta.durationMs > 0 ? source_default.dim(` ${meta.durationMs}ms`) : ""}${info ? " " + source_default.dim(info) : ""}${request.headers.purpose === "prefetch" ? outputToken.italic(source_default.dim(" prefetch")) : ""}`
|
|
136458
|
+
);
|
|
136459
|
+
} catch {
|
|
136460
|
+
request && response?.status && outputInfo(`${request.method} ${response.status} ${request.url}`);
|
|
136461
|
+
}
|
|
136462
|
+
}
|
|
136463
|
+
|
|
136464
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
136469
136465
|
init_cjs_shims();
|
|
136470
136466
|
|
|
136471
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136467
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
136468
|
+
init_cjs_shims();
|
|
136469
|
+
var import_core3 = __toESM(require_lib(), 1);
|
|
136470
|
+
|
|
136471
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
136472
|
+
init_cjs_shims();
|
|
136473
|
+
var import_core2 = __toESM(require_lib(), 1);
|
|
136474
|
+
|
|
136475
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
136476
|
+
init_cjs_shims();
|
|
136477
|
+
|
|
136478
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
136472
136479
|
init_cjs_shims();
|
|
136473
136480
|
|
|
136474
136481
|
// ../cli-kit/dist/public/node/api/graphql.js
|
|
@@ -136535,21 +136542,50 @@ Request ID: ${requestId}
|
|
|
136535
136542
|
}
|
|
136536
136543
|
|
|
136537
136544
|
// ../cli-kit/dist/public/node/api/graphql.js
|
|
136538
|
-
async function
|
|
136539
|
-
let
|
|
136545
|
+
async function createGraphQLClient({ url, addedHeaders, token }) {
|
|
136546
|
+
let headers = {
|
|
136540
136547
|
...addedHeaders,
|
|
136541
136548
|
...buildHeaders(token)
|
|
136549
|
+
}, clientOptions = { agent: await httpsAgent(), headers };
|
|
136550
|
+
return {
|
|
136551
|
+
client: new GraphQLClient(url, clientOptions),
|
|
136552
|
+
headers
|
|
136542
136553
|
};
|
|
136554
|
+
}
|
|
136555
|
+
async function performGraphQLRequest(options2) {
|
|
136556
|
+
let { token, addedHeaders, queryAsString, variables, api, url, responseOptions, unauthorizedHandler, cacheOptions } = options2, requestBehaviour = requestMode(options2.preferredBehaviour ?? "default"), { headers, client } = await createGraphQLClient({ url, addedHeaders, token });
|
|
136543
136557
|
debugLogRequestInfo(api, queryAsString, url, variables, headers);
|
|
136544
|
-
let
|
|
136558
|
+
let rawGraphQLRequest = async () => {
|
|
136545
136559
|
let fullResponse;
|
|
136546
136560
|
try {
|
|
136547
136561
|
return client.requestConfig.signal = abortSignalFromRequestBehaviour(requestBehaviour), fullResponse = await client.rawRequest(queryAsString, variables), await logLastRequestIdFromResponse(fullResponse), fullResponse;
|
|
136548
136562
|
} catch (error) {
|
|
136549
136563
|
throw error instanceof ClientError && await logLastRequestIdFromResponse(error.response), error;
|
|
136550
136564
|
}
|
|
136551
|
-
},
|
|
136552
|
-
let
|
|
136565
|
+
}, tokenRefreshHandler = unauthorizedHandler?.handler, tokenRefreshUnauthorizedHandlerFunction = tokenRefreshHandler ? async () => {
|
|
136566
|
+
let refreshTokenResult = await tokenRefreshHandler();
|
|
136567
|
+
if (refreshTokenResult.token) {
|
|
136568
|
+
let { client: newClient, headers: newHeaders } = await createGraphQLClient({
|
|
136569
|
+
url,
|
|
136570
|
+
addedHeaders,
|
|
136571
|
+
token: refreshTokenResult.token
|
|
136572
|
+
});
|
|
136573
|
+
return client = newClient, headers = newHeaders, !0;
|
|
136574
|
+
} else
|
|
136575
|
+
return !1;
|
|
136576
|
+
} : void 0, request = () => retryAwareRequest({ request: rawGraphQLRequest, url, ...requestBehaviour }, responseOptions?.handleErrors === !1 ? void 0 : errorHandler(api)), executeWithTimer = () => runWithTimer("cmd_all_timing_network_ms")(async () => {
|
|
136577
|
+
let response;
|
|
136578
|
+
try {
|
|
136579
|
+
response = await request();
|
|
136580
|
+
} catch (error) {
|
|
136581
|
+
if (error instanceof ClientError && error.response.status === 401 && tokenRefreshUnauthorizedHandlerFunction)
|
|
136582
|
+
if (await tokenRefreshUnauthorizedHandlerFunction())
|
|
136583
|
+
response = await request();
|
|
136584
|
+
else
|
|
136585
|
+
throw error;
|
|
136586
|
+
else
|
|
136587
|
+
throw error;
|
|
136588
|
+
}
|
|
136553
136589
|
return responseOptions?.onResponse && responseOptions.onResponse(response), response.data;
|
|
136554
136590
|
});
|
|
136555
136591
|
if (cacheOptions === void 0)
|
|
@@ -136582,7 +136618,7 @@ async function graphqlRequestDoc(options2) {
|
|
|
136582
136618
|
});
|
|
136583
136619
|
}
|
|
136584
136620
|
|
|
136585
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136621
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
136586
136622
|
async function adminRequest(query, session, variables) {
|
|
136587
136623
|
let api = "Admin", url = `https://${session.storeFqdn}/admin/api/unstable/graphql.json`;
|
|
136588
136624
|
try {
|
|
@@ -136617,7 +136653,7 @@ async function adminRequest(query, session, variables) {
|
|
|
136617
136653
|
}
|
|
136618
136654
|
}
|
|
136619
136655
|
|
|
136620
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136656
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/gid.js
|
|
136621
136657
|
init_cjs_shims();
|
|
136622
136658
|
var GID_REGEXP = /gid:\/\/shopify\/\w*\/(\d+)/;
|
|
136623
136659
|
function parseGid(gid) {
|
|
@@ -136627,7 +136663,7 @@ function parseGid(gid) {
|
|
|
136627
136663
|
throw new AbortError(`Invalid Global ID: ${gid}`);
|
|
136628
136664
|
}
|
|
136629
136665
|
|
|
136630
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136666
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
136631
136667
|
var LinkStorefrontQuery = `#graphql
|
|
136632
136668
|
query LinkStorefront {
|
|
136633
136669
|
hydrogenStorefronts {
|
|
@@ -136648,7 +136684,7 @@ async function getStorefronts(adminSession) {
|
|
|
136648
136684
|
}));
|
|
136649
136685
|
}
|
|
136650
136686
|
|
|
136651
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136687
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/shopify-config.js
|
|
136652
136688
|
init_cjs_shims();
|
|
136653
136689
|
var SHOPIFY_DIR = ".shopify", SHOPIFY_DIR_PROJECT = "project.json";
|
|
136654
136690
|
async function resetConfig(root) {
|
|
@@ -136719,7 +136755,7 @@ async function setCustomerAccountConfig(root, customerAccountConfig) {
|
|
|
136719
136755
|
}
|
|
136720
136756
|
}
|
|
136721
136757
|
|
|
136722
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136758
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/create-storefront.js
|
|
136723
136759
|
init_cjs_shims();
|
|
136724
136760
|
var CreateStorefrontMutation = `#graphql
|
|
136725
136761
|
mutation CreateStorefront($title: String!) {
|
|
@@ -136753,7 +136789,7 @@ async function createStorefront(adminSession, title) {
|
|
|
136753
136789
|
return { jobId, storefront: hydrogenStorefront };
|
|
136754
136790
|
}
|
|
136755
136791
|
|
|
136756
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136792
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/fetch-job.js
|
|
136757
136793
|
init_cjs_shims();
|
|
136758
136794
|
var FetchJobQuery = `#graphql
|
|
136759
136795
|
query FetchJob($id: ID!) {
|
|
@@ -136787,7 +136823,7 @@ function waitForJob(adminSession, jobId) {
|
|
|
136787
136823
|
});
|
|
136788
136824
|
}
|
|
136789
136825
|
|
|
136790
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136826
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/string.js
|
|
136791
136827
|
init_cjs_shims();
|
|
136792
136828
|
function titleize(name = "") {
|
|
136793
136829
|
return name.replace(/[\W_]+/g, " ").split(" ").filter((word) => word.length > 0).map(
|
|
@@ -136795,7 +136831,7 @@ function titleize(name = "") {
|
|
|
136795
136831
|
).join(" ");
|
|
136796
136832
|
}
|
|
136797
136833
|
|
|
136798
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136834
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/shell.js
|
|
136799
136835
|
init_cjs_shims();
|
|
136800
136836
|
import os from "node:os";
|
|
136801
136837
|
var ALIAS_NAME = "h2", isWindows = () => os.platform() === "win32", isGitBash = () => !!process.env.MINGW_PREFIX;
|
|
@@ -136910,10 +136946,10 @@ async function getCliCommand(directory = process.cwd(), forcePkgManager) {
|
|
|
136910
136946
|
return (pkgManager === "bun" || pkgManager === "pnpm" || pkgManager === "yarn") && (cli = pkgManager), `${cli} shopify hydrogen`;
|
|
136911
136947
|
}
|
|
136912
136948
|
|
|
136913
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136949
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
136914
136950
|
init_cjs_shims();
|
|
136915
136951
|
|
|
136916
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
136952
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
136917
136953
|
init_cjs_shims();
|
|
136918
136954
|
|
|
136919
136955
|
// ../cli-kit/dist/public/node/api/business-platform.js
|
|
@@ -136930,7 +136966,7 @@ var addCursorAndFiltersToAppLogsUrl = (baseUrl, cursor, filters) => {
|
|
|
136930
136966
|
};
|
|
136931
136967
|
|
|
136932
136968
|
// ../cli-kit/dist/public/node/api/partners.js
|
|
136933
|
-
var import_bottleneck = __toESM(require_lib2()
|
|
136969
|
+
var import_bottleneck = __toESM(require_lib2()), limiter = new import_bottleneck.default({
|
|
136934
136970
|
minTime: 150,
|
|
136935
136971
|
maxConcurrent: 10
|
|
136936
136972
|
});
|
|
@@ -136943,28 +136979,30 @@ async function setupRequest(token) {
|
|
|
136943
136979
|
responseOptions: { onResponse: handleDeprecations }
|
|
136944
136980
|
};
|
|
136945
136981
|
}
|
|
136946
|
-
async function partnersRequest(query, token, variables, cacheOptions, preferredBehaviour) {
|
|
136982
|
+
async function partnersRequest(query, token, variables, cacheOptions, preferredBehaviour, unauthorizedHandler) {
|
|
136947
136983
|
let opts = await setupRequest(token);
|
|
136948
136984
|
return limiter.schedule(() => graphqlRequest({
|
|
136949
136985
|
...opts,
|
|
136950
136986
|
query,
|
|
136951
136987
|
variables,
|
|
136952
136988
|
cacheOptions,
|
|
136953
|
-
preferredBehaviour
|
|
136989
|
+
preferredBehaviour,
|
|
136990
|
+
unauthorizedHandler
|
|
136954
136991
|
}));
|
|
136955
136992
|
}
|
|
136956
136993
|
var generateFetchAppLogUrl = async (cursor, filters) => {
|
|
136957
136994
|
let url = `https://${await partnersFqdn()}/app_logs/poll`;
|
|
136958
136995
|
return addCursorAndFiltersToAppLogsUrl(url, cursor, filters);
|
|
136959
136996
|
};
|
|
136960
|
-
async function partnersRequestDoc(query, token, variables, preferredBehaviour) {
|
|
136997
|
+
async function partnersRequestDoc(query, token, variables, preferredBehaviour, unauthorizedHandler) {
|
|
136961
136998
|
try {
|
|
136962
136999
|
let opts = await setupRequest(token);
|
|
136963
137000
|
return limiter.schedule(() => graphqlRequestDoc({
|
|
136964
137001
|
...opts,
|
|
136965
137002
|
query,
|
|
136966
137003
|
variables,
|
|
136967
|
-
preferredBehaviour
|
|
137004
|
+
preferredBehaviour,
|
|
137005
|
+
unauthorizedHandler
|
|
136968
137006
|
}));
|
|
136969
137007
|
} catch (error) {
|
|
136970
137008
|
if (error.errors?.[0]?.extensions?.type === "unsupported_client_version") {
|
|
@@ -137003,12 +137041,13 @@ async function businessPlatformRequest(query, token, variables, cacheOptions) {
|
|
|
137003
137041
|
cacheOptions
|
|
137004
137042
|
});
|
|
137005
137043
|
}
|
|
137006
|
-
async function businessPlatformRequestDoc(
|
|
137044
|
+
async function businessPlatformRequestDoc(options2) {
|
|
137007
137045
|
return graphqlRequestDoc({
|
|
137008
|
-
...await setupRequest2(token),
|
|
137009
|
-
query,
|
|
137010
|
-
variables,
|
|
137011
|
-
cacheOptions
|
|
137046
|
+
...await setupRequest2(options2.token),
|
|
137047
|
+
query: options2.query,
|
|
137048
|
+
variables: options2.variables,
|
|
137049
|
+
cacheOptions: options2.cacheOptions,
|
|
137050
|
+
unauthorizedHandler: options2.unauthorizedHandler
|
|
137012
137051
|
});
|
|
137013
137052
|
}
|
|
137014
137053
|
async function setupOrganizationsRequest(token, organizationId) {
|
|
@@ -137020,22 +137059,24 @@ async function setupOrganizationsRequest(token, organizationId) {
|
|
|
137020
137059
|
responseOptions: { onResponse: handleDeprecations }
|
|
137021
137060
|
};
|
|
137022
137061
|
}
|
|
137023
|
-
async function businessPlatformOrganizationsRequest(
|
|
137062
|
+
async function businessPlatformOrganizationsRequest(options2) {
|
|
137024
137063
|
return graphqlRequest({
|
|
137025
|
-
query,
|
|
137026
|
-
...await setupOrganizationsRequest(token, organizationId),
|
|
137027
|
-
variables
|
|
137064
|
+
query: options2.query,
|
|
137065
|
+
...await setupOrganizationsRequest(options2.token, options2.organizationId),
|
|
137066
|
+
variables: options2.variables,
|
|
137067
|
+
unauthorizedHandler: options2.unauthorizedHandler
|
|
137028
137068
|
});
|
|
137029
137069
|
}
|
|
137030
|
-
async function businessPlatformOrganizationsRequestDoc(
|
|
137070
|
+
async function businessPlatformOrganizationsRequestDoc(options2) {
|
|
137031
137071
|
return graphqlRequestDoc({
|
|
137032
|
-
query,
|
|
137033
|
-
...await setupOrganizationsRequest(token, organizationId),
|
|
137034
|
-
variables
|
|
137072
|
+
query: options2.query,
|
|
137073
|
+
...await setupOrganizationsRequest(options2.token, options2.organizationId),
|
|
137074
|
+
variables: options2.variables,
|
|
137075
|
+
unauthorizedHandler: options2.unauthorizedHandler
|
|
137035
137076
|
});
|
|
137036
137077
|
}
|
|
137037
137078
|
|
|
137038
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
137079
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
137039
137080
|
var CurrentUserAccountQuery = `#graphql
|
|
137040
137081
|
query currentUserAccount {
|
|
137041
137082
|
currentUserAccount {
|
|
@@ -137114,7 +137155,7 @@ async function getUserAccount(token) {
|
|
|
137114
137155
|
};
|
|
137115
137156
|
}
|
|
137116
137157
|
|
|
137117
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
137158
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/log.js
|
|
137118
137159
|
init_cjs_shims();
|
|
137119
137160
|
var originalConsole = { ...console }, methodsReplaced = /* @__PURE__ */ new Set(), addedReplacers = /* @__PURE__ */ new Set(), messageReplacers = [];
|
|
137120
137161
|
function addMessageReplacers(key, ...items) {
|
|
@@ -137343,6 +137384,43 @@ Request`)),
|
|
|
137343
137384
|
}
|
|
137344
137385
|
]);
|
|
137345
137386
|
}
|
|
137387
|
+
function createRemixLogger() {
|
|
137388
|
+
let noop = () => {
|
|
137389
|
+
}, buildMessageBody = (message, details) => `In Remix:
|
|
137390
|
+
|
|
137391
|
+
` + source_default.bold(message) + (details ? `
|
|
137392
|
+
|
|
137393
|
+
` + details.join(`
|
|
137394
|
+
`) : "");
|
|
137395
|
+
return {
|
|
137396
|
+
dev: noop,
|
|
137397
|
+
info: noop,
|
|
137398
|
+
debug: noop,
|
|
137399
|
+
warn: (message, options2) => {
|
|
137400
|
+
renderWarning({ body: buildMessageBody(message, options2?.details) });
|
|
137401
|
+
},
|
|
137402
|
+
error: (message, options2) => {
|
|
137403
|
+
renderFatalError({
|
|
137404
|
+
name: "error",
|
|
137405
|
+
type: 0,
|
|
137406
|
+
message: buildMessageBody(message, options2?.details),
|
|
137407
|
+
skipOclifErrorHandling: !0,
|
|
137408
|
+
tryMessage: ""
|
|
137409
|
+
});
|
|
137410
|
+
}
|
|
137411
|
+
};
|
|
137412
|
+
}
|
|
137413
|
+
async function muteRemixLogs(root) {
|
|
137414
|
+
try {
|
|
137415
|
+
let { logger } = await importLocal(
|
|
137416
|
+
"@remix-run/dev/dist/tux/logger.js",
|
|
137417
|
+
root
|
|
137418
|
+
);
|
|
137419
|
+
logger.warn = logger.debug = logger.info = () => {
|
|
137420
|
+
};
|
|
137421
|
+
} catch {
|
|
137422
|
+
}
|
|
137423
|
+
}
|
|
137346
137424
|
function setH2OVerbose() {
|
|
137347
137425
|
!process.env.DEBUG || process.env.DEBUG === "*" ? process.env.DEBUG = "h2:*,o2:*" : process.env.DEBUG += ",h2:*,o2:*";
|
|
137348
137426
|
}
|
|
@@ -137350,7 +137428,7 @@ function isH2Verbose() {
|
|
|
137350
137428
|
return !!(process.env.DEBUG === "*" || process.env.DEBUG?.includes("h2:*"));
|
|
137351
137429
|
}
|
|
137352
137430
|
|
|
137353
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
137431
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
137354
137432
|
async function logout2(root) {
|
|
137355
137433
|
await logout(), await resetConfig(root);
|
|
137356
137434
|
}
|
|
@@ -137389,9 +137467,9 @@ function renderLoginSuccess(config) {
|
|
|
137389
137467
|
});
|
|
137390
137468
|
}
|
|
137391
137469
|
|
|
137392
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
137470
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
137393
137471
|
init_cjs_shims();
|
|
137394
|
-
import { symlink, readdir as
|
|
137472
|
+
import { symlink, readdir as readdir4 } from "node:fs/promises";
|
|
137395
137473
|
|
|
137396
137474
|
// ../cli-kit/dist/public/node/git.js
|
|
137397
137475
|
init_cjs_shims();
|
|
@@ -140829,15 +140907,21 @@ async function ensureIsClean(directory) {
|
|
|
140829
140907
|
async function isClean(directory) {
|
|
140830
140908
|
return (await esm_default({ baseDir: directory }).status()).isClean();
|
|
140831
140909
|
}
|
|
140832
|
-
async function
|
|
140833
|
-
|
|
140910
|
+
async function removeGitRemote(directory, remoteName = "origin") {
|
|
140911
|
+
outputDebug(outputContent`Removing git remote ${remoteName} from ${outputToken.path(directory)}...`), await ensureGitIsPresentOrAbort();
|
|
140912
|
+
let repo = esm_default(directory);
|
|
140913
|
+
if (!(await repo.getRemotes()).some((remote) => remote.name === remoteName)) {
|
|
140914
|
+
outputDebug(outputContent`Remote ${remoteName} does not exist, no action needed`);
|
|
140915
|
+
return;
|
|
140916
|
+
}
|
|
140917
|
+
await repo.removeRemote(remoteName);
|
|
140834
140918
|
}
|
|
140835
140919
|
|
|
140836
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
140920
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
140837
140921
|
init_cjs_shims();
|
|
140838
|
-
import { readdir as
|
|
140922
|
+
import { readdir as readdir3 } from "node:fs/promises";
|
|
140839
140923
|
|
|
140840
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
140924
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-interop.js
|
|
140841
140925
|
init_cjs_shims();
|
|
140842
140926
|
import { createRequire as createRequire2 } from "module";
|
|
140843
140927
|
function convertRouteToV1(route) {
|
|
@@ -140851,17 +140935,53 @@ function isV1RouteConventionInstalled() {
|
|
|
140851
140935
|
}
|
|
140852
140936
|
}
|
|
140853
140937
|
|
|
140854
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
140938
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
140855
140939
|
init_cjs_shims();
|
|
140856
|
-
import { createRequire as
|
|
140940
|
+
import { createRequire as createRequire4 } from "node:module";
|
|
140857
140941
|
import path2 from "node:path";
|
|
140942
|
+
import { readdir as readdir2 } from "node:fs/promises";
|
|
140858
140943
|
|
|
140859
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
140944
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-check.js
|
|
140860
140945
|
init_cjs_shims();
|
|
140946
|
+
import { createRequire as createRequire3 } from "node:module";
|
|
140947
|
+
var REQUIRED_REMIX_VERSION = "^2.16.1";
|
|
140948
|
+
function checkRemixVersions(projectPath, requiredVersionInHydrogen = REQUIRED_REMIX_VERSION) {
|
|
140949
|
+
let require22 = createRequire3(import.meta.url), satisfiesSemver = require22("semver/functions/satisfies.js"), outOfSyncPkgs = [
|
|
140950
|
+
"dev",
|
|
140951
|
+
"react",
|
|
140952
|
+
"server-runtime",
|
|
140953
|
+
"css-bundle",
|
|
140954
|
+
"node",
|
|
140955
|
+
"express",
|
|
140956
|
+
"eslint-config"
|
|
140957
|
+
].map((name) => getRemixPackageVersion(require22, name, projectPath)).filter(
|
|
140958
|
+
(pkg) => pkg.version && !satisfiesSemver(pkg.version, requiredVersionInHydrogen)
|
|
140959
|
+
);
|
|
140960
|
+
if (outOfSyncPkgs.length === 0) return;
|
|
140961
|
+
let items = outOfSyncPkgs.reduce((acc, item) => (item.version && acc.push(`${item.name}@${item.version}`), acc), []);
|
|
140962
|
+
renderWarning({
|
|
140963
|
+
headline: `The current version of Hydrogen requires Remix @${requiredVersionInHydrogen}. The following packages are out of sync:`,
|
|
140964
|
+
body: [
|
|
140965
|
+
{ list: { items } },
|
|
140966
|
+
`
|
|
140967
|
+
Please ensure your Remix packages have the same version and are in sync with Hydrogen.`
|
|
140968
|
+
]
|
|
140969
|
+
});
|
|
140970
|
+
}
|
|
140971
|
+
function getRemixPackageVersion(require22, name, root) {
|
|
140972
|
+
let pkgName = "@remix-run/" + name, result = { name: pkgName, version: "" };
|
|
140973
|
+
try {
|
|
140974
|
+
let pkgJsonPath2 = require22.resolve(`${pkgName}/package.json`, {
|
|
140975
|
+
paths: [root]
|
|
140976
|
+
}), pkgJson = require22(pkgJsonPath2);
|
|
140977
|
+
result.version = pkgJson.version;
|
|
140978
|
+
} catch {
|
|
140979
|
+
}
|
|
140980
|
+
return result;
|
|
140981
|
+
}
|
|
140861
140982
|
|
|
140862
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
140983
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/vite-config.js
|
|
140863
140984
|
init_cjs_shims();
|
|
140864
|
-
var REMIX_COMPILER_ERROR_MESSAGE = "Classic Remix Compiler projects are no longer supported, please upgrade to Vite by running 'npx shopify hydrogen setup vite'";
|
|
140865
140985
|
async function hasViteConfig(root) {
|
|
140866
140986
|
return !!(await findFileWithExtension(root, "vite.config")).filepath;
|
|
140867
140987
|
}
|
|
@@ -140885,7 +141005,7 @@ async function getViteConfig(root, ssrEntryFlag) {
|
|
|
140885
141005
|
command,
|
|
140886
141006
|
mode,
|
|
140887
141007
|
mode
|
|
140888
|
-
), { appDirectory, serverBuildFile, routes } =
|
|
141008
|
+
), { appDirectory, serverBuildFile, routes } = getRemixConfigFromVite(resolvedViteConfig), serverOutDir = resolvedViteConfig.build.outDir, clientOutDir = serverOutDir.replace(/server$/, "client"), rollupOutput = resolvedViteConfig.build.rollupOptions.output, { entryFileNames } = (Array.isArray(rollupOutput) ? rollupOutput[0] : rollupOutput) ?? {}, serverOutFile = joinPath(
|
|
140889
141009
|
serverOutDir,
|
|
140890
141010
|
typeof entryFileNames == "string" ? entryFileNames : serverBuildFile ?? "index.js"
|
|
140891
141011
|
), ssrEntry = ssrEntryFlag ?? resolvedViteConfig.build.ssr, resolvedSsrEntry = resolvePath(
|
|
@@ -140909,23 +141029,6 @@ async function getViteConfig(root, ssrEntryFlag) {
|
|
|
140909
141029
|
}
|
|
140910
141030
|
};
|
|
140911
141031
|
}
|
|
140912
|
-
function getReactRouterOrRemixConfigFromVite(viteConfig) {
|
|
140913
|
-
try {
|
|
140914
|
-
return getReactRouterConfigFromVite(viteConfig);
|
|
140915
|
-
} catch {
|
|
140916
|
-
return getRemixConfigFromVite(viteConfig);
|
|
140917
|
-
}
|
|
140918
|
-
}
|
|
140919
|
-
function getReactRouterConfigFromVite(viteConfig) {
|
|
140920
|
-
if (!viteConfig.__reactRouterPluginContext)
|
|
140921
|
-
throw new Error("Could not resolve React Router config");
|
|
140922
|
-
let { appDirectory, serverBuildFile, routes } = viteConfig.__reactRouterPluginContext.reactRouterConfig;
|
|
140923
|
-
return {
|
|
140924
|
-
appDirectory,
|
|
140925
|
-
serverBuildFile,
|
|
140926
|
-
routes
|
|
140927
|
-
};
|
|
140928
|
-
}
|
|
140929
141032
|
function getRemixConfigFromVite(viteConfig) {
|
|
140930
141033
|
let { remixConfig } = findHydrogenPlugin(viteConfig)?.api?.getPluginOptions() ?? {};
|
|
140931
141034
|
return remixConfig ? {
|
|
@@ -140944,14 +141047,14 @@ function findOxygenPlugin(config) {
|
|
|
140944
141047
|
return findPlugin(config, "oxygen:main");
|
|
140945
141048
|
}
|
|
140946
141049
|
|
|
140947
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
141050
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
140948
141051
|
async function hasRemixConfigFile(root) {
|
|
140949
141052
|
return !!(await findFileWithExtension(root, "remix.config")).filepath;
|
|
140950
141053
|
}
|
|
140951
141054
|
async function isClassicProject(root) {
|
|
140952
141055
|
return await isViteProject(root) ? !1 : hasRemixConfigFile(root);
|
|
140953
141056
|
}
|
|
140954
|
-
var BUILD_DIR = "dist", CLIENT_SUBDIR = "client", WORKER_SUBDIR = "worker";
|
|
141057
|
+
var BUILD_DIR = "dist", CLIENT_SUBDIR = "client", WORKER_SUBDIR = "worker", oxygenServerMainFields = ["browser", "module", "main"];
|
|
140955
141058
|
function getProjectPaths(appPath) {
|
|
140956
141059
|
let root = appPath ?? process.cwd(), publicPath = path2.join(root, "public"), buildPath = path2.join(root, BUILD_DIR), buildPathClient = path2.join(buildPath, CLIENT_SUBDIR), buildPathWorkerFile = path2.join(buildPath, WORKER_SUBDIR, "index.js");
|
|
140957
141060
|
return {
|
|
@@ -140962,19 +141065,122 @@ function getProjectPaths(appPath) {
|
|
|
140962
141065
|
publicPath
|
|
140963
141066
|
};
|
|
140964
141067
|
}
|
|
141068
|
+
function handleRemixImportFail() {
|
|
141069
|
+
let remixVersion = REQUIRED_REMIX_VERSION;
|
|
141070
|
+
throw new AbortError(
|
|
141071
|
+
"Could not load Remix packages.",
|
|
141072
|
+
`Please make sure you have \`@remix-run/dev@${remixVersion}\` installed and all the other Remix packages have the same version.`
|
|
141073
|
+
);
|
|
141074
|
+
}
|
|
140965
141075
|
function getRawRemixConfig(root) {
|
|
140966
141076
|
return findFileWithExtension(root, "remix.config").then(({ filepath }) => {
|
|
140967
141077
|
if (!filepath) throw new AbortError("No remix.config.js file found.");
|
|
140968
|
-
return
|
|
141078
|
+
return createRequire4(import.meta.url)(filepath);
|
|
140969
141079
|
});
|
|
140970
141080
|
}
|
|
140971
141081
|
async function getRemixConfig(root, mode = process.env.NODE_ENV) {
|
|
140972
|
-
if (
|
|
140973
|
-
|
|
140974
|
-
|
|
141082
|
+
if (await isViteProject(root))
|
|
141083
|
+
return (await getViteConfig(root)).remixConfig;
|
|
141084
|
+
await muteRemixLogs(root);
|
|
141085
|
+
let { resolveConfig: resolveConfig2 } = await importLocal(
|
|
141086
|
+
"@remix-run/dev/dist/config.js",
|
|
141087
|
+
root
|
|
141088
|
+
).catch(handleRemixImportFail), { createContext } = await importLocal(
|
|
141089
|
+
"@remix-run/dev/dist/vite/vite-node.js",
|
|
141090
|
+
root
|
|
141091
|
+
).catch(handleRemixImportFail), appConfig = await getRawRemixConfig(root), routesViteNodeContext = await createContext({ root, mode }), vite = await importVite(root), config = await resolveConfig2(appConfig, {
|
|
141092
|
+
rootDirectory: root,
|
|
141093
|
+
serverMode: mode,
|
|
141094
|
+
vite,
|
|
141095
|
+
routesViteNodeContext
|
|
141096
|
+
});
|
|
141097
|
+
if (isHydrogenMonorepo && hydrogenPackagesPath) {
|
|
141098
|
+
let packagesPath = hydrogenPackagesPath;
|
|
141099
|
+
config.watchPaths ??= [], config.watchPaths.push(
|
|
141100
|
+
...(await readdir2(packagesPath)).map(
|
|
141101
|
+
(pkg) => pkg === "hydrogen-react" ? path2.resolve(packagesPath, pkg, "dist", "browser-dev", "index.mjs") : path2.resolve(packagesPath, pkg, "dist", "development", "index.js")
|
|
141102
|
+
)
|
|
141103
|
+
), config.watchPaths.push(
|
|
141104
|
+
path2.join(packagesPath, "cli", "dist", "virtual-routes", "**", "*")
|
|
141105
|
+
);
|
|
141106
|
+
}
|
|
141107
|
+
return routesViteNodeContext.server.server.close(), config;
|
|
141108
|
+
}
|
|
141109
|
+
function assertOxygenChecks(config) {
|
|
141110
|
+
try {
|
|
141111
|
+
createRequire4(import.meta.url).resolve("@shopify/remix-oxygen");
|
|
141112
|
+
} catch {
|
|
141113
|
+
return;
|
|
141114
|
+
}
|
|
141115
|
+
if (config.serverEntryPoint)
|
|
141116
|
+
assertEntryFileExists(config.rootDirectory, config.serverEntryPoint);
|
|
141117
|
+
else
|
|
141118
|
+
throw new AbortError(
|
|
141119
|
+
"Could not find a server entry point.",
|
|
141120
|
+
"Please add a server option to your remix.config.js pointing to an Oxygen worker entry file."
|
|
141121
|
+
);
|
|
141122
|
+
if (config.serverPlatform !== "neutral")
|
|
141123
|
+
throw new AbortError(
|
|
141124
|
+
'The serverPlatform in remix.config.js must be "neutral".'
|
|
141125
|
+
);
|
|
141126
|
+
if (config.serverModuleFormat !== "esm")
|
|
141127
|
+
throw new AbortError(
|
|
141128
|
+
'The serverModuleFormat in remix.config.js must be "esm".'
|
|
141129
|
+
);
|
|
141130
|
+
if (config.serverDependenciesToBundle !== "all")
|
|
141131
|
+
throw new AbortError(
|
|
141132
|
+
'The serverDependenciesToBundle in remix.config.js must be "all".'
|
|
141133
|
+
);
|
|
141134
|
+
if (!config.serverConditions?.includes("worker"))
|
|
141135
|
+
throw new AbortError(
|
|
141136
|
+
'The serverConditions in remix.config.js must include "worker".'
|
|
141137
|
+
);
|
|
141138
|
+
if (process.env.NODE_ENV === "development" && !config.serverConditions?.includes("development") && outputWarn(
|
|
141139
|
+
"Add `process.env.NODE_ENV` value to serverConditions in remix.config.js to enable debugging features in development."
|
|
141140
|
+
), !config.serverMainFields || !oxygenServerMainFields.every((v, i) => config.serverMainFields?.[i] === v))
|
|
141141
|
+
throw new AbortError(
|
|
141142
|
+
`The serverMainFields in remix.config.js must be ${JSON.stringify(
|
|
141143
|
+
oxygenServerMainFields
|
|
141144
|
+
)}.`
|
|
141145
|
+
);
|
|
141146
|
+
let cdnUrl = process.env.HYDROGEN_ASSET_BASE_URL;
|
|
141147
|
+
if (cdnUrl && !config.publicPath.startsWith(cdnUrl))
|
|
141148
|
+
throw new AbortError(
|
|
141149
|
+
"The publicPath in remix.config.js must be prepended with the value of `process.env.HYDROGEN_ASSET_BASE_URL`."
|
|
141150
|
+
);
|
|
141151
|
+
let expectedServerBuildPath = path2.join(
|
|
141152
|
+
BUILD_DIR,
|
|
141153
|
+
WORKER_SUBDIR,
|
|
141154
|
+
"index.js"
|
|
141155
|
+
);
|
|
141156
|
+
if (config.serverBuildPath !== path2.resolve(config.rootDirectory, expectedServerBuildPath))
|
|
141157
|
+
throw new AbortError(
|
|
141158
|
+
`The serverBuildPath in remix.config.js must be "${expectedServerBuildPath}".`
|
|
141159
|
+
);
|
|
141160
|
+
let expectedAssetsBuildDirectory = path2.join(BUILD_DIR, CLIENT_SUBDIR);
|
|
141161
|
+
if (!config.assetsBuildDirectory.startsWith(
|
|
141162
|
+
path2.resolve(config.rootDirectory, expectedAssetsBuildDirectory)
|
|
141163
|
+
))
|
|
141164
|
+
throw new AbortError(
|
|
141165
|
+
`The assetsBuildDirectory in remix.config.js must be in "${expectedAssetsBuildDirectory}".`
|
|
141166
|
+
);
|
|
141167
|
+
}
|
|
141168
|
+
async function assertEntryFileExists(root, fileRelative) {
|
|
141169
|
+
let fileAbsolute = path2.resolve(root, fileRelative);
|
|
141170
|
+
if (!await fileExists(fileAbsolute)) {
|
|
141171
|
+
if (!path2.extname(fileAbsolute) && (await readdir2(path2.dirname(fileAbsolute))).some((file) => {
|
|
141172
|
+
let { name, ext } = path2.parse(file);
|
|
141173
|
+
return name === path2.basename(fileAbsolute) && /^\.[jt]s$/.test(ext);
|
|
141174
|
+
}))
|
|
141175
|
+
return;
|
|
141176
|
+
throw new AbortError(
|
|
141177
|
+
`Entry file "${fileRelative}" not found.`,
|
|
141178
|
+
"Please ensure the file exists and that the path is correctly added to the `server` property in remix.config.js."
|
|
141179
|
+
);
|
|
141180
|
+
}
|
|
140975
141181
|
}
|
|
140976
141182
|
|
|
140977
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
141183
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
140978
141184
|
var NO_LOCALE_PATTERNS = [/robots\.txt/], ROUTE_MAP = {
|
|
140979
141185
|
home: ["_index", "$"],
|
|
140980
141186
|
page: "pages*",
|
|
@@ -140986,11 +141192,10 @@ var NO_LOCALE_PATTERNS = [/robots\.txt/], ROUTE_MAP = {
|
|
|
140986
141192
|
account: "account*",
|
|
140987
141193
|
search: ["search", "api.predictive-search"],
|
|
140988
141194
|
robots: "[robots.txt]",
|
|
140989
|
-
sitemap: ["[sitemap.xml]", "sitemap.$type.$page[.xml]"]
|
|
140990
|
-
tokenlessApi: "api.$version.[graphql.json]"
|
|
141195
|
+
sitemap: ["[sitemap.xml]", "sitemap.$type.$page[.xml]"]
|
|
140991
141196
|
}, allRouteTemplateFiles = [];
|
|
140992
141197
|
async function getResolvedRoutes(routeKeys = Object.keys(ROUTE_MAP)) {
|
|
140993
|
-
allRouteTemplateFiles.length === 0 && (allRouteTemplateFiles = (await
|
|
141198
|
+
allRouteTemplateFiles.length === 0 && (allRouteTemplateFiles = (await readdir3(await getTemplateAppFile(ASSETS_STARTER_DIR_ROUTES))).map((item) => item.replace(/\.tsx?$/, "")));
|
|
140994
141199
|
let routeGroups = {}, resolvedRouteFiles = [];
|
|
140995
141200
|
for (let key of routeKeys) {
|
|
140996
141201
|
routeGroups[key] = [];
|
|
@@ -141042,7 +141247,7 @@ async function generateRoutes(options2, remixConfig) {
|
|
|
141042
141247
|
async function getLocalePrefix(routesDirectory, { localePrefix, routeName, v1RouteConvention }) {
|
|
141043
141248
|
if (localePrefix) return localePrefix;
|
|
141044
141249
|
if (localePrefix !== void 0 || routeName === "all") return;
|
|
141045
|
-
let existingFiles = await
|
|
141250
|
+
let existingFiles = await readdir3(routesDirectory).catch(() => []), coreRouteWithLocaleRE = v1RouteConvention ? /^\(\$(\w+)\)$/ : /^\(\$(\w+)\)\.(_index|\$|cart).[jt]sx?$/, coreRouteWithLocale = existingFiles.find(
|
|
141046
141251
|
(file) => coreRouteWithLocaleRE.test(file)
|
|
141047
141252
|
);
|
|
141048
141253
|
if (coreRouteWithLocale)
|
|
@@ -141183,7 +141388,7 @@ async function copyRouteTemplate({
|
|
|
141183
141388
|
adapter && (templateContent = replaceAdapters(templateContent, adapter)), typescript || (templateContent = await transpileFile(templateContent, templatePath)), templateContent = await formatCode(templateContent, formatOptions, routePath), await writeFile(routePath, templateContent);
|
|
141184
141389
|
}
|
|
141185
141390
|
|
|
141186
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
141391
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
141187
141392
|
var LANGUAGES = {
|
|
141188
141393
|
js: "JavaScript",
|
|
141189
141394
|
ts: "TypeScript"
|
|
@@ -141433,7 +141638,6 @@ node_modules
|
|
|
141433
141638
|
/.mf
|
|
141434
141639
|
.env
|
|
141435
141640
|
.shopify
|
|
141436
|
-
.react-router
|
|
141437
141641
|
`.slice(1);
|
|
141438
141642
|
async function createInitialCommit(directory) {
|
|
141439
141643
|
try {
|
|
@@ -141556,7 +141760,7 @@ function createAbortHandler(controller, project) {
|
|
|
141556
141760
|
};
|
|
141557
141761
|
}
|
|
141558
141762
|
async function projectExists(projectDir) {
|
|
141559
|
-
return await fileExists(projectDir) && await isDirectory(projectDir) && (await
|
|
141763
|
+
return await fileExists(projectDir) && await isDirectory(projectDir) && (await readdir4(projectDir)).length > 0;
|
|
141560
141764
|
}
|
|
141561
141765
|
function normalizeRoutePath(routePath) {
|
|
141562
141766
|
return routePath.replace(/(^|\.)_index$/, "").replace(/((^|\.)[^\.]+)_\./g, "$1.").replace(/\.(?!\w+\])/g, "/").replace(/\$$/g, ":catchAll").replace(/\$/g, ":").replace(/[\[\]]/g, "").replace(/:\w*Handle/i, ":handle");
|
|
@@ -141631,7 +141835,7 @@ function generateRandomName() {
|
|
|
141631
141835
|
])} ${geographicalFeature}`;
|
|
141632
141836
|
}
|
|
141633
141837
|
|
|
141634
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
141838
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
141635
141839
|
var Link = class _Link extends base_command_default {
|
|
141636
141840
|
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.
|
|
141637
141841
|
|
|
@@ -141752,7 +141956,7 @@ async function createNewStorefront(root, session, storefronts) {
|
|
|
141752
141956
|
return storefront;
|
|
141753
141957
|
}
|
|
141754
141958
|
|
|
141755
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
141959
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/customer-application-update.js
|
|
141756
141960
|
init_cjs_shims();
|
|
141757
141961
|
var CUSTOMER_APPLICATION_URLS_REPLACE = `#graphql
|
|
141758
141962
|
mutation CustomerApplicationUrlsReplace($storefrontId: ID!, $urlsReplaceInput: HydrogenStorefrontCustomerApplicationUrlsReplaceInput!) {
|
|
@@ -141780,7 +141984,7 @@ async function replaceCustomerApplicationUrls(adminSession, storefrontId, urlsRe
|
|
|
141780
141984
|
return { success, userErrors };
|
|
141781
141985
|
}
|
|
141782
141986
|
|
|
141783
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
141987
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
141784
141988
|
var CustomerAccountPush = class _CustomerAccountPush extends base_command_default {
|
|
141785
141989
|
static description = "Push project configuration to admin";
|
|
141786
141990
|
static flags = {
|
|
@@ -141913,7 +142117,7 @@ async function getStorefrontId(root, storefrontIdFromFlag) {
|
|
|
141913
142117
|
}) ? (await getConfig(root)).storefront?.id : void 0;
|
|
141914
142118
|
}
|
|
141915
142119
|
|
|
141916
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
142120
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
141917
142121
|
init_cjs_shims();
|
|
141918
142122
|
|
|
141919
142123
|
// ../cli-kit/dist/public/node/dot-env.js
|
|
@@ -141978,7 +142182,7 @@ function createDotEnvFileLine(key, value, quote2) {
|
|
|
141978
142182
|
return `${key}=${value}`;
|
|
141979
142183
|
}
|
|
141980
142184
|
|
|
141981
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
142185
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/pull-variables.js
|
|
141982
142186
|
init_cjs_shims();
|
|
141983
142187
|
var PullVariablesQuery = `#graphql
|
|
141984
142188
|
query PullVariables($id: ID!, $handle: String) {
|
|
@@ -142006,7 +142210,7 @@ async function getStorefrontEnvVariables(adminSession, storefrontId, envHandle)
|
|
|
142006
142210
|
return hydrogenStorefront;
|
|
142007
142211
|
}
|
|
142008
142212
|
|
|
142009
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
142213
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-environments.js
|
|
142010
142214
|
init_cjs_shims();
|
|
142011
142215
|
var ListEnvironmentsQuery = `#graphql
|
|
142012
142216
|
query ListStorefronts($id: ID!) {
|
|
@@ -142034,7 +142238,7 @@ async function getStorefrontEnvironments(adminSession, storefrontId) {
|
|
|
142034
142238
|
return hydrogenStorefront;
|
|
142035
142239
|
}
|
|
142036
142240
|
|
|
142037
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
142241
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/common.js
|
|
142038
142242
|
init_cjs_shims();
|
|
142039
142243
|
function orderEnvironmentsBySafety(environments) {
|
|
142040
142244
|
return [
|
|
@@ -142075,7 +142279,7 @@ function environmentNotFound(criterion, value) {
|
|
|
142075
142279
|
);
|
|
142076
142280
|
}
|
|
142077
142281
|
|
|
142078
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
142282
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
142079
142283
|
var createEmptyRemoteVars = () => ({
|
|
142080
142284
|
remoteVariables: {},
|
|
142081
142285
|
remoteSecrets: {}
|
|
@@ -142146,7 +142350,7 @@ async function getLocalVariables(root, envFile) {
|
|
|
142146
142350
|
);
|
|
142147
142351
|
}
|
|
142148
142352
|
|
|
142149
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
142353
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/tunneling.js
|
|
142150
142354
|
init_cjs_shims();
|
|
142151
142355
|
async function startTunnelPlugin(config, port, provider) {
|
|
142152
142356
|
let hooks = await fanoutHooks(config, "tunnel_start", { port, provider }), first2 = Object.values(hooks).filter(
|
|
@@ -142177,7 +142381,7 @@ async function pollTunnelURL(tunnelClient) {
|
|
|
142177
142381
|
});
|
|
142178
142382
|
}
|
|
142179
142383
|
|
|
142180
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
142384
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
142181
142385
|
function isMockShop(envVariables) {
|
|
142182
142386
|
return envVariables.PUBLIC_STORE_DOMAIN === "mock.shop" || // We fallback to mock.shop if the env var is falsy.
|
|
142183
142387
|
// When it's undefined, it might be overwritten by remote variables.
|
|
@@ -142276,7 +142480,7 @@ export {
|
|
|
142276
142480
|
GitDirectoryNotCleanError,
|
|
142277
142481
|
ensureIsClean,
|
|
142278
142482
|
isClean,
|
|
142279
|
-
|
|
142483
|
+
removeGitRemote,
|
|
142280
142484
|
execAsync,
|
|
142281
142485
|
supressNodeExperimentalWarnings,
|
|
142282
142486
|
isHydrogenMonorepo,
|
|
@@ -142311,11 +142515,20 @@ export {
|
|
|
142311
142515
|
overrideFlag,
|
|
142312
142516
|
importVite,
|
|
142313
142517
|
importLocal,
|
|
142518
|
+
muteDevLogs,
|
|
142519
|
+
enhanceAuthLogs,
|
|
142520
|
+
enhanceH2Logs,
|
|
142521
|
+
createRemixLogger,
|
|
142522
|
+
muteRemixLogs,
|
|
142523
|
+
setH2OVerbose,
|
|
142524
|
+
isH2Verbose,
|
|
142525
|
+
checkRemixVersions,
|
|
142314
142526
|
isClassicProject,
|
|
142315
142527
|
getProjectPaths,
|
|
142528
|
+
handleRemixImportFail,
|
|
142316
142529
|
getRawRemixConfig,
|
|
142317
142530
|
getRemixConfig,
|
|
142318
|
-
|
|
142531
|
+
assertOxygenChecks,
|
|
142319
142532
|
hasViteConfig,
|
|
142320
142533
|
isViteProject,
|
|
142321
142534
|
getViteConfig,
|
|
@@ -142341,11 +142554,6 @@ export {
|
|
|
142341
142554
|
businessPlatformRequestDoc,
|
|
142342
142555
|
businessPlatformOrganizationsRequest,
|
|
142343
142556
|
businessPlatformOrganizationsRequestDoc,
|
|
142344
|
-
muteDevLogs,
|
|
142345
|
-
enhanceAuthLogs,
|
|
142346
|
-
enhanceH2Logs,
|
|
142347
|
-
setH2OVerbose,
|
|
142348
|
-
isH2Verbose,
|
|
142349
142557
|
logout2 as logout,
|
|
142350
142558
|
login,
|
|
142351
142559
|
renderLoginSuccess,
|
|
@@ -142394,4 +142602,4 @@ export {
|
|
|
142394
142602
|
getDebugBannerLine,
|
|
142395
142603
|
getUtilityBannerlines
|
|
142396
142604
|
};
|
|
142397
|
-
//# sourceMappingURL=chunk-
|
|
142605
|
+
//# sourceMappingURL=chunk-5LMBCQDG.js.map
|