@shopify/create-app 3.82.1 → 3.83.1

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.
@@ -0,0 +1,76 @@
1
+ import {
2
+ __commonJS,
3
+ init_cjs_shims
4
+ } from "./chunk-PKR7KJ6P.js";
5
+
6
+ // ../../node_modules/.pnpm/indent-string@4.0.0/node_modules/indent-string/index.js
7
+ var require_indent_string = __commonJS({
8
+ "../../node_modules/.pnpm/indent-string@4.0.0/node_modules/indent-string/index.js"(exports, module) {
9
+ "use strict";
10
+ init_cjs_shims();
11
+ module.exports = (string, count = 1, options) => {
12
+ if (options = {
13
+ indent: " ",
14
+ includeEmptyLines: !1,
15
+ ...options
16
+ }, typeof string != "string")
17
+ throw new TypeError(
18
+ `Expected \`input\` to be a \`string\`, got \`${typeof string}\``
19
+ );
20
+ if (typeof count != "number")
21
+ throw new TypeError(
22
+ `Expected \`count\` to be a \`number\`, got \`${typeof count}\``
23
+ );
24
+ if (typeof options.indent != "string")
25
+ throw new TypeError(
26
+ `Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\``
27
+ );
28
+ if (count === 0)
29
+ return string;
30
+ let regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
31
+ return string.replace(regex, options.indent.repeat(count));
32
+ };
33
+ }
34
+ });
35
+
36
+ // ../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js
37
+ var require_balanced_match = __commonJS({
38
+ "../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module) {
39
+ "use strict";
40
+ init_cjs_shims();
41
+ module.exports = balanced;
42
+ function balanced(a, b, str) {
43
+ a instanceof RegExp && (a = maybeMatch(a, str)), b instanceof RegExp && (b = maybeMatch(b, str));
44
+ var r = range(a, b, str);
45
+ return r && {
46
+ start: r[0],
47
+ end: r[1],
48
+ pre: str.slice(0, r[0]),
49
+ body: str.slice(r[0] + a.length, r[1]),
50
+ post: str.slice(r[1] + b.length)
51
+ };
52
+ }
53
+ function maybeMatch(reg, str) {
54
+ var m = str.match(reg);
55
+ return m ? m[0] : null;
56
+ }
57
+ balanced.range = range;
58
+ function range(a, b, str) {
59
+ var begs, beg, left, right, result, ai = str.indexOf(a), bi = str.indexOf(b, ai + 1), i = ai;
60
+ if (ai >= 0 && bi > 0) {
61
+ if (a === b)
62
+ return [ai, bi];
63
+ for (begs = [], left = str.length; i >= 0 && !result; )
64
+ i == ai ? (begs.push(i), ai = str.indexOf(a, i + 1)) : begs.length == 1 ? result = [begs.pop(), bi] : (beg = begs.pop(), beg < left && (left = beg, right = bi), bi = str.indexOf(b, i + 1)), i = ai < bi && ai >= 0 ? ai : bi;
65
+ begs.length && (result = [left, right]);
66
+ }
67
+ return result;
68
+ }
69
+ }
70
+ });
71
+
72
+ export {
73
+ require_balanced_match,
74
+ require_indent_string
75
+ };
76
+ //# sourceMappingURL=chunk-LABBARNJ.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-SHWOPMLQ.js";
5
5
  import {
6
6
  require_balanced_match
7
- } from "./chunk-VMUIREUQ.js";
7
+ } from "./chunk-LABBARNJ.js";
8
8
  import {
9
9
  __commonJS,
10
10
  __require,
@@ -1458,4 +1458,4 @@ export {
1458
1458
  require_inflight,
1459
1459
  require_glob
1460
1460
  };
1461
- //# sourceMappingURL=chunk-ILI5X6PP.js.map
1461
+ //# sourceMappingURL=chunk-O4KAJGU5.js.map
@@ -9,7 +9,7 @@ import {
9
9
  packageManagerFromUserAgent,
10
10
  removeSession,
11
11
  setSession
12
- } from "./chunk-4ZPIFK7H.js";
12
+ } from "./chunk-S3IDOXGB.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-75QMAARJ.js";
48
+ } from "./chunk-EU5PDVVS.js";
49
49
  import {
50
50
  cwd,
51
51
  sniffForJson
@@ -26948,7 +26948,7 @@ var require_form_data = __commonJS({
26948
26948
 
26949
26949
  // ../cli-kit/dist/public/common/version.js
26950
26950
  init_cjs_shims();
26951
- var CLI_KIT_VERSION = "3.82.1";
26951
+ var CLI_KIT_VERSION = "3.83.1";
26952
26952
 
26953
26953
  // ../cli-kit/dist/private/node/analytics.js
26954
26954
  init_cjs_shims();
@@ -32244,12 +32244,12 @@ async function requestAppToken(api, token, scopes = [], store2) {
32244
32244
  return { [identifier]: appToken };
32245
32245
  }
32246
32246
  function tokenRequestErrorHandler({ error, store: store2 }) {
32247
- let invalidTargetErrorMessage = `You are not authorized to use the CLI to develop in the provided store${store2 ? `: ${store2}` : "."}
32248
-
32249
- You can't use Shopify CLI with development stores if you only have Partner staff member access. If you want to use Shopify CLI to work on a development store, then you should be the store owner or create a staff account on the store.
32250
-
32251
- If you're the store owner, then you need to log in to the store directly using the store URL at least once before you log in using Shopify CLI. Logging in to the Shopify admin directly connects the development store with your Shopify login.`;
32252
- return error === "invalid_grant" ? new InvalidGrantError() : error === "invalid_request" ? new InvalidRequestError() : error === "invalid_target" ? new InvalidTargetError(invalidTargetErrorMessage) : new AbortError(error);
32247
+ let invalidTargetErrorMessage = `You are not authorized to use the CLI to develop in the provided store${store2 ? `: ${store2}` : "."}`;
32248
+ return error === "invalid_grant" ? new InvalidGrantError() : error === "invalid_request" ? new InvalidRequestError() : error === "invalid_target" ? new InvalidTargetError(invalidTargetErrorMessage, "", [
32249
+ "Ensure you have logged in to the store using the Shopify admin at least once.",
32250
+ "Ensure you are the store owner, or have a staff account if you are attempting to log in to a development store.",
32251
+ "Ensure you are using the permanent store domain, not a vanity domain."
32252
+ ]) : new AbortError(error);
32253
32253
  }
32254
32254
  async function tokenRequest(params) {
32255
32255
  let fqdn = await identityFqdn(), url4 = new URL(`https://${fqdn}/oauth/token`);
@@ -32548,7 +32548,8 @@ async function getEnvironmentData(config) {
32548
32548
  env_package_manager: await getPackageManager(cwd()),
32549
32549
  env_is_global: currentProcessIsGlobal(),
32550
32550
  env_auth_method: await getLastSeenAuthMethod(),
32551
- env_is_wsl: await isWsl()
32551
+ env_is_wsl: await isWsl(),
32552
+ env_build_repository: process.env.SHOPIFY_CLI_BUILD_REPO ?? "unknown"
32552
32553
  };
32553
32554
  }
32554
32555
  async function getSensitiveEnvironmentData(config) {
@@ -32597,6 +32598,7 @@ export {
32597
32598
  fetch2 as fetch,
32598
32599
  shopifyFetch,
32599
32600
  z,
32601
+ DevServerCore,
32600
32602
  partnersFqdn,
32601
32603
  adminFqdn,
32602
32604
  appManagementFqdn,
@@ -32636,4 +32638,4 @@ mime-types/index.js:
32636
32638
  * MIT Licensed
32637
32639
  *)
32638
32640
  */
32639
- //# sourceMappingURL=chunk-H2RMSP56.js.map
32641
+ //# sourceMappingURL=chunk-ROHZIBAY.js.map
@@ -16,10 +16,12 @@ import {
16
16
  outputToken,
17
17
  readFile,
18
18
  require_get_stream,
19
- require_semver,
20
19
  runWithTimer,
21
20
  writeFile
22
- } from "./chunk-75QMAARJ.js";
21
+ } from "./chunk-EU5PDVVS.js";
22
+ import {
23
+ require_semver
24
+ } from "./chunk-H3GWNOGA.js";
23
25
  import {
24
26
  dirname,
25
27
  joinPath
@@ -13907,4 +13909,4 @@ deep-extend/lib/deep-extend.js:
13907
13909
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13908
13910
  *)
13909
13911
  */
13910
- //# sourceMappingURL=chunk-4ZPIFK7H.js.map
13912
+ //# sourceMappingURL=chunk-S3IDOXGB.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  fanoutHooks,
3
3
  reportAnalyticsEvent
4
- } from "./chunk-ZIXYVUD6.js";
4
+ } from "./chunk-GDQXK7SS.js";
5
5
  import {
6
6
  CLI_KIT_VERSION,
7
7
  getEnvironmentData
8
- } from "./chunk-H2RMSP56.js";
8
+ } from "./chunk-ROHZIBAY.js";
9
9
  import {
10
10
  runWithRateLimit
11
- } from "./chunk-4ZPIFK7H.js";
11
+ } from "./chunk-S3IDOXGB.js";
12
12
  import {
13
13
  AbortSilentError,
14
14
  CancelExecution,
@@ -23,10 +23,10 @@ import {
23
23
  reportingRateLimit,
24
24
  require_stacktracey,
25
25
  shouldReportErrorAsUnexpected
26
- } from "./chunk-75QMAARJ.js";
26
+ } from "./chunk-EU5PDVVS.js";
27
27
  import {
28
28
  require_lib
29
- } from "./chunk-2YVW3FGK.js";
29
+ } from "./chunk-H3GWNOGA.js";
30
30
  import {
31
31
  cwd,
32
32
  isAbsolutePath,
@@ -2142,4 +2142,4 @@ export {
2142
2142
  registerCleanBugsnagErrorsFromWithinPlugins,
2143
2143
  addBugsnagMetadata
2144
2144
  };
2145
- //# sourceMappingURL=chunk-6OWK7KKO.js.map
2145
+ //# sourceMappingURL=chunk-ULXZG5FG.js.map
@@ -2,12 +2,12 @@ import {
2
2
  CLI_KIT_VERSION,
3
3
  jsonOutputEnabled,
4
4
  z
5
- } from "./chunk-H2RMSP56.js";
5
+ } from "./chunk-ROHZIBAY.js";
6
6
  import {
7
7
  cacheRetrieve,
8
8
  cacheStore,
9
9
  versionSatisfies
10
- } from "./chunk-4ZPIFK7H.js";
10
+ } from "./chunk-S3IDOXGB.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-75QMAARJ.js";
19
+ } from "./chunk-EU5PDVVS.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-SWZ4Y54O.js");
87
+ let { sendErrorToBugsnag } = await import("./error-handler-C6Y3FZJC.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-TNRWP2XN.js.map
177
+ //# sourceMappingURL=chunk-XM645PFF.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  execaSync,
3
3
  fileExistsSync
4
- } from "./chunk-75QMAARJ.js";
4
+ } from "./chunk-EU5PDVVS.js";
5
5
  import {
6
6
  require_lib
7
- } from "./chunk-2YVW3FGK.js";
7
+ } from "./chunk-H3GWNOGA.js";
8
8
  import "./chunk-UMUTXITN.js";
9
9
  import {
10
10
  cwd,
@@ -12,9 +12,7 @@ import {
12
12
  sniffForPath
13
13
  } from "./chunk-Y2JP6WFP.js";
14
14
  import "./chunk-75LV6AQS.js";
15
- import "./chunk-VMUIREUQ.js";
16
- import "./chunk-CTFDRWUN.js";
17
- import "./chunk-7IK72W75.js";
15
+ import "./chunk-LABBARNJ.js";
18
16
  import "./chunk-G2ZZKGSV.js";
19
17
  import {
20
18
  __toESM,
@@ -42,4 +40,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
42
40
  export {
43
41
  ShopifyConfig
44
42
  };
45
- //# sourceMappingURL=custom-oclif-loader-2KUDQ6HQ.js.map
43
+ //# sourceMappingURL=custom-oclif-loader-7EOQDX6M.js.map