@shopify/create-app 3.72.2 → 3.73.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.
Files changed (46) hide show
  1. package/dist/{chokidar-OESTCX4H.js → chokidar-5LLC6S6D.js} +47 -90
  2. package/dist/{chunk-VSLR7ET4.js → chunk-25IMI7TH.js} +8 -46
  3. package/dist/{chunk-44TM5IPK.js → chunk-2KUKSPXE.js} +38 -67
  4. package/dist/{chunk-NYQZZU5H.js → chunk-32ADIPRM.js} +1404 -1995
  5. package/dist/{chunk-NCKQIOV4.js → chunk-3HBRMIPY.js} +28 -50
  6. package/dist/{chunk-XVNW332R.js → chunk-75LV6AQS.js} +6 -10
  7. package/dist/{chunk-CQGOPQQH.js → chunk-BOBYVF6Z.js} +298 -457
  8. package/dist/{chunk-NB4NLOEJ.js → chunk-BUFIEXZ5.js} +11 -20
  9. package/dist/{chunk-522OB3EU.js → chunk-CFIKVUNW.js} +2 -2
  10. package/dist/{chunk-KYB6A4PE.js → chunk-CRHXI6PS.js} +13 -23
  11. package/dist/{chunk-76IKKNIT.js → chunk-ESJZHEJV.js} +172 -126
  12. package/dist/{chunk-6WYZ3SZB.js → chunk-EZFQXNK5.js} +3 -3
  13. package/dist/{chunk-7MR36YRL.js → chunk-FCVEYEXQ.js} +80 -114
  14. package/dist/{chunk-UBB7JKND.js → chunk-G2ZZKGSV.js} +2 -2
  15. package/dist/{chunk-SNOECVP4.js → chunk-OAZFIMJ3.js} +2 -2
  16. package/dist/{chunk-5QRI42QY.js → chunk-PGIQSURY.js} +39 -66
  17. package/dist/{chunk-POZ5MGPT.js → chunk-PKR7KJ6P.js} +2 -3
  18. package/dist/{chunk-6EBCZH5K.js → chunk-RQFIH5UJ.js} +17 -20
  19. package/dist/{chunk-O5K4AU7Q.js → chunk-SHWOPMLQ.js} +3 -4
  20. package/dist/{chunk-ZBFY4XQE.js → chunk-SXEU7RMP.js} +4 -4
  21. package/dist/{chunk-PMUQTGZJ.js → chunk-X7YTIMNN.js} +4 -6
  22. package/dist/{chunk-7F4XFNYI.js → chunk-Z2K6T5HO.js} +29 -34
  23. package/dist/{custom-oclif-loader-HIY3GAUH.js → custom-oclif-loader-XEKDTAWW.js} +12 -12
  24. package/dist/{del-2FOJ63S7.js → del-WGII2Y5S.js} +8 -8
  25. package/dist/{devtools-KYKGATNX.js → devtools-K7FXBBFZ.js} +3 -3
  26. package/dist/error-handler-5R6VHH3O.js +31 -0
  27. package/dist/hooks/postrun.js +15 -15
  28. package/dist/hooks/prerun.js +15 -15
  29. package/dist/{http-proxy-GGTVQ6CU.js → http-proxy-FXWKYHZ3.js} +14 -24
  30. package/dist/index.js +6735 -6727
  31. package/dist/index.test.js +64 -86
  32. package/dist/lib-CKTRCGTR.js +11 -0
  33. package/dist/{local-KJ4JZFN6.js → local-RZ6SWPQL.js} +12 -12
  34. package/dist/{magic-string.es-3RXPUXZF.js → magic-string.es-PJMYOE6F.js} +49 -96
  35. package/dist/{multipart-parser-QKUAJJP5.js → multipart-parser-WSNBP656.js} +8 -7
  36. package/dist/{node-package-manager-53URJXW6.js → node-package-manager-ZXZ6WUOK.js} +15 -13
  37. package/dist/{open-MZGVNFZO.js → open-BHIF7E3E.js} +3 -3
  38. package/dist/out-JR4DWQ2G.js +7 -0
  39. package/dist/{path-3RNJ32DF.js → path-AAVNXP24.js} +3 -3
  40. package/dist/tsconfig.tsbuildinfo +1 -1
  41. package/dist/{ui-3EX7RFZH.js → ui-AIFW6J5L.js} +12 -12
  42. package/oclif.manifest.json +1 -1
  43. package/package.json +4 -4
  44. package/dist/error-handler-JK453YDL.js +0 -31
  45. package/dist/lib-EGJUAXU5.js +0 -11
  46. package/dist/out-MHEKZJWS.js +0 -7
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  fanoutHooks,
3
3
  reportAnalyticsEvent
4
- } from "./chunk-5QRI42QY.js";
4
+ } from "./chunk-PGIQSURY.js";
5
5
  import {
6
6
  CLI_KIT_VERSION,
7
7
  getEnvironmentData
8
- } from "./chunk-76IKKNIT.js";
8
+ } from "./chunk-ESJZHEJV.js";
9
9
  import {
10
10
  runWithRateLimit
11
- } from "./chunk-7MR36YRL.js";
11
+ } from "./chunk-FCVEYEXQ.js";
12
12
  import {
13
13
  AbortSilentError,
14
14
  CancelExecution,
@@ -23,26 +23,26 @@ import {
23
23
  reportingRateLimit,
24
24
  require_stacktracey,
25
25
  shouldReportErrorAsUnexpected
26
- } from "./chunk-NYQZZU5H.js";
26
+ } from "./chunk-32ADIPRM.js";
27
27
  import {
28
28
  require_lib
29
- } from "./chunk-CQGOPQQH.js";
29
+ } from "./chunk-BOBYVF6Z.js";
30
30
  import {
31
31
  cwd,
32
32
  isAbsolutePath,
33
33
  joinPath,
34
34
  normalizePath,
35
35
  relativePath
36
- } from "./chunk-6EBCZH5K.js";
36
+ } from "./chunk-RQFIH5UJ.js";
37
37
  import {
38
38
  require_once
39
- } from "./chunk-O5K4AU7Q.js";
39
+ } from "./chunk-SHWOPMLQ.js";
40
40
  import {
41
41
  __commonJS,
42
42
  __require,
43
43
  __toESM,
44
44
  init_cjs_shims
45
- } from "./chunk-POZ5MGPT.js";
45
+ } from "./chunk-PKR7KJ6P.js";
46
46
 
47
47
  // ../../node_modules/.pnpm/stackframe@1.3.4/node_modules/stackframe/stackframe.js
48
48
  var require_stackframe = __commonJS({
@@ -320,8 +320,7 @@ var require_end_of_stream = __commonJS({
320
320
  }, isChildProcess = function(stream) {
321
321
  return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3;
322
322
  }, eos = function(stream, opts, callback) {
323
- if (typeof opts == "function")
324
- return eos(stream, null, opts);
323
+ if (typeof opts == "function") return eos(stream, null, opts);
325
324
  opts || (opts = {}), callback = once(callback || noop);
326
325
  var ws = stream._writableState, rs = stream._readableState, readable = opts.readable || opts.readable !== !1 && stream.readable, writable = opts.writable || opts.writable !== !1 && stream.writable, cancelled = !1, onlegacyfinish = function() {
327
326
  stream.writable || onfinish();
@@ -337,10 +336,8 @@ var require_end_of_stream = __commonJS({
337
336
  process.nextTick(onclosenexttick);
338
337
  }, onclosenexttick = function() {
339
338
  if (!cancelled) {
340
- if (readable && !(rs && rs.ended && !rs.destroyed))
341
- return callback.call(stream, new Error("premature close"));
342
- if (writable && !(ws && ws.ended && !ws.destroyed))
343
- return callback.call(stream, new Error("premature close"));
339
+ if (readable && !(rs && rs.ended && !rs.destroyed)) return callback.call(stream, new Error("premature close"));
340
+ if (writable && !(ws && ws.ended && !ws.destroyed)) return callback.call(stream, new Error("premature close"));
344
341
  }
345
342
  }, onrequest = function() {
346
343
  stream.req.on("finish", onfinish);
@@ -370,19 +367,15 @@ var require_pump = __commonJS({
370
367
  stream.on("close", function() {
371
368
  closed = !0;
372
369
  }), eos(stream, { readable: reading, writable: writing }, function(err) {
373
- if (err)
374
- return callback(err);
370
+ if (err) return callback(err);
375
371
  closed = !0, callback();
376
372
  });
377
373
  var destroyed = !1;
378
374
  return function(err) {
379
375
  if (!closed && !destroyed) {
380
- if (destroyed = !0, isFS(stream))
381
- return stream.close(noop);
382
- if (isRequest(stream))
383
- return stream.abort();
384
- if (isFn(stream.destroy))
385
- return stream.destroy();
376
+ if (destroyed = !0, isFS(stream)) return stream.close(noop);
377
+ if (isRequest(stream)) return stream.abort();
378
+ if (isFn(stream.destroy)) return stream.destroy();
386
379
  callback(err || new Error("stream was destroyed"));
387
380
  }
388
381
  };
@@ -392,8 +385,7 @@ var require_pump = __commonJS({
392
385
  return from.pipe(to);
393
386
  }, pump = function() {
394
387
  var streams = Array.prototype.slice.call(arguments), callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop;
395
- if (Array.isArray(streams[0]) && (streams = streams[0]), streams.length < 2)
396
- throw new Error("pump requires two streams per minimum");
388
+ if (Array.isArray(streams[0]) && (streams = streams[0]), streams.length < 2) throw new Error("pump requires two streams per minimum");
397
389
  var error, destroys = streams.map(function(stream, i) {
398
390
  var reading = i < streams.length - 1, writing = i > 0;
399
391
  return destroyer(stream, reading, writing, function(err) {
@@ -493,8 +485,7 @@ var require_bugsnag = __commonJS({
493
485
  };
494
486
  }, Breadcrumb2;
495
487
  }(), _$Breadcrumb_1 = Breadcrumb, _$breadcrumbTypes_6 = ["navigation", "request", "process", "log", "user", "state", "error", "manual"], _$reduce_16 = function(arr, fn, accum) {
496
- for (var val = accum, i = 0, len = arr.length; i < len; i++)
497
- val = fn(val, arr[i], i, arr);
488
+ for (var val = accum, i = 0, len = arr.length; i < len; i++) val = fn(val, arr[i], i, arr);
498
489
  return val;
499
490
  }, _$filter_11 = function(arr, fn) {
500
491
  return _$reduce_16(arr, function(accum, item, i, arr2) {
@@ -512,8 +503,7 @@ var require_bugsnag = __commonJS({
512
503
  var result = [], prop;
513
504
  for (prop in obj)
514
505
  Object.prototype.hasOwnProperty.call(obj, prop) && result.push(prop);
515
- if (!_hasDontEnumBug)
516
- return result;
506
+ if (!_hasDontEnumBug) return result;
517
507
  for (var i = 0, len = _dontEnums.length; i < len; i++)
518
508
  Object.prototype.hasOwnProperty.call(obj, _dontEnums[i]) && result.push(_dontEnums[i]);
519
509
  return result;
@@ -573,8 +563,7 @@ var require_bugsnag = __commonJS({
573
563
  message: "should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",
574
564
  allowPartialObject: !0,
575
565
  validate: function(value) {
576
- if (typeof value != "object" || !value)
577
- return !1;
566
+ if (typeof value != "object" || !value) return !1;
578
567
  var providedKeys = _$keys_14(value), defaultKeys = _$keys_14(defaultErrorTypes());
579
568
  return !(_$filter_11(providedKeys, function(k) {
580
569
  return _$includes_12(defaultKeys, k);
@@ -767,20 +756,17 @@ var require_bugsnag = __commonJS({
767
756
  }
768
757
  function find(haystack, needle) {
769
758
  for (var i = 0, len = haystack.length; i < len; i++)
770
- if (haystack[i] === needle)
771
- return !0;
759
+ if (haystack[i] === needle) return !0;
772
760
  return !1;
773
761
  }
774
762
  function isDescendent(paths, path2) {
775
763
  for (var i = 0, len = paths.length; i < len; i++)
776
- if (path2.indexOf(paths[i]) === 0)
777
- return !0;
764
+ if (path2.indexOf(paths[i]) === 0) return !0;
778
765
  return !1;
779
766
  }
780
767
  function shouldRedact(patterns, key) {
781
768
  for (var i = 0, len = patterns.length; i < len; i++)
782
- if (typeof patterns[i] == "string" && patterns[i].toLowerCase() === key.toLowerCase() || patterns[i] && typeof patterns[i].test == "function" && patterns[i].test(key))
783
- return !0;
769
+ if (typeof patterns[i] == "string" && patterns[i].toLowerCase() === key.toLowerCase() || patterns[i] && typeof patterns[i].test == "function" && patterns[i].test(key)) return !0;
784
770
  return !1;
785
771
  }
786
772
  function __isArray_31(obj) {
@@ -799,12 +785,9 @@ var require_bugsnag = __commonJS({
799
785
  function edgesExceeded() {
800
786
  return path2.length > MIN_PRESERVED_DEPTH && edges > MAX_EDGES;
801
787
  }
802
- if (edges++, path2.length > MAX_DEPTH || edgesExceeded())
803
- return REPLACEMENT_NODE;
804
- if (obj2 === null || typeof obj2 != "object")
805
- return obj2;
806
- if (find(seen, obj2))
807
- return "[Circular]";
788
+ if (edges++, path2.length > MAX_DEPTH || edgesExceeded()) return REPLACEMENT_NODE;
789
+ if (obj2 === null || typeof obj2 != "object") return obj2;
790
+ if (find(seen, obj2)) return "[Circular]";
808
791
  if (seen.push(obj2), typeof obj2.toJSON == "function")
809
792
  try {
810
793
  edges--;
@@ -901,8 +884,7 @@ var require_bugsnag = __commonJS({
901
884
  var _updates;
902
885
  if (section) {
903
886
  var updates;
904
- if (keyOrObj === null)
905
- return __clear_21(state, section);
887
+ if (keyOrObj === null) return __clear_21(state, section);
906
888
  typeof keyOrObj == "object" && (updates = keyOrObj), typeof keyOrObj == "string" && (updates = (_updates = {}, _updates[keyOrObj] = maybeVal, _updates)), updates && (section === "__proto__" || section === "constructor" || section === "prototype" || (state[section] || (state[section] = {}), state[section] = _$assign_10({}, state[section], updates)));
907
889
  }
908
890
  }, get = function(state, section, key) {
@@ -1018,8 +1000,7 @@ var require_bugsnag = __commonJS({
1018
1000
  return error.cause ? [error].concat(getCauseStack(error.cause)) : [error];
1019
1001
  }
1020
1002
  Event.getStacktrace = function(error, errorFramesToSkip, backtraceFramesToSkip) {
1021
- if (_$hasStack_18(error))
1022
- return _$errorStackParser_9.parse(error).slice(errorFramesToSkip);
1003
+ if (_$hasStack_18(error)) return _$errorStackParser_9.parse(error).slice(errorFramesToSkip);
1023
1004
  try {
1024
1005
  return _$filter_11(StackGenerator.backtrace(), function(frame) {
1025
1006
  return (frame.functionName || "").indexOf("StackGenerator$$") === -1;
@@ -1095,21 +1076,17 @@ var require_bugsnag = __commonJS({
1095
1076
  return (typeof error.name == "string" || typeof error.errorClass == "string") && (typeof error.message == "string" || typeof error.errorMessage == "string");
1096
1077
  }, _$Event_4 = Event, _$asyncEvery_5 = function(arr, fn, cb) {
1097
1078
  var index = 0, next = function() {
1098
- if (index >= arr.length)
1099
- return cb(null, !0);
1079
+ if (index >= arr.length) return cb(null, !0);
1100
1080
  fn(arr[index], function(err, result) {
1101
- if (err)
1102
- return cb(err);
1103
- if (result === !1)
1104
- return cb(null, !1);
1081
+ if (err) return cb(err);
1082
+ if (result === !1) return cb(null, !1);
1105
1083
  index++, next();
1106
1084
  });
1107
1085
  };
1108
1086
  next();
1109
1087
  }, _$callbackRunner_7 = function(callbacks, event, onCallbackError, cb) {
1110
1088
  var runMaybeAsyncCallback = function(fn, cb2) {
1111
- if (typeof fn != "function")
1112
- return cb2(null);
1089
+ if (typeof fn != "function") return cb2(null);
1113
1090
  try {
1114
1091
  if (fn.length !== 2) {
1115
1092
  var ret = fn(event);
@@ -1250,8 +1227,7 @@ var require_bugsnag = __commonJS({
1250
1227
  config: {}
1251
1228
  }), errors = _reduce.errors, config = _reduce.config;
1252
1229
  if (schema2.apiKey) {
1253
- if (!config.apiKey)
1254
- throw new Error("No Bugsnag API Key set");
1230
+ if (!config.apiKey) throw new Error("No Bugsnag API Key set");
1255
1231
  /^[0-9a-f]{32}$/i.test(config.apiKey) || (errors.apiKey = "should be a string of 32 hexadecimal characters");
1256
1232
  }
1257
1233
  return this._metadata = _$assign_10({}, config.metadata), __merge_2(this._features, config.featureFlags, this._featuresIndex), this._user = _$assign_10({}, config.user), this._context = config.context, config.logger && (this._logger = config.logger), config.onError && (this._cbs.e = this._cbs.e.concat(config.onError)), config.onBreadcrumb && (this._cbs.b = this._cbs.b.concat(config.onBreadcrumb)), config.onSession && (this._cbs.s = this._cbs.s.concat(config.onSession)), _$keys_14(errors).length && this._logger.warn(generateConfigErrorMessage(errors, opts)), config;
@@ -1392,8 +1368,7 @@ metadata was removed`
1392
1368
  });
1393
1369
  req.on("error", onError), req.on("response", function(res) {
1394
1370
  bufferResponse(res, function(err, body2) {
1395
- if (err)
1396
- return onError(err);
1371
+ if (err) return onError(err);
1397
1372
  if (res.statusCode < 200 || res.statusCode >= 300)
1398
1373
  return onError(new Error("Bad statusCode from API: " + res.statusCode + `
1399
1374
  ` + body2));
@@ -1696,8 +1671,7 @@ metadata was removed`
1696
1671
  var loadSurroundingCode = function(stackframe, cache) {
1697
1672
  return new Promise(function(resolve2, reject) {
1698
1673
  try {
1699
- if (!stackframe.lineNumber || !stackframe.file)
1700
- return resolve2(stackframe);
1674
+ if (!stackframe.lineNumber || !stackframe.file) return resolve2(stackframe);
1701
1675
  var file = path.resolve(client._config.projectRoot, stackframe.file), cacheKey = file + "@" + stackframe.lineNumber;
1702
1676
  if (cacheKey in cache)
1703
1677
  return stackframe.code = cache[cacheKey], resolve2(stackframe);
@@ -1746,8 +1720,7 @@ metadata was removed`
1746
1720
  slicer.on("done", function() {
1747
1721
  return reader.destroy();
1748
1722
  }), pump(reader, splitter, slicer, function(err) {
1749
- if (err && err.message !== "premature close")
1750
- return cb(err);
1723
+ if (err && err.message !== "premature close") return cb(err);
1751
1724
  cb(null, slicer.getCode());
1752
1725
  });
1753
1726
  }, CodeRange = /* @__PURE__ */ function(_Writable) {
@@ -1916,8 +1889,7 @@ metadata was removed`
1916
1889
  client._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration");
1917
1890
  return;
1918
1891
  }
1919
- if (!sessionCounts.length)
1920
- return;
1892
+ if (!sessionCounts.length) return;
1921
1893
  var backoff = new _$Backoff_45({
1922
1894
  min: 1e3,
1923
1895
  max: 1e4
@@ -2017,8 +1989,7 @@ metadata was removed`
2017
1989
  };
2018
1990
  return Object.keys(_$Client_2.prototype).forEach(function(m) {
2019
1991
  /^_/.test(m) || (Bugsnag2[m] = function() {
2020
- if (!Bugsnag2._client)
2021
- return console.error("Bugsnag." + m + "() was called before Bugsnag.start()");
1992
+ if (!Bugsnag2._client) return console.error("Bugsnag." + m + "() was called before Bugsnag.start()");
2022
1993
  Bugsnag2._client._depth += 1;
2023
1994
  var ret = Bugsnag2._client[m].apply(Bugsnag2._client, arguments);
2024
1995
  return Bugsnag2._client._depth -= 1, ret;
@@ -2140,4 +2111,4 @@ export {
2140
2111
  registerCleanBugsnagErrorsFromWithinPlugins,
2141
2112
  addBugsnagMetadata
2142
2113
  };
2143
- //# sourceMappingURL=chunk-44TM5IPK.js.map
2114
+ //# sourceMappingURL=chunk-2KUKSPXE.js.map