@shopify/create-app 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.
@@ -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-7AOB653K.js";
5
6
  import {
6
7
  cacheRetrieve,
7
8
  cacheStore,
8
9
  versionSatisfies
9
- } from "./chunk-WHWAKQQY.js";
10
+ } from "./chunk-DOJFJSIT.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-HSB3QV4W.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-2KYYHHUD.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-S6CRGH63.js.map
@@ -4,10 +4,10 @@ import {
4
4
  getEnvironmentData,
5
5
  getLastSeenUserIdAfterAuth,
6
6
  getSensitiveEnvironmentData
7
- } from "./chunk-PS6NFRCK.js";
7
+ } from "./chunk-7AOB653K.js";
8
8
  import {
9
9
  runWithRateLimit
10
- } from "./chunk-WHWAKQQY.js";
10
+ } from "./chunk-DOJFJSIT.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-NT557SK2.js";
27
+ } from "./chunk-HSB3QV4W.js";
28
28
  import {
29
29
  __commonJS,
30
30
  __esm,
@@ -15473,7 +15473,7 @@ init_cjs_shims();
15473
15473
 
15474
15474
  // ../cli-kit/dist/public/node/monorail.js
15475
15475
  init_cjs_shims();
15476
- var url = "https://monorail-edge.shopifysvc.com/v1/produce", MONORAIL_COMMAND_TOPIC = "app_cli3_command/1.16", publishedCommandNames = /* @__PURE__ */ new Set();
15476
+ var url = "https://monorail-edge.shopifysvc.com/v1/produce", MONORAIL_COMMAND_TOPIC = "app_cli3_command/1.17", publishedCommandNames = /* @__PURE__ */ new Set();
15477
15477
  async function publishMonorailEvent(schemaId, publicData, sensitiveData) {
15478
15478
  let commandName = publicData.command;
15479
15479
  if (commandName && typeof commandName == "string") {
@@ -15926,4 +15926,4 @@ export {
15926
15926
  requestIdsCollection,
15927
15927
  reportAnalyticsEvent
15928
15928
  };
15929
- //# sourceMappingURL=chunk-KNEC3BRF.js.map
15929
+ //# sourceMappingURL=chunk-SKROIF4Z.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  execaSync,
3
3
  fileExistsSync
4
- } from "./chunk-NT557SK2.js";
4
+ } from "./chunk-HSB3QV4W.js";
5
5
  import {
6
6
  require_lib
7
7
  } from "./chunk-S3QEOIDU.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-4XA4AN34.js.map
46
+ //# sourceMappingURL=custom-oclif-loader-YVZFS2MG.js.map
@@ -4,12 +4,12 @@ import {
4
4
  errorHandler,
5
5
  registerCleanBugsnagErrorsFromWithinPlugins,
6
6
  sendErrorToBugsnag
7
- } from "./chunk-EQR72MUQ.js";
8
- import "./chunk-KNEC3BRF.js";
9
- import "./chunk-PS6NFRCK.js";
7
+ } from "./chunk-BE7EA5HD.js";
8
+ import "./chunk-SKROIF4Z.js";
9
+ import "./chunk-7AOB653K.js";
10
10
  import "./chunk-25IMI7TH.js";
11
- import "./chunk-WHWAKQQY.js";
12
- import "./chunk-NT557SK2.js";
11
+ import "./chunk-DOJFJSIT.js";
12
+ import "./chunk-HSB3QV4W.js";
13
13
  import "./chunk-S3QEOIDU.js";
14
14
  import "./chunk-3I3GQNEW.js";
15
15
  import "./chunk-ZUCWDIGE.js";
@@ -28,4 +28,4 @@ export {
28
28
  registerCleanBugsnagErrorsFromWithinPlugins,
29
29
  sendErrorToBugsnag
30
30
  };
31
- //# sourceMappingURL=error-handler-M5SCW37U.js.map
31
+ //# sourceMappingURL=error-handler-2KYYHHUD.js.map
@@ -3,16 +3,16 @@ import {
3
3
  } from "../chunk-CP3BRHWK.js";
4
4
  import {
5
5
  reportAnalyticsEvent
6
- } from "../chunk-KNEC3BRF.js";
7
- import "../chunk-PS6NFRCK.js";
6
+ } from "../chunk-SKROIF4Z.js";
7
+ import "../chunk-7AOB653K.js";
8
8
  import "../chunk-25IMI7TH.js";
9
- import "../chunk-WHWAKQQY.js";
9
+ import "../chunk-DOJFJSIT.js";
10
10
  import {
11
11
  addSensitiveMetadata,
12
12
  getAllSensitiveMetadata,
13
13
  outputDebug,
14
14
  renderWarning
15
- } from "../chunk-NT557SK2.js";
15
+ } from "../chunk-HSB3QV4W.js";
16
16
  import "../chunk-S3QEOIDU.js";
17
17
  import "../chunk-3I3GQNEW.js";
18
18
  import "../chunk-ZUCWDIGE.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  fetchNotificationsInBackground
3
- } from "../chunk-HYAKRM37.js";
3
+ } from "../chunk-S6CRGH63.js";
4
4
  import {
5
5
  CLI_KIT_VERSION,
6
6
  startAnalytics
7
- } from "../chunk-PS6NFRCK.js";
7
+ } from "../chunk-7AOB653K.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-WHWAKQQY.js";
14
+ } from "../chunk-DOJFJSIT.js";
15
15
  import {
16
16
  currentProcessIsGlobal,
17
17
  inferPackageManagerForGlobalCLI,
@@ -19,7 +19,7 @@ import {
19
19
  outputDebug,
20
20
  outputToken,
21
21
  outputWarn
22
- } from "../chunk-NT557SK2.js";
22
+ } from "../chunk-HSB3QV4W.js";
23
23
  import "../chunk-S3QEOIDU.js";
24
24
  import "../chunk-3I3GQNEW.js";
25
25
  import "../chunk-ZUCWDIGE.js";