@shopify/create-app 3.71.3 → 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.
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  fanoutHooks,
3
3
  reportAnalyticsEvent
4
- } from "./chunk-5VVJMD3Z.js";
4
+ } from "./chunk-QDHJLRQP.js";
5
5
  import {
6
6
  CLI_KIT_VERSION,
7
7
  getEnvironmentData
8
- } from "./chunk-WYLLWFET.js";
8
+ } from "./chunk-V6QR4YF3.js";
9
9
  import {
10
10
  runWithRateLimit
11
- } from "./chunk-QGDWNBQX.js";
11
+ } from "./chunk-AO4KDLMV.js";
12
12
  import {
13
13
  AbortSilentError,
14
14
  CancelExecution,
@@ -23,7 +23,7 @@ import {
23
23
  reportingRateLimit,
24
24
  require_stacktracey,
25
25
  shouldReportErrorAsUnexpected
26
- } from "./chunk-FMHMRW3B.js";
26
+ } from "./chunk-ZKG4HP53.js";
27
27
  import {
28
28
  require_lib
29
29
  } from "./chunk-CQGOPQQH.js";
@@ -2140,4 +2140,4 @@ export {
2140
2140
  registerCleanBugsnagErrorsFromWithinPlugins,
2141
2141
  addBugsnagMetadata
2142
2142
  };
2143
- //# sourceMappingURL=chunk-COSXHB3B.js.map
2143
+ //# sourceMappingURL=chunk-7KSICWEJ.js.map
@@ -18,7 +18,7 @@ import {
18
18
  require_get_stream,
19
19
  runWithTimer,
20
20
  writeFile
21
- } from "./chunk-FMHMRW3B.js";
21
+ } from "./chunk-ZKG4HP53.js";
22
22
  import {
23
23
  dirname,
24
24
  joinPath
@@ -15390,4 +15390,4 @@ deep-extend/lib/deep-extend.js:
15390
15390
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15391
15391
  *)
15392
15392
  */
15393
- //# sourceMappingURL=chunk-QGDWNBQX.js.map
15393
+ //# sourceMappingURL=chunk-AO4KDLMV.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  packageManagerFromUserAgent
3
- } from "./chunk-QGDWNBQX.js";
3
+ } from "./chunk-AO4KDLMV.js";
4
4
  import {
5
5
  currentProcessIsGlobal,
6
6
  inferPackageManagerForGlobalCLI,
7
7
  outputContent,
8
8
  outputToken
9
- } from "./chunk-FMHMRW3B.js";
9
+ } from "./chunk-ZKG4HP53.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-POZ5MGPT.js";
@@ -24,4 +24,4 @@ function getOutputUpdateCLIReminder(version) {
24
24
  export {
25
25
  getOutputUpdateCLIReminder
26
26
  };
27
- //# sourceMappingURL=chunk-KN3JU4UN.js.map
27
+ //# sourceMappingURL=chunk-EHMCI3ZQ.js.map
@@ -4,10 +4,10 @@ import {
4
4
  getEnvironmentData,
5
5
  getLastSeenUserIdAfterAuth,
6
6
  getSensitiveEnvironmentData
7
- } from "./chunk-WYLLWFET.js";
7
+ } from "./chunk-V6QR4YF3.js";
8
8
  import {
9
9
  runWithRateLimit
10
- } from "./chunk-QGDWNBQX.js";
10
+ } from "./chunk-AO4KDLMV.js";
11
11
  import {
12
12
  alwaysLogAnalytics,
13
13
  alwaysLogMetrics,
@@ -24,7 +24,7 @@ import {
24
24
  outputDebug,
25
25
  outputToken,
26
26
  reportingRateLimit
27
- } from "./chunk-FMHMRW3B.js";
27
+ } from "./chunk-ZKG4HP53.js";
28
28
  import {
29
29
  __commonJS,
30
30
  __require,
@@ -15766,4 +15766,4 @@ export {
15766
15766
  getListOfTunnelPlugins,
15767
15767
  reportAnalyticsEvent
15768
15768
  };
15769
- //# sourceMappingURL=chunk-5VVJMD3Z.js.map
15769
+ //# sourceMappingURL=chunk-QDHJLRQP.js.map
@@ -12,7 +12,7 @@ import {
12
12
  removeSession,
13
13
  setCachedPartnerAccountStatus,
14
14
  setSession
15
- } from "./chunk-QGDWNBQX.js";
15
+ } from "./chunk-AO4KDLMV.js";
16
16
  import {
17
17
  AbortError,
18
18
  BugError,
@@ -49,7 +49,7 @@ import {
49
49
  systemEnvironmentVariables,
50
50
  themeKitAccessDomain,
51
51
  themeToken
52
- } from "./chunk-FMHMRW3B.js";
52
+ } from "./chunk-ZKG4HP53.js";
53
53
  import {
54
54
  cwd,
55
55
  sniffForJson
@@ -29342,7 +29342,7 @@ var require_lib3 = __commonJS({
29342
29342
 
29343
29343
  // ../cli-kit/dist/public/common/version.js
29344
29344
  init_cjs_shims();
29345
- var CLI_KIT_VERSION = "3.71.3";
29345
+ var CLI_KIT_VERSION = "3.71.4";
29346
29346
 
29347
29347
  // ../cli-kit/dist/private/node/analytics.js
29348
29348
  init_cjs_shims();
@@ -34858,4 +34858,4 @@ mime-types/index.js:
34858
34858
  * MIT Licensed
34859
34859
  *)
34860
34860
  */
34861
- //# sourceMappingURL=chunk-WYLLWFET.js.map
34861
+ //# sourceMappingURL=chunk-V6QR4YF3.js.map
@@ -22989,7 +22989,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
22989
22989
  try {
22990
22990
  await getAndSet();
22991
22991
  } catch (error) {
22992
- let { sendErrorToBugsnag } = await import("./error-handler-ARHZ7CDV.js");
22992
+ let { sendErrorToBugsnag } = await import("./error-handler-Q746XAGH.js");
22993
22993
  await sendErrorToBugsnag(error, "unexpected_error");
22994
22994
  }
22995
22995
  }, durationStack = [];
@@ -32078,4 +32078,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
32078
32078
  * LICENSE file in the root directory of this source tree.
32079
32079
  *)
