@shopify/cli 3.78.2 → 3.79.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 (108) hide show
  1. package/dist/assets/dev-console/extensions/dev-console/assets/index-BteeGmYf.css +1 -0
  2. package/dist/assets/dev-console/extensions/dev-console/assets/index-CqNhY1h-.js +64 -0
  3. package/dist/assets/dev-console/index.html +2 -2
  4. package/dist/assets/hydrogen/starter/.cursor/rules/cookbook-recipe-subscriptions.mdc +921 -0
  5. package/dist/assets/hydrogen/starter/CHANGELOG.md +20 -0
  6. package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +15 -0
  7. package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +1 -1
  8. package/dist/assets/hydrogen/starter/app/components/ProductItem.tsx +44 -0
  9. package/dist/assets/hydrogen/starter/app/lib/redirect.ts +23 -0
  10. package/dist/assets/hydrogen/starter/app/routes/_index.tsx +8 -23
  11. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +22 -2
  12. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +4 -0
  13. package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +7 -41
  14. package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +11 -44
  15. package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +9 -1
  16. package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +5 -1
  17. package/dist/assets/hydrogen/starter/app/styles/app.css +15 -3
  18. package/dist/assets/hydrogen/starter/package.json +5 -5
  19. package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +57 -36
  20. package/dist/{chunk-DR5VG62Q.js → chunk-2B4E6VSB.js} +3 -3
  21. package/dist/{chunk-ZPZFAVIY.js → chunk-4BO44W6A.js} +2 -2
  22. package/dist/{chunk-GJEIVT3X.js → chunk-54K4AM4U.js} +3 -3
  23. package/dist/{chunk-6HJM24C2.js → chunk-7QKG75SI.js} +72 -6
  24. package/dist/{chunk-WYNL2S7B.js → chunk-ALANDDAF.js} +3 -3
  25. package/dist/{chunk-LAKQWRR5.js → chunk-ANW4ZUSD.js} +2 -2
  26. package/dist/{chunk-7KZBYW7W.js → chunk-AVR7SY23.js} +4 -4
  27. package/dist/{chunk-IK6NAHQI.js → chunk-CZ7EMDNP.js} +5 -5
  28. package/dist/{chunk-YXH3NSML.js → chunk-DG3SRCQ7.js} +2 -2
  29. package/dist/{chunk-UP44YINT.js → chunk-DOKAITPJ.js} +4 -4
  30. package/dist/{chunk-6GHUZFPP.js → chunk-EKAPTGJ2.js} +2 -2
  31. package/dist/{chunk-DOEVJAN2.js → chunk-F55GHOR3.js} +83 -130
  32. package/dist/{chunk-ZTD22GER.js → chunk-G63ZK76J.js} +3 -3
  33. package/dist/{chunk-L35GVYH5.js → chunk-HTK3YCUG.js} +3 -3
  34. package/dist/{chunk-HZRI37XU.js → chunk-IARZXI6R.js} +3 -3
  35. package/dist/{chunk-UV2DGNFK.js → chunk-IYBFDT7N.js} +41 -16
  36. package/dist/{chunk-E76452W5.js → chunk-JCZQQS22.js} +4 -4
  37. package/dist/{chunk-DHQUQSYW.js → chunk-KRTNJAVX.js} +3 -3
  38. package/dist/{chunk-TVCBBRZD.js → chunk-KVPURBXO.js} +5 -5
  39. package/dist/{chunk-QTIPSIA5.js → chunk-LFQMCRXU.js} +12 -8
  40. package/dist/{chunk-VBX7R3AF.js → chunk-MLGPNWXX.js} +87 -97
  41. package/dist/{chunk-S5XTFY2H.js → chunk-MRU3X272.js} +4 -4
  42. package/dist/{chunk-BV6PURBM.js → chunk-NOSVFQH5.js} +3 -3
  43. package/dist/{chunk-LGQNLPOA.js → chunk-OOVDD552.js} +3 -3
  44. package/dist/{chunk-UE4DFKJU.js → chunk-P6WUJAQG.js} +3 -3
  45. package/dist/{chunk-L4SLRBFT.js → chunk-PRSCEDOW.js} +18 -5
  46. package/dist/{chunk-IBRFXDBZ.js → chunk-QBB7AFBN.js} +7 -7
  47. package/dist/{chunk-6V2YVCS2.js → chunk-QJTHRGGC.js} +7 -5
  48. package/dist/{chunk-YKVQZFEC.js → chunk-QW44EO42.js} +8 -8
  49. package/dist/{chunk-WBWYZ7XQ.js → chunk-SHIHLMYP.js} +8 -6
  50. package/dist/{chunk-6G5FH3WC.js → chunk-SUWZRQHU.js} +2 -2
  51. package/dist/{chunk-IG6TAMGV.js → chunk-U6TDVNHS.js} +16 -15
  52. package/dist/{chunk-7S2OZRQF.js → chunk-UQLLSBKG.js} +3 -3
  53. package/dist/{chunk-QAKYKTFV.js → chunk-UTDSSCPI.js} +5 -5
  54. package/dist/{chunk-VEHGKA4Q.js → chunk-YILOICE5.js} +5 -5
  55. package/dist/{chunk-GTVU6SJH.js → chunk-ZCIGSW2P.js} +2 -2
  56. package/dist/cli/commands/auth/logout.js +13 -13
  57. package/dist/cli/commands/auth/logout.test.js +14 -14
  58. package/dist/cli/commands/cache/clear.js +12 -12
  59. package/dist/cli/commands/debug/command-flags.js +12 -12
  60. package/dist/cli/commands/docs/generate.js +12 -12
  61. package/dist/cli/commands/docs/generate.test.js +13 -13
  62. package/dist/cli/commands/help.js +12 -12
  63. package/dist/cli/commands/kitchen-sink/async.js +13 -13
  64. package/dist/cli/commands/kitchen-sink/async.test.js +13 -13
  65. package/dist/cli/commands/kitchen-sink/index.js +15 -15
  66. package/dist/cli/commands/kitchen-sink/index.test.js +15 -15
  67. package/dist/cli/commands/kitchen-sink/prompts.js +13 -13
  68. package/dist/cli/commands/kitchen-sink/prompts.test.js +13 -13
  69. package/dist/cli/commands/kitchen-sink/static.js +13 -13
  70. package/dist/cli/commands/kitchen-sink/static.test.js +13 -13
  71. package/dist/cli/commands/notifications/generate.js +13 -13
  72. package/dist/cli/commands/notifications/list.js +13 -13
  73. package/dist/cli/commands/search.js +13 -13
  74. package/dist/cli/commands/upgrade.js +13 -13
  75. package/dist/cli/commands/version.js +13 -13
  76. package/dist/cli/commands/version.test.js +13 -13
  77. package/dist/cli/services/commands/notifications.js +8 -8
  78. package/dist/cli/services/commands/search.js +5 -4
  79. package/dist/cli/services/commands/search.test.js +5 -4
  80. package/dist/cli/services/commands/version.js +6 -5
  81. package/dist/cli/services/commands/version.test.js +7 -6
  82. package/dist/cli/services/kitchen-sink/async.js +5 -4
  83. package/dist/cli/services/kitchen-sink/prompts.js +5 -4
  84. package/dist/cli/services/kitchen-sink/static.js +5 -4
  85. package/dist/cli/services/upgrade.js +5 -5
  86. package/dist/cli/services/upgrade.test.js +7 -7
  87. package/dist/configs/all.yml +19 -4
  88. package/dist/configs/recommended.yml +19 -4
  89. package/dist/{custom-oclif-loader-TUNXMYGU.js → custom-oclif-loader-ZMH2MAPE.js} +5 -4
  90. package/dist/{error-handler-AWP3RCBG.js → error-handler-7Z6N6VQJ.js} +10 -10
  91. package/dist/hooks/postrun.js +9 -9
  92. package/dist/hooks/prerun.js +10 -10
  93. package/dist/index.js +2777 -2428
  94. package/dist/is-wsl-YAJ3DFN7.js +64 -0
  95. package/dist/{lib-IZAG57CE.js → lib-MWWAATIC.js} +3 -3
  96. package/dist/{local-RBT53U3L.js → local-LWMJQBFZ.js} +5 -6
  97. package/dist/{morph-W4XLLZ47.js → morph-MDY3DSJL.js} +9 -9
  98. package/dist/{node-SKXMS2TZ.js → node-JJXJUMVQ.js} +17 -17
  99. package/dist/{node-package-manager-BZHJZTGV.js → node-package-manager-BZGMCXZM.js} +5 -5
  100. package/dist/toml-patch-wasm-J5VGG6WG.js +140 -0
  101. package/dist/toml_patch_bg.wasm +0 -0
  102. package/dist/tsconfig.tsbuildinfo +1 -1
  103. package/dist/{ui-5MADIMGC.js → ui-IJDVK4OG.js} +5 -4
  104. package/dist/{workerd-YRUKUE76.js → workerd-XA4WKUCO.js} +16 -16
  105. package/oclif.manifest.json +100 -2
  106. package/package.json +7 -7
  107. package/dist/assets/dev-console/extensions/dev-console/assets/index-lyGm6l3x.js +0 -64
  108. package/dist/assets/dev-console/extensions/dev-console/assets/index-n8yr6cxq.css +0 -1
