@shopify/create-app 3.84.1 → 3.84.2

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.
@@ -9,7 +9,7 @@ import {
9
9
  packageManagerFromUserAgent,
10
10
  removeSession,
11
11
  setSession
12
- } from "./chunk-XCAGLQZT.js";
12
+ } from "./chunk-REUQOPSX.js";
13
13
  import {
14
14
  AbortError,
15
15
  BugError,
@@ -45,7 +45,7 @@ import {
45
45
  spinFqdn,
46
46
  systemEnvironmentVariables,
47
47
  themeToken
48
- } from "./chunk-BRA57BDM.js";
48
+ } from "./chunk-UVDRANBC.js";
49
49
  import {
50
50
  cwd,
51
51
  sniffForJson
@@ -27647,7 +27647,7 @@ var require_form_data = __commonJS({
27647
27647
 
27648
27648
  // ../cli-kit/dist/public/common/version.js
27649
27649
  init_cjs_shims();
27650
- var CLI_KIT_VERSION = "3.84.1";
27650
+ var CLI_KIT_VERSION = "3.84.2";
27651
27651
 
27652
27652
  // ../cli-kit/dist/private/node/analytics.js
27653
27653
  init_cjs_shims();
@@ -33345,4 +33345,4 @@ mime-types/index.js:
33345
33345
  * MIT Licensed
33346
33346
  *)
33347
33347
  */
33348
- //# sourceMappingURL=chunk-F7XIUISB.js.map
33348
+ //# sourceMappingURL=chunk-5OIQQPNB.js.map
@@ -2,12 +2,12 @@ import {
2
2
  CLI_KIT_VERSION,
3
3
  jsonOutputEnabled,
4
4
  z
5
- } from "./chunk-F7XIUISB.js";
5
+ } from "./chunk-5OIQQPNB.js";
6
6
  import {
7
7
  cacheRetrieve,
8
8
  cacheStore,
9
9
  versionSatisfies
10
- } from "./chunk-XCAGLQZT.js";
10
+ } from "./chunk-REUQOPSX.js";
11
11
  import {
12
12
  AbortSilentError,
13
13
  exec,
@@ -16,7 +16,7 @@ import {
16
16
  renderError,
17
17
  renderInfo,
18
18
  renderWarning
19
- } from "./chunk-BRA57BDM.js";
19
+ } from "./chunk-UVDRANBC.js";
20
20
  import {
21
21
  init_cjs_shims
22
22
  } from "./chunk-PKR7KJ6P.js";
@@ -84,7 +84,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
84
84
  throw new AbortSilentError();
85
85
  let errorMessage = `Error showing notifications: ${error.message}`;
86
86
  outputDebug(errorMessage);
87
- let { sendErrorToBugsnag } = await import("./error-handler-M3MNE2JX.js");
87
+ let { sendErrorToBugsnag } = await import("./error-handler-PHJKJBTD.js");
88
88
  await sendErrorToBugsnag(errorMessage, "unexpected_error");
89
89
  }
90
90
  }
@@ -174,4 +174,4 @@ export {
174
174
  showNotificationsIfNeeded,
175
175
  fetchNotificationsInBackground
176
176
  };
177
- //# sourceMappingURL=chunk-I5QSPA3G.js.map
177
+ //# sourceMappingURL=chunk-QPODWYGT.js.map
@@ -18,7 +18,7 @@ import {
18
18
  require_get_stream,
19
19
  runWithTimer,
20
20
  writeFile
21
- } from "./chunk-BRA57BDM.js";
21
+ } from "./chunk-UVDRANBC.js";
22
22
  import {
23
23
  require_semver
24
24
  } from "./chunk-H3GWNOGA.js";
@@ -13909,4 +13909,4 @@ deep-extend/lib/deep-extend.js:
13909
13909
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13910
13910
  *)
13911
13911
  */