32080
32080
  */
32081
- //# sourceMappingURL=chunk-FMHMRW3B.js.map
32081
+ //# sourceMappingURL=chunk-ZKG4HP53.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  execaSync,
3
3
  fileExistsSync
4
- } from "./chunk-FMHMRW3B.js";
4
+ } from "./chunk-ZKG4HP53.js";
5
5
  import {
6
6
  require_lib
7
7
  } from "./chunk-CQGOPQQH.js";
@@ -43,4 +43,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
43
43
  export {
44
44
  ShopifyConfig
45
45
  };
46
- //# sourceMappingURL=custom-oclif-loader-2OF3BNBW.js.map
46
+ //# sourceMappingURL=custom-oclif-loader-IEDAORQX.js.map
@@ -4,12 +4,12 @@ import {
4
4
  errorHandler,
5
5
  registerCleanBugsnagErrorsFromWithinPlugins,
6
6
  sendErrorToBugsnag
7
- } from "./chunk-COSXHB3B.js";
8
- import "./chunk-5VVJMD3Z.js";
9
- import "./chunk-WYLLWFET.js";
7
+ } from "./chunk-7KSICWEJ.js";
8
+ import "./chunk-QDHJLRQP.js";
9
+ import "./chunk-V6QR4YF3.js";
10
10
  import "./chunk-VSLR7ET4.js";
11
- import "./chunk-QGDWNBQX.js";
12
- import "./chunk-FMHMRW3B.js";
11
+ import "./chunk-AO4KDLMV.js";
12
+ import "./chunk-ZKG4HP53.js";
13
13
  import "./chunk-CQGOPQQH.js";
14
14
  import "./chunk-SNOECVP4.js";
15
15
  import "./chunk-522OB3EU.js";
@@ -28,4 +28,4 @@ export {
28
28
  registerCleanBugsnagErrorsFromWithinPlugins,
29
29
  sendErrorToBugsnag
30
30
  };
31
- //# sourceMappingURL=error-handler-ARHZ7CDV.js.map
31
+ //# sourceMappingURL=error-handler-Q746XAGH.js.map
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  reportAnalyticsEvent
3
- } from "../chunk-5VVJMD3Z.js";
3
+ } from "../chunk-QDHJLRQP.js";
4
4
  import {
5
5
  getNextDeprecationDate
6
- } from "../chunk-WYLLWFET.js";
6
+ } from "../chunk-V6QR4YF3.js";
7
7
  import "../chunk-VSLR7ET4.js";