@@ -0,0 +1,64 @@
1
+ import {
2
+ init_cjs_shims
3
+ } from "./chunk-PKR7KJ6P.js";
4
+
5
+ // ../../node_modules/.pnpm/is-wsl@3.1.0/node_modules/is-wsl/index.js
6
+ init_cjs_shims();
7
+ import process from "node:process";
8
+ import os from "node:os";
9
+ import fs3 from "node:fs";
10
+
11
+ // ../../node_modules/.pnpm/is-inside-container@1.0.0/node_modules/is-inside-container/index.js
12
+ init_cjs_shims();
13
+ import fs2 from "node:fs";
14
+
15
+ // ../../node_modules/.pnpm/is-docker@3.0.0/node_modules/is-docker/index.js
16
+ init_cjs_shims();
17
+ import fs from "node:fs";
18
+ var isDockerCached;
19
+ function hasDockerEnv() {
20
+ try {
21
+ return fs.statSync("/.dockerenv"), !0;
22
+ } catch {
23
+ return !1;
24
+ }
25
+ }
26
+ function hasDockerCGroup() {
27
+ try {
28
+ return fs.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
29
+ } catch {
30
+ return !1;
31
+ }
32
+ }
33
+ function isDocker() {
34
+ return isDockerCached === void 0 && (isDockerCached = hasDockerEnv() || hasDockerCGroup()), isDockerCached;
35
+ }
36
+
37
+ // ../../node_modules/.pnpm/is-inside-container@1.0.0/node_modules/is-inside-container/index.js
38
+ var cachedResult, hasContainerEnv = () => {
39
+ try {
40
+ return fs2.statSync("/run/.containerenv"), !0;
41
+ } catch {
42
+ return !1;
43
+ }
44
+ };
45
+ function isInsideContainer() {
46
+ return cachedResult === void 0 && (cachedResult = hasContainerEnv() || isDocker()), cachedResult;
47
+ }
48
+
49
+ // ../../node_modules/.pnpm/is-wsl@3.1.0/node_modules/is-wsl/index.js
50
+ var isWsl = () => {
51
+ if (process.platform !== "linux")
52
+ return !1;
53
+ if (os.release().toLowerCase().includes("microsoft"))
54
+ return !isInsideContainer();
55
+ try {
56
+ return fs3.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : !1;
57
+ } catch {
58
+ return !1;
59
+ }
60
+ }, is_wsl_default = process.env.__IS_WSL_TEST__ ? isWsl : isWsl();
61
+ export {
62
+ is_wsl_default as default
63
+ };
64
+ //# sourceMappingURL=is-wsl-YAJ3DFN7.js.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-QAKYKTFV.js";
4
- import "./chunk-G5R6YD27.js";
3
+ } from "./chunk-UTDSSCPI.js";
5
4
  import "./chunk-3I3GQNEW.js";