13912
- //# sourceMappingURL=chunk-XCAGLQZT.js.map
13912
+ //# sourceMappingURL=chunk-REUQOPSX.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  fanoutHooks,
3
3
  reportAnalyticsEvent
4
- } from "./chunk-APC5TGT7.js";
4
+ } from "./chunk-X3DDDXQD.js";
5
5
  import {
6
6
  CLI_KIT_VERSION,
7
7
  getEnvironmentData
8
- } from "./chunk-F7XIUISB.js";
8
+ } from "./chunk-5OIQQPNB.js";
9
9
  import {
10
10
  runWithRateLimit
11
- } from "./chunk-XCAGLQZT.js";
11
+ } from "./chunk-REUQOPSX.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-BRA57BDM.js";
26
+ } from "./chunk-UVDRANBC.js";
27
27
  import {
28
28
  require_lib
29
29
  } from "./chunk-H3GWNOGA.js";
@@ -2142,4 +2142,4 @@ export {
2142
2142
  registerCleanBugsnagErrorsFromWithinPlugins,
2143
2143
  addBugsnagMetadata
2144
2144
  };
2145
- //# sourceMappingURL=chunk-GYAMBODZ.js.map
2145
+ //# sourceMappingURL=chunk-SLM4SKAZ.js.map
@@ -23231,7 +23231,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
23231
23231
  try {
23232
23232
  await getAndSet();
23233
23233
  } catch (error) {
23234
- let { sendErrorToBugsnag } = await import("./error-handler-M3MNE2JX.js");
23234
+ let { sendErrorToBugsnag } = await import("./error-handler-PHJKJBTD.js");
23235
23235
  await sendErrorToBugsnag(error, "unexpected_error");
23236
23236
  }
23237
23237
  }, durationStack = [];
@@ -28834,7 +28834,7 @@ init_cjs_shims();
28834
28834
 
28835
28835
  // ../cli-kit/dist/public/common/function.js
28836
28836
  init_cjs_shims();
28837
- var import_memoize = __toESM(require_memoize(), 1), import_debounce = __toESM(require_debounce(), 1), import_throttle2 = __toESM(require_throttle(), 1);
28837
+ var import_memoize = __toESM(require_memoize()), import_debounce = __toESM(require_debounce()), import_throttle2 = __toESM(require_throttle());
28838
28838
  function debounce(func, wait, options) {
28839
28839
  return (0, import_debounce.default)(func, wait, options);
28840
28840
  }
@@ -29015,7 +29015,7 @@ This usually happens when running a command non-interactively, for example in a
29015
29015
  }
29016
29016
 
29017
29017
  // ../cli-kit/dist/public/node/error.js
29018
- var import_core = __toESM(require_lib()), import_ts_error = __toESM(require_cjs()), FatalErrorType;
29018
+ var import_core = __toESM(require_lib(), 1), import_ts_error = __toESM(require_cjs(), 1), FatalErrorType;
29019
29019
  (function(FatalErrorType2) {
29020
29020
  FatalErrorType2[FatalErrorType2.Abort = 0] = "Abort", FatalErrorType2[FatalErrorType2.AbortSilent = 1] = "AbortSilent", FatalErrorType2[FatalErrorType2.Bug = 2] = "Bug";
29021
29021
  })(FatalErrorType || (FatalErrorType = {}));
@@ -32465,4 +32465,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
32465
32465
  * LICENSE file in the root directory of this source tree.
32466
32466
  *)
32467
32467
  */
