@shopify/cli 3.61.2 → 3.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/dev-console/extensions/dev-console/assets/index-dfaab2a5.css +1 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/{index-f3e60690.js → index-e3682a83.js} +1 -1
- package/dist/assets/dev-console/index.html +2 -2
- package/dist/{chokidar-RFZXZKRQ.js → chokidar-5MKSECYV.js} +4 -3
- package/dist/{chunk-QDZF6IG4.js → chunk-22PYIFA2.js} +112 -17
- package/dist/{chunk-3MBQVTEX.js → chunk-2QVJZ5TG.js} +2 -1
- package/dist/{chunk-KBXWK6XB.js → chunk-2ZSNH7CD.js} +4 -5
- package/dist/{chunk-BYFLATOA.js → chunk-5FNE3T7E.js} +5 -4
- package/dist/{chunk-G4EQLT5B.js → chunk-5X4QXYEZ.js} +9 -7
- package/dist/chunk-66NABVCG.js +73 -0
- package/dist/{chunk-LAY4AEXX.js → chunk-6UDFXWNE.js} +2 -1
- package/dist/{chunk-QQP6JS5H.js → chunk-7MXLRMOY.js} +3 -2
- package/dist/{chunk-EHF6FVWH.js → chunk-A5STII7T.js} +3 -2
- package/dist/{chunk-UPM6XNBH.js → chunk-ADESJ2KG.js} +6 -5
- package/dist/{chunk-BZJX2NV6.js → chunk-AMAYT2P2.js} +3 -2
- package/dist/{chunk-QTBH3GO6.js → chunk-B62HZLMM.js} +3 -2
- package/dist/{chunk-3RM5SOXY.js → chunk-BMTG2VHL.js} +4 -3
- package/dist/{chunk-FWGRGI4R.js → chunk-BYC3NA2Y.js} +2 -1
- package/dist/{chunk-NJTSDTDU.js → chunk-BZFXXFUC.js} +6 -5
- package/dist/{chunk-7IZTLXJ5.js → chunk-CKFE55FX.js} +4 -3
- package/dist/{chunk-YP5UVIUW.js → chunk-CYQRKZVM.js} +6 -5
- package/dist/{chunk-HTYJDJRZ.js → chunk-DL3MKXVR.js} +2 -1
- package/dist/{chunk-IUHH3PST.js → chunk-DLK3F3DC.js} +2 -1
- package/dist/{chunk-4XNS74OG.js → chunk-EARPFFS7.js} +2 -1
- package/dist/chunk-EQPYUHNM.js +3642 -0
- package/dist/{chunk-LKGDG6WW.js → chunk-FMKVOTQK.js} +2 -1
- package/dist/{chunk-I434ZJQI.js → chunk-GEN4RXTD.js} +7 -6
- package/dist/{chunk-QSO3GQEK.js → chunk-HJ4AUFE7.js} +94 -160
- package/dist/{chunk-FQIRJADJ.js → chunk-JIJ65JT6.js} +2 -1
- package/dist/{chunk-JQPQJN44.js → chunk-JKYNFUD3.js} +11 -12
- package/dist/{chunk-4L37JOS5.js → chunk-JL3ESOD2.js} +3 -2
- package/dist/{chunk-4TTAP7NN.js → chunk-JOOYCYFU.js} +6 -5
- package/dist/{chunk-XMJDBJPP.js → chunk-K3GG6Y3J.js} +12 -12
- package/dist/{chunk-VQZ2SHRY.js → chunk-K6257PKA.js} +3 -2
- package/dist/{chunk-5KRK4DLX.js → chunk-LC6MEJT3.js} +4 -3
- package/dist/{chunk-KDOLMUJB.js → chunk-LH533WG4.js} +2 -1
- package/dist/{chunk-FBB6KUZG.js → chunk-LSCXQWNO.js} +2 -1
- package/dist/{chunk-VC6CC75R.js → chunk-MG6QFKFM.js} +5 -4
- package/dist/{chunk-ETSILRIY.js → chunk-MQ2RGCDU.js} +5 -4
- package/dist/{chunk-QOHDW3X5.js → chunk-MQGV3PCJ.js} +4 -3
- package/dist/{chunk-PBFWVFAQ.js → chunk-NABCTJNW.js} +3 -2
- package/dist/{chunk-YZGLFVKK.js → chunk-NNASIYCT.js} +3 -2
- package/dist/chunk-PIB2FEJJ.js +4385 -0
- package/dist/{chunk-TXXQWILO.js → chunk-PIVNWN2P.js} +4 -3
- package/dist/{chunk-Q3KADKQA.js → chunk-PO6SEYU4.js} +4 -3
- package/dist/{chunk-FAFQQMD4.js → chunk-PRJ3U7MR.js} +2 -1
- package/dist/{chunk-5B2D56W6.js → chunk-Q4XGXPUG.js} +2 -1
- package/dist/{chunk-ZE2ZPLYI.js → chunk-QGJLRFY4.js} +19 -89
- package/dist/{chunk-RP2ISWQN.js → chunk-QOUOFEGO.js} +3 -2
- package/dist/{chunk-CWYZA7C7.js → chunk-RUSG4O2Z.js} +13464 -5175
- package/dist/{chunk-CKKROMZF.js → chunk-S4VBXFXP.js} +3 -2
- package/dist/{chunk-BE73NZXB.js → chunk-SAR5HGRG.js} +2 -1
- package/dist/{chunk-GXPKATXW.js → chunk-T5LLJYYS.js} +2 -1
- package/dist/{chunk-NBIE3DNN.js → chunk-TCRWMUKX.js} +4 -3
- package/dist/{chunk-4757GPBG.js → chunk-UACSLX64.js} +6 -5
- package/dist/{chunk-4KKFUTH7.js → chunk-UJ3QKFA5.js} +2 -1
- package/dist/chunk-UNPXLODI.js +121 -0
- package/dist/{chunk-RQ24VTW4.js → chunk-VM4POVNV.js} +2 -1
- package/dist/{chunk-CTETXMMM.js → chunk-VS6RWOLM.js} +8 -7
- package/dist/{chunk-BUWM6JUU.js → chunk-W5VEUSWG.js} +5 -4
- package/dist/{chunk-PCQFWMMD.js → chunk-WADS2TV5.js} +63 -5
- package/dist/{chunk-M73YMW2C.js → chunk-WAEWSGBK.js} +2579 -1632
- package/dist/{chunk-6SL33DOA.js → chunk-XQFDS44U.js} +2 -1
- package/dist/{chunk-WCNR75S2.js → chunk-YC4FLMDD.js} +2 -1
- package/dist/{chunk-OXZ2SRCK.js → chunk-YECNACSF.js} +3 -2
- package/dist/{chunk-QLLSCNEC.js → chunk-YX5VXHSJ.js} +4 -3
- package/dist/{chunk-5MODHNUE.js → chunk-ZCMXEGSE.js} +5 -4
- package/dist/{chunk-4VEOJ5JD.js → chunk-ZEHQN47F.js} +2 -1
- package/dist/{chunk-3JLUTHGR.js → chunk-ZPFJOUKZ.js} +2 -1
- package/dist/{chunk-M63RTPGR.js → chunk-ZPL24Y2D.js} +1 -0
- package/dist/cli/commands/auth/logout.js +37 -39
- package/dist/cli/commands/auth/logout.test.js +39 -41
- package/dist/cli/commands/debug/command-flags.js +33 -35
- package/dist/cli/commands/demo/catalog.js +36 -38
- package/dist/cli/commands/demo/generate-file.js +37 -39
- package/dist/cli/commands/demo/index.js +35 -37
- package/dist/cli/commands/demo/print-ai-prompt.js +37 -39
- package/dist/cli/commands/docs/generate.js +33 -35
- package/dist/cli/commands/docs/generate.test.js +34 -36
- package/dist/cli/commands/help.js +33 -35
- package/dist/cli/commands/kitchen-sink/async.js +34 -36
- package/dist/cli/commands/kitchen-sink/async.test.js +35 -37
- package/dist/cli/commands/kitchen-sink/index.js +36 -38
- package/dist/cli/commands/kitchen-sink/index.test.js +37 -39
- package/dist/cli/commands/kitchen-sink/prompts.js +34 -36
- package/dist/cli/commands/kitchen-sink/prompts.test.js +35 -37
- package/dist/cli/commands/kitchen-sink/static.js +34 -36
- package/dist/cli/commands/kitchen-sink/static.test.js +35 -37
- package/dist/cli/commands/search.js +34 -36
- package/dist/cli/commands/upgrade.js +33 -35
- package/dist/cli/commands/upgrade.test.js +5 -4
- package/dist/cli/commands/version.js +34 -36
- package/dist/cli/commands/version.test.js +35 -37
- package/dist/cli/services/commands/search.js +19 -21
- package/dist/cli/services/commands/search.test.js +20 -22
- package/dist/cli/services/commands/version.js +23 -25
- package/dist/cli/services/commands/version.test.js +25 -27
- package/dist/cli/services/demo.js +21 -23
- package/dist/cli/services/demo.test.js +22 -24
- package/dist/cli/services/kitchen-sink/async.js +19 -21
- package/dist/cli/services/kitchen-sink/prompts.js +19 -21
- package/dist/cli/services/kitchen-sink/static.js +19 -21
- package/dist/cli/services/upgrade.js +22 -24
- package/dist/cli/services/upgrade.test.js +30 -27
- package/dist/{constants-XCWOF7M7.js → constants-3CLHB4LQ.js} +5 -6
- package/dist/{custom-oclif-loader-4SQGUQ7D-P5C4NLSX.js → custom-oclif-loader-ZH42ZTTC.js} +25 -28
- package/dist/{del-DGT5RCOW.js → del-KSMMBLCD.js} +9 -8
- package/dist/{devtools-SJTLOVKU.js → devtools-6ZZ3EAY7.js} +3 -2
- package/dist/error-handler-I6WJC3U2.js +43 -0
- package/dist/error-handler-JFX2TIYX.js +38 -0
- package/dist/hooks/postrun.js +28 -30
- package/dist/hooks/prerun.js +23 -25
- package/dist/{http-proxy-WYSSUHIT.js → http-proxy-KFHAZRTT.js} +3 -2
- package/dist/index.js +138858 -143506
- package/dist/lib-E7NFRKVR.js +14 -0
- package/dist/{lib-RZNRJEWB.js → lib-LY6ZCPIO.js} +2 -1
- package/dist/{lib-AAMRQUES.js → lib-MUDJYT6A.js} +4 -3
- package/dist/{local-YKOG4EUR-XRRBWLSI.js → local-QXPV4RF5.js} +18 -14
- package/dist/{magic-string.es-6DE547FE.js → magic-string.es-ATGURXGQ.js} +2 -1
- package/dist/{morph-DCIZUK2Q.js → morph-WKKSW22O.js} +6 -5
- package/dist/{multipart-parser-ENLY4BKU.js → multipart-parser-KYOHF24X.js} +3 -2
- package/dist/{node-3DKQAOFU.js → node-5XXX7TNJ.js} +30 -29
- package/dist/{node-package-manager-HYTHPJBI.js → node-package-manager-O65VOP6W.js} +23 -23
- package/dist/{npa-AYOTDW63.js → npa-L2ZRSPZ2.js} +4 -3
- package/dist/{open-B7XFJJCK.js → open-JRS7RW22.js} +3 -2
- package/dist/out-AS7GH6TC.js +7 -0
- package/dist/{path-2NNC3QGW.js → path-JVVXOELJ.js} +10 -6
- package/dist/{source-map-V6UVDDPX.js → source-map-37TX6JEW.js} +2 -1
- package/dist/system-EEQBTJMJ.js +31 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-5LSDG3C5.js → ui-3BAHGNCQ.js} +20 -20
- package/dist/{workerd-TFH7T6NI.js → workerd-WR22YQIS.js} +29 -28
- package/oclif.manifest.json +108 -93
- package/package.json +15 -5
- package/dist/assets/dev-console/extensions/dev-console/assets/index-792a0c8d.css +0 -1
- package/dist/chunk-3LWRRBH5.js +0 -75
- package/dist/chunk-3PIGYQSE.js +0 -36
- package/dist/chunk-CK7MF3LY.js +0 -28803
- package/dist/chunk-J4I3URIN.js +0 -893
- package/dist/chunk-MHMFNQE3.js +0 -76
- package/dist/chunk-MXHK26B3.js +0 -89
- package/dist/chunk-NJP5GFNN.js +0 -29224
- package/dist/chunk-OC4AY5G7.js +0 -11936
- package/dist/chunk-OQBI57X3.js +0 -22
- package/dist/chunk-RPRKZ6JC.js +0 -53861
- package/dist/chunk-RTZHOWFC.js +0 -5485
- package/dist/chunk-SZQX5J7X.js +0 -64
- package/dist/chunk-T77LT3XG.js +0 -4743
- package/dist/chunk-UV4APOMB.js +0 -273
- package/dist/chunk-VF4VWJWS.js +0 -213222
- package/dist/chunk-WZBNLCJ5.js +0 -13452
- package/dist/chunk-YWPV7MV2.js +0 -16432
- package/dist/chunk-ZLGRKPW3.js +0 -68
- package/dist/chunk-ZZGXXS5X.js +0 -819
- package/dist/cli/commands/auth/logout.js.map +0 -1
- package/dist/cli/commands/debug/command-flags.js.map +0 -1
- package/dist/cli/commands/demo/catalog.js.map +0 -1
- package/dist/cli/commands/demo/generate-file.js.map +0 -1
- package/dist/cli/commands/demo/index.js.map +0 -1
- package/dist/cli/commands/demo/print-ai-prompt.js.map +0 -1
- package/dist/cli/commands/docs/generate.js.map +0 -1
- package/dist/cli/commands/help.js.map +0 -1
- package/dist/cli/commands/kitchen-sink/async.js.map +0 -1
- package/dist/cli/commands/kitchen-sink/index.js.map +0 -1
- package/dist/cli/commands/kitchen-sink/prompts.js.map +0 -1
- package/dist/cli/commands/kitchen-sink/static.js.map +0 -1
- package/dist/cli/commands/search.js.map +0 -1
- package/dist/cli/commands/upgrade.js.map +0 -1
- package/dist/cli/commands/version.js.map +0 -1
- package/dist/cli/services/commands/search.js.map +0 -1
- package/dist/cli/services/commands/version.js.map +0 -1
- package/dist/cli/services/demo.js.map +0 -1
- package/dist/cli/services/kitchen-sink/async.js.map +0 -1
- package/dist/cli/services/kitchen-sink/prompts.js.map +0 -1
- package/dist/cli/services/kitchen-sink/static.js.map +0 -1
- package/dist/cli/services/upgrade.js.map +0 -1
- package/dist/custom-oclif-loader-OD47SFAU.js +0 -92
- package/dist/del-ICEHOC6W-GYLFYUKX.js +0 -2817
- package/dist/devtools-6HZ2IPFU-GLFJP63E.js +0 -3557
- package/dist/devtools-IHJDLLT4.js +0 -77
- package/dist/error-handler-EPMFPTYX.js +0 -37
- package/dist/error-handler-WI4YVJIS-U3BMMYNJ.js +0 -31
- package/dist/error-handler-WL3Q25NI.js +0 -45
- package/dist/hooks/postrun.js.map +0 -1
- package/dist/hooks/prerun.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib-76RCE6WZ-5IYGTKKK.js +0 -17
- package/dist/lib-UYK3ZLZK.js +0 -13
- package/dist/local-KISH2IRF.js +0 -67
- package/dist/multipart-parser-ENLY4BKU-IUS26CJU.js +0 -363
- package/dist/node-package-manager-S7TSAUJZ-KKDY6KSF.js +0 -70
- package/dist/open-B7XFJJCK-4XEFFVL7.js +0 -295
- package/dist/out-LRIJ35RZ.js +0 -6
- package/dist/out-M5MRQZP5-YHIOILKU.js +0 -14
- package/dist/path-HO4HBKK5-4Q2BBYUA.js +0 -33
- package/dist/system-LIP7AECY.js +0 -33
- package/dist/ui-FUZYK6S3-PVVDPVD5.js +0 -51
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
base64URLEncode,
|
|
13
13
|
basename,
|
|
14
14
|
buildHeaders,
|
|
15
|
+
cacheRetrieveOrRepopulate,
|
|
15
16
|
camelize,
|
|
16
17
|
capitalize,
|
|
17
18
|
copyFile,
|
|
@@ -25,11 +26,12 @@ import {
|
|
|
25
26
|
fileExists,
|
|
26
27
|
findPathUp,
|
|
27
28
|
findUpAndReadPackageJson,
|
|
28
|
-
firstPartyDev,
|
|
29
|
+
firstPartyDev as firstPartyDev2,
|
|
29
30
|
formatPackageManagerCommand,
|
|
30
31
|
getIdentityTokenInformation,
|
|
31
32
|
getPackageManager,
|
|
32
33
|
getPartnersToken,
|
|
34
|
+
getSession,
|
|
33
35
|
glob,
|
|
34
36
|
hasGit,
|
|
35
37
|
hashString,
|
|
@@ -39,22 +41,20 @@ import {
|
|
|
39
41
|
installNodeModules,
|
|
40
42
|
isDevelopment,
|
|
41
43
|
isDirectory,
|
|
42
|
-
isSpin,
|
|
43
44
|
isSpinEnvironment,
|
|
44
45
|
isTerminalInteractive,
|
|
45
|
-
isTruthy,
|
|
46
|
+
isTruthy as isTruthy2,
|
|
46
47
|
joinPath,
|
|
47
48
|
keypress,
|
|
48
49
|
linesToColumns,
|
|
49
50
|
mkdir,
|
|
50
51
|
moduleDirectory,
|
|
51
52
|
openURL,
|
|
52
|
-
outputCompleted,
|
|
53
53
|
outputContent,
|
|
54
54
|
outputDebug,
|
|
55
|
-
outputInfo,
|
|
55
|
+
outputInfo as outputInfo2,
|
|
56
56
|
outputToken,
|
|
57
|
-
outputWarn,
|
|
57
|
+
outputWarn as outputWarn2,
|
|
58
58
|
packageManagerFromUserAgent,
|
|
59
59
|
randomBytes,
|
|
60
60
|
randomHex,
|
|
@@ -64,6 +64,7 @@ import {
|
|
|
64
64
|
relativePath,
|
|
65
65
|
relativizePath,
|
|
66
66
|
removeFile,
|
|
67
|
+
removeSession,
|
|
67
68
|
renderConfirmationPrompt,
|
|
68
69
|
renderFatalError,
|
|
69
70
|
renderInfo,
|
|
@@ -78,6 +79,7 @@ import {
|
|
|
78
79
|
sanitizedHeadersOutput,
|
|
79
80
|
serviceEnvironment,
|
|
80
81
|
sessionConstants,
|
|
82
|
+
setSession,
|
|
81
83
|
sha256,
|
|
82
84
|
shopifyFetch,
|
|
83
85
|
spinFqdn,
|
|
@@ -87,43 +89,48 @@ import {
|
|
|
87
89
|
useDeviceAuth,
|
|
88
90
|
writeFile,
|
|
89
91
|
writePackageJSON
|
|
90
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-PIB2FEJJ.js";
|
|
91
93
|
import {
|
|
92
|
-
Conf,
|
|
93
94
|
checkPort,
|
|
94
95
|
require_find_process,
|
|
95
96
|
require_lib as require_lib2
|
|
96
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-EQPYUHNM.js";
|
|
97
98
|
import {
|
|
98
99
|
z
|
|
99
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-6UDFXWNE.js";
|
|
100
101
|
import {
|
|
101
102
|
require_toml
|
|
102
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-EARPFFS7.js";
|
|
103
104
|
import {
|
|
104
105
|
ClientError,
|
|
105
106
|
GraphQLClient,
|
|
106
107
|
gql
|
|
107
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-LC6MEJT3.js";
|
|
108
109
|
import {
|
|
109
110
|
ansi_escapes_default,
|
|
111
|
+
firstPartyDev,
|
|
112
|
+
isSpin,
|
|
113
|
+
isTruthy,
|
|
114
|
+
outputCompleted,
|
|
115
|
+
outputInfo,
|
|
116
|
+
outputWarn,
|
|
110
117
|
source_default
|
|
111
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-WAEWSGBK.js";
|
|
112
119
|
import {
|
|
113
120
|
require_lib
|
|
114
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-GEN4RXTD.js";
|
|
115
122
|
import {
|
|
116
123
|
require_src
|
|
117
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-BYC3NA2Y.js";
|
|
118
125
|
import {
|
|
119
126
|
require_source_map_support
|
|
120
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-NABCTJNW.js";
|
|
121
128
|
import {
|
|
122
129
|
__commonJS,
|
|
123
130
|
__require,
|
|
124
131
|
__toESM,
|
|
125
132
|
init_cjs_shims
|
|
126
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-ZPL24Y2D.js";
|
|
127
134
|
|
|
128
135
|
// ../../node_modules/.pnpm/prettier@2.8.8/node_modules/prettier/package.json
|
|
129
136
|
var require_package = __commonJS({
|
|
@@ -155597,7 +155604,7 @@ var require_main = __commonJS({
|
|
|
155597
155604
|
init_cjs_shims();
|
|
155598
155605
|
var import_core = __toESM(require_lib(), 1);
|
|
155599
155606
|
|
|
155600
|
-
//
|
|
155607
|
+
// ../cli-kit/dist/public/node/context/fqdn.js
|
|
155601
155608
|
init_cjs_shims();
|
|
155602
155609
|
var CouldntObtainPartnersSpinFQDNError = new AbortError("Couldn't obtain the Spin FQDN for Partners when the CLI is not running from a Spin environment.");
|
|
155603
155610
|
var CouldntObtainIdentitySpinFQDNError = new AbortError("Couldn't obtain the Spin FQDN for Identity when the CLI is not running from a Spin environment.");
|
|
@@ -155791,7 +155798,7 @@ init_cjs_shims();
|
|
|
155791
155798
|
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
|
|
155792
155799
|
init_cjs_shims();
|
|
155793
155800
|
async function transpileFile(code, filepath, keepTypes = true) {
|
|
155794
|
-
const { transpileTs } = await import("./morph-
|
|
155801
|
+
const { transpileTs } = await import("./morph-WKKSW22O.js");
|
|
155795
155802
|
return transpileTs(code, filepath, keepTypes);
|
|
155796
155803
|
}
|
|
155797
155804
|
|
|
@@ -156708,14 +156715,14 @@ function logRequestLine({
|
|
|
156708
156715
|
info = `[${dataParam}]`;
|
|
156709
156716
|
}
|
|
156710
156717
|
const colorizeStatus = response.status < 300 ? outputToken.green : response.status < 400 ? outputToken.cyan : outputToken.errorText;
|
|
156711
|
-
|
|
156718
|
+
outputInfo2(
|
|
156712
156719
|
outputContent`${request.method.padStart(6)} ${colorizeStatus(
|
|
156713
156720
|
String(response.status)
|
|
156714
156721
|
)} ${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")) : ""}`
|
|
156715
156722
|
);
|
|
156716
156723
|
} catch {
|
|
156717
156724
|
if (request && response?.status) {
|
|
156718
|
-
|
|
156725
|
+
outputInfo2(`${request.method} ${response.status} ${request.url}`);
|
|
156719
156726
|
}
|
|
156720
156727
|
}
|
|
156721
156728
|
}
|
|
@@ -156726,13 +156733,13 @@ init_cjs_shims();
|
|
|
156726
156733
|
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
156727
156734
|
init_cjs_shims();
|
|
156728
156735
|
|
|
156729
|
-
//
|
|
156736
|
+
// ../cli-kit/dist/public/node/base-command.js
|
|
156730
156737
|
init_cjs_shims();
|
|
156731
156738
|
|
|
156732
|
-
//
|
|
156739
|
+
// ../cli-kit/dist/public/node/environments.js
|
|
156733
156740
|
init_cjs_shims();
|
|
156734
156741
|
|
|
156735
|
-
//
|
|
156742
|
+
// ../cli-kit/dist/public/node/toml.js
|
|
156736
156743
|
init_cjs_shims();
|
|
156737
156744
|
var toml = __toESM(require_toml(), 1);
|
|
156738
156745
|
function decodeToml(input) {
|
|
@@ -156740,7 +156747,7 @@ function decodeToml(input) {
|
|
|
156740
156747
|
return toml.parse(normalizedInput);
|
|
156741
156748
|
}
|
|
156742
156749
|
|
|
156743
|
-
//
|
|
156750
|
+
// ../cli-kit/dist/public/node/environments.js
|
|
156744
156751
|
async function loadEnvironment(environmentName, fileName, options) {
|
|
156745
156752
|
const basePath = options?.from && options?.from !== "." ? options.from : cwd();
|
|
156746
156753
|
const filePath = await findPathUp(fileName, {
|
|
@@ -156770,7 +156777,7 @@ async function loadEnvironment(environmentName, fileName, options) {
|
|
|
156770
156777
|
return environment;
|
|
156771
156778
|
}
|
|
156772
156779
|
|
|
156773
|
-
//
|
|
156780
|
+
// ../cli-kit/dist/public/node/base-command.js
|
|
156774
156781
|
var import_core2 = __toESM(require_lib(), 1);
|
|
156775
156782
|
var BaseCommand = class extends import_core2.Command {
|
|
156776
156783
|
// Replace markdown links to plain text like: "link label" (url)
|
|
@@ -156784,6 +156791,7 @@ var BaseCommand = class extends import_core2.Command {
|
|
|
156784
156791
|
return void 0;
|
|
156785
156792
|
}
|
|
156786
156793
|
async catch(error) {
|
|
156794
|
+
error.skipOclifErrorHandling = true;
|
|
156787
156795
|
await errorHandler(error, this.config);
|
|
156788
156796
|
return import_core2.Errors.handle(error);
|
|
156789
156797
|
}
|
|
@@ -156816,8 +156824,8 @@ var BaseCommand = class extends import_core2.Command {
|
|
|
156816
156824
|
}
|
|
156817
156825
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
156818
156826
|
exitWithTimestampWhenEnvVariablePresent() {
|
|
156819
|
-
if (
|
|
156820
|
-
|
|
156827
|
+
if (isTruthy2(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)) {
|
|
156828
|
+
outputInfo2(`
|
|
156821
156829
|
SHOPIFY_CLI_TIMESTAMP_START
|
|
156822
156830
|
{ "timestamp": ${Date.now()} }
|
|
156823
156831
|
SHOPIFY_CLI_TIMESTAMP_END
|
|
@@ -156938,10 +156946,10 @@ init_cjs_shims();
|
|
|
156938
156946
|
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
156939
156947
|
init_cjs_shims();
|
|
156940
156948
|
|
|
156941
|
-
//
|
|
156949
|
+
// ../cli-kit/dist/public/node/api/graphql.js
|
|
156942
156950
|
init_cjs_shims();
|
|
156943
156951
|
|
|
156944
|
-
//
|
|
156952
|
+
// ../cli-kit/dist/private/node/api/graphql.js
|
|
156945
156953
|
init_cjs_shims();
|
|
156946
156954
|
function debugLogRequestInfo(api, query, variables, headers = {}) {
|
|
156947
156955
|
outputDebug(outputContent`Sending ${outputToken.json(api)} GraphQL request:
|
|
@@ -156989,7 +156997,7 @@ Request ID: ${requestId}
|
|
|
156989
156997
|
};
|
|
156990
156998
|
}
|
|
156991
156999
|
|
|
156992
|
-
//
|
|
157000
|
+
// ../cli-kit/dist/public/node/api/graphql.js
|
|
156993
157001
|
async function graphqlRequest(options) {
|
|
156994
157002
|
const { query, api, url: url2, token, addedHeaders, variables, responseOptions } = options;
|
|
156995
157003
|
const headers = {
|
|
@@ -157435,19 +157443,19 @@ async function getCliCommand(directory = process.cwd(), forcePkgManager) {
|
|
|
157435
157443
|
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
157436
157444
|
init_cjs_shims();
|
|
157437
157445
|
|
|
157438
|
-
//
|
|
157446
|
+
// ../cli-kit/dist/public/node/session.js
|
|
157439
157447
|
init_cjs_shims();
|
|
157440
157448
|
|
|
157441
|
-
//
|
|
157449
|
+
// ../cli-kit/dist/private/node/session/store.js
|
|
157442
157450
|
init_cjs_shims();
|
|
157443
157451
|
|
|
157444
|
-
//
|
|
157452
|
+
// ../cli-kit/dist/private/node/session/schema.js
|
|
157445
157453
|
init_cjs_shims();
|
|
157446
157454
|
|
|
157447
|
-
//
|
|
157455
|
+
// ../cli-kit/dist/public/node/schema.js
|
|
157448
157456
|
init_cjs_shims();
|
|
157449
157457
|
|
|
157450
|
-
//
|
|
157458
|
+
// ../cli-kit/dist/private/node/session/schema.js
|
|
157451
157459
|
var DateSchema = z.preprocess((arg) => {
|
|
157452
157460
|
if (typeof arg === "string" || arg instanceof Date)
|
|
157453
157461
|
return new Date(arg);
|
|
@@ -157478,82 +157486,7 @@ var SessionSchema = z.object({}).catchall(z.object({
|
|
|
157478
157486
|
applications: z.object({}).catchall(ApplicationTokenSchema)
|
|
157479
157487
|
}));
|
|
157480
157488
|
|
|
157481
|
-
//
|
|
157482
|
-
init_cjs_shims();
|
|
157483
|
-
|
|
157484
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/local-storage.js
|
|
157485
|
-
init_cjs_shims();
|
|
157486
|
-
var LocalStorage = class {
|
|
157487
|
-
constructor(options) {
|
|
157488
|
-
this.config = new Conf(options);
|
|
157489
|
-
}
|
|
157490
|
-
/**
|
|
157491
|
-
* Get a value from the local storage.
|
|
157492
|
-
*
|
|
157493
|
-
* @param key - The key to get.
|
|
157494
|
-
* @returns The value.
|
|
157495
|
-
*/
|
|
157496
|
-
get(key) {
|
|
157497
|
-
return this.config.get(key);
|
|
157498
|
-
}
|
|
157499
|
-
/**
|
|
157500
|
-
* Set a value in the local storage.
|
|
157501
|
-
*
|
|
157502
|
-
* @param key - The key to set.
|
|
157503
|
-
* @param value - The value to set.
|
|
157504
|
-
*/
|
|
157505
|
-
set(key, value) {
|
|
157506
|
-
this.config.set(key, value);
|
|
157507
|
-
}
|
|
157508
|
-
/**
|
|
157509
|
-
* Delete a value from the local storage.
|
|
157510
|
-
*
|
|
157511
|
-
* @param key - The key to delete.
|
|
157512
|
-
*/
|
|
157513
|
-
delete(key) {
|
|
157514
|
-
this.config.delete(key);
|
|
157515
|
-
}
|
|
157516
|
-
/**
|
|
157517
|
-
* Clear the local storage (delete all values).
|
|
157518
|
-
*/
|
|
157519
|
-
clear() {
|
|
157520
|
-
this.config.clear();
|
|
157521
|
-
}
|
|
157522
|
-
};
|
|
157523
|
-
|
|
157524
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/conf-store.js
|
|
157525
|
-
var _instance;
|
|
157526
|
-
function cliKitStore() {
|
|
157527
|
-
if (!_instance) {
|
|
157528
|
-
_instance = new LocalStorage({ projectName: "shopify-cli-kit" });
|
|
157529
|
-
}
|
|
157530
|
-
return _instance;
|
|
157531
|
-
}
|
|
157532
|
-
function getSession(config = cliKitStore()) {
|
|
157533
|
-
outputDebug(outputContent`Getting session store...`);
|
|
157534
|
-
return config.get("sessionStore");
|
|
157535
|
-
}
|
|
157536
|
-
function setSession(session, config = cliKitStore()) {
|
|
157537
|
-
outputDebug(outputContent`Setting session store...`);
|
|
157538
|
-
config.set("sessionStore", session);
|
|
157539
|
-
}
|
|
157540
|
-
function removeSession(config = cliKitStore()) {
|
|
157541
|
-
outputDebug(outputContent`Removing session store...`);
|
|
157542
|
-
config.delete("sessionStore");
|
|
157543
|
-
}
|
|
157544
|
-
async function cacheRetrieveOrRepopulate(key, fn, timeout, config = cliKitStore()) {
|
|
157545
|
-
const cache2 = config.get("cache") || {};
|
|
157546
|
-
const cached = cache2[key];
|
|
157547
|
-
if (cached?.value !== void 0 && (timeout === void 0 || Date.now() - cached.timestamp < timeout)) {
|
|
157548
|
-
return cached.value;
|
|
157549
|
-
}
|
|
157550
|
-
const value = await fn();
|
|
157551
|
-
cache2[key] = { value, timestamp: Date.now() };
|
|
157552
|
-
config.set("cache", cache2);
|
|
157553
|
-
return value;
|
|
157554
|
-
}
|
|
157555
|
-
|
|
157556
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/private/node/session/store.js
|
|
157489
|
+
// ../cli-kit/dist/private/node/session/store.js
|
|
157557
157490
|
async function store(session) {
|
|
157558
157491
|
const jsonSession = JSON.stringify(session);
|
|
157559
157492
|
setSession(jsonSession);
|
|
@@ -157576,10 +157509,10 @@ async function remove() {
|
|
|
157576
157509
|
removeSession();
|
|
157577
157510
|
}
|
|
157578
157511
|
|
|
157579
|
-
//
|
|
157512
|
+
// ../cli-kit/dist/private/node/session/exchange.js
|
|
157580
157513
|
init_cjs_shims();
|
|
157581
157514
|
|
|
157582
|
-
//
|
|
157515
|
+
// ../cli-kit/dist/private/node/session/identity.js
|
|
157583
157516
|
init_cjs_shims();
|
|
157584
157517
|
function clientId() {
|
|
157585
157518
|
const environment = serviceEnvironment();
|
|
@@ -157646,7 +157579,7 @@ function applicationId(api) {
|
|
|
157646
157579
|
}
|
|
157647
157580
|
}
|
|
157648
157581
|
|
|
157649
|
-
//
|
|
157582
|
+
// ../cli-kit/dist/public/node/result.js
|
|
157650
157583
|
init_cjs_shims();
|
|
157651
157584
|
var ok = (value) => new Ok(value);
|
|
157652
157585
|
var err = (err2) => new Err(err2);
|
|
@@ -157766,7 +157699,7 @@ var Err = class {
|
|
|
157766
157699
|
}
|
|
157767
157700
|
};
|
|
157768
157701
|
|
|
157769
|
-
//
|
|
157702
|
+
// ../cli-kit/dist/private/node/session/exchange.js
|
|
157770
157703
|
var InvalidGrantError = class extends import_ts_error.ExtendableError {
|
|
157771
157704
|
};
|
|
157772
157705
|
var InvalidRequestError = class extends import_ts_error.ExtendableError {
|
|
@@ -157894,13 +157827,13 @@ function buildApplicationToken(result) {
|
|
|
157894
157827
|
};
|
|
157895
157828
|
}
|
|
157896
157829
|
|
|
157897
|
-
//
|
|
157830
|
+
// ../cli-kit/dist/private/node/session.js
|
|
157898
157831
|
init_cjs_shims();
|
|
157899
157832
|
|
|
157900
|
-
//
|
|
157833
|
+
// ../cli-kit/dist/private/node/session/validate.js
|
|
157901
157834
|
init_cjs_shims();
|
|
157902
157835
|
|
|
157903
|
-
//
|
|
157836
|
+
// ../cli-kit/dist/private/node/session/identity-token-validation.js
|
|
157904
157837
|
init_cjs_shims();
|
|
157905
157838
|
async function validateIdentityToken(token) {
|
|
157906
157839
|
if (isSpin() && firstPartyDev())
|
|
@@ -157955,10 +157888,10 @@ async function getIntrospectionURL() {
|
|
|
157955
157888
|
return json.introspection_endpoint;
|
|
157956
157889
|
}
|
|
157957
157890
|
|
|
157958
|
-
//
|
|
157891
|
+
// ../cli-kit/dist/private/node/session/validate.js
|
|
157959
157892
|
function validateScopes(requestedScopes, identity) {
|
|
157960
157893
|
const currentScopes = identity.scopes;
|
|
157961
|
-
if (
|
|
157894
|
+
if (firstPartyDev2() !== currentScopes.includes("employee"))
|
|
157962
157895
|
return false;
|
|
157963
157896
|
return requestedScopes.every((scope) => currentScopes.includes(scope));
|
|
157964
157897
|
}
|
|
@@ -158011,18 +157944,18 @@ function expireThreshold() {
|
|
|
158011
157944
|
return new Date(Date.now() + sessionConstants.expirationTimeMarginInMinutes * 60 * 1e3);
|
|
158012
157945
|
}
|
|
158013
157946
|
|
|
158014
|
-
//
|
|
157947
|
+
// ../cli-kit/dist/private/node/session/scopes.js
|
|
158015
157948
|
init_cjs_shims();
|
|
158016
|
-
function allDefaultScopes(extraScopes = []) {
|
|
158017
|
-
let scopes = allAPIs.map(defaultApiScopes).flat();
|
|
157949
|
+
function allDefaultScopes(extraScopes = [], systemEnvironment = process.env) {
|
|
157950
|
+
let scopes = allAPIs.map((api) => defaultApiScopes(api, systemEnvironment)).flat();
|
|
158018
157951
|
scopes = ["openid", ...scopes, ...extraScopes].map(scopeTransform);
|
|
158019
157952
|
return Array.from(new Set(scopes));
|
|
158020
157953
|
}
|
|
158021
|
-
function apiScopes(api, extraScopes = []) {
|
|
158022
|
-
const scopes = [...defaultApiScopes(api), ...extraScopes.map(scopeTransform)].map(scopeTransform);
|
|
157954
|
+
function apiScopes(api, extraScopes = [], systemEnvironment = process.env) {
|
|
157955
|
+
const scopes = [...defaultApiScopes(api, systemEnvironment), ...extraScopes.map(scopeTransform)].map(scopeTransform);
|
|
158023
157956
|
return Array.from(new Set(scopes));
|
|
158024
157957
|
}
|
|
158025
|
-
function defaultApiScopes(api) {
|
|
157958
|
+
function defaultApiScopes(api, systemEnvironment = process.env) {
|
|
158026
157959
|
switch (api) {
|
|
158027
157960
|
case "admin":
|
|
158028
157961
|
return ["graphql", "themes", "collaborator"];
|
|
@@ -158033,7 +157966,7 @@ function defaultApiScopes(api) {
|
|
|
158033
157966
|
case "business-platform":
|
|
158034
157967
|
return ["destinations"];
|
|
158035
157968
|
case "app-management":
|
|
158036
|
-
return ["app-management"];
|
|
157969
|
+
return isTruthy(systemEnvironment.USE_APP_MANAGEMENT_API) ? ["app-management"] : [];
|
|
158037
157970
|
default:
|
|
158038
157971
|
throw new BugError(`Unknown API: ${api}`);
|
|
158039
157972
|
}
|
|
@@ -158059,13 +157992,13 @@ function scopeTransform(scope) {
|
|
|
158059
157992
|
}
|
|
158060
157993
|
}
|
|
158061
157994
|
|
|
158062
|
-
//
|
|
157995
|
+
// ../cli-kit/dist/private/node/session/authorize.js
|
|
158063
157996
|
init_cjs_shims();
|
|
158064
157997
|
|
|
158065
|
-
//
|
|
157998
|
+
// ../cli-kit/dist/private/node/session/redirect-listener.js
|
|
158066
157999
|
init_cjs_shims();
|
|
158067
158000
|
|
|
158068
|
-
//
|
|
158001
|
+
// ../cli-kit/dist/private/node/session/post-auth.js
|
|
158069
158002
|
init_cjs_shims();
|
|
158070
158003
|
var HTMLFileNames = [
|
|
158071
158004
|
"empty-url.html",
|
|
@@ -158119,7 +158052,7 @@ var MissingCodeString = "The authentication can't continue because the redirect
|
|
|
158119
158052
|
var MissingStateString = "The authentication can't continue because the redirect doesn't include the state.";
|
|
158120
158053
|
var RedirectPageAssetNotFoundError = () => new BugError(`Redirect page asset not found`);
|
|
158121
158054
|
|
|
158122
|
-
//
|
|
158055
|
+
// ../cli-kit/dist/private/node/session/redirect-listener.js
|
|
158123
158056
|
import url from "url";
|
|
158124
158057
|
import { createServer } from "http";
|
|
158125
158058
|
var ResponseTimeoutSeconds = 10;
|
|
@@ -158191,7 +158124,7 @@ async function listenRedirect(host, port, url2) {
|
|
|
158191
158124
|
const result = await new Promise((resolve, reject) => {
|
|
158192
158125
|
const timeout = setTimeout(() => {
|
|
158193
158126
|
const message = "\nAuto-open timed out. Open the login page: ";
|
|
158194
|
-
|
|
158127
|
+
outputInfo2(outputContent`${message}${outputToken.link("Log in to Shopify Partners", url2)}\n`);
|
|
158195
158128
|
}, ResponseTimeoutSeconds * 1e3);
|
|
158196
158129
|
const callback = (error, code, state) => {
|
|
158197
158130
|
clearTimeout(timeout);
|
|
@@ -158209,7 +158142,7 @@ async function listenRedirect(host, port, url2) {
|
|
|
158209
158142
|
return result;
|
|
158210
158143
|
}
|
|
158211
158144
|
|
|
158212
|
-
//
|
|
158145
|
+
// ../cli-kit/dist/private/node/session/authorize.js
|
|
158213
158146
|
var import_find_process = __toESM(require_find_process(), 1);
|
|
158214
158147
|
async function authorize(scopes, state = randomHex(30)) {
|
|
158215
158148
|
const port = 3456;
|
|
@@ -158229,8 +158162,8 @@ async function authorize(scopes, state = randomHex(30)) {
|
|
|
158229
158162
|
code_challenge_method: "S256",
|
|
158230
158163
|
code_challenge: codeChallenge
|
|
158231
158164
|
};
|
|
158232
|
-
|
|
158233
|
-
|
|
158165
|
+
outputInfo2("\nTo run this command, log in to Shopify.");
|
|
158166
|
+
outputInfo2("\u{1F449} Press any key to open the login page on your browser");
|
|
158234
158167
|
await keypress();
|
|
158235
158168
|
url2 = `${url2}?${new URLSearchParams(params).toString()}`;
|
|
158236
158169
|
await openURL(url2);
|
|
@@ -158248,7 +158181,7 @@ function generateRandomChallengePair() {
|
|
|
158248
158181
|
return { codeVerifier, codeChallenge };
|
|
158249
158182
|
}
|
|
158250
158183
|
async function validateRedirectionPortAvailability(port) {
|
|
158251
|
-
const { killPortProcess } = await import("./lib-
|
|
158184
|
+
const { killPortProcess } = await import("./lib-MUDJYT6A.js");
|
|
158252
158185
|
if (await checkPort(port)) {
|
|
158253
158186
|
return;
|
|
158254
158187
|
}
|
|
@@ -158268,7 +158201,7 @@ async function terminateBlockingPortProcessPrompt(port, stepDescription) {
|
|
|
158268
158201
|
});
|
|
158269
158202
|
}
|
|
158270
158203
|
|
|
158271
|
-
//
|
|
158204
|
+
// ../cli-kit/dist/private/node/session/device-authorization.js
|
|
158272
158205
|
init_cjs_shims();
|
|
158273
158206
|
async function requestDeviceAuthorization(scopes) {
|
|
158274
158207
|
const fqdn = await identityFqdn();
|
|
@@ -158285,9 +158218,9 @@ async function requestDeviceAuthorization(scopes) {
|
|
|
158285
158218
|
if (!jsonResult.device_code || !jsonResult.verification_uri_complete) {
|
|
158286
158219
|
throw new BugError("Failed to start authorization process");
|
|
158287
158220
|
}
|
|
158288
|
-
|
|
158289
|
-
|
|
158290
|
-
|
|
158221
|
+
outputInfo2("\nTo run this command, log in to Shopify.");
|
|
158222
|
+
outputInfo2(outputContent`User verification code: ${jsonResult.user_code}`);
|
|
158223
|
+
outputInfo2(outputContent`👉 Open this link to start the auth process: ${outputToken.green(jsonResult.verification_uri_complete)}`);
|
|
158291
158224
|
return {
|
|
158292
158225
|
deviceCode: jsonResult.device_code,
|
|
158293
158226
|
userCode: jsonResult.user_code,
|
|
@@ -158328,10 +158261,10 @@ function convertRequestToParams(queryParams) {
|
|
|
158328
158261
|
return Object.entries(queryParams).map(([key, value]) => value && `${key}=${value}`).filter((hasValue) => Boolean(hasValue)).join("&");
|
|
158329
158262
|
}
|
|
158330
158263
|
|
|
158331
|
-
//
|
|
158264
|
+
// ../cli-kit/dist/public/node/api/partners.js
|
|
158332
158265
|
init_cjs_shims();
|
|
158333
158266
|
|
|
158334
|
-
//
|
|
158267
|
+
// ../cli-kit/dist/private/node/context/deprecations-store.js
|
|
158335
158268
|
init_cjs_shims();
|
|
158336
158269
|
var globalWithDeprecationsStore = {
|
|
158337
158270
|
...globalThis,
|
|
@@ -158358,7 +158291,7 @@ function earliestDateTimeAfter(afterTime, dates) {
|
|
|
158358
158291
|
return times.sort().find((time) => time > afterTime);
|
|
158359
158292
|
}
|
|
158360
158293
|
|
|
158361
|
-
//
|
|
158294
|
+
// ../cli-kit/dist/public/node/api/partners.js
|
|
158362
158295
|
var import_bottleneck = __toESM(require_lib2(), 1);
|
|
158363
158296
|
var limiter = new import_bottleneck.default({
|
|
158364
158297
|
minTime: 150,
|
|
@@ -158403,7 +158336,7 @@ function handleDeprecations(response) {
|
|
|
158403
158336
|
setNextDeprecationDate(deprecationDates);
|
|
158404
158337
|
}
|
|
158405
158338
|
|
|
158406
|
-
//
|
|
158339
|
+
// ../cli-kit/dist/private/node/session.js
|
|
158407
158340
|
async function ensureAuthenticated(applications, _env, { forceRefresh = false, noPrompt = false } = {}) {
|
|
158408
158341
|
const fqdn = await identityFqdn();
|
|
158409
158342
|
const previousStoreFqdn = applications.adminApi?.storeFqdn;
|
|
@@ -158424,7 +158357,7 @@ ${outputToken.json(applications)}
|
|
|
158424
158357
|
const validationResult = await validateSession(scopes, applications, fqdnSession);
|
|
158425
158358
|
let newSession = {};
|
|
158426
158359
|
function throwOnNoPrompt() {
|
|
158427
|
-
if (!noPrompt || isSpin() &&
|
|
158360
|
+
if (!noPrompt || isSpin() && firstPartyDev2())
|
|
158428
158361
|
return;
|
|
158429
158362
|
throw new AbortError(`The currently available CLI credentials are invalid.
|
|
158430
158363
|
|
|
@@ -158467,7 +158400,7 @@ async function executeCompleteFlow(applications, identityFqdn2) {
|
|
|
158467
158400
|
const scopes = getFlattenScopes(applications);
|
|
158468
158401
|
const exchangeScopes = getExchangeScopes(applications);
|
|
158469
158402
|
const store2 = applications.adminApi?.storeFqdn;
|
|
158470
|
-
if (
|
|
158403
|
+
if (firstPartyDev2()) {
|
|
158471
158404
|
outputDebug(outputContent`Authenticating as Shopify Employee...`);
|
|
158472
158405
|
scopes.push("employee");
|
|
158473
158406
|
}
|
|
@@ -158610,7 +158543,7 @@ function buildIdentityTokenFromEnv(scopes, identityTokenInformation) {
|
|
|
158610
158543
|
};
|
|
158611
158544
|
}
|
|
158612
158545
|
|
|
158613
|
-
//
|
|
158546
|
+
// ../cli-kit/dist/public/node/session.js
|
|
158614
158547
|
async function ensureAuthenticatedAdmin(store2, scopes = [], forceRefresh = false, options = {}) {
|
|
158615
158548
|
outputDebug(outputContent`Ensuring that the user is authenticated with the Admin API with the following scopes for the store ${outputToken.raw(store2)}:
|
|
158616
158549
|
${outputToken.json(scopes)}
|
|
@@ -158641,7 +158574,7 @@ function logout() {
|
|
|
158641
158574
|
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
158642
158575
|
init_cjs_shims();
|
|
158643
158576
|
|
|
158644
|
-
//
|
|
158577
|
+
// ../cli-kit/dist/public/node/api/business-platform.js
|
|
158645
158578
|
init_cjs_shims();
|
|
158646
158579
|
async function businessPlatformRequest(query, token, variables) {
|
|
158647
158580
|
const api = "BusinessPlatform";
|
|
@@ -159249,7 +159182,7 @@ function renderLoginSuccess(config) {
|
|
|
159249
159182
|
init_cjs_shims();
|
|
159250
159183
|
import { readdir as readdir4 } from "node:fs/promises";
|
|
159251
159184
|
|
|
159252
|
-
//
|
|
159185
|
+
// ../cli-kit/dist/public/node/git.js
|
|
159253
159186
|
init_cjs_shims();
|
|
159254
159187
|
|
|
159255
159188
|
// ../../node_modules/.pnpm/simple-git@3.19.1/node_modules/simple-git/dist/esm/index.js
|
|
@@ -163155,7 +163088,7 @@ function gitInstanceFactory(baseDir, options) {
|
|
|
163155
163088
|
init_git_response_error();
|
|
163156
163089
|
var esm_default = gitInstanceFactory;
|
|
163157
163090
|
|
|
163158
|
-
//
|
|
163091
|
+
// ../cli-kit/dist/public/node/git.js
|
|
163159
163092
|
async function initializeGitRepository(directory, initialBranch = "main") {
|
|
163160
163093
|
outputDebug(outputContent`Initializing git repository at ${outputToken.path(directory)}...`);
|
|
163161
163094
|
await ensureGitIsPresentOrAbort();
|
|
@@ -163393,11 +163326,11 @@ async function setupTailwind({ rootDirectory, appDirectory, ...futureOptions },
|
|
|
163393
163326
|
"tailwind.css": joinPath(relativeAppDirectory, tailwindCssPath)
|
|
163394
163327
|
};
|
|
163395
163328
|
if (futureOptions.tailwind && futureOptions.postcss) {
|
|
163396
|
-
|
|
163329
|
+
outputInfo2(`Tailwind and PostCSS are already setup in ${rootDirectory}.`);
|
|
163397
163330
|
return;
|
|
163398
163331
|
}
|
|
163399
163332
|
if (!await canWriteFiles(assetMap, appDirectory, force)) {
|
|
163400
|
-
|
|
163333
|
+
outputInfo2(
|
|
163401
163334
|
`Skipping CSS setup as some files already exist. You may use \`--force\` or \`-f\` to override it.`
|
|
163402
163335
|
);
|
|
163403
163336
|
return;
|
|
@@ -163432,11 +163365,11 @@ async function setupPostCss({ rootDirectory, appDirectory, ...futureOptions }, f
|
|
|
163432
163365
|
"postcss.config.js": "postcss.config.js"
|
|
163433
163366
|
};
|
|
163434
163367
|
if (futureOptions.postcss) {
|
|
163435
|
-
|
|
163368
|
+
outputInfo2(`PostCSS is already setup in ${rootDirectory}.`);
|
|
163436
163369
|
return;
|
|
163437
163370
|
}
|
|
163438
163371
|
if (!await canWriteFiles(assetMap, appDirectory, force)) {
|
|
163439
|
-
|
|
163372
|
+
outputInfo2(
|
|
163440
163373
|
`Skipping CSS setup as some files already exist. You may use \`--force\` or \`-f\` to override it.`
|
|
163441
163374
|
);
|
|
163442
163375
|
return;
|
|
@@ -163772,7 +163705,7 @@ function assertOxygenChecks(config) {
|
|
|
163772
163705
|
);
|
|
163773
163706
|
}
|
|
163774
163707
|
if (process.env.NODE_ENV === "development" && !config.serverConditions?.includes("development")) {
|
|
163775
|
-
|
|
163708
|
+
outputWarn2(
|
|
163776
163709
|
"Add `process.env.NODE_ENV` value to serverConditions in remix.config.js to enable debugging features in development."
|
|
163777
163710
|
);
|
|
163778
163711
|
}
|
|
@@ -164909,7 +164842,7 @@ async function getStorefrontId(root, storefrontIdFromFlag) {
|
|
|
164909
164842
|
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-9eb60d7-20240607102913_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
164910
164843
|
init_cjs_shims();
|
|
164911
164844
|
|
|
164912
|
-
//
|
|
164845
|
+
// ../cli-kit/dist/public/node/dot-env.js
|
|
164913
164846
|
init_cjs_shims();
|
|
164914
164847
|
var import_dotenv = __toESM(require_main(), 1);
|
|
164915
164848
|
async function readAndParseDotEnv(path3) {
|
|
@@ -165126,8 +165059,8 @@ async function getAllEnvironmentVariables({
|
|
|
165126
165059
|
const localKeys = Object.keys(localVariables);
|
|
165127
165060
|
function logInjectedVariables() {
|
|
165128
165061
|
if (localKeys.length > 0 || remotePublicKeys.length + remoteSecretKeys.length > 0) {
|
|
165129
|
-
|
|
165130
|
-
|
|
165062
|
+
outputInfo2("\nEnvironment variables injected into MiniOxygen:\n");
|
|
165063
|
+
outputInfo2(
|
|
165131
165064
|
linesToColumns([
|
|
165132
165065
|
...remotePublicKeys.filter((key) => !localKeys.includes(key)).map((key) => [key, "from Oxygen"]),
|
|
165133
165066
|
...localKeys.map((key) => [key, "from local .env"]),
|
|
@@ -165259,7 +165192,7 @@ var TUNNEL_DOMAIN = Object.freeze({
|
|
|
165259
165192
|
REBRANDED: ".tryhydrogen.dev"
|
|
165260
165193
|
});
|
|
165261
165194
|
async function startTunnelAndPushConfig(root, cliConfig, port, storefrontId) {
|
|
165262
|
-
|
|
165195
|
+
outputInfo2("\nStarting tunnel...\n");
|
|
165263
165196
|
const tunnel = await startTunnelPlugin(cliConfig, port, "cloudflare");
|
|
165264
165197
|
const host = await pollTunnelURL(tunnel).then(
|
|
165265
165198
|
(host2) => (
|
|
@@ -165430,3 +165363,4 @@ export {
|
|
|
165430
165363
|
getDebugBannerLine,
|
|
165431
165364
|
getUtilityBannerlines
|
|
165432
165365
|
};
|
|
165366
|
+
//# sourceMappingURL=chunk-HJ4AUFE7.js.map
|