5
+ import "./chunk-G5R6YD27.js";
6
6
  import "./chunk-G2ZZKGSV.js";
7
7
  import "./chunk-MP5RLDFN.js";
8
8
  import "./chunk-XE5EOEBL.js";
@@ -10,4 +10,4 @@ import "./chunk-5DBS6QOU.js";
10
10
  import "./chunk-B3YWYURY.js";
11
11
  import "./chunk-PKR7KJ6P.js";
12
12
  export default require_lib();
13
- //# sourceMappingURL=lib-IZAG57CE.js.map
13
+ //# sourceMappingURL=lib-MWWAATIC.js.map
@@ -11,7 +11,6 @@ import {
11
11
  gitpodURL,
12
12
  hasGit,
13
13
  homeDirectory,
14
- isAppManagementDisabled,
15
14
  isCloudEnvironment,
16
15
  isDevelopment,
17
16
  isShopify,
@@ -23,13 +22,14 @@ import {
23
22
  themeToken,
24
23
  useEmbeddedThemeCLI,
25
24
  useThemebundling
26
- } from "./chunk-DOEVJAN2.js";
25
+ } from "./chunk-F55GHOR3.js";
26
+ import "./chunk-HMDWNGIV.js";
27
27
  import "./chunk-B5EXYCV3.js";