8
- import "../chunk-QGDWNBQX.js";
8
+ import "../chunk-AO4KDLMV.js";
9
9
  import {
10
10
  addSensitiveMetadata,
11
11
  getAllSensitiveMetadata,
12
12
  outputDebug,
13
13
  renderWarning
14
- } from "../chunk-FMHMRW3B.js";
14
+ } from "../chunk-ZKG4HP53.js";
15
15
  import "../chunk-CQGOPQQH.js";
16
16
  import "../chunk-SNOECVP4.js";
17
17
  import "../chunk-522OB3EU.js";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  getOutputUpdateCLIReminder
3
- } from "../chunk-KN3JU4UN.js";
3
+ } from "../chunk-EHMCI3ZQ.js";
4
4
  import {
5
5
  CLI_KIT_VERSION,
6
6
  startAnalytics
7
- } from "../chunk-WYLLWFET.js";
7
+ } from "../chunk-V6QR4YF3.js";
8
8
  import "../chunk-VSLR7ET4.js";
9
9
  import {
10
10
  checkForCachedNewVersion,
11
11
  checkForNewVersion,
12
12
  runAtMinimumInterval
13
- } from "../chunk-QGDWNBQX.js";
13
+ } from "../chunk-AO4KDLMV.js";
14
14
  import {
15
15
  outputDebug,
16
16
  outputWarn
17
- } from "../chunk-FMHMRW3B.js";
17
+ } from "../chunk-ZKG4HP53.js";
18
18
  import "../chunk-CQGOPQQH.js";
19
19
  import "../chunk-SNOECVP4.js";
20
20
  import "../chunk-522OB3EU.js";
package/dist/index.js CHANGED
@@ -8,15 +8,15 @@ import {
8
8
  errorHandler,
9
9
  registerCleanBugsnagErrorsFromWithinPlugins,
10
10
  require_end_of_stream
11
- } from "./chunk-COSXHB3B.js";
11
+ } from "./chunk-7KSICWEJ.js";
12
12
  import {
13
13
  fanoutHooks,
14
14
  getListOfTunnelPlugins,
15
15
  reportAnalyticsEvent
16
- } from "./chunk-5VVJMD3Z.js";
16
+ } from "./chunk-QDHJLRQP.js";
17
17
  import {
18
18
  getOutputUpdateCLIReminder
19
- } from "./chunk-KN3JU4UN.js";
19
+ } from "./chunk-EHMCI3ZQ.js";
20
20
  import {
21
21
  CLI_KIT_VERSION,
22
22
  ClientError,
@@ -61,7 +61,7 @@ import {
61
61
  setNextDeprecationDate,
62
62
  username,
63
63
  z
64
- } from "./chunk-WYLLWFET.js";
64
+ } from "./chunk-V6QR4YF3.js";
65
65
  import "./chunk-VSLR7ET4.js";
66
66
  import {
67
67
  LocalStorage,
@@ -86,7 +86,7 @@ import {
86
86
  usesWorkspaces,
87
87
  versionSatisfies,
88
88
  writePackageJSON
89
- } from "./chunk-QGDWNBQX.js";
89
+ } from "./chunk-AO4KDLMV.js";
90
90
  import {
91
91
  AbortController as AbortController2,
92
92
  AbortError,
@@ -260,7 +260,7 @@ import {
260
260
  use_stdin_default,
261
261
  writeFile,
262
262
  writeFileSync
263
- } from "./chunk-FMHMRW3B.js";
263
+ } from "./chunk-ZKG4HP53.js";
264
264
  import {
265
265
  require_brace_expansion,
266
266
  require_lib
@@ -142813,7 +142813,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
142813
142813
  throw new AbortSilentError();
142814
142814
  let errorMessage2 = `Error retrieving notifications: ${error.message}`;
142815
142815
  outputDebug(errorMessage2);
142816
- let { sendErrorToBugsnag } = await import("./error-handler-ARHZ7CDV.js");
142816
+ let { sendErrorToBugsnag } = await import("./error-handler-Q746XAGH.js");
142817
142817
  await sendErrorToBugsnag(errorMessage2, "unexpected_error");
142818
142818
  }