32468
- //# sourceMappingURL=chunk-BRA57BDM.js.map
32468
+ //# sourceMappingURL=chunk-UVDRANBC.js.map
@@ -4,10 +4,10 @@ import {
4
4
  getEnvironmentData,
5
5
  getLastSeenUserIdAfterAuth,
6
6
  getSensitiveEnvironmentData
7
- } from "./chunk-F7XIUISB.js";
7
+ } from "./chunk-5OIQQPNB.js";
8
8
  import {
9
9
  runWithRateLimit
10
- } from "./chunk-XCAGLQZT.js";
10
+ } from "./chunk-REUQOPSX.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-BRA57BDM.js";
27
+ } from "./chunk-UVDRANBC.js";
28
28
  import {
29
29
  __commonJS,
30
30
  __esm,
@@ -15927,4 +15927,4 @@ export {
15927
15927
  requestIdsCollection,
15928
15928
  reportAnalyticsEvent
15929
15929
  };
15930
- //# sourceMappingURL=chunk-APC5TGT7.js.map
15930
+ //# sourceMappingURL=chunk-X3DDDXQD.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  execaSync,
3
3
  fileExistsSync
4
- } from "./chunk-BRA57BDM.js";
4
+ } from "./chunk-UVDRANBC.js";
5
5
  import {
6
6
  require_lib
7
7
  } from "./chunk-H3GWNOGA.js";
@@ -40,4 +40,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
40
40
  export {
41
41
  ShopifyConfig
42
42
  };
43
- //# sourceMappingURL=custom-oclif-loader-U7MCMR24.js.map
43
+ //# sourceMappingURL=custom-oclif-loader-IJRHD7VF.js.map
@@ -4,12 +4,12 @@ import {
4
4
  errorHandler,
5
5
  registerCleanBugsnagErrorsFromWithinPlugins,
6
6
  sendErrorToBugsnag
7
- } from "./chunk-GYAMBODZ.js";
8
- import "./chunk-APC5TGT7.js";
9
- import "./chunk-F7XIUISB.js";
7
+ } from "./chunk-SLM4SKAZ.js";
8
+ import "./chunk-X3DDDXQD.js";
9
+ import "./chunk-5OIQQPNB.js";
10
10
  import "./chunk-25IMI7TH.js";
11
- import "./chunk-XCAGLQZT.js";
12
- import "./chunk-BRA57BDM.js";
11
+ import "./chunk-REUQOPSX.js";
12
+ import "./chunk-UVDRANBC.js";
13
13
  import "./chunk-H3GWNOGA.js";
14
14
  import "./chunk-UMUTXITN.js";
15
15
  import "./chunk-Y2JP6WFP.js";
@@ -25,4 +25,4 @@ export {
25
25
  registerCleanBugsnagErrorsFromWithinPlugins,
26
26
  sendErrorToBugsnag
27
27
  };
28
- //# sourceMappingURL=error-handler-M3MNE2JX.js.map
28
+ //# sourceMappingURL=error-handler-PHJKJBTD.js.map
@@ -3,16 +3,16 @@ import {
3
3
  } from "../chunk-CP3BRHWK.js";
4
4
  import {
5
5
  reportAnalyticsEvent
6
- } from "../chunk-APC5TGT7.js";
7
- import "../chunk-F7XIUISB.js";
6
+ } from "../chunk-X3DDDXQD.js";
7
+ import "../chunk-5OIQQPNB.js";
8
8
  import "../chunk-25IMI7TH.js";
9
- import "../chunk-XCAGLQZT.js";
9
+ import "../chunk-REUQOPSX.js";
10
10
  import {
11
11
  addSensitiveMetadata,
12
12
  getAllSensitiveMetadata,
13
13
  outputDebug,
14
14
  renderWarning
15
- } from "../chunk-BRA57BDM.js";
15
+ } from "../chunk-UVDRANBC.js";
16
16
  import "../chunk-H3GWNOGA.js";
17
17
  import "../chunk-UMUTXITN.js";
18
18
  import "../chunk-Y2JP6WFP.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  fetchNotificationsInBackground
3
- } from "../chunk-I5QSPA3G.js";
3
+ } from "../chunk-QPODWYGT.js";
4
4
  import {
5
5
  CLI_KIT_VERSION,
6
6
  startAnalytics
7
- } from "../chunk-F7XIUISB.js";
7
+ } from "../chunk-5OIQQPNB.js";
8
8
  import "../chunk-25IMI7TH.js";