28
28
  import "./chunk-75LV6AQS.js";
29
29
  import "./chunk-57Q6OQG4.js";
30
- import "./chunk-QAKYKTFV.js";
31
- import "./chunk-G5R6YD27.js";
30
+ import "./chunk-UTDSSCPI.js";
32
31
  import "./chunk-3I3GQNEW.js";
32
+ import "./chunk-G5R6YD27.js";
33
33
  import "./chunk-G2ZZKGSV.js";
34
34
  import "./chunk-MP5RLDFN.js";
35
35
  import "./chunk-XE5EOEBL.js";
@@ -50,7 +50,6 @@ export {
50
50
  gitpodURL,
51
51
  hasGit,
52
52
  homeDirectory,
53
- isAppManagementDisabled,
54
53
  isCloudEnvironment,
55
54
  isDevelopment,
56
55
  isShopify,
@@ -63,4 +62,4 @@ export {
63
62
  useEmbeddedThemeCLI,
64
63
  useThemebundling
65
64
  };
66
- //# sourceMappingURL=local-RBT53U3L.js.map
65
+ //# sourceMappingURL=local-LWMJQBFZ.js.map
@@ -190638,18 +190638,18 @@ Node text: ${this._forgottenText}`), new common.errors.InvalidOperationError(mes
190638
190638
  }
190639
190639
  });
190640
190640
 
190641
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/index.js
190641
+ // ../../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/morph/index.js
190642
190642
  init_cjs_shims();
190643
190643
  var import_ts_morph2 = __toESM(require_ts_morph(), 1);
190644
190644
 
190645
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/classes.js
190645
+ // ../../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/morph/classes.js
190646
190646
  init_cjs_shims();
190647
190647
  var import_ts_morph = __toESM(require_ts_morph(), 1);
190648
190648
 
190649
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/functions.js
190649
+ // ../../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/morph/functions.js
190650
190650
  init_cjs_shims();
190651
190651
 
190652
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/utils.js
190652
+ // ../../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/morph/utils.js
190653
190653
  init_cjs_shims();
190654
190654
  function getJsDocOrCreate(node) {
190655
190655
  return node.getJsDocs().at(-1) || node.addJsDoc({ description: `
@@ -190663,7 +190663,7 @@ function sanitizeType(str) {
190663
190663
  return extractedClassFromTypeof ? `Class<${extractedClassFromTypeof}>` : str;
190664
190664
  }
190665
190665
 
190666
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/functions.js
190666
+ // ../../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/morph/functions.js
190667
190667
  function generateFunctionDocumentation(functionNode, variableStatement) {
190668
190668
  let outputDocNode = getOutputJsDocNodeOrCreate(
190669
190669
  functionNode,
@@ -190726,7 +190726,7 @@ function getOutputJsDocNodeOrCreate(functionNode, docNode) {
190726
190726
  return docNode ? functionNode.getJsDocs().length ? functionNode : (getJsDocOrCreate(docNode), docNode) : (getJsDocOrCreate(functionNode), functionNode);
190727
190727
  }
190728
190728
 
190729
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/classes.js
190729
+ // ../../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/morph/classes.js
190730
190730
  function generateClassDocumentation(classNode) {
190731
190731
  generateClassBaseDocumentation(classNode), classNode.getMembers().forEach(generateClassMemberDocumentation);
190732
190732
  }
@@ -190754,7 +190754,7 @@ function generateModifierDocumentation(classMember) {
190754
190754
  }
190755
190755
  }
190756
190756
 
190757
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/typedefs.js
190757
+ // ../../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/morph/typedefs.js
190758
190758
  init_cjs_shims();
190759
190759
  function generateTypeDefs(sourceFile, code) {
190760
190760
  let typedefs = sourceFile.getTypeAliases().map(
@@ -190867,7 +190867,7 @@ function generateObjectPropertyDocumentation(node, jsDoc, name = "", topLevelCal
190867
190867
  );
190868
190868
  }
190869
190869
 
190870
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/index.js
190870
+ // ../../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/morph/index.js
190871
190871
  var DEFAULT_COMPILER_OPTIONS = {
190872
190872
  target: import_ts_morph2.ScriptTarget.ESNext,
190873
190873
  esModuleInterop: !0,
@@ -190944,4 +190944,4 @@ export {
190944
190944
  and limitations under the License.
190945
190945
  ***************************************************************************** *)
190946
190946
  */
190947
- //# sourceMappingURL=morph-W4XLLZ47.js.map
190947
+ //# sourceMappingURL=morph-MDY3DSJL.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  findPort
3
- } from "./chunk-BV6PURBM.js";
3
+ } from "./chunk-NOSVFQH5.js";
4
4
  import {
5
5
  DEFAULT_INSPECTOR_PORT,
6
6
  H2O_BINDING_NAME,
@@ -12,34 +12,34 @@ import {
12
12
  importLocal,
13
13
  logRequestLine,
14
14
  setConstructors
15
- } from "./chunk-VBX7R3AF.js";
15
+ } from "./chunk-MLGPNWXX.js";
16
16
  import "./chunk-LQ2ZKVR6.js";
17
17
  import "./chunk-CP3BRHWK.js";
18
- import "./chunk-L4SLRBFT.js";
19
- import "./chunk-WBWYZ7XQ.js";
20
- import "./chunk-QTIPSIA5.js";
18
+ import "./chunk-PRSCEDOW.js";
19
+ import "./chunk-SHIHLMYP.js";
20
+ import "./chunk-LFQMCRXU.js";
21
21
  import "./chunk-SHWOPMLQ.js";
22
- import "./chunk-IBRFXDBZ.js";
23
- import "./chunk-UV2DGNFK.js";
24
- import "./chunk-IG6TAMGV.js";
25
- import "./chunk-6HJM24C2.js";
22
+ import "./chunk-QBB7AFBN.js";
23
+ import "./chunk-IYBFDT7N.js";
24
+ import "./chunk-U6TDVNHS.js";
25
+ import "./chunk-7QKG75SI.js";
26
26
  import "./chunk-25IMI7TH.js";
27
- import "./chunk-6G5FH3WC.js";
28
- import "./chunk-IK6NAHQI.js";
29
- import "./chunk-HMDWNGIV.js";
27
+ import "./chunk-SUWZRQHU.js";
28
+ import "./chunk-CZ7EMDNP.js";
30
29
  import {
31
30
  AbortError,
32
31
  outputNewline,
33
32
  readFile,
34
33
  renderSuccess,
35
34
  source_default
36
- } from "./chunk-DOEVJAN2.js";
35
+ } from "./chunk-F55GHOR3.js";
36
+ import "./chunk-HMDWNGIV.js";
37
37
  import "./chunk-B5EXYCV3.js";
38
38
  import "./chunk-75LV6AQS.js";
39
39
  import "./chunk-57Q6OQG4.js";
40
- import "./chunk-QAKYKTFV.js";
41
- import "./chunk-G5R6YD27.js";
40
+ import "./chunk-UTDSSCPI.js";
42
41
  import "./chunk-3I3GQNEW.js";
42
+ import "./chunk-G5R6YD27.js";
43
43
  import "./chunk-G2ZZKGSV.js";
44
44
  import "./chunk-MP5RLDFN.js";
45
45
  import "./chunk-XE5EOEBL.js";
@@ -50,7 +50,7 @@ import {
50
50
  init_cjs_shims
51
51
  } from "./chunk-PKR7KJ6P.js";
52
52
 
53
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/node.js
53
+ // ../../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/mini-oxygen/node.js
54
54
  init_cjs_shims();
55
55
  import { AsyncLocalStorage } from "node:async_hooks";
56
56
  async function startNodeServer({
@@ -163,4 +163,4 @@ async function startNodeServer({
163
163
  export {
164
164
  startNodeServer
165
165
  };
166
- //# sourceMappingURL=node-SKXMS2TZ.js.map
166
+ //# sourceMappingURL=node-JJXJUMVQ.js.map
@@ -29,15 +29,15 @@ import {
29
29
  versionSatisfies,
30
30
  writePackageJSON,
31
31
  yarnLockfile
32
- } from "./chunk-IK6NAHQI.js";
32
+ } from "./chunk-CZ7EMDNP.js";
33
+ import "./chunk-F55GHOR3.js";
33
34
  import "./chunk-HMDWNGIV.js";
34
- import "./chunk-DOEVJAN2.js";
35
35
  import "./chunk-B5EXYCV3.js";
36
36
  import "./chunk-75LV6AQS.js";
37
37
  import "./chunk-57Q6OQG4.js";
38
- import "./chunk-QAKYKTFV.js";
39
- import "./chunk-G5R6YD27.js";
38
+ import "./chunk-UTDSSCPI.js";
40
39
  import "./chunk-3I3GQNEW.js";
40
+ import "./chunk-G5R6YD27.js";
41
41
  import "./chunk-G2ZZKGSV.js";
42
42
  import "./chunk-MP5RLDFN.js";
43
43
  import "./chunk-XE5EOEBL.js";
@@ -77,4 +77,4 @@ export {
77
77
  writePackageJSON,
78
78
  yarnLockfile
79
79
  };
80
- //# sourceMappingURL=node-package-manager-BZHJZTGV.js.map
80
+ //# sourceMappingURL=node-package-manager-BZGMCXZM.js.map
@@ -0,0 +1,140 @@
1
+ import {
2
+ __commonJS,
3
+ __require,
4
+ __toESM,
5
+ init_cjs_shims
6
+ } from "./chunk-PKR7KJ6P.js";
7
+
8
+ // ../../node_modules/.pnpm/@shopify+toml-patch@0.3.0/node_modules/@shopify/toml-patch/toml_patch.js
9
+ var require_toml_patch = __commonJS({
10
+ "../../node_modules/.pnpm/@shopify+toml-patch@0.3.0/node_modules/@shopify/toml-patch/toml_patch.js"(exports, module) {
11
+ init_cjs_shims();
12
+ var imports = {};
13
+ imports.__wbindgen_placeholder__ = module.exports;
14
+ var wasm, { TextEncoder, TextDecoder } = __require("util");
15
+ function isLikeNone(x) {
16
+ return x == null;
17
+ }
18
+ var cachedDataViewMemory0 = null;
19
+ function getDataViewMemory0() {
20
+ return (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === !0 || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) && (cachedDataViewMemory0 = new DataView(wasm.memory.buffer)), cachedDataViewMemory0;
21
+ }
22
+ var WASM_VECTOR_LEN = 0, cachedUint8ArrayMemory0 = null;
23
+ function getUint8ArrayMemory0() {
24
+ return (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) && (cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer)), cachedUint8ArrayMemory0;
25
+ }
26
+ var cachedTextEncoder = new TextEncoder("utf-8"), encodeString = typeof cachedTextEncoder.encodeInto == "function" ? function(arg, view) {
27
+ return cachedTextEncoder.encodeInto(arg, view);
28
+ } : function(arg, view) {
29
+ let buf = cachedTextEncoder.encode(arg);
30
+ return view.set(buf), {
31
+ read: arg.length,
32
+ written: buf.length
33
+ };
34
+ };
35
+ function passStringToWasm0(arg, malloc, realloc) {
36
+ if (realloc === void 0) {
37
+ let buf = cachedTextEncoder.encode(arg), ptr2 = malloc(buf.length, 1) >>> 0;
38
+ return getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf), WASM_VECTOR_LEN = buf.length, ptr2;
39
+ }
40
+ let len = arg.length, ptr = malloc(len, 1) >>> 0, mem = getUint8ArrayMemory0(), offset = 0;
41
+ for (; offset < len; offset++) {
42
+ let code = arg.charCodeAt(offset);
43
+ if (code > 127) break;
44
+ mem[ptr + offset] = code;
45
+ }
46
+ if (offset !== len) {
47
+ offset !== 0 && (arg = arg.slice(offset)), ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
48
+ let view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len), ret = encodeString(arg, view);
49
+ offset += ret.written, ptr = realloc(ptr, len, offset, 1) >>> 0;
50
+ }
51
+ return WASM_VECTOR_LEN = offset, ptr;
52
+ }
53
+ var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
54
+ cachedTextDecoder.decode();
55
+ function getStringFromWasm0(ptr, len) {
56
+ return ptr = ptr >>> 0, cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
57
+ }
58
+ function takeFromExternrefTable0(idx) {
59
+ let value = wasm.__wbindgen_export_0.get(idx);
60
+ return wasm.__externref_table_dealloc(idx), value;
61
+ }
62
+ module.exports.echoToml = function(tomlContent) {
63
+ let deferred3_0, deferred3_1;
64
+ try {
65
+ let ptr0 = passStringToWasm0(tomlContent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc), len0 = WASM_VECTOR_LEN, ret = wasm.echoToml(ptr0, len0);
66
+ var ptr2 = ret[0], len2 = ret[1];
67
+ if (ret[3])
68
+ throw ptr2 = 0, len2 = 0, takeFromExternrefTable0(ret[2]);
69
+ return deferred3_0 = ptr2, deferred3_1 = len2, getStringFromWasm0(ptr2, len2);
70
+ } finally {
71
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
72
+ }
73
+ };
74
+ module.exports.updateTomlValues = function(tomlContent, patches) {
75
+ let deferred3_0, deferred3_1;
76
+ try {
77
+ let ptr0 = passStringToWasm0(tomlContent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc), len0 = WASM_VECTOR_LEN, ret = wasm.updateTomlValues(ptr0, len0, patches);
78
+ var ptr2 = ret[0], len2 = ret[1];
79
+ if (ret[3])
80
+ throw ptr2 = 0, len2 = 0, takeFromExternrefTable0(ret[2]);
81
+ return deferred3_0 = ptr2, deferred3_1 = len2, getStringFromWasm0(ptr2, len2);
82
+ } finally {
83
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
84
+ }
85
+ };
86
+ module.exports.__wbg_from_2a5d3e218e67aa85 = function(arg0) {
87
+ return Array.from(arg0);
88
+ };
89
+ module.exports.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
90
+ return arg0[arg1 >>> 0];
91
+ };
92
+ module.exports.__wbg_length_e2d2a49132c1b256 = function(arg0) {
93
+ return arg0.length;
94
+ };
95
+ module.exports.__wbindgen_boolean_get = function(arg0) {
96
+ let v = arg0;
97
+ return typeof v == "boolean" ? v ? 1 : 0 : 2;
98
+ };
99
+ module.exports.__wbindgen_init_externref_table = function() {
100
+ let table = wasm.__wbindgen_export_0, offset = table.grow(4);
101
+ table.set(0, void 0), table.set(offset + 0, void 0), table.set(offset + 1, null), table.set(offset + 2, !0), table.set(offset + 3, !1);
102
+ };
103
+ module.exports.__wbindgen_is_array = function(arg0) {
104
+ return Array.isArray(arg0);
105
+ };
106
+ module.exports.__wbindgen_is_undefined = function(arg0) {
107
+ return arg0 === void 0;
108
+ };
109
+ module.exports.__wbindgen_number_get = function(arg0, arg1) {
110
+ let obj = arg1, ret = typeof obj == "number" ? obj : void 0;
111
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, !0), getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), !0);
112
+ };
113
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
114
+ let obj = arg1, ret = typeof obj == "string" ? obj : void 0;
115
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc), len1 = WASM_VECTOR_LEN;
116
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, !0), getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, !0);
117
+ };
118
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
119
+ return getStringFromWasm0(arg0, arg1);
120
+ };
121
+ module.exports.__wbindgen_throw = function(arg0, arg1) {
122
+ throw new Error(getStringFromWasm0(arg0, arg1));
123
+ };
124
+ var path = __require("path").join(__dirname, "toml_patch_bg.wasm"), bytes = __require("fs").readFileSync(path), wasmModule = new WebAssembly.Module(bytes), wasmInstance = new WebAssembly.Instance(wasmModule, imports);
125
+ wasm = wasmInstance.exports;
126
+ module.exports.__wasm = wasm;
127
+ wasm.__wbindgen_start();
128
+ }
129
+ });
130
+
131
+ // ../app/dist/cli/services/app/toml-patch-wasm.js
132
+ init_cjs_shims();
133
+ var tomlPatch = __toESM(require_toml_patch(), 1);
134
+ async function updateTomlValues2(tomlContent, patches) {
135
+ return tomlPatch.updateTomlValues(tomlContent, patches);
136
+ }
137
+ export {
138
+ updateTomlValues2 as updateTomlValues
139
+ };
140
+ //# sourceMappingURL=toml-patch-wasm-J5VGG6WG.js.map
Binary file