142819
142819
  }
@@ -151836,11 +151836,27 @@ var import_core4 = __toESM(require_lib(), 1);
151836
151836
 
151837
151837
  // ../cli-kit/dist/public/node/cli.js
151838
151838
  init_cjs_shims();
151839
+
151840
+ // ../cli-kit/dist/public/node/cli-launcher.js
151841
+ init_cjs_shims();
151842
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
151843
+ async function launchCLI(options) {
151844
+ let { errorHandler: errorHandler2 } = await import("./error-handler-Q746XAGH.js"), { isDevelopment: isDevelopment2 } = await import("./local-NMUF62ON.js"), oclif = await import("./lib-EGJUAXU5.js"), { ShopifyConfig } = await import("./custom-oclif-loader-IEDAORQX.js");
151845
+ isDevelopment2() && (oclif.default.settings.debug = !0);
151846
+ try {
151847
+ let config2 = new ShopifyConfig({ root: fileURLToPath2(options.moduleURL) });
151848
+ await config2.load(), await oclif.default.run(options.argv, config2), await oclif.default.flush();
151849
+ } catch (error) {
151850
+ return await errorHandler2(error), oclif.default.Errors.handle(error);
151851
+ }
151852
+ }
151853
+
151854
+ // ../cli-kit/dist/public/node/cli.js
151839
151855
  var import_core3 = __toESM(require_lib());
151840
151856
  async function warnIfOldNodeVersion(versions2 = process.versions) {
151841
151857
  let nodeVersion = versions2.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
151842
151858
  if (nodeMajorVersion < 18) {
151843
- let { renderWarning: renderWarning2 } = await import("./ui-CMIQC3Y3.js");
151859
+ let { renderWarning: renderWarning2 } = await import("./ui-MMDEJUP7.js");
151844
151860
  renderWarning2({
151845
151861
  headline: "Upgrade to a supported Node version now.",
151846
151862
  body: [
@@ -151863,17 +151879,17 @@ function setupEnvironmentVariables(options, argv = process.argv, env = process.e
151863
151879
  function forceNoColor(argv = process.argv, env = process.env) {
151864
151880
  (argv.includes("--no-color") || isTruthy(env.NO_COLOR) || isTruthy(env.SHOPIFY_FLAG_NO_COLOR) || env.TERM === "dumb") && (env.FORCE_COLOR = "0");
151865
151881
  }
151866
- async function runCLI(options, launchCLI2, argv = process.argv, env = process.env, versions2 = process.versions) {
151882
+ async function runCLI(options, launchCLI2 = launchCLI, argv = process.argv, env = process.env, versions2 = process.versions) {
151867
151883
  return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await warnIfOldNodeVersion(versions2), launchCLI2({ moduleURL: options.moduleURL });
151868
151884
  }
151869
151885
  async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
151870
- let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-DCMI5QSN.js"), { moduleDirectory: moduleDirectory2 } = await import("./path-3RNJ32DF.js"), name = (await findUpAndReadPackageJson2(moduleDirectory2(options.moduleURL))).content.name.replace("@shopify/create-", "");
151886
+ let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-E6UQACT4.js"), { moduleDirectory: moduleDirectory2 } = await import("./path-3RNJ32DF.js"), name = (await findUpAndReadPackageJson2(moduleDirectory2(options.moduleURL))).content.name.replace("@shopify/create-", "");
151871
151887
  if (argv.findIndex((arg) => arg.includes("init")) === -1) {
151872
151888
  let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
151873
151889
  argv.splice(initIndex2, 0, "init");
151874
151890
  }
151875
151891
  }
151876
- async function runCreateCLI(options, launchCLI2, argv = process.argv, env = process.env, versions2 = process.versions) {
151892
+ async function runCreateCLI(options, launchCLI2 = launchCLI, argv = process.argv, env = process.env, versions2 = process.versions) {
151877
151893
  return runCLI({ ...options, runInCreateMode: !0 }, launchCLI2, argv, env, versions2);
151878
151894
  }
151879
151895
  var globalFlags = {
@@ -153920,24 +153936,18 @@ async function bulkUploadThemeAssets(id, assets, session) {
153920
153936
  return results;
153921
153937
  }
153922
153938
  function prepareFilesForUpload(assets) {
153923
- return assets.map((asset) => {
153924
- if (asset.value)
153925
- return {
153926
- filename: asset.key,
153927
- body: {
153928
- type: "TEXT",
153929
- value: asset.value
153930
- }
153931
- };
153932
- if (asset.attachment)
153933
- return {
153934
- filename: asset.key,
153935
- body: {
153936
- type: "BASE64",
153937
- value: asset.attachment
153938
- }
153939
- };
153940
- unexpectedGraphQLError("Asset must have a value or attachment");
153939
+ return assets.map((asset) => asset.attachment ? {
153940
+ filename: asset.key,
153941
+ body: {
153942
+ type: "BASE64",
153943
+ value: asset.attachment
153944
+ }
153945
+ } : {
153946
+ filename: asset.key,
153947
+ body: {
153948
+ type: "TEXT",
153949
+ value: asset.value ?? ""
153950
+ }
153941
153951
  });
153942
153952
  }
153943
153953
  async function uploadFiles(themeId, files, session) {
@@ -169627,29 +169637,12 @@ var commands = {
169627
169637
  "demo:watcher": watcher_default
169628
169638
  };
169629
169639
 
169630
- // ../cli-kit/dist/public/node/cli-launcher.js
169631
- init_cjs_shims();
169632
- import { fileURLToPath as fileURLToPath2 } from "node:url";
169633
- async function launchCLI(options) {
169634
- let { errorHandler: errorHandler2 } = await import("./error-handler-ARHZ7CDV.js"), { isDevelopment: isDevelopment2 } = await import("./local-4NUYW4RN.js"), oclif = await import("./lib-EGJUAXU5.js"), { ShopifyConfig } = await import("./custom-oclif-loader-2OF3BNBW.js");
169635
- isDevelopment2() && (oclif.default.settings.debug = !0);
169636
- try {
169637
- let config2 = new ShopifyConfig({ root: fileURLToPath2(options.moduleURL) });
169638
- await config2.load(), await oclif.default.run(options.argv, config2), await oclif.default.flush();
169639
- } catch (error) {
169640
- return await errorHandler2(error), oclif.default.Errors.handle(error);
169641
- }
169642
- }
169643
-
169644
169640
  // src/index.ts
169645
169641
  async function runCreateAppCLI(development) {
169646
- await runCreateCLI(
169647
- {
169648
- moduleURL: import.meta.url,
169649
- development
169650
- },
169651
- launchCLI
169652
- );
169642
+ await runCreateCLI({
169643
+ moduleURL: import.meta.url,
169644
+ development
169645
+ });
169653
169646
  }
169654
169647
  var COMMANDS = {
169655
169648
  init: commands["app:init"]
@@ -22,7 +22,7 @@ import {
22
22
  themeToken,
23
23
  useEmbeddedThemeCLI,
24
24
  useThemebundling
25
- } from "./chunk-FMHMRW3B.js";
25
+ } from "./chunk-ZKG4HP53.js";
26
26
  import "./chunk-CQGOPQQH.js";
27
27
  import "./chunk-SNOECVP4.js";
28
28
  import "./chunk-522OB3EU.js";
@@ -58,4 +58,4 @@ export {
58
58
  useEmbeddedThemeCLI,
59
59
  useThemebundling
60
60
  };
61
- //# sourceMappingURL=local-4NUYW4RN.js.map
61
+ //# sourceMappingURL=local-NMUF62ON.js.map
@@ -28,8 +28,8 @@ import {
28
28
  versionSatisfies,
29
29
  writePackageJSON,
30
30
  yarnLockfile
31
- } from "./chunk-QGDWNBQX.js";
32
- import "./chunk-FMHMRW3B.js";
31
+ } from "./chunk-AO4KDLMV.js";
32
+ import "./chunk-ZKG4HP53.js";
33
33
  import "./chunk-CQGOPQQH.js";
34
34
  import "./chunk-SNOECVP4.js";
35
35
  import "./chunk-522OB3EU.js";
@@ -71,4 +71,4 @@ export {
71
71
  writePackageJSON,
72
72
  yarnLockfile
73
73
  };
74
- //# sourceMappingURL=node-package-manager-DCMI5QSN.js.map
74
+ //# sourceMappingURL=node-package-manager-E6UQACT4.js.map