9
9
  import {
10
10
  checkForCachedNewVersion,
11
11
  checkForNewVersion,
12
12
  packageManagerFromUserAgent,
13
13
  runAtMinimumInterval
14
- } from "../chunk-XCAGLQZT.js";
14
+ } from "../chunk-REUQOPSX.js";
15
15
  import {
16
16
  currentProcessIsGlobal,
17
17
  inferPackageManagerForGlobalCLI,
@@ -20,7 +20,7 @@ import {
20
20
  outputDebug,
21
21
  outputToken,
22
22
  outputWarn
23
- } from "../chunk-BRA57BDM.js";
23
+ } from "../chunk-UVDRANBC.js";
24
24
  import "../chunk-H3GWNOGA.js";
25
25
  import "../chunk-UMUTXITN.js";
26
26
  import "../chunk-Y2JP6WFP.js";
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  errorHandler,
9
9
  registerCleanBugsnagErrorsFromWithinPlugins,
10
10
  require_end_of_stream
11
- } from "./chunk-GYAMBODZ.js";
11
+ } from "./chunk-SLM4SKAZ.js";
12
12
  import {
13
13
  setNextDeprecationDate
14
14
  } from "./chunk-CP3BRHWK.js";
@@ -17,11 +17,11 @@ import {
17
17
  getListOfTunnelPlugins,
18
18
  reportAnalyticsEvent,
19
19
  requestIdsCollection
20
- } from "./chunk-APC5TGT7.js";
20
+ } from "./chunk-X3DDDXQD.js";
21
21
  import {
22
22
  setCurrentCommandId,
23
23
  showNotificationsIfNeeded
24
- } from "./chunk-I5QSPA3G.js";
24
+ } from "./chunk-QPODWYGT.js";
25
25
  import {
26
26
  CLI_KIT_VERSION,
27
27
  ClientError,
@@ -73,7 +73,7 @@ import {
73
73
  setLastSeenUserIdAfterAuth,
74
74
  shopifyFetch,
75
75
  z
76
- } from "./chunk-F7XIUISB.js";
76
+ } from "./chunk-5OIQQPNB.js";
77
77
  import "./chunk-25IMI7TH.js";
78
78
  import {
79
79
  LocalStorage,
@@ -98,7 +98,7 @@ import {
98
98
  usesWorkspaces,
99
99
  versionSatisfies,
100
100
  writePackageJSON
101
- } from "./chunk-XCAGLQZT.js";
101
+ } from "./chunk-REUQOPSX.js";
102
102
  import {
103
103
  AbortController as AbortController2,
104
104
  AbortError,
@@ -294,7 +294,7 @@ import {
294
294
  username,
295
295
  writeFile,
296
296
  writeFileSync
297
- } from "./chunk-BRA57BDM.js";
297
+ } from "./chunk-UVDRANBC.js";
298
298
  import {
299
299
  require_brace_expansion,
300
300
  require_commonjs,
@@ -194445,7 +194445,7 @@ function loadFwConfigFile(rootPath, fwConfigFileName, fwConfigFiles = {}) {
194445
194445
 
194446
194446
  // ../cli-kit/dist/public/node/toml.js
194447
194447
  init_cjs_shims();
194448
- var toml = __toESM(require_toml(), 1);
194448
+ var toml = __toESM(require_toml());
194449
194449
  function decodeToml(input) {
194450
194450
  let normalizedInput = input.replace(/\r\n$/g, `
194451
194451
  `);
@@ -197219,7 +197219,8 @@ var ActiveAppReleaseFromApiKey = {
197219
197219
  }
197220
197220
  ]
197221
197221
  }
197222
- }
197222
+ },
197223
+ { kind: "Field", name: { kind: "Name", value: "grantedShopifyApprovalScopes" } }
197223
197224
  ]
197224
197225
  }
197225
197226
  },
@@ -198867,14 +198868,14 @@ var TEMPLATE_JSON_URL = "https://cdn.shopify.com/static/cli/extensions/templates
198867
198868
  return (await this.session()).accountInfo;
198868
198869
  }
198869
198870
  async appFromIdentifiers(apiKey) {
198870
- let { app } = await this.activeAppVersionRawResult(apiKey), { name, appModules } = app.activeRelease.version, appAccessModule = appModules.find((mod) => mod.specification.externalIdentifier === "app_access"), appHomeModule = appModules.find((mod) => mod.specification.externalIdentifier === "app_home"), apiSecretKeys = app.activeRoot.clientCredentials.secrets.map((secret) => ({ secret: secret.key }));
198871
+ let { app } = await this.activeAppVersionRawResult(apiKey), { name, appModules } = app.activeRelease.version, appHomeModule = appModules.find((mod) => mod.specification.externalIdentifier === "app_home"), apiSecretKeys = app.activeRoot.clientCredentials.secrets.map((secret) => ({ secret: secret.key }));
198871
198872
  return {
198872
198873
  id: app.id,
198873
198874
  title: name,
198874
198875
  apiKey: app.key,
198875
198876
  apiSecretKeys,
198876
198877
  organizationId: String(numberFromGid(app.organizationId)),
198877
- grantedScopes: appAccessModule?.config?.scopes ?? [],
198878
+ grantedScopes: app.activeRoot.grantedShopifyApprovalScopes,
198878
198879
  applicationUrl: appHomeModule?.config?.app_url,
198879
198880
  flags: [],
198880
198881
  developerPlatformClient: this
@@ -201447,7 +201448,7 @@ init_cjs_shims();
201447
201448
  init_cjs_shims();
201448
201449
  import { fileURLToPath as fileURLToPath2 } from "node:url";
201449
201450
  async function launchCLI(options2) {
201450
- let { errorHandler: errorHandler3 } = await import("./error-handler-M3MNE2JX.js"), { isDevelopment: isDevelopment2 } = await import("./local-ZJSQNOBS.js"), oclif = await import("./lib-CLQ247I5.js"), { ShopifyConfig } = await import("./custom-oclif-loader-U7MCMR24.js");
201451
+ let { errorHandler: errorHandler3 } = await import("./error-handler-PHJKJBTD.js"), { isDevelopment: isDevelopment2 } = await import("./local-KL3Z3TUT.js"), oclif = await import("./lib-CLQ247I5.js"), { ShopifyConfig } = await import("./custom-oclif-loader-IJRHD7VF.js");
201451
201452
  isDevelopment2() && (oclif.default.settings.debug = !0);
201452
201453
  try {
201453
201454
  let config2 = new ShopifyConfig({ root: fileURLToPath2(options2.moduleURL) });
@@ -201462,7 +201463,7 @@ var import_core3 = __toESM(require_lib2());
201462
201463
  async function exitIfOldNodeVersion(versions2 = process.versions) {
201463
201464
  let nodeVersion = versions2.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
201464
201465
  if (nodeMajorVersion < 18) {
201465
- let { renderError: renderError2 } = await import("./ui-5P6JUXXH.js");
201466
+ let { renderError: renderError2 } = await import("./ui-SLWJS67T.js");
201466
201467
  renderError2({
201467
201468
  headline: "Upgrade to a supported Node version now.",
201468
201469
  body: [
@@ -201489,7 +201490,7 @@ async function runCLI(options2, launchCLI2 = launchCLI, argv = process.argv, env
201489
201490
  return setupEnvironmentVariables(options2, argv, env), options2.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options2, argv), forceNoColor(argv, env), await exitIfOldNodeVersion(versions2), launchCLI2({ moduleURL: options2.moduleURL });
201490
201491
  }
201491
201492
  async function addInitToArgvWhenRunningCreateCLI(options2, argv = process.argv) {
201492
- let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-ZPABMQVG.js"), { moduleDirectory: moduleDirectory2 } = await import("./path-COZT77T2.js"), name = (await findUpAndReadPackageJson2(moduleDirectory2(options2.moduleURL))).content.name.replace("@shopify/create-", "");
201493
+ let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-Q5SI4GGN.js"), { moduleDirectory: moduleDirectory2 } = await import("./path-COZT77T2.js"), name = (await findUpAndReadPackageJson2(moduleDirectory2(options2.moduleURL))).content.name.replace("@shopify/create-", "");
201493
201494
  if (argv.findIndex((arg) => arg.includes("init")) === -1) {
201494
201495
  let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
201495
201496
  argv.splice(initIndex2, 0, "init");
@@ -20,7 +20,7 @@ import {
20
20
  macAddress,
21
21
  opentelemetryDomain,
22
22
  themeToken
23
- } from "./chunk-BRA57BDM.js";
23
+ } from "./chunk-UVDRANBC.js";
24
24
  import "./chunk-H3GWNOGA.js";
25
25
  import "./chunk-UMUTXITN.js";
26
26
  import "./chunk-Y2JP6WFP.js";
@@ -51,4 +51,4 @@ export {
51
51
  opentelemetryDomain,
52
52
  themeToken
53
53
  };
54
- //# sourceMappingURL=local-ZJSQNOBS.js.map
54
+ //# sourceMappingURL=local-KL3Z3TUT.js.map
@@ -29,8 +29,8 @@ import {
29
29
  versionSatisfies,
30
30
  writePackageJSON,
31
31
  yarnLockfile
32
- } from "./chunk-XCAGLQZT.js";
33
- import "./chunk-BRA57BDM.js";
32
+ } from "./chunk-REUQOPSX.js";
33
+ import "./chunk-UVDRANBC.js";
34
34
  import "./chunk-H3GWNOGA.js";
35
35
  import "./chunk-UMUTXITN.js";
36
36
  import "./chunk-Y2JP6WFP.js";
@@ -70,4 +70,4 @@ export {
70
70
  writePackageJSON,
71
71
  yarnLockfile
72
72
  };
73
- //# sourceMappingURL=node-package-manager-ZPABMQVG.js.map
73
+ //# sourceMappingURL=node-package-manager-Q5SI4GGN.js.map
@@ -16,7 +16,7 @@ import {
16
16
  renderTasks,
17
17
  renderTextPrompt,
18
18
  renderWarning
19
- } from "./chunk-BRA57BDM.js";
19
+ } from "./chunk-UVDRANBC.js";
20
20
  import "./chunk-H3GWNOGA.js";
21
21
  import "./chunk-UMUTXITN.js";
22
22
  import "./chunk-Y2JP6WFP.js";
@@ -43,4 +43,4 @@ export {
43
43
  renderTextPrompt,
44
44
  renderWarning
45
45
  };
46
- //# sourceMappingURL=ui-5P6JUXXH.js.map
46
+ //# sourceMappingURL=ui-SLWJS67T.js.map
@@ -104,5 +104,5 @@
104
104
  "summary": "Create a new app project"
105
105
  }
106
106
  },
107
- "version": "3.84.1"
107
+ "version": "3.84.2"
108
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/create-app",
3
- "version": "3.84.1",
3
+ "version": "3.84.2",
4
4
  "private": false,
5
5
  "description": "A CLI tool to create a new Shopify app.",
6
6
  "keywords": [
@@ -47,8 +47,8 @@
47
47
  "esbuild": "0.25.5"
48
48
  },
49
49
  "devDependencies": {
50
- "@shopify/cli-kit": "3.84.1",
51
- "@shopify/app": "3.84.1",
50
+ "@shopify/cli-kit": "3.84.2",
51
+ "@shopify/app": "3.84.2",
52
52
  "esbuild-plugin-copy": "^2.1.1",
53
53
  "@vitest/coverage-istanbul": "^3.1.4"
54
54
  },