@shopify/create-app 3.78.2 → 3.79.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.
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  fanoutHooks,
3
3
  reportAnalyticsEvent
4
- } from "./chunk-KNEC3BRF.js";
4
+ } from "./chunk-FEMRLJY6.js";
5
5
  import {
6
6
  CLI_KIT_VERSION,
7
7
  getEnvironmentData
8
- } from "./chunk-PS6NFRCK.js";
8
+ } from "./chunk-CZWBQ3CZ.js";
9
9
  import {
10
10
  runWithRateLimit
11
- } from "./chunk-WHWAKQQY.js";
11
+ } from "./chunk-YTWZ7YHV.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-NT557SK2.js";
26
+ } from "./chunk-KRGUVLHQ.js";
27
27
  import {
28
28
  require_lib
29
29
  } from "./chunk-S3QEOIDU.js";
@@ -2121,7 +2121,11 @@ function initializeBugsnag() {
2121
2121
  appVersion: CLI_KIT_VERSION,
2122
2122
  autoTrackSessions: !1,
2123
2123
  autoDetectErrors: !1,
2124
- enabledReleaseStages: ["production"]
2124
+ enabledReleaseStages: ["production"],
2125
+ endpoints: {
2126
+ notify: "https://error-analytics-production.shopifysvc.com",
2127
+ sessions: "https://error-analytics-sessions-production.shopifysvc.com"
2128
+ }
2125
2129
  });
2126
2130
  }
2127
2131
 
@@ -2133,4 +2137,4 @@ export {
2133
2137
  registerCleanBugsnagErrorsFromWithinPlugins,
2134
2138
  addBugsnagMetadata
2135
2139
  };
2136
- //# sourceMappingURL=chunk-EQR72MUQ.js.map
2140
+ //# sourceMappingURL=chunk-OOQNNVSN.js.map
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  CLI_KIT_VERSION,
3
+ jsonOutputEnabled,
3
4
  z
4
- } from "./chunk-PS6NFRCK.js";
5
+ } from "./chunk-CZWBQ3CZ.js";
5
6
  import {
6
7
  cacheRetrieve,
7
8
  cacheStore,
8
9
  versionSatisfies
9
- } from "./chunk-WHWAKQQY.js";
10
+ } from "./chunk-YTWZ7YHV.js";
10
11
  import {
11
12
  AbortSilentError,
12
13
  exec,
13
14
  isTruthy,
14
- jsonOutputEnabled,
15
15
  outputDebug,
16
16
  renderError,
17
17
  renderInfo,
18
18
  renderWarning
19
- } from "./chunk-NT557SK2.js";
19
+ } from "./chunk-KRGUVLHQ.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-M5SCW37U.js");
87
+ let { sendErrorToBugsnag } = await import("./error-handler-CHLL2XNT.js");
88
88
  await sendErrorToBugsnag(errorMessage, "unexpected_error");
89
89
  }
90
90
  }
@@ -122,15 +122,16 @@ async function getNotifications() {
122
122
  return NotificationsSchema.parse(notifications);
123
123
  }
124
124
  function fetchNotificationsInBackground(currentCommand, argv = process.argv, environment = process.env) {
125
- if (skipNotifications(currentCommand, environment))
125
+ if (skipNotifications(currentCommand, environment) || !argv[0] || !argv[1])
126
126
  return;
127
- let command = "shopify", args = ["notifications", "list", "--ignore-errors"];
128
- if (argv[0] && argv[0] !== "shopify") {
129
- command = argv[0];
130
- let indexValue = currentCommand.split(":")[0] ?? "", index = argv.indexOf(indexValue);
131
- index > 0 && args.unshift(...argv.slice(1, index));
132
- }
133
- exec(command, args, { background: !0, env: { ...process.env, SHOPIFY_CLI_NO_ANALYTICS: "1" } });
127
+ let nodeBinary = argv[0], args = [argv[1], "notifications", "list", "--ignore-errors"];
128
+ exec(nodeBinary, args, {
129
+ background: !0,
130
+ env: { ...process.env, SHOPIFY_CLI_NO_ANALYTICS: "1" },
131
+ externalErrorHandler: async (error) => {
132
+ outputDebug(`Failed to fetch notifications in background: ${error.message}`);
133
+ }
134
+ });
134
135
  }
135
136
  function filterNotifications(notifications, commandId, currentSurfaces, today = new Date((/* @__PURE__ */ new Date()).setUTCHours(0, 0, 0, 0)), currentVersion = CLI_KIT_VERSION) {
136
137
  return notifications.filter((notification) => filterByVersion(notification, currentVersion)).filter((notifications2) => filterByDate(notifications2, today)).filter((notification) => filterByCommand(notification, commandId)).filter((notification) => filterBySurface(notification, commandId, currentSurfaces)).filter((notification) => filterByFrequency(notification));
@@ -173,4 +174,4 @@ export {
173
174
  showNotificationsIfNeeded,
174
175
  fetchNotificationsInBackground
175
176
  };
176
- //# sourceMappingURL=chunk-HYAKRM37.js.map
177
+ //# sourceMappingURL=chunk-WP4C65OV.js.map