@shopify/cli 3.71.2 → 3.71.4
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/{chunk-4EMZSFQW.js → chunk-3HPSHLFG.js} +6 -6
- package/dist/{chunk-JEPM2XRX.js → chunk-3U4IUVVU.js} +2 -2
- package/dist/{chunk-ZZU26N3S.js → chunk-4IOYUZUL.js} +4 -4
- package/dist/{chunk-MSM55MKX.js → chunk-53CWVDMP.js} +2 -2
- package/dist/{chunk-VWX6CQAB.js → chunk-6FA42ZJ7.js} +2 -2
- package/dist/{chunk-IG3TK7HB.js → chunk-6V3JEX2A.js} +2 -2
- package/dist/{chunk-743YRZYJ.js → chunk-7USSBUNY.js} +24 -8
- package/dist/{chunk-PBFFLNGS.js → chunk-APLIZ3QU.js} +5 -5
- package/dist/{chunk-RCKHXY32.js → chunk-B2T3GBT5.js} +3 -3
- package/dist/{chunk-UIMRPUBN.js → chunk-CGNIP6G7.js} +2 -2
- package/dist/{chunk-67NTGQQG.js → chunk-CI7YIFQP.js} +4 -4
- package/dist/{chunk-V7EJVMRL.js → chunk-CSJN7PVW.js} +5 -5
- package/dist/{chunk-J5KDY24D.js → chunk-CZK74B63.js} +2 -2
- package/dist/{chunk-TIPXL2JO.js → chunk-DDSH4NHD.js} +3 -3
- package/dist/{chunk-G5FWQLLV.js → chunk-EMT2HVTD.js} +3 -3
- package/dist/{chunk-LES3FUFV.js → chunk-EPCOMGTE.js} +7 -7
- package/dist/{chunk-GERBRDYP.js → chunk-FXKC5FQR.js} +3 -3
- package/dist/{chunk-WWU2ISPW.js → chunk-GIX7PVWB.js} +6 -6
- package/dist/{chunk-GUXC6FHI.js → chunk-IWXDLFDQ.js} +3 -3
- package/dist/{chunk-54B3DYCR.js → chunk-JIEF2ST3.js} +5 -5
- package/dist/{chunk-OMKR3TBG.js → chunk-KI4PGSYX.js} +2 -2
- package/dist/{chunk-JRRUBVZB.js → chunk-LEC6C3K6.js} +3 -3
- package/dist/{chunk-D4IQMUFI.js → chunk-M2T2NJSA.js} +2 -2
- package/dist/{chunk-7WCIY7XF.js → chunk-ME2NCEKO.js} +3 -3
- package/dist/{chunk-HX2V6LJV.js → chunk-MW4WJRFT.js} +3 -3
- package/dist/{chunk-SCOJXRRL.js → chunk-OFLVF47B.js} +3 -3
- package/dist/{chunk-VYFAQ6FS.js → chunk-OSPPKV6J.js} +3 -3
- package/dist/{chunk-GKT6HM63.js → chunk-PPPEGJ7O.js} +2 -2
- package/dist/{chunk-JEG2PPJM.js → chunk-TJHYV7JJ.js} +6 -6
- package/dist/{chunk-MYVH47P3.js → chunk-VKFUEWKR.js} +5 -5
- package/dist/{chunk-7WNSZM36.js → chunk-VQZPHO4H.js} +3 -3
- package/dist/{chunk-UCPEKPAX.js → chunk-WAN6CTJ4.js} +3 -3
- package/dist/{chunk-VKXVOOB4.js → chunk-WD2LS7EH.js} +4 -4
- package/dist/{chunk-6ZLSNV5X.js → chunk-WQ3UIIYQ.js} +2 -2
- package/dist/{chunk-5VCHG7JY.js → chunk-X4IXNVZV.js} +3 -3
- package/dist/cli/commands/auth/logout.js +12 -12
- package/dist/cli/commands/auth/logout.test.js +13 -13
- package/dist/cli/commands/cache/clear.js +11 -11
- package/dist/cli/commands/debug/command-flags.js +11 -11
- package/dist/cli/commands/docs/generate.js +11 -11
- package/dist/cli/commands/docs/generate.test.js +11 -11
- package/dist/cli/commands/help.js +11 -11
- package/dist/cli/commands/kitchen-sink/async.js +12 -12
- package/dist/cli/commands/kitchen-sink/async.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/index.js +14 -14
- package/dist/cli/commands/kitchen-sink/index.test.js +14 -14
- package/dist/cli/commands/kitchen-sink/prompts.js +12 -12
- package/dist/cli/commands/kitchen-sink/prompts.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.test.js +12 -12
- package/dist/cli/commands/notifications/generate.js +12 -12
- package/dist/cli/commands/notifications/list.js +12 -12
- package/dist/cli/commands/search.js +12 -12
- package/dist/cli/commands/upgrade.js +12 -12
- package/dist/cli/commands/version.js +12 -12
- package/dist/cli/commands/version.test.js +12 -12
- package/dist/cli/services/commands/notifications.js +6 -6
- package/dist/cli/services/commands/search.js +2 -2
- package/dist/cli/services/commands/search.test.js +2 -2
- package/dist/cli/services/commands/version.js +3 -3
- package/dist/cli/services/commands/version.test.js +4 -4
- package/dist/cli/services/kitchen-sink/async.js +2 -2
- package/dist/cli/services/kitchen-sink/prompts.js +2 -2
- package/dist/cli/services/kitchen-sink/static.js +2 -2
- package/dist/cli/services/upgrade.js +3 -3
- package/dist/cli/services/upgrade.test.js +5 -5
- package/dist/{custom-oclif-loader-7HOLQMQI.js → custom-oclif-loader-AC2FZDAC.js} +2 -2
- package/dist/{error-handler-BG6WTDD5.js → error-handler-BASKW2EY.js} +9 -9
- package/dist/hooks/postrun.js +7 -7
- package/dist/hooks/prerun.js +7 -7
- package/dist/index.js +70 -86
- package/dist/{local-OWFXN46W.js → local-SU4FNBZU.js} +2 -2
- package/dist/{node-SBQDL5UT.js → node-U5FGKDT2.js} +13 -13
- package/dist/{node-package-manager-ECQJA5FQ.js → node-package-manager-XROEB5NU.js} +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-KCNIEWAP.js → ui-Q2GBYV5B.js} +2 -2
- package/dist/{workerd-HZAC3F3O.js → workerd-KAW7HC3A.js} +13 -13
- package/oclif.manifest.json +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
supressNodeExperimentalWarnings,
|
|
124
124
|
unsetStorefront,
|
|
125
125
|
waitForJob
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-EPCOMGTE.js";
|
|
127
127
|
import {
|
|
128
128
|
require_lib as require_lib4
|
|
129
129
|
} from "./chunk-NUP5TATA.js";
|
|
@@ -138,39 +138,39 @@ import {
|
|
|
138
138
|
} from "./chunk-NCKQIOV4.js";
|
|
139
139
|
import {
|
|
140
140
|
List
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-FXKC5FQR.js";
|
|
142
142
|
import {
|
|
143
143
|
Search
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-OSPPKV6J.js";
|
|
145
145
|
import {
|
|
146
146
|
Upgrade
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-CI7YIFQP.js";
|
|
148
148
|
import {
|
|
149
149
|
getOutputUpdateCLIReminder
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-WAN6CTJ4.js";
|
|
151
151
|
import {
|
|
152
152
|
Version
|
|
153
|
-
} from "./chunk-
|
|
154
|
-
import "./chunk-
|
|
155
|
-
import "./chunk-
|
|
153
|
+
} from "./chunk-X4IXNVZV.js";
|
|
154
|
+
import "./chunk-ME2NCEKO.js";
|
|
155
|
+
import "./chunk-WQ3UIIYQ.js";
|
|
156
156
|
import {
|
|
157
157
|
KitchenSinkAll
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-JIEF2ST3.js";
|
|
159
159
|
import {
|
|
160
160
|
KitchenSinkPrompts
|
|
161
|
-
} from "./chunk-
|
|
162
|
-
import "./chunk-
|
|
161
|
+
} from "./chunk-B2T3GBT5.js";
|
|
162
|
+
import "./chunk-3U4IUVVU.js";
|
|
163
163
|
import {
|
|
164
164
|
KitchenSinkStatic
|
|
165
|
-
} from "./chunk-
|
|
166
|
-
import "./chunk-
|
|
165
|
+
} from "./chunk-IWXDLFDQ.js";
|
|
166
|
+
import "./chunk-CGNIP6G7.js";
|
|
167
167
|
import {
|
|
168
168
|
Generate
|
|
169
|
-
} from "./chunk-
|
|
170
|
-
import "./chunk-
|
|
169
|
+
} from "./chunk-MW4WJRFT.js";
|
|
170
|
+
import "./chunk-CSJN7PVW.js";
|
|
171
171
|
import {
|
|
172
172
|
Logout
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-WD2LS7EH.js";
|
|
174
174
|
import {
|
|
175
175
|
ensureAuthenticatedAdmin,
|
|
176
176
|
ensureAuthenticatedAppManagement,
|
|
@@ -178,31 +178,31 @@ import {
|
|
|
178
178
|
ensureAuthenticatedPartners,
|
|
179
179
|
ensureAuthenticatedStorefront,
|
|
180
180
|
ensureAuthenticatedThemes
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-4IOYUZUL.js";
|
|
182
182
|
import {
|
|
183
183
|
ClearCache,
|
|
184
184
|
globalFlags,
|
|
185
185
|
jsonFlag,
|
|
186
186
|
runCLI
|
|
187
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-7USSBUNY.js";
|
|
188
188
|
import {
|
|
189
189
|
CommandFlags
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-DDSH4NHD.js";
|
|
191
191
|
import {
|
|
192
192
|
DocsGenerate
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-OFLVF47B.js";
|
|
194
194
|
import {
|
|
195
195
|
HelpCommand
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-KI4PGSYX.js";
|
|
197
197
|
import {
|
|
198
198
|
KitchenSinkAsync
|
|
199
|
-
} from "./chunk-
|
|
200
|
-
import "./chunk-
|
|
199
|
+
} from "./chunk-EMT2HVTD.js";
|
|
200
|
+
import "./chunk-CZK74B63.js";
|
|
201
201
|
import {
|
|
202
202
|
base_command_default,
|
|
203
203
|
decodeToml,
|
|
204
204
|
encodeToml
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-VKFUEWKR.js";
|
|
206
206
|
import {
|
|
207
207
|
require_byline,
|
|
208
208
|
require_end_of_stream,
|
|
@@ -210,7 +210,7 @@ import {
|
|
|
210
210
|
require_iserror,
|
|
211
211
|
require_pump,
|
|
212
212
|
require_stack_generator
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-3HPSHLFG.js";
|
|
214
214
|
import {
|
|
215
215
|
require_once
|
|
216
216
|
} from "./chunk-O5K4AU7Q.js";
|
|
@@ -218,7 +218,7 @@ import {
|
|
|
218
218
|
fanoutHooks,
|
|
219
219
|
getListOfTunnelPlugins,
|
|
220
220
|
reportAnalyticsEvent
|
|
221
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-GIX7PVWB.js";
|
|
222
222
|
import {
|
|
223
223
|
appManagementFqdn,
|
|
224
224
|
developerDashboardFqdn,
|
|
@@ -236,14 +236,14 @@ import {
|
|
|
236
236
|
restRequestHeaders,
|
|
237
237
|
restRequestUrl,
|
|
238
238
|
setNextDeprecationDate
|
|
239
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-APLIZ3QU.js";
|
|
240
240
|
import {
|
|
241
241
|
platformAndArch,
|
|
242
242
|
username
|
|
243
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-6FA42ZJ7.js";
|
|
244
244
|
import {
|
|
245
245
|
showNotificationsIfNeeded
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-TJHYV7JJ.js";
|
|
247
247
|
import {
|
|
248
248
|
ClientError,
|
|
249
249
|
FetchError,
|
|
@@ -261,11 +261,11 @@ import {
|
|
|
261
261
|
require_lib as require_lib2,
|
|
262
262
|
require_mime_types,
|
|
263
263
|
z
|
|
264
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-VQZPHO4H.js";
|
|
265
265
|
import "./chunk-VSLR7ET4.js";
|
|
266
266
|
import {
|
|
267
267
|
CLI_KIT_VERSION
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-PPPEGJ7O.js";
|
|
269
269
|
import {
|
|
270
270
|
LocalStorage,
|
|
271
271
|
UnknownPackageManagerError,
|
|
@@ -287,7 +287,7 @@ import {
|
|
|
287
287
|
usesWorkspaces,
|
|
288
288
|
versionSatisfies,
|
|
289
289
|
writePackageJSON
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-53CWVDMP.js";
|
|
291
291
|
import {
|
|
292
292
|
require_semver
|
|
293
293
|
} from "./chunk-BYPQXSAL.js";
|
|
@@ -471,7 +471,7 @@ import {
|
|
|
471
471
|
use_stdin_default,
|
|
472
472
|
writeFile,
|
|
473
473
|
writeFileSync
|
|
474
|
-
} from "./chunk-
|
|
474
|
+
} from "./chunk-6V3JEX2A.js";
|
|
475
475
|
import "./chunk-2HGYYNE5.js";
|
|
476
476
|
import {
|
|
477
477
|
require_graceful_fs
|
|
@@ -149422,24 +149422,18 @@ async function bulkUploadThemeAssets(id, assets, session) {
|
|
|
149422
149422
|
return results;
|
|
149423
149423
|
}
|
|
149424
149424
|
function prepareFilesForUpload(assets) {
|
|
149425
|
-
return assets.map((asset) => {
|
|
149426
|
-
|
|
149427
|
-
|
|
149428
|
-
|
|
149429
|
-
|
|
149430
|
-
|
|
149431
|
-
|
|
149432
|
-
|
|
149433
|
-
|
|
149434
|
-
|
|
149435
|
-
|
|
149436
|
-
|
|
149437
|
-
body: {
|
|
149438
|
-
type: "BASE64",
|
|
149439
|
-
value: asset.attachment
|
|
149440
|
-
}
|
|
149441
|
-
};
|
|
149442
|
-
unexpectedGraphQLError("Asset must have a value or attachment");
|
|
149425
|
+
return assets.map((asset) => asset.attachment ? {
|
|
149426
|
+
filename: asset.key,
|
|
149427
|
+
body: {
|
|
149428
|
+
type: "BASE64",
|
|
149429
|
+
value: asset.attachment
|
|
149430
|
+
}
|
|
149431
|
+
} : {
|
|
149432
|
+
filename: asset.key,
|
|
149433
|
+
body: {
|
|
149434
|
+
type: "TEXT",
|
|
149435
|
+
value: asset.value ?? ""
|
|
149436
|
+
}
|
|
149443
149437
|
});
|
|
149444
149438
|
}
|
|
149445
149439
|
async function uploadFiles(themeId, files, session) {
|
|
@@ -158413,10 +158407,10 @@ async function buildAssetsUrl(port, root) {
|
|
|
158413
158407
|
async function startMiniOxygen(options, useNodeRuntime = !1) {
|
|
158414
158408
|
if (useNodeRuntime) {
|
|
158415
158409
|
process.env.MINIFLARE_SUBREQUEST_LIMIT = 100;
|
|
158416
|
-
let { startNodeServer } = await import("./node-
|
|
158410
|
+
let { startNodeServer } = await import("./node-U5FGKDT2.js");
|
|
158417
158411
|
return startNodeServer(options);
|
|
158418
158412
|
}
|
|
158419
|
-
let { startWorkerdServer } = await import("./workerd-
|
|
158413
|
+
let { startWorkerdServer } = await import("./workerd-KAW7HC3A.js");
|
|
158420
158414
|
return startWorkerdServer(options);
|
|
158421
158415
|
}
|
|
158422
158416
|
|
|
@@ -161727,7 +161721,7 @@ var MAX_EXTENSION_HANDLE_LENGTH = 50, MetafieldSchema = z.object({
|
|
|
161727
161721
|
// ../app/dist/cli/utilities/extensions/locales-configuration.js
|
|
161728
161722
|
init_cjs_shims();
|
|
161729
161723
|
import fs4 from "fs";
|
|
161730
|
-
var L10N_FILE_SIZE_LIMIT =
|
|
161724
|
+
var L10N_FILE_SIZE_LIMIT = 20 * 1024, L10N_BUNDLE_SIZE_LIMIT = 256 * 1024;
|
|
161731
161725
|
async function loadLocalesConfig(extensionPath, extensionIdentifier) {
|
|
161732
161726
|
let localesPaths = await glob(joinPath(extensionPath, "locales/*.json"));
|
|
161733
161727
|
if (localesPaths.length === 0)
|
|
@@ -172445,13 +172439,13 @@ async function updateExtensionDraft({ extension, developerPlatformClient, apiKey
|
|
|
172445
172439
|
encodedFile = Buffer.from(content).toString("base64");
|
|
172446
172440
|
}
|
|
172447
172441
|
let config2;
|
|
172448
|
-
extension.isThemeExtension ? config2 = await themeExtensionConfig(extension) : config2 = await extension.deployConfig({ apiKey, appConfiguration })
|
|
172442
|
+
extension.isThemeExtension ? config2 = await themeExtensionConfig(extension) : config2 = await extension.deployConfig({ apiKey, appConfiguration }) ?? {};
|
|
172449
172443
|
let draftableConfig = {
|
|
172450
172444
|
...config2,
|
|
172451
172445
|
serialized_script: encodedFile
|
|
172452
172446
|
};
|
|
172453
172447
|
if (extension.isFunctionExtension) {
|
|
172454
|
-
let compiledFiles = await readFile(outputPath, { encoding: "base64" });
|
|
172448
|
+
let compiledFiles = await readFile(extension.outputPath, { encoding: "base64" });
|
|
172455
172449
|
draftableConfig.uploaded_files = { "dist/index.wasm": compiledFiles };
|
|
172456
172450
|
}
|
|
172457
172451
|
let extensionInput = {
|
|
@@ -176836,22 +176830,29 @@ var contextToTarget = (context) => {
|
|
|
176836
176830
|
let splitContext = context.split("#");
|
|
176837
176831
|
if (splitContext.length !== 2 || splitContext.some((part) => part === "" || part === void 0))
|
|
176838
176832
|
throw new Error("Invalid context");
|
|
176839
|
-
let domain = "admin", subDomain = typeToSubDomain(splitContext[0]
|
|
176840
|
-
return [domain, subDomain
|
|
176833
|
+
let domain = "admin", subDomain = typeToSubDomain(splitContext[0] ?? ""), entity = locationToEntity(splitContext[1] ?? ""), action = "link";
|
|
176834
|
+
return entity === "selection" ? [domain, `${subDomain}-index`, `${entity}-action`, action].join(".") : [domain, `${subDomain}-${entity}`, "action", action].join(".");
|
|
176841
176835
|
}, locationToEntity = (location2) => {
|
|
176842
176836
|
switch (location2.toLocaleLowerCase()) {
|
|
176843
176837
|
case "show":
|
|
176844
|
-
return "
|
|
176838
|
+
return "details";
|
|
176845
176839
|
case "index":
|
|
176846
176840
|
return "index";
|
|
176847
176841
|
case "action":
|
|
176848
176842
|
return "selection";
|
|
176849
176843
|
case "fulfilled_card":
|
|
176850
|
-
return "
|
|
176844
|
+
return "fulfilled-card";
|
|
176851
176845
|
default:
|
|
176852
176846
|
throw new Error(`Invalid context location: ${location2}`);
|
|
176853
176847
|
}
|
|
176854
|
-
}, typeToSubDomain = (
|
|
176848
|
+
}, typeToSubDomain = (type) => {
|
|
176849
|
+
switch (type.toLocaleLowerCase()) {
|
|
176850
|
+
case "variants":
|
|
176851
|
+
return "product-variant";
|
|
176852
|
+
default:
|
|
176853
|
+
return type.toLocaleLowerCase().replace(new RegExp("(s)$"), "");
|
|
176854
|
+
}
|
|
176855
|
+
};
|
|
176855
176856
|
|
|
176856
176857
|
// ../app/dist/cli/services/admin-link/extension-to-toml.js
|
|
176857
176858
|
function buildTomlObject3(extension, _2, appConfiguration) {
|
|
@@ -179401,20 +179402,6 @@ var DidYouMeanCommands = {
|
|
|
179401
179402
|
await shouldRunCommand(result, userCommand) && await this.config.runCommand(result, opts.argv);
|
|
179402
179403
|
};
|
|
179403
179404
|
|
|
179404
|
-
// ../cli-kit/dist/public/node/cli-launcher.js
|
|
179405
|
-
init_cjs_shims();
|
|
179406
|
-
import { fileURLToPath as fileURLToPath7 } from "node:url";
|
|
179407
|
-
async function launchCLI(options) {
|
|
179408
|
-
let { errorHandler: errorHandler2 } = await import("./error-handler-BG6WTDD5.js"), { isDevelopment } = await import("./local-OWFXN46W.js"), oclif = await import("./lib-XYCLX35G.js"), { ShopifyConfig } = await import("./custom-oclif-loader-7HOLQMQI.js");
|
|
179409
|
-
isDevelopment() && (oclif.default.settings.debug = !0);
|
|
179410
|
-
try {
|
|
179411
|
-
let config2 = new ShopifyConfig({ root: fileURLToPath7(options.moduleURL) });
|
|
179412
|
-
await config2.load(), await oclif.default.run(options.argv, config2), await oclif.default.flush();
|
|
179413
|
-
} catch (error) {
|
|
179414
|
-
return await errorHandler2(error), oclif.default.Errors.handle(error);
|
|
179415
|
-
}
|
|
179416
|
-
}
|
|
179417
|
-
|
|
179418
179405
|
// src/index.ts
|
|
179419
179406
|
import fs6 from "fs";
|
|
179420
179407
|
|
|
@@ -179437,7 +179424,7 @@ var TUNNEL_PROVIDER = "cloudflare", provider_default = defineProvider({ name: TU
|
|
|
179437
179424
|
|
|
179438
179425
|
// ../plugin-cloudflare/dist/install-cloudflared.js
|
|
179439
179426
|
init_cjs_shims();
|
|
179440
|
-
import { fileURLToPath as
|
|
179427
|
+
import { fileURLToPath as fileURLToPath7 } from "url";
|
|
179441
179428
|
import util from "util";
|
|
179442
179429
|
import { pipeline as pipeline2 } from "stream";
|
|
179443
179430
|
import { execSync, execFileSync } from "child_process";
|
|
@@ -179467,7 +179454,7 @@ function getURL(platform2 = process.platform, arch = process.arch) {
|
|
|
179467
179454
|
return CLOUDFLARE_REPO + fileName;
|
|
179468
179455
|
}
|
|
179469
179456
|
function getBinPathTarget(env = process.env, platform2 = process.platform) {
|
|
179470
|
-
return env.SHOPIFY_CLI_CLOUDFLARED_PATH ? env.SHOPIFY_CLI_CLOUDFLARED_PATH : joinPath(dirname(
|
|
179457
|
+
return env.SHOPIFY_CLI_CLOUDFLARED_PATH ? env.SHOPIFY_CLI_CLOUDFLARED_PATH : joinPath(dirname(fileURLToPath7(import.meta.url)), "..", "bin", platform2 === "win32" ? "cloudflared.exe" : "cloudflared");
|
|
179471
179458
|
}
|
|
179472
179459
|
async function install(env = process.env, platform2 = process.platform, arch = process.arch) {
|
|
179473
179460
|
if (env.SHOPIFY_CLI_IGNORE_CLOUDFLARED) {
|
|
@@ -179520,7 +179507,7 @@ async function downloadFile(url, to) {
|
|
|
179520
179507
|
|
|
179521
179508
|
// ../plugin-cloudflare/dist/tunnel.js
|
|
179522
179509
|
import { Writable as Writable2 } from "stream";
|
|
179523
|
-
import { fileURLToPath as
|
|
179510
|
+
import { fileURLToPath as fileURLToPath8 } from "url";
|
|
179524
179511
|
var tunnel_default = startTunnel({ provider: TUNNEL_PROVIDER, action: hookStart }), TUNNEL_TIMEOUT = isUnitTest() ? 0.2 : 40, MAX_RETRIES = 5;
|
|
179525
179512
|
async function hookStart(port) {
|
|
179526
179513
|
try {
|
|
@@ -179632,7 +179619,7 @@ function findConnection(data) {
|
|
|
179632
179619
|
return match2 && match2[0];
|
|
179633
179620
|
}
|
|
179634
179621
|
function getBinPathTarget2() {
|
|
179635
|
-
return process.env.SHOPIFY_CLI_CLOUDFLARED_PATH ? process.env.SHOPIFY_CLI_CLOUDFLARED_PATH : joinPath(dirname(
|
|
179622
|
+
return process.env.SHOPIFY_CLI_CLOUDFLARED_PATH ? process.env.SHOPIFY_CLI_CLOUDFLARED_PATH : joinPath(dirname(fileURLToPath8(import.meta.url)), "..", "bin", process.platform === "win32" ? "cloudflared.exe" : "cloudflared");
|
|
179636
179623
|
}
|
|
179637
179624
|
function getTunnelDomain() {
|
|
179638
179625
|
return process.env.SHOPIFY_CLI_CLOUDFLARED_DOMAIN ?? "trycloudflare.com";
|
|
@@ -179653,13 +179640,10 @@ signals.forEach((signal) => {
|
|
|
179653
179640
|
var columns2 = Number(process.env.SHOPIFY_CLI_COLUMNS);
|
|
179654
179641
|
isNaN(columns2) || (process.stdout.columns = columns2);
|
|
179655
179642
|
async function runShopifyCLI({ development }) {
|
|
179656
|
-
await runCLI(
|
|
179657
|
-
|
|
179658
|
-
|
|
179659
|
-
|
|
179660
|
-
},
|
|
179661
|
-
launchCLI
|
|
179662
|
-
);
|
|
179643
|
+
await runCLI({
|
|
179644
|
+
moduleURL: import.meta.url,
|
|
179645
|
+
development
|
|
179646
|
+
});
|
|
179663
179647
|
}
|
|
179664
179648
|
commands3.plugins.hidden = !0;
|
|
179665
179649
|
commands3["plugins:install"].description = "";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
themeToken,
|
|
23
23
|
useEmbeddedThemeCLI,
|
|
24
24
|
useThemebundling
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6V3JEX2A.js";
|
|
26
26
|
import "./chunk-2HGYYNE5.js";
|
|
27
27
|
import "./chunk-XVNW332R.js";
|
|
28
28
|
import "./chunk-K6Y4FYT5.js";
|
|
@@ -61,4 +61,4 @@ export {
|
|
|
61
61
|
useEmbeddedThemeCLI,
|
|
62
62
|
useThemebundling
|
|
63
63
|
};
|
|
64
|
-
//# sourceMappingURL=local-
|
|
64
|
+
//# sourceMappingURL=local-SU4FNBZU.js.map
|
|
@@ -12,19 +12,19 @@ import {
|
|
|
12
12
|
importLocal,
|
|
13
13
|
logRequestLine,
|
|
14
14
|
setConstructors
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-EPCOMGTE.js";
|
|
16
|
+
import "./chunk-4IOYUZUL.js";
|
|
17
|
+
import "./chunk-VKFUEWKR.js";
|
|
18
|
+
import "./chunk-3HPSHLFG.js";
|
|
19
19
|
import "./chunk-O5K4AU7Q.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-GIX7PVWB.js";
|
|
21
|
+
import "./chunk-APLIZ3QU.js";
|
|
22
|
+
import "./chunk-6FA42ZJ7.js";
|
|
23
|
+
import "./chunk-TJHYV7JJ.js";
|
|
24
|
+
import "./chunk-VQZPHO4H.js";
|
|
25
25
|
import "./chunk-VSLR7ET4.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-PPPEGJ7O.js";
|
|
27
|
+
import "./chunk-53CWVDMP.js";
|
|
28
28
|
import "./chunk-BYPQXSAL.js";
|
|
29
29
|
import {
|
|
30
30
|
AbortError,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
readFile,
|
|
33
33
|
renderSuccess,
|
|
34
34
|
source_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6V3JEX2A.js";
|
|
36
36
|
import "./chunk-2HGYYNE5.js";
|
|
37
37
|
import "./chunk-XVNW332R.js";
|
|
38
38
|
import "./chunk-K6Y4FYT5.js";
|
|
@@ -162,4 +162,4 @@ async function startNodeServer({
|
|
|
162
162
|
export {
|
|
163
163
|
startNodeServer
|
|
164
164
|
};
|
|
165
|
-
//# sourceMappingURL=node-
|
|
165
|
+
//# sourceMappingURL=node-U5FGKDT2.js.map
|
|
@@ -28,9 +28,9 @@ import {
|
|
|
28
28
|
versionSatisfies,
|
|
29
29
|
writePackageJSON,
|
|
30
30
|
yarnLockfile
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-53CWVDMP.js";
|
|
32
32
|
import "./chunk-BYPQXSAL.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-6V3JEX2A.js";
|
|
34
34
|
import "./chunk-2HGYYNE5.js";
|
|
35
35
|
import "./chunk-XVNW332R.js";
|
|
36
36
|
import "./chunk-K6Y4FYT5.js";
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
writePackageJSON,
|
|
76
76
|
yarnLockfile
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=node-package-manager-
|
|
78
|
+
//# sourceMappingURL=node-package-manager-XROEB5NU.js.map
|