@shopify/cli 3.79.2 → 3.80.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.
Files changed (96) hide show
  1. package/dist/{chokidar-OATAHMV6.js → chokidar-TTCYG5AA.js} +3 -3
  2. package/dist/{chokidar-BLUAYFAB.js → chokidar-XUA2BN3J.js} +3 -3
  3. package/dist/{chunk-HHVCEPRF.js → chunk-2YZW7TJK.js} +3 -3
  4. package/dist/{chunk-ZEHIERTA.js → chunk-37WBE3RC.js} +3 -3
  5. package/dist/{chunk-MW7RWHY5.js → chunk-3GXB4ZRP.js} +4 -4
  6. package/dist/{chunk-VSYHQUMS.js → chunk-3MQT2ETC.js} +4 -4
  7. package/dist/{chunk-UTDSSCPI.js → chunk-5AFYDRV4.js} +886 -574
  8. package/dist/{chunk-JAKMNE2C.js → chunk-6LR4FWOA.js} +3 -3
  9. package/dist/{chunk-MQV3MC5Y.js → chunk-7H74TBA2.js} +3 -3
  10. package/dist/{chunk-B3YWYURY.js → chunk-7IK72W75.js} +3 -3
  11. package/dist/{chunk-6G4NC476.js → chunk-AO63XITX.js} +3 -3
  12. package/dist/{chunk-T3I7QQ2S.js → chunk-AZ6Y4YZT.js} +101 -90
  13. package/dist/{chunk-PRNDW4A4.js → chunk-BUJJ6TMB.js} +4 -4
  14. package/dist/{chunk-UZADGPF5.js → chunk-EDUZEBZD.js} +4 -4
  15. package/dist/{chunk-PLILKCK3.js → chunk-F43GEFQ6.js} +3 -3
  16. package/dist/{chunk-EMPP4I5H.js → chunk-F7J5CUMZ.js} +2 -2
  17. package/dist/{chunk-BSUS3MTW.js → chunk-G4BLVBQD.js} +3 -3
  18. package/dist/{chunk-IEJMNCLB.js → chunk-GD4RPFTP.js} +4 -4
  19. package/dist/{chunk-Y4DB5LTR.js → chunk-GFHULNRP.js} +8 -8
  20. package/dist/{chunk-M5F4CXDR.js → chunk-GTREEQHM.js} +5 -5
  21. package/dist/{chunk-LD7EUWUQ.js → chunk-H352PF4V.js} +58 -23
  22. package/dist/{chunk-BD4DMB7P.js → chunk-IDQNIJ3J.js} +5 -5
  23. package/dist/{chunk-IUNLWSXD.js → chunk-JH7IS4YF.js} +2 -2
  24. package/dist/{chunk-MDJIPIDQ.js → chunk-JSVOLQ6E.js} +6 -6
  25. package/dist/{chunk-G2H4UKYT.js → chunk-MMX2XAE3.js} +5 -5
  26. package/dist/{chunk-FUEMEAJ6.js → chunk-MWIL24VU.js} +3 -3
  27. package/dist/{chunk-OJYLAVCF.js → chunk-NRK4JPTC.js} +5 -5
  28. package/dist/{chunk-77YUNYVM.js → chunk-NWFRDDT5.js} +10 -10
  29. package/dist/{chunk-63BE7GDY.js → chunk-OGBA25HE.js} +3 -3
  30. package/dist/{chunk-MP5RLDFN.js → chunk-OWRPRJTD.js} +2 -2
  31. package/dist/{chunk-W2I3UPYU.js → chunk-PAKKG4IK.js} +8 -8
  32. package/dist/{chunk-WAVVSCTB.js → chunk-PCSYEXIP.js} +6 -6
  33. package/dist/{chunk-PMA5QAUF.js → chunk-R3CVGGX7.js} +2 -2
  34. package/dist/{chunk-X6UFRMT6.js → chunk-REH3UHFP.js} +2 -2
  35. package/dist/{chunk-MAWOPVTD.js → chunk-S5NF3A56.js} +3 -3
  36. package/dist/{chunk-DV2YYPEI.js → chunk-SUFYMVTC.js} +2 -2
  37. package/dist/{chunk-FBLZEAHG.js → chunk-TC3YYLZY.js} +4 -4
  38. package/dist/{chunk-5DBS6QOU.js → chunk-TJM3YBLQ.js} +2 -2
  39. package/dist/{chunk-ZZG4I4Y2.js → chunk-VR4MPAR3.js} +6 -6
  40. package/dist/{chunk-NPPP3L5N.js → chunk-XYKT7ZUU.js} +2 -2
  41. package/dist/{chunk-JYRZAF2V.js → chunk-XZ7LRLSW.js} +6 -6
  42. package/dist/{chunk-WN4KLPHC.js → chunk-YPF3IQMR.js} +2 -2
  43. package/dist/{chunk-Y53XECL6.js → chunk-ZEM3T4UY.js} +1 -7
  44. package/dist/cli/commands/auth/logout.js +15 -15
  45. package/dist/cli/commands/auth/logout.test.js +17 -17
  46. package/dist/cli/commands/cache/clear.js +14 -14
  47. package/dist/cli/commands/debug/command-flags.js +14 -14
  48. package/dist/cli/commands/docs/generate.js +14 -14
  49. package/dist/cli/commands/docs/generate.test.js +15 -15
  50. package/dist/cli/commands/help.js +14 -14
  51. package/dist/cli/commands/kitchen-sink/async.js +15 -15
  52. package/dist/cli/commands/kitchen-sink/async.test.js +16 -16
  53. package/dist/cli/commands/kitchen-sink/index.js +17 -17
  54. package/dist/cli/commands/kitchen-sink/index.test.js +18 -18
  55. package/dist/cli/commands/kitchen-sink/prompts.js +15 -15
  56. package/dist/cli/commands/kitchen-sink/prompts.test.js +16 -16
  57. package/dist/cli/commands/kitchen-sink/static.js +15 -15
  58. package/dist/cli/commands/kitchen-sink/static.test.js +16 -16
  59. package/dist/cli/commands/notifications/generate.js +15 -15
  60. package/dist/cli/commands/notifications/list.js +15 -15
  61. package/dist/cli/commands/search.js +15 -15
  62. package/dist/cli/commands/upgrade.js +15 -15
  63. package/dist/cli/commands/upgrade.test.js +1 -1
  64. package/dist/cli/commands/version.js +15 -15
  65. package/dist/cli/commands/version.test.js +16 -16
  66. package/dist/cli/services/commands/notifications.js +10 -10
  67. package/dist/cli/services/commands/search.js +6 -6
  68. package/dist/cli/services/commands/search.test.js +7 -7
  69. package/dist/cli/services/commands/version.js +7 -7
  70. package/dist/cli/services/commands/version.test.js +9 -9
  71. package/dist/cli/services/kitchen-sink/async.js +6 -6
  72. package/dist/cli/services/kitchen-sink/prompts.js +6 -6
  73. package/dist/cli/services/kitchen-sink/static.js +6 -6
  74. package/dist/cli/services/upgrade.js +7 -7
  75. package/dist/cli/services/upgrade.test.js +9 -9
  76. package/dist/{custom-oclif-loader-SNCTJFAW.js → custom-oclif-loader-HQIYD7VA.js} +6 -6
  77. package/dist/{del-2SYBVRHB.js → del-YIU34DZ5.js} +4 -4
  78. package/dist/{devtools-BA4WST2D.js → devtools-EVCDECOU.js} +2 -2
  79. package/dist/{devtools-6LOQORRT.js → devtools-J4QAI6HR.js} +2 -2
  80. package/dist/{error-handler-KC5QI22K.js → error-handler-BQ3ZQYX7.js} +12 -12
  81. package/dist/hooks/postrun.js +10 -10
  82. package/dist/hooks/prerun.js +13 -12
  83. package/dist/{http-proxy-L3MCJRQS.js → http-proxy-KGLXPNEY.js} +1 -9
  84. package/dist/index.js +152837 -15765
  85. package/dist/{lib-MWWAATIC.js → lib-MIBR2T7P.js} +5 -5
  86. package/dist/{local-BE7LTPTW.js → local-F5VFMUS5.js} +6 -6
  87. package/dist/{morph-MDY3DSJL.js → morph-EB6ON4RE.js} +45 -45
  88. package/dist/{node-D2EIZN3I.js → node-NS4BEHX4.js} +16 -16
  89. package/dist/{node-package-manager-URP7ZOL6.js → node-package-manager-XTTAGATX.js} +7 -7
  90. package/dist/out-5KP5WGIK.js +7 -0
  91. package/dist/tsconfig.tsbuildinfo +1 -1
  92. package/dist/{ui-UWCAHSHB.js → ui-A4PGXQX4.js} +6 -6
  93. package/dist/{workerd-IJSWR4MJ.js → workerd-WQC6GRYP.js} +16 -16
  94. package/oclif.manifest.json +5 -21
  95. package/package.json +7 -7
  96. package/dist/out-AZBX4ITJ.js +0 -7
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  searchService
3
- } from "./chunk-PMA5QAUF.js";
3
+ } from "./chunk-R3CVGGX7.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-JYRZAF2V.js";
6
+ } from "./chunk-XZ7LRLSW.js";
7
7
  import {
8
8
  require_lib
9
- } from "./chunk-UTDSSCPI.js";
9
+ } from "./chunk-5AFYDRV4.js";
10
10
  import {
11
11
  __toESM,
12
12
  init_cjs_shims
@@ -48,4 +48,4 @@ var import_core = __toESM(require_lib(), 1), Search = class _Search extends base
48
48
  export {
49
49
  Search
50
50
  };
51
- //# sourceMappingURL=chunk-PRNDW4A4.js.map
51
+ //# sourceMappingURL=chunk-BUJJ6TMB.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  logout
3
- } from "./chunk-VSYHQUMS.js";
3
+ } from "./chunk-3MQT2ETC.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-JYRZAF2V.js";
6
+ } from "./chunk-XZ7LRLSW.js";
7
7
  import {
8
8
  outputSuccess
9
- } from "./chunk-T3I7QQ2S.js";
9
+ } from "./chunk-AZ6Y4YZT.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var Logout = class extends base_command_default {
25
25
  export {
26
26
  Logout
27
27
  };
28
- //# sourceMappingURL=chunk-UZADGPF5.js.map
28
+ //# sourceMappingURL=chunk-EDUZEBZD.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  staticService
3
- } from "./chunk-WN4KLPHC.js";
3
+ } from "./chunk-YPF3IQMR.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-JYRZAF2V.js";
6
+ } from "./chunk-XZ7LRLSW.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var KitchenSinkStatic = class extends base_command_default {
25
25
  export {
26
26
  KitchenSinkStatic
27
27
  };
28
- //# sourceMappingURL=chunk-PLILKCK3.js.map
28
+ //# sourceMappingURL=chunk-F43GEFQ6.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-X7YTIMNN.js";
4
4
  import {
5
5
  require_picomatch
6
- } from "./chunk-B3YWYURY.js";
6
+ } from "./chunk-7IK72W75.js";
7
7
  import {
8
8
  __commonJS,
9
9
  __require,
@@ -494,4 +494,4 @@ export {
494
494
  require_anymatch,
495
495
  require_is_binary_path
496
496
  };
497
- //# sourceMappingURL=chunk-EMPP4I5H.js.map
497
+ //# sourceMappingURL=chunk-F7J5CUMZ.js.map
@@ -4,7 +4,7 @@ import {
4
4
  findUpAndReadPackageJson,
5
5
  getPackageManager,
6
6
  usesWorkspaces
7
- } from "./chunk-JAKMNE2C.js";
7
+ } from "./chunk-6LR4FWOA.js";
8
8
  import {
9
9
  AbortError,
10
10
  exec,
@@ -15,7 +15,7 @@ import {
15
15
  outputSuccess,
16
16
  outputToken,
17
17
  outputWarn
18
- } from "./chunk-T3I7QQ2S.js";
18
+ } from "./chunk-AZ6Y4YZT.js";
19
19
  import {
20
20
  dirname,
21
21
  joinPath,
@@ -139,4 +139,4 @@ function usingPackageManager({ env } = { env: process.env }) {
139
139
  export {
140
140
  upgrade
141
141
  };
142
- //# sourceMappingURL=chunk-BSUS3MTW.js.map
142
+ //# sourceMappingURL=chunk-G4BLVBQD.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  cliInstallCommand
3
- } from "./chunk-HHVCEPRF.js";
3
+ } from "./chunk-2YZW7TJK.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-JYRZAF2V.js";
6
+ } from "./chunk-XZ7LRLSW.js";
7
7
  import {
8
8
  renderInfo
9
- } from "./chunk-T3I7QQ2S.js";
9
+ } from "./chunk-AZ6Y4YZT.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -34,4 +34,4 @@ var Upgrade = class extends base_command_default {
34
34
  export {
35
35
  Upgrade
36
36
  };
37
- //# sourceMappingURL=chunk-IEJMNCLB.js.map
37
+ //# sourceMappingURL=chunk-GD4RPFTP.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-JYRZAF2V.js";
3
+ } from "./chunk-XZ7LRLSW.js";
4
4
  import {
5
5
  cacheClear
6
- } from "./chunk-JAKMNE2C.js";
6
+ } from "./chunk-6LR4FWOA.js";
7
7
  import {
8
8
  environmentVariables,
9
9
  isTruthy
10
- } from "./chunk-T3I7QQ2S.js";
10
+ } from "./chunk-AZ6Y4YZT.js";
11
11
  import {
12
12
  require_lib
13
- } from "./chunk-UTDSSCPI.js";
13
+ } from "./chunk-5AFYDRV4.js";
14
14
  import {
15
15
  __toESM,
16
16
  init_cjs_shims
@@ -26,7 +26,7 @@ init_cjs_shims();
26
26
  init_cjs_shims();
27
27
  import { fileURLToPath } from "node:url";
28
28
  async function launchCLI(options) {
29
- let { errorHandler } = await import("./error-handler-KC5QI22K.js"), { isDevelopment } = await import("./local-BE7LTPTW.js"), oclif = await import("./lib-MWWAATIC.js"), { ShopifyConfig } = await import("./custom-oclif-loader-SNCTJFAW.js");
29
+ let { errorHandler } = await import("./error-handler-BQ3ZQYX7.js"), { isDevelopment } = await import("./local-F5VFMUS5.js"), oclif = await import("./lib-MIBR2T7P.js"), { ShopifyConfig } = await import("./custom-oclif-loader-HQIYD7VA.js");
30
30
  isDevelopment() && (oclif.default.settings.debug = !0);
31
31
  try {
32
32
  let config = new ShopifyConfig({ root: fileURLToPath(options.moduleURL) });
@@ -41,7 +41,7 @@ var import_core = __toESM(require_lib());
41
41
  async function exitIfOldNodeVersion(versions = process.versions) {
42
42
  let nodeVersion = versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
43
43
  if (nodeMajorVersion < 18) {
44
- let { renderError } = await import("./ui-UWCAHSHB.js");
44
+ let { renderError } = await import("./ui-A4PGXQX4.js");
45
45
  renderError({
46
46
  headline: "Upgrade to a supported Node version now.",
47
47
  body: [
@@ -68,7 +68,7 @@ async function runCLI(options, launchCLI2 = launchCLI, argv = process.argv, env
68
68
  return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await exitIfOldNodeVersion(versions), launchCLI2({ moduleURL: options.moduleURL });
69
69
  }
70
70
  async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
71
- let { findUpAndReadPackageJson } = await import("./node-package-manager-URP7ZOL6.js"), { moduleDirectory } = await import("./path-2K5HIMHZ.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
71
+ let { findUpAndReadPackageJson } = await import("./node-package-manager-XTTAGATX.js"), { moduleDirectory } = await import("./path-2K5HIMHZ.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
72
72
  if (argv.findIndex((arg) => arg.includes("init")) === -1) {
73
73
  let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
74
74
  argv.splice(initIndex2, 0, "init");
@@ -117,4 +117,4 @@ export {
117
117
  jsonFlag,
118
118
  ClearCache
119
119
  };
120
- //# sourceMappingURL=chunk-Y4DB5LTR.js.map
120
+ //# sourceMappingURL=chunk-GFHULNRP.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-X6UFRMT6.js";
3
+ } from "./chunk-REH3UHFP.js";
4
4
  import {
5
5
  staticService
6
- } from "./chunk-WN4KLPHC.js";
6
+ } from "./chunk-YPF3IQMR.js";
7
7
  import {
8
8
  asyncTasks
9
- } from "./chunk-IUNLWSXD.js";
9
+ } from "./chunk-JH7IS4YF.js";
10
10
  import {
11
11
  base_command_default
12
- } from "./chunk-JYRZAF2V.js";
12
+ } from "./chunk-XZ7LRLSW.js";
13
13
  import {
14
14
  init_cjs_shims
15
15
  } from "./chunk-PKR7KJ6P.js";
@@ -34,4 +34,4 @@ var KitchenSinkAll = class extends base_command_default {
34
34
  export {
35
35
  KitchenSinkAll
36
36
  };
37
- //# sourceMappingURL=chunk-M5F4CXDR.js.map
37
+ //# sourceMappingURL=chunk-GTREEQHM.js.map
@@ -8,19 +8,19 @@ import {
8
8
  ensureAuthenticatedAdmin,
9
9
  ensureAuthenticatedBusinessPlatform,
10
10
  logout
11
- } from "./chunk-VSYHQUMS.js";
11
+ } from "./chunk-3MQT2ETC.js";
12
12
  import {
13
13
  base_command_default
14
- } from "./chunk-JYRZAF2V.js";
14
+ } from "./chunk-XZ7LRLSW.js";
15
15
  import {
16
16
  fanoutHooks,
17
17
  requestIdsCollection
18
- } from "./chunk-WAVVSCTB.js";
18
+ } from "./chunk-PCSYEXIP.js";
19
19
  import {
20
20
  businessPlatformFqdn,
21
21
  normalizeStoreFqdn,
22
22
  partnersFqdn
23
- } from "./chunk-77YUNYVM.js";
23
+ } from "./chunk-NWFRDDT5.js";
24
24
  import {
25
25
  ClientError,
26
26
  GraphQLClient,
@@ -34,10 +34,10 @@ import {
34
34
  retryAwareRequest,
35
35
  sanitizeURL,
36
36
  sanitizedHeadersOutput
37
- } from "./chunk-OJYLAVCF.js";
37
+ } from "./chunk-NRK4JPTC.js";
38
38
  import {
39
39
  CLI_KIT_VERSION
40
- } from "./chunk-DV2YYPEI.js";
40
+ } from "./chunk-SUFYMVTC.js";
41
41
  import {
42
42
  cacheRetrieveOrRepopulate,
43
43
  findUpAndReadPackageJson,
@@ -47,7 +47,7 @@ import {
47
47
  readAndParsePackageJson,
48
48
  timeIntervalToMilliseconds,
49
49
  writePackageJSON
50
- } from "./chunk-JAKMNE2C.js";
50
+ } from "./chunk-6LR4FWOA.js";
51
51
  import {
52
52
  AbortError,
53
53
  BugError,
@@ -87,7 +87,7 @@ import {
87
87
  source_default,
88
88
  stringifyMessage,
89
89
  writeFile
90
- } from "./chunk-T3I7QQ2S.js";
90
+ } from "./chunk-AZ6Y4YZT.js";
91
91
  import {
92
92
  basename,
93
93
  cwd,
@@ -100,7 +100,7 @@ import {
100
100
  } from "./chunk-57Q6OQG4.js";
101
101
  import {
102
102
  require_lib
103
- } from "./chunk-UTDSSCPI.js";
103
+ } from "./chunk-5AFYDRV4.js";
104
104
  import {
105
105
  require_source_map_support
106
106
  } from "./chunk-G5R6YD27.js";
@@ -1918,7 +1918,7 @@ var require_third_party = __commonJS({
1918
1918
  return l = (2 - s) * v, lmin = (2 - s) * vmin, sl = s * vmin, sl /= lmin <= 1 ? lmin : 2 - lmin, sl = sl || 0, l /= 2, [h, sl * 100, l * 100];
1919
1919
  }, convert.hwb.rgb = function(hwb) {
1920
1920
  var h = hwb[0] / 360, wh = hwb[1] / 100, bl = hwb[2] / 100, ratio = wh + bl, i, v, f, n;
1921
- ratio > 1 && (wh /= ratio, bl /= ratio), i = Math.floor(6 * h), v = 1 - bl, f = 6 * h - i, i & 1 && (f = 1 - f), n = wh + f * (v - wh);
1921
+ ratio > 1 && (wh /= ratio, bl /= ratio), i = Math.floor(6 * h), v = 1 - bl, f = 6 * h - i, (i & 1) !== 0 && (f = 1 - f), n = wh + f * (v - wh);
1922
1922
  var r, g, b;
1923
1923
  switch (i) {
1924
1924
  default:
@@ -108842,7 +108842,7 @@ var require_prettier = __commonJS({
108842
108842
  return l = (2 - s) * v, lmin = (2 - s) * vmin, sl = s * vmin, sl /= lmin <= 1 ? lmin : 2 - lmin, sl = sl || 0, l /= 2, [h, sl * 100, l * 100];
108843
108843
  }, convert.hwb.rgb = function(hwb) {
108844
108844
  var h = hwb[0] / 360, wh = hwb[1] / 100, bl = hwb[2] / 100, ratio = wh + bl, i, v, f, n;
108845
- ratio > 1 && (wh /= ratio, bl /= ratio), i = Math.floor(6 * h), v = 1 - bl, f = 6 * h - i, i & 1 && (f = 1 - f), n = wh + f * (v - wh);
108845
+ ratio > 1 && (wh /= ratio, bl /= ratio), i = Math.floor(6 * h), v = 1 - bl, f = 6 * h - i, (i & 1) !== 0 && (f = 1 - f), n = wh + f * (v - wh);
108846
108846
  var r, g, b;
108847
108847
  switch (i) {
108848
108848
  default:
@@ -111933,7 +111933,7 @@ ${frame}`), highlighted ? chalk.reset(frame) : frame;
111933
111933
  exports22.isInteger = (num) => typeof num == "number" ? Number.isInteger(num) : typeof num == "string" && num.trim() !== "" ? Number.isInteger(Number(num)) : !1, exports22.find = (node, type) => node.nodes.find((node2) => node2.type === type), exports22.exceedsLimit = (min, max, step = 1, limit) => limit === !1 || !exports22.isInteger(min) || !exports22.isInteger(max) ? !1 : (Number(max) - Number(min)) / Number(step) >= limit, exports22.escapeNode = (block, n = 0, type) => {
111934
111934
  let node = block.nodes[n];
111935
111935
  node && (type && node.type === type || node.type === "open" || node.type === "close") && node.escaped !== !0 && (node.value = "\\" + node.value, node.escaped = !0);
111936
- }, exports22.encloseBrace = (node) => node.type !== "brace" || node.commas >> 0 + node.ranges >> 0 ? !1 : (node.invalid = !0, !0), exports22.isInvalidBrace = (block) => block.type !== "brace" ? !1 : block.invalid === !0 || block.dollar ? !0 : !(block.commas >> 0 + block.ranges >> 0) || block.open !== !0 || block.close !== !0 ? (block.invalid = !0, !0) : !1, exports22.isOpenOrClose = (node) => node.type === "open" || node.type === "close" ? !0 : node.open === !0 || node.close === !0, exports22.reduce = (nodes) => nodes.reduce((acc, node) => (node.type === "text" && acc.push(node.value), node.type === "range" && (node.type = "text"), acc), []), exports22.flatten = (...args) => {
111936
+ }, exports22.encloseBrace = (node) => node.type !== "brace" ? !1 : node.commas >> 0 + node.ranges >> 0 === 0 ? (node.invalid = !0, !0) : !1, exports22.isInvalidBrace = (block) => block.type !== "brace" ? !1 : block.invalid === !0 || block.dollar ? !0 : block.commas >> 0 + block.ranges >> 0 === 0 || block.open !== !0 || block.close !== !0 ? (block.invalid = !0, !0) : !1, exports22.isOpenOrClose = (node) => node.type === "open" || node.type === "close" ? !0 : node.open === !0 || node.close === !0, exports22.reduce = (nodes) => nodes.reduce((acc, node) => (node.type === "text" && acc.push(node.value), node.type === "range" && (node.type = "text"), acc), []), exports22.flatten = (...args) => {
111937
111937
  let result = [], flat = (arr) => {
111938
111938
  for (let i = 0; i < arr.length; i++) {
111939
111939
  let ele = arr[i];
@@ -135807,7 +135807,7 @@ init_cjs_shims();
135807
135807
  // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@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/transpile/file.js
135808
135808
  init_cjs_shims();
135809
135809
  async function transpileFile(code, filepath, keepTypes = !0) {
135810
- let { transpileTs } = await import("./morph-MDY3DSJL.js");
135810
+ let { transpileTs } = await import("./morph-EB6ON4RE.js");
135811
135811
  return transpileTs(code, filepath, keepTypes);
135812
135812
  }
135813
135813
 
@@ -136542,21 +136542,50 @@ Request ID: ${requestId}
136542
136542
  }
136543
136543
 
136544
136544
  // ../cli-kit/dist/public/node/api/graphql.js
136545
- async function performGraphQLRequest(options2) {
136546
- let { token, addedHeaders, queryAsString, variables, api, url, responseOptions, unauthorizedHandler, cacheOptions } = options2, headers = {
136545
+ async function createGraphQLClient({ url, addedHeaders, token }) {
136546
+ let headers = {
136547
136547
  ...addedHeaders,
136548
136548
  ...buildHeaders(token)
136549
+ }, clientOptions = { agent: await httpsAgent(), headers };
136550
+ return {
136551
+ client: new GraphQLClient(url, clientOptions),
136552
+ headers
136549
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 });
136550
136557
  debugLogRequestInfo(api, queryAsString, url, variables, headers);
136551
- let requestBehaviour = requestMode(options2.preferredBehaviour ?? "default"), clientOptions = { agent: await httpsAgent(), headers }, client = new GraphQLClient(url, clientOptions), performRequest = async () => {
136558
+ let rawGraphQLRequest = async () => {
136552
136559
  let fullResponse;
136553
136560
  try {
136554
136561
  return client.requestConfig.signal = abortSignalFromRequestBehaviour(requestBehaviour), fullResponse = await client.rawRequest(queryAsString, variables), await logLastRequestIdFromResponse(fullResponse), fullResponse;
136555
136562
  } catch (error) {
136556
136563
  throw error instanceof ClientError && await logLastRequestIdFromResponse(error.response), error;
136557
136564
  }
136558
- }, executeWithTimer = () => runWithTimer("cmd_all_timing_network_ms")(async () => {
136559
- let response = await retryAwareRequest({ request: performRequest, url, ...requestBehaviour }, responseOptions?.handleErrors === !1 ? void 0 : errorHandler(api), unauthorizedHandler);
136565
+ }, simpleUnauthorizedHandler = unauthorizedHandler?.type === "simple" ? unauthorizedHandler.handler : void 0, tokenRefreshHandler = unauthorizedHandler?.type === "token_refresh" ? unauthorizedHandler.handler : void 0, 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), simpleUnauthorizedHandler), 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
+ }
136560
136589
  return responseOptions?.onResponse && responseOptions.onResponse(response), response.data;
136561
136590
  });
136562
136591
  if (cacheOptions === void 0)
@@ -136950,28 +136979,30 @@ async function setupRequest(token) {
136950
136979
  responseOptions: { onResponse: handleDeprecations }
136951
136980
  };
136952
136981
  }
136953
- async function partnersRequest(query, token, variables, cacheOptions, preferredBehaviour) {
136982
+ async function partnersRequest(query, token, variables, cacheOptions, preferredBehaviour, unauthorizedHandler) {
136954
136983
  let opts = await setupRequest(token);
136955
136984
  return limiter.schedule(() => graphqlRequest({
136956
136985
  ...opts,
136957
136986
  query,
136958
136987
  variables,
136959
136988
  cacheOptions,
136960
- preferredBehaviour
136989
+ preferredBehaviour,
136990
+ unauthorizedHandler
136961
136991
  }));
136962
136992
  }
136963
136993
  var generateFetchAppLogUrl = async (cursor, filters) => {
136964
136994
  let url = `https://${await partnersFqdn()}/app_logs/poll`;
136965
136995
  return addCursorAndFiltersToAppLogsUrl(url, cursor, filters);
136966
136996
  };
136967
- async function partnersRequestDoc(query, token, variables, preferredBehaviour) {
136997
+ async function partnersRequestDoc(query, token, variables, preferredBehaviour, unauthorizedHandler) {
136968
136998
  try {
136969
136999
  let opts = await setupRequest(token);
136970
137000
  return limiter.schedule(() => graphqlRequestDoc({
136971
137001
  ...opts,
136972
137002
  query,
136973
137003
  variables,
136974
- preferredBehaviour
137004
+ preferredBehaviour,
137005
+ unauthorizedHandler
136975
137006
  }));
136976
137007
  } catch (error) {
136977
137008
  if (error.errors?.[0]?.extensions?.type === "unsupported_client_version") {
@@ -140873,6 +140904,9 @@ async function ensureIsClean(directory) {
140873
140904
  async function isClean(directory) {
140874
140905
  return (await esm_default({ baseDir: directory }).status()).isClean();
140875
140906
  }
140907
+ async function getLatestTag(directory) {
140908
+ return (await esm_default({ baseDir: directory }).tags()).latest;
140909
+ }
140876
140910
 
140877
140911
  // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@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/setups/routes/generate.js
140878
140912
  init_cjs_shims();
@@ -142437,6 +142471,7 @@ export {
142437
142471
  GitDirectoryNotCleanError,
142438
142472
  ensureIsClean,
142439
142473
  isClean,
142474
+ getLatestTag,
142440
142475
  execAsync,
142441
142476
  supressNodeExperimentalWarnings,
142442
142477
  isHydrogenMonorepo,
@@ -142558,4 +142593,4 @@ export {
142558
142593
  getDebugBannerLine,
142559
142594
  getUtilityBannerlines
142560
142595
  };
142561
- //# sourceMappingURL=chunk-LD7EUWUQ.js.map
142596
+ //# sourceMappingURL=chunk-H352PF4V.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  list
3
- } from "./chunk-G2H4UKYT.js";
3
+ } from "./chunk-MMX2XAE3.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-JYRZAF2V.js";
6
+ } from "./chunk-XZ7LRLSW.js";
7
7
  import {
8
8
  sendErrorToBugsnag
9
- } from "./chunk-W2I3UPYU.js";
9
+ } from "./chunk-PAKKG4IK.js";
10
10
  import {
11
11
  require_lib
12
- } from "./chunk-UTDSSCPI.js";
12
+ } from "./chunk-5AFYDRV4.js";
13
13
  import {
14
14
  __toESM,
15
15
  init_cjs_shims
@@ -49,4 +49,4 @@ var List = class _List extends base_command_default {
49
49
  export {
50
50
  List
51
51
  };
52
- //# sourceMappingURL=chunk-BD4DMB7P.js.map
52
+ //# sourceMappingURL=chunk-IDQNIJ3J.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  renderConcurrent,
3
3
  renderTasks
4
- } from "./chunk-T3I7QQ2S.js";
4
+ } from "./chunk-AZ6Y4YZT.js";
5
5
  import {
6
6
  init_cjs_shims
7
7
  } from "./chunk-PKR7KJ6P.js";
@@ -43,4 +43,4 @@ async function asyncTasks() {
43
43
  export {
44
44
  asyncTasks
45
45
  };
46
- //# sourceMappingURL=chunk-IUNLWSXD.js.map
46
+ //# sourceMappingURL=chunk-JH7IS4YF.js.map
@@ -2,15 +2,15 @@ import {
2
2
  fetch,
3
3
  jsonOutputEnabled,
4
4
  z
5
- } from "./chunk-OJYLAVCF.js";
5
+ } from "./chunk-NRK4JPTC.js";
6
6
  import {
7
7
  CLI_KIT_VERSION
8
- } from "./chunk-DV2YYPEI.js";
8
+ } from "./chunk-SUFYMVTC.js";
9
9
  import {
10
10
  cacheRetrieve,
11
11
  cacheStore,
12
12
  versionSatisfies
13
- } from "./chunk-JAKMNE2C.js";
13
+ } from "./chunk-6LR4FWOA.js";
14
14
  import {
15
15
  AbortSilentError,
16
16
  exec,
@@ -19,7 +19,7 @@ import {
19
19
  renderError,
20
20
  renderInfo,
21
21
  renderWarning
22
- } from "./chunk-T3I7QQ2S.js";
22
+ } from "./chunk-AZ6Y4YZT.js";
23
23
  import {
24
24
  init_cjs_shims
25
25
  } from "./chunk-PKR7KJ6P.js";
@@ -87,7 +87,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
87
87
  throw new AbortSilentError();
88
88
  let errorMessage = `Error showing notifications: ${error.message}`;
89
89
  outputDebug(errorMessage);
90
- let { sendErrorToBugsnag } = await import("./error-handler-KC5QI22K.js");
90
+ let { sendErrorToBugsnag } = await import("./error-handler-BQ3ZQYX7.js");
91
91
  await sendErrorToBugsnag(errorMessage, "unexpected_error");
92
92
  }
93
93
  }
@@ -200,4 +200,4 @@ export {
200
200
  fetchNotificationsInBackground,
201
201
  stringifyFilters
202
202
  };
203
- //# sourceMappingURL=chunk-MDJIPIDQ.js.map
203
+ //# sourceMappingURL=chunk-JSVOLQ6E.js.map
@@ -2,13 +2,13 @@ import {
2
2
  fetchNotifications,
3
3
  getNotifications,
4
4
  stringifyFilters
5
- } from "./chunk-MDJIPIDQ.js";
5
+ } from "./chunk-JSVOLQ6E.js";
6
6
  import {
7
7
  randomUUID
8
- } from "./chunk-OJYLAVCF.js";
8
+ } from "./chunk-NRK4JPTC.js";
9
9
  import {
10
10
  CLI_KIT_VERSION
11
- } from "./chunk-DV2YYPEI.js";
11
+ } from "./chunk-SUFYMVTC.js";
12
12
  import {
13
13
  outputInfo,
14
14
  renderSelectPrompt,
@@ -16,7 +16,7 @@ import {
16
16
  renderTable,
17
17
  renderTextPrompt,
18
18
  writeFile
19
- } from "./chunk-T3I7QQ2S.js";
19
+ } from "./chunk-AZ6Y4YZT.js";
20
20
  import {
21
21
  init_cjs_shims
22
22
  } from "./chunk-PKR7KJ6P.js";
@@ -103,4 +103,4 @@ export {
103
103
  generate,
104
104
  list
105
105
  };
106
- //# sourceMappingURL=chunk-G2H4UKYT.js.map
106
+ //# sourceMappingURL=chunk-MMX2XAE3.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  versionService
3
- } from "./chunk-MQV3MC5Y.js";
3
+ } from "./chunk-7H74TBA2.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-JYRZAF2V.js";
6
+ } from "./chunk-XZ7LRLSW.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -22,4 +22,4 @@ var Version = class extends base_command_default {
22
22
  export {
23
23
  Version
24
24
  };
25
- //# sourceMappingURL=chunk-FUEMEAJ6.js.map
25
+ //# sourceMappingURL=chunk-MWIL24VU.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-25IMI7TH.js";
6
6
  import {
7
7
  CLI_KIT_VERSION
8
- } from "./chunk-DV2YYPEI.js";
8
+ } from "./chunk-SUFYMVTC.js";
9
9
  import {
10
10
  Environment,
11
11
  environmentVariables,
@@ -18,7 +18,7 @@ import {
18
18
  serviceEnvironment,
19
19
  sleep,
20
20
  systemEnvironmentVariables
21
- } from "./chunk-T3I7QQ2S.js";
21
+ } from "./chunk-AZ6Y4YZT.js";
22
22
  import {
23
23
  sniffForJson
24
24
  } from "./chunk-57Q6OQG4.js";
@@ -14557,7 +14557,7 @@ var require_lib = __commonJS({
14557
14557
  return options.globals ? options.globals.Number(value) : Number(value);
14558
14558
  }
14559
14559
  function evenRound(x) {
14560
- return x > 0 && x % 1 === 0.5 && !(x & 1) || x < 0 && x % 1 === -0.5 && (x & 1) === 1 ? censorNegativeZero(Math.floor(x)) : censorNegativeZero(Math.round(x));
14560
+ return x > 0 && x % 1 === 0.5 && (x & 1) === 0 || x < 0 && x % 1 === -0.5 && (x & 1) === 1 ? censorNegativeZero(Math.floor(x)) : censorNegativeZero(Math.round(x));
14561
14561
  }
14562
14562
  function integerPart(n) {
14563
14563
  return censorNegativeZero(Math.trunc(n));
@@ -27526,7 +27526,7 @@ ${result.sanitizedHeaders}
27526
27526
  }
27527
27527
 
27528
27528
  // ../cli-kit/dist/public/node/http.js
27529
- var import_form_data = __toESM(require_form_data(), 1);
27529
+ var import_form_data = __toESM(require_form_data());
27530
27530
 
27531
27531
  // ../../node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/src/index.js
27532
27532
  init_cjs_shims();
@@ -31452,4 +31452,4 @@ mime-types/index.js:
31452
31452
  * MIT Licensed
31453
31453
  *)
31454
31454
  */
31455
- //# sourceMappingURL=chunk-OJYLAVCF.js.map
31455
+ //# sourceMappingURL=chunk-NRK4JPTC.js.map