@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
@@ -2,7 +2,7 @@ import {
2
2
  FormData as FormData2,
3
3
  fetch_blob_default,
4
4
  formDataToBlob
5
- } from "./chunk-VSLR7ET4.js";
5
+ } from "./chunk-25IMI7TH.js";
6
6
  import {
7
7
  cacheRetrieveOrRepopulate,
8
8
  getCachedPartnerAccountStatus,
@@ -12,7 +12,7 @@ import {
12
12
  removeSession,
13
13
  setCachedPartnerAccountStatus,
14
14
  setSession
15
- } from "./chunk-7MR36YRL.js";
15
+ } from "./chunk-FCVEYEXQ.js";
16
16
  import {
17
17
  AbortError,
18
18
  BugError,
@@ -49,17 +49,17 @@ import {
49
49
  systemEnvironmentVariables,
50
50
  themeKitAccessDomain,
51
51
  themeToken
52
- } from "./chunk-NYQZZU5H.js";
52
+ } from "./chunk-32ADIPRM.js";
53
53
  import {
54
54
  cwd,
55
55
  sniffForJson
56
- } from "./chunk-6EBCZH5K.js";
56
+ } from "./chunk-RQFIH5UJ.js";
57
57
  import {
58
58
  __commonJS,
59
59
  __require,
60
60
  __toESM,
61
61
  init_cjs_shims
62
- } from "./chunk-POZ5MGPT.js";
62
+ } from "./chunk-PKR7KJ6P.js";
63
63
 
64
64
  // ../../node_modules/.pnpm/network-interfaces@1.1.0/node_modules/network-interfaces/index.js
65
65
  var require_network_interfaces = __commonJS({
@@ -168,8 +168,7 @@ var require_extractFiles = __commonJS({
168
168
  var result = extractFiles(value[i], "" + prefix + i, isExtractableFile);
169
169
  result.files.forEach(addFile), clone2[i] = result.clone;
170
170
  }
171
- } else
172
- clone2 = value;
171
+ } else clone2 = value;
173
172
  }
174
173
  return {
175
174
  clone: clone2,
@@ -9908,14 +9907,17 @@ var require_blockString = __commonJS({
9908
9907
  case 14:
9909
9908
  case 15:
9910
9909
  return !1;
9910
+ // Has non-printable characters
9911
9911
  case 13:
9912
9912
  return !1;
9913
+ // Has \r or \r\n which will be replaced as \n
9913
9914
  case 10:
9914
9915
  if (isEmptyLine && !seenNonEmptyLine)
9915
9916
  return !1;
9916
9917
  seenNonEmptyLine = !0, isEmptyLine = !0, hasIndent = !1;
9917
9918
  break;
9918
9919
  case 9:
9920
+ // \t
9919
9921
  case 32:
9920
9922
  hasIndent || (hasIndent = isEmptyLine);
9921
9923
  break;
@@ -10048,20 +10050,50 @@ var require_lexer = __commonJS({
10048
10050
  for (; position < bodyLength; ) {
10049
10051
  let code = body.charCodeAt(position);
10050
10052
  switch (code) {
10053
+ // Ignored ::
10054
+ // - UnicodeBOM
10055
+ // - WhiteSpace
10056
+ // - LineTerminator
10057
+ // - Comment
10058
+ // - Comma
10059
+ //
10060
+ // UnicodeBOM :: "Byte Order Mark (U+FEFF)"
10061
+ //
10062
+ // WhiteSpace ::
10063
+ // - "Horizontal Tab (U+0009)"
10064
+ // - "Space (U+0020)"
10065
+ //
10066
+ // Comma :: ,
10051
10067
  case 65279:
10068
+ // <BOM>
10052
10069
  case 9:
10070
+ // \t
10053
10071
  case 32:
10072
+ // <space>
10054
10073
  case 44:
10055
10074
  ++position;
10056
10075
  continue;
10076
+ // LineTerminator ::
10077
+ // - "New Line (U+000A)"
10078
+ // - "Carriage Return (U+000D)" [lookahead != "New Line (U+000A)"]
10079
+ // - "Carriage Return (U+000D)" "New Line (U+000A)"
10057
10080
  case 10:
10058
10081
  ++position, ++lexer.line, lexer.lineStart = position;
10059
10082
  continue;
10060
10083
  case 13:
10061
10084
  body.charCodeAt(position + 1) === 10 ? position += 2 : ++position, ++lexer.line, lexer.lineStart = position;
10062
10085
  continue;
10086
+ // Comment
10063
10087
  case 35:
10064
10088
  return readComment(lexer, position);
10089
+ // Token ::
10090
+ // - Punctuator
10091
+ // - Name
10092
+ // - IntValue
10093
+ // - FloatValue
10094
+ // - StringValue
10095
+ //
10096
+ // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
10065
10097
  case 33:
10066
10098
  return createToken(
10067
10099
  lexer,
@@ -10162,6 +10194,7 @@ var require_lexer = __commonJS({
10162
10194
  position,
10163
10195
  position + 1
10164
10196
  );
10197
+ // StringValue
10165
10198
  case 34:
10166
10199
  return body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34 ? readBlockString(lexer, position) : readString(lexer, position);
10167
10200
  }
@@ -12314,8 +12347,7 @@ var require_visitor = __commonJS({
12314
12347
  skipping[i] = BREAK;
12315
12348
  else if (result !== void 0 && result !== !1)
12316
12349
  return result;
12317
- } else
12318
- skipping[i] === node && (skipping[i] = null);
12350
+ } else skipping[i] === node && (skipping[i] = null);
12319
12351
  }
12320
12352
  };
12321
12353
  mergedVisitor[kind] = mergedEnterLeave;
@@ -15533,6 +15565,8 @@ var require_KnownDirectivesRule = __commonJS({
15533
15565
  let parentNode = ancestors[ancestors.length - 3];
15534
15566
  return "kind" in parentNode || (0, _invariant.invariant)(!1), parentNode.kind === _kinds.Kind.INPUT_OBJECT_TYPE_DEFINITION ? _directiveLocation.DirectiveLocation.INPUT_FIELD_DEFINITION : _directiveLocation.DirectiveLocation.ARGUMENT_DEFINITION;
15535
15567
  }
15568
+ // Not reachable, all possible types have been considered.
15569
+ /* c8 ignore next */
15536
15570
  default:
15537
15571
  (0, _invariant.invariant)(
15538
15572
  !1,
@@ -16480,6 +16514,8 @@ var require_PossibleTypeExtensionsRule = __commonJS({
16480
16514
  return "enum";
16481
16515
  case _kinds.Kind.INPUT_OBJECT_TYPE_EXTENSION:
16482
16516
  return "input object";
16517
+ // Not reachable. All possible types have been considered
16518
+ /* c8 ignore next */
16483
16519
  default:
16484
16520
  (0, _invariant.invariant)(
16485
16521
  !1,
@@ -18466,8 +18502,7 @@ var require_execute = __commonJS({
18466
18502
  )
18467
18503
  ];
18468
18504
  operation = definition;
18469
- } else
18470
- ((_definition$name = definition.name) === null || _definition$name === void 0 ? void 0 : _definition$name.value) === operationName && (operation = definition);
18505
+ } else ((_definition$name = definition.name) === null || _definition$name === void 0 ? void 0 : _definition$name.value) === operationName && (operation = definition);
18471
18506
  break;
18472
18507
  case _kinds.Kind.FRAGMENT_DEFINITION:
18473
18508
  fragments[definition.name.value] = definition;
@@ -20873,8 +20908,7 @@ var require_extendSchema = __commonJS({
20873
20908
  else if ((0, _predicates.isTypeExtensionNode)(def)) {
20874
20909
  let extendedTypeName = def.name.value, existingTypeExtensions = typeExtensionsMap[extendedTypeName];
20875
20910
  typeExtensionsMap[extendedTypeName] = existingTypeExtensions ? existingTypeExtensions.concat([def]) : [def];
20876
- } else
20877
- def.kind === _kinds.Kind.DIRECTIVE_DEFINITION && directiveDefs.push(def);
20911
+ } else def.kind === _kinds.Kind.DIRECTIVE_DEFINITION && directiveDefs.push(def);
20878
20912
  if (Object.keys(typeExtensionsMap).length === 0 && typeDefs.length === 0 && directiveDefs.length === 0 && schemaExtensions.length === 0 && schemaDef == null)
20879
20913
  return schemaConfig;
20880
20914
  let typeMap = /* @__PURE__ */ Object.create(null);
@@ -21299,6 +21333,9 @@ var require_buildASTSchema = __commonJS({
21299
21333
  if (config.astNode == null)
21300
21334
  for (let type of config.types)
21301
21335
  switch (type.name) {
21336
+ // Note: While this could make early assertions to get the correctly
21337
+ // typed values below, that would throw immediately while type system
21338
+ // validation with validateSchema() will produce more actionable results.
21302
21339
  case "Query":
21303
21340
  config.query = type;
21304
21341
  break;
@@ -24680,8 +24717,7 @@ var require_url_state_machine = __commonJS({
24680
24717
  this.failure = !0;
24681
24718
  break;
24682
24719
  }
24683
- } else
24684
- break;
24720
+ } else break;
24685
24721
  }
24686
24722
  }
24687
24723
  URLStateMachine.prototype["parse scheme start"] = function(c, cStr) {
@@ -24838,8 +24874,7 @@ var require_url_state_machine = __commonJS({
24838
24874
  if ((!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") && (this.encodingOverride = "utf-8"), !this.stateOverride && c === p("#") || isNaN(c)) {
24839
24875
  let queryPercentEncodePredicate = isSpecial(this.url) ? isSpecialQueryPercentEncode : isQueryPercentEncode;
24840
24876
  this.url.query += utf8PercentEncodeString(this.buffer, queryPercentEncodePredicate), this.buffer = "", c === p("#") && (this.url.fragment = "", this.state = "fragment");
24841
- } else
24842
- isNaN(c) || (c === p("%") && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2])) && (this.parseError = !0), this.buffer += cStr);
24877
+ } else isNaN(c) || (c === p("%") && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2])) && (this.parseError = !0), this.buffer += cStr);
24843
24878
  return !0;
24844
24879
  };
24845
24880
  URLStateMachine.prototype["parse fragment"] = function(c) {
@@ -26155,30 +26190,29 @@ var require_lib2 = __commonJS({
26155
26190
  this.append(headerName, value);
26156
26191
  return;
26157
26192
  }
26158
- if (init != null)
26159
- if (typeof init == "object") {
26160
- let method = init[Symbol.iterator];
26161
- if (method != null) {
26162
- if (typeof method != "function")
26163
- throw new TypeError("Header pairs must be iterable");
26164
- let pairs = [];
26165
- for (let pair of init) {
26166
- if (typeof pair != "object" || typeof pair[Symbol.iterator] != "function")
26167
- throw new TypeError("Each header pair must be iterable");
26168
- pairs.push(Array.from(pair));
26169
- }
26170
- for (let pair of pairs) {
26171
- if (pair.length !== 2)
26172
- throw new TypeError("Each header pair must be a name/value tuple");
26173
- this.append(pair[0], pair[1]);
26174
- }
26175
- } else
26176
- for (let key of Object.keys(init)) {
26177
- let value = init[key];
26178
- this.append(key, value);
26179
- }
26193
+ if (init != null) if (typeof init == "object") {
26194
+ let method = init[Symbol.iterator];
26195
+ if (method != null) {
26196
+ if (typeof method != "function")
26197
+ throw new TypeError("Header pairs must be iterable");
26198
+ let pairs = [];
26199
+ for (let pair of init) {
26200
+ if (typeof pair != "object" || typeof pair[Symbol.iterator] != "function")
26201
+ throw new TypeError("Each header pair must be iterable");
26202
+ pairs.push(Array.from(pair));
26203
+ }
26204
+ for (let pair of pairs) {
26205
+ if (pair.length !== 2)
26206
+ throw new TypeError("Each header pair must be a name/value tuple");
26207
+ this.append(pair[0], pair[1]);
26208
+ }
26180
26209
  } else
26181
- throw new TypeError("Provided initializer must be an object");
26210
+ for (let key of Object.keys(init)) {
26211
+ let value = init[key];
26212
+ this.append(key, value);
26213
+ }
26214
+ } else
26215
+ throw new TypeError("Provided initializer must be an object");
26182
26216
  }
26183
26217
  /**
26184
26218
  * Return combined header value given name
@@ -26354,8 +26388,7 @@ var require_lib2 = __commonJS({
26354
26388
  if (Array.isArray(obj[name]))
26355
26389
  for (let val of obj[name])
26356
26390
  invalidHeaderCharRegex.test(val) || (headers[MAP][name] === void 0 ? headers[MAP][name] = [val] : headers[MAP][name].push(val));
26357
- else
26358
- invalidHeaderCharRegex.test(obj[name]) || (headers[MAP][name] = [obj[name]]);
26391
+ else invalidHeaderCharRegex.test(obj[name]) || (headers[MAP][name] = [obj[name]]);
26359
26392
  return headers;
26360
26393
  }
26361
26394
  var INTERNALS$1 = Symbol("Response internals"), STATUS_CODES = http3.STATUS_CODES, Response2 = class _Response {
@@ -28295,15 +28328,13 @@ var require_IORedisConnection = __commonJS({
28295
28328
  try {
28296
28329
  !_n && _i.return != null && _i.return();
28297
28330
  } finally {
28298
- if (_d)
28299
- throw _e;
28331
+ if (_d) throw _e;
28300
28332
  }
28301
28333
  }
28302
28334
  return _arr;
28303
28335
  }
28304
28336
  function _arrayWithHoles(arr) {
28305
- if (Array.isArray(arr))
28306
- return arr;
28337
+ if (Array.isArray(arr)) return arr;
28307
28338
  }
28308
28339
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
28309
28340
  try {
@@ -28426,15 +28457,13 @@ var require_RedisDatastore = __commonJS({
28426
28457
  try {
28427
28458
  !_n && _i.return != null && _i.return();
28428
28459
  } finally {
28429
- if (_d)
28430
- throw _e;
28460
+ if (_d) throw _e;
28431
28461
  }
28432
28462
  }
28433
28463
  return _arr;
28434
28464
  }
28435
28465
  function _arrayWithHoles2(arr) {
28436
- if (Array.isArray(arr))
28437
- return arr;
28466
+ if (Array.isArray(arr)) return arr;
28438
28467
  }
28439
28468
  function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
28440
28469
  try {
@@ -28796,15 +28825,13 @@ var require_Group = __commonJS({
28796
28825
  try {
28797
28826
  !_n && _i.return != null && _i.return();
28798
28827
  } finally {
28799
- if (_d)
28800
- throw _e;
28828
+ if (_d) throw _e;
28801
28829
  }
28802
28830
  }
28803
28831
  return _arr;
28804
28832
  }
28805
28833
  function _arrayWithHoles2(arr) {
28806
- if (Array.isArray(arr))
28807
- return arr;
28834
+ if (Array.isArray(arr)) return arr;
28808
28835
  }
28809
28836
  function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
28810
28837
  try {
@@ -28983,8 +29010,7 @@ var require_Bottleneck = __commonJS({
28983
29010
  try {
28984
29011
  !_n && _i.return != null && _i.return();
28985
29012
  } finally {
28986
- if (_d)
28987
- throw _e;
29013
+ if (_d) throw _e;
28988
29014
  }
28989
29015
  }
28990
29016
  return _arr;
@@ -28996,12 +29022,10 @@ var require_Bottleneck = __commonJS({
28996
29022
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
28997
29023
  }
28998
29024
  function _iterableToArray(iter) {
28999
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]")
29000
- return Array.from(iter);
29025
+ if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
29001
29026
  }
29002
29027
  function _arrayWithHoles2(arr) {
29003
- if (Array.isArray(arr))
29004
- return arr;
29028
+ if (Array.isArray(arr)) return arr;
29005
29029
  }
29006
29030
  function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
29007
29031
  try {
@@ -29342,7 +29366,7 @@ var require_lib3 = __commonJS({
29342
29366
 
29343
29367
  // ../cli-kit/dist/public/common/version.js
29344
29368
  init_cjs_shims();
29345
- var CLI_KIT_VERSION = "3.72.2";
29369
+ var CLI_KIT_VERSION = "3.73.0";
29346
29370
 
29347
29371
  // ../cli-kit/dist/private/node/analytics.js
29348
29372
  init_cjs_shims();
@@ -30014,32 +30038,31 @@ var ZodString = class _ZodString extends ZodType {
30014
30038
  message: check.message
30015
30039
  }), status.dirty();
30016
30040
  }
30017
- else
30018
- check.kind === "regex" ? (check.regex.lastIndex = 0, check.regex.test(input.data) || (ctx = this._getOrReturnCtx(input, ctx), addIssueToContext(ctx, {
30019
- validation: "regex",
30020
- code: ZodIssueCode.invalid_string,
30021
- message: check.message
30022
- }), status.dirty())) : check.kind === "trim" ? input.data = input.data.trim() : check.kind === "includes" ? input.data.includes(check.value, check.position) || (ctx = this._getOrReturnCtx(input, ctx), addIssueToContext(ctx, {
30023
- code: ZodIssueCode.invalid_string,
30024
- validation: { includes: check.value, position: check.position },
30025
- message: check.message
30026
- }), status.dirty()) : check.kind === "toLowerCase" ? input.data = input.data.toLowerCase() : check.kind === "toUpperCase" ? input.data = input.data.toUpperCase() : check.kind === "startsWith" ? input.data.startsWith(check.value) || (ctx = this._getOrReturnCtx(input, ctx), addIssueToContext(ctx, {
30027
- code: ZodIssueCode.invalid_string,
30028
- validation: { startsWith: check.value },
30029
- message: check.message
30030
- }), status.dirty()) : check.kind === "endsWith" ? input.data.endsWith(check.value) || (ctx = this._getOrReturnCtx(input, ctx), addIssueToContext(ctx, {
30031
- code: ZodIssueCode.invalid_string,
30032
- validation: { endsWith: check.value },
30033
- message: check.message
30034
- }), status.dirty()) : check.kind === "datetime" ? datetimeRegex(check).test(input.data) || (ctx = this._getOrReturnCtx(input, ctx), addIssueToContext(ctx, {
30035
- code: ZodIssueCode.invalid_string,
30036
- validation: "datetime",
30037
- message: check.message
30038
- }), status.dirty()) : check.kind === "ip" ? isValidIP(input.data, check.version) || (ctx = this._getOrReturnCtx(input, ctx), addIssueToContext(ctx, {
30039
- validation: "ip",
30040
- code: ZodIssueCode.invalid_string,
30041
- message: check.message
30042
- }), status.dirty()) : util.assertNever(check);
30041
+ else check.kind === "regex" ? (check.regex.lastIndex = 0, check.regex.test(input.data) || (ctx = this._getOrReturnCtx(input, ctx), addIssueToContext(ctx, {
30042
+ validation: "regex",
30043
+ code: ZodIssueCode.invalid_string,
30044
+ message: check.message
30045
+ }), status.dirty())) : check.kind === "trim" ? input.data = input.data.trim() : check.kind === "includes" ? input.data.includes(check.value, check.position) || (ctx = this._getOrReturnCtx(input, ctx), addIssueToContext(ctx, {
30046
+ code: ZodIssueCode.invalid_string,
30047
+ validation: { includes: check.value, position: check.position },
30048
+ message: check.message
30049
+ }), status.dirty()) : check.kind === "toLowerCase" ? input.data = input.data.toLowerCase() : check.kind === "toUpperCase" ? input.data = input.data.toUpperCase() : check.kind === "startsWith" ? input.data.startsWith(check.value) || (ctx = this._getOrReturnCtx(input, ctx), addIssueToContext(ctx, {
30050
+ code: ZodIssueCode.invalid_string,
30051
+ validation: { startsWith: check.value },
30052
+ message: check.message
30053
+ }), status.dirty()) : check.kind === "endsWith" ? input.data.endsWith(check.value) || (ctx = this._getOrReturnCtx(input, ctx), addIssueToContext(ctx, {
30054
+ code: ZodIssueCode.invalid_string,
30055
+ validation: { endsWith: check.value },
30056
+ message: check.message
30057
+ }), status.dirty()) : check.kind === "datetime" ? datetimeRegex(check).test(input.data) || (ctx = this._getOrReturnCtx(input, ctx), addIssueToContext(ctx, {
30058
+ code: ZodIssueCode.invalid_string,
30059
+ validation: "datetime",
30060
+ message: check.message
30061
+ }), status.dirty()) : check.kind === "ip" ? isValidIP(input.data, check.version) || (ctx = this._getOrReturnCtx(input, ctx), addIssueToContext(ctx, {
30062
+ validation: "ip",
30063
+ code: ZodIssueCode.invalid_string,
30064
+ message: check.message
30065
+ }), status.dirty()) : util.assertNever(check);
30043
30066
  return { status: status.value, value: input.data };
30044
30067
  }
30045
30068
  _addCheck(check) {
@@ -30772,11 +30795,10 @@ function deepPartialify(schema) {
30772
30795
  ...schema._def,
30773
30796
  shape: () => newShape
30774
30797
  });
30775
- } else
30776
- return schema instanceof ZodArray ? new ZodArray({
30777
- ...schema._def,
30778
- type: deepPartialify(schema.element)
30779
- }) : schema instanceof ZodOptional ? ZodOptional.create(deepPartialify(schema.unwrap())) : schema instanceof ZodNullable ? ZodNullable.create(deepPartialify(schema.unwrap())) : schema instanceof ZodTuple ? ZodTuple.create(schema.items.map((item) => deepPartialify(item))) : schema;
30798
+ } else return schema instanceof ZodArray ? new ZodArray({
30799
+ ...schema._def,
30800
+ type: deepPartialify(schema.element)
30801
+ }) : schema instanceof ZodOptional ? ZodOptional.create(deepPartialify(schema.unwrap())) : schema instanceof ZodNullable ? ZodNullable.create(deepPartialify(schema.unwrap())) : schema instanceof ZodTuple ? ZodTuple.create(schema.items.map((item) => deepPartialify(item))) : schema;
30780
30802
  }
30781
30803
  var ZodObject = class _ZodObject extends ZodType {
30782
30804
  constructor() {
@@ -30823,8 +30845,7 @@ var ZodObject = class _ZodObject extends ZodType {
30823
30845
  code: ZodIssueCode.unrecognized_keys,
30824
30846
  keys: extraKeys
30825
30847
  }), status.dirty());
30826
- else if (unknownKeys !== "strip")
30827
- throw new Error("Internal ZodObject error: invalid unknownKeys value.");
30848
+ else if (unknownKeys !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
30828
30849
  } else {
30829
30850
  let catchall = this._def.catchall;
30830
30851
  for (let key of extraKeys) {
@@ -31224,8 +31245,7 @@ function mergeValues(a, b) {
31224
31245
  newArray.push(sharedValue.data);
31225
31246
  }
31226
31247
  return { valid: !0, data: newArray };
31227
- } else
31228
- return aType === ZodParsedType.date && bType === ZodParsedType.date && +a == +b ? { valid: !0, data: a } : { valid: !1 };
31248
+ } else return aType === ZodParsedType.date && bType === ZodParsedType.date && +a == +b ? { valid: !0, data: a } : { valid: !1 };
31229
31249
  }
31230
31250
  var ZodIntersection = class extends ZodType {
31231
31251
  _parse(input) {
@@ -32102,8 +32122,7 @@ function deepStrict(schema) {
32102
32122
  if (schema instanceof ZodObject) {
32103
32123
  let shape = schema.shape, strictShape = Object.fromEntries(Object.entries(shape).map(([key, value]) => [key, deepStrict(value)]));
32104
32124
  return z.object(strictShape).strict();
32105
- } else
32106
- return schema instanceof ZodOptional ? deepStrict(schema._def.innerType).optional() : schema;
32125
+ } else return schema instanceof ZodOptional ? deepStrict(schema._def.innerType).optional() : schema;
32107
32126
  }
32108
32127
 
32109
32128
  // ../cli-kit/dist/private/node/session/schema.js
@@ -32238,8 +32257,7 @@ var DevServer = class {
32238
32257
  throw new Error(`DevServer for '${this.name}' not present in this spin environment`);
32239
32258
  let match = new RegExp(`^(.+)${this.name}$`).exec(services[0]), organization = match ? match[1] : "";
32240
32259
  return `${organization !== "shopify--" ? `${organization}` : ""}${this.name}.${process.env.SPIN_FQDN}`;
32241
- } else
32242
- return DevServerUtils.inferenceModeAndProjectIsEdition2016(this.name) ? (this.assertRunningLocally2016(), `${prefix}.myshopify.io`) : (this.assertRunningLocally2024(), `${prefix}.shop.dev`);
32260
+ } else return DevServerUtils.inferenceModeAndProjectIsEdition2016(this.name) ? (this.assertRunningLocally2016(), `${prefix}.myshopify.io`) : (this.assertRunningLocally2024(), `${prefix}.shop.dev`);
32243
32261
  }
32244
32262
  assertRunningLocally2024() {
32245
32263
  let [addr, port] = DevServerUtils.getAddrPort2024(this.name);
@@ -32261,8 +32279,7 @@ var DevServer = class {
32261
32279
  if (!fs.readdirSync("/run/ports2").find((file) => file.endsWith(`--${this.name}`)))
32262
32280
  throw new Error(`DevServer for '${this.name}' not present in this spin environment`);
32263
32281
  return `${prefix}.${this.name}.${process.env.SPIN_FQDN}`;
32264
- } else
32265
- return DevServerUtils.inferenceModeAndProjectIsEdition2016("shopify") ? (this.assertRunningLocally2016(), `${prefix}.myshopify.io`) : (this.assertRunningLocally2024(), `${prefix}.my.shop.dev`);
32282
+ } else return DevServerUtils.inferenceModeAndProjectIsEdition2016("shopify") ? (this.assertRunningLocally2016(), `${prefix}.myshopify.io`) : (this.assertRunningLocally2024(), `${prefix}.my.shop.dev`);
32266
32283
  }
32267
32284
  assertRunningLocally2024() {
32268
32285
  let [addr, port] = DevServerUtils.getAddrPort2024("shopify");
@@ -33031,7 +33048,7 @@ var pipeline = promisify(Stream.pipeline), INTERNALS = Symbol("Body internals"),
33031
33048
  formData2.append(name, value);
33032
33049
  return formData2;
33033
33050
  }
33034
- let { toFormData } = await import("./multipart-parser-QKUAJJP5.js");
33051
+ let { toFormData } = await import("./multipart-parser-WSNBP656.js");
33035
33052
  return toFormData(this.body, ct);
33036
33053
  }
33037
33054
  /**
@@ -34083,14 +34100,6 @@ var JWTInvalid = class extends JOSEError {
34083
34100
  }
34084
34101
  code = "ERR_JWT_INVALID";
34085
34102
  };
34086
- var JWKSMultipleMatchingKeys = class extends JOSEError {
34087
- [Symbol.asyncIterator];
34088
- static get code() {
34089
- return "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
34090
- }
34091
- code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
34092
- message = "multiple matching keys found in the JSON Web Key Set";
34093
- };
34094
34103
 
34095
34104
  // ../../node_modules/.pnpm/jose@5.8.0/node_modules/jose/dist/node/esm/lib/is_object.js
34096
34105
  init_cjs_shims();
@@ -34154,8 +34163,7 @@ function randomUUID() {
34154
34163
  return crypto.randomUUID();
34155
34164
  }
34156
34165
  function nonRandomUUID(subject) {
34157
- let namespace = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
34158
- return crypto.createHash("sha1").update(Buffer.from(namespace.replace(/-/g, ""), "hex")).update(subject).digest().toString("hex").replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
34166
+ return crypto.createHash("sha1").update(Buffer.from("6ba7b810-9dad-11d1-80b4-00c04fd430c8".replace(/-/g, ""), "hex")).update(subject).digest().toString("hex").replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
34159
34167
  }
34160
34168
 
34161
34169
  // ../cli-kit/dist/private/node/session/exchange.js
@@ -34397,6 +34405,36 @@ Request ID: ${requestId}
34397
34405
  };
34398
34406
  }
34399
34407
 
34408
+ // ../cli-kit/dist/private/node/request-ids.js
34409
+ init_cjs_shims();
34410
+ var RequestIDCollection = class _RequestIDCollection {
34411
+ constructor() {
34412
+ this.requestIds = [];
34413
+ }
34414
+ static getInstance() {
34415
+ return _RequestIDCollection.instance || (_RequestIDCollection.instance = new _RequestIDCollection()), _RequestIDCollection.instance;
34416
+ }
34417
+ /**
34418
+ * Add a request ID to the collection
34419
+ * We only report the first MAX_REQUEST_IDS request IDs.
34420
+ */
34421
+ addRequestId(requestId) {
34422
+ requestId && this.requestIds.length < 100 && this.requestIds.push(requestId);
34423
+ }
34424
+ /**
34425
+ * Get all collected request IDs
34426
+ */
34427
+ getRequestIds() {
34428
+ return this.requestIds;
34429
+ }
34430
+ /**
34431
+ * Clear all stored request IDs
34432
+ */
34433
+ clear() {
34434
+ this.requestIds = [];
34435
+ }
34436
+ }, requestIdsCollection = RequestIDCollection.getInstance();
34437
+
34400
34438
  // ../cli-kit/dist/public/node/api/graphql.js
34401
34439
  async function performGraphQLRequest(options2) {
34402
34440
  let { token, addedHeaders, queryAsString, variables, api, url, responseOptions, unauthorizedHandler } = options2, headers = {
@@ -34404,20 +34442,28 @@ async function performGraphQLRequest(options2) {
34404
34442
  ...buildHeaders(token)
34405
34443
  };
34406
34444
  debugLogRequestInfo(api, queryAsString, url, variables, headers);
34407
- let clientOptions = { agent: await httpsAgent(), headers }, client = new GraphQLClient(url, clientOptions);
34408
- return runWithTimer("cmd_all_timing_network_ms")(async () => {
34409
- let response = await retryAwareRequest({ request: () => client.rawRequest(queryAsString, variables), url }, responseOptions?.handleErrors === !1 ? void 0 : errorHandler(api), unauthorizedHandler);
34410
- responseOptions?.onResponse && responseOptions.onResponse(response);
34445
+ let clientOptions = { agent: await httpsAgent(), headers }, client = new GraphQLClient(url, clientOptions), performRequest = async () => {
34446
+ let fullResponse;
34411
34447
  try {
34412
- let requestId = response.headers.get("x-request-id");
34413
- await addPublicMetadata(async () => ({
34414
- cmd_all_last_graphql_request_id: requestId ?? void 0
34415
- }));
34416
- } catch {
34448
+ return fullResponse = await client.rawRequest(queryAsString, variables), await logLastRequestIdFromResponse(fullResponse), fullResponse;
34449
+ } catch (error) {
34450
+ throw error instanceof ClientError && await logLastRequestIdFromResponse(error.response), error;
34417
34451
  }
34418
- return response.data;
34452
+ };
34453
+ return runWithTimer("cmd_all_timing_network_ms")(async () => {
34454
+ let response = await retryAwareRequest({ request: performRequest, url }, responseOptions?.handleErrors === !1 ? void 0 : errorHandler(api), unauthorizedHandler);
34455
+ return responseOptions?.onResponse && responseOptions.onResponse(response), response.data;
34419
34456
  });
34420
34457
  }
34458
+ async function logLastRequestIdFromResponse(response) {
34459
+ try {
34460
+ let requestId = response.headers.get("x-request-id");
34461
+ requestIdsCollection.addRequestId(requestId), await addPublicMetadata(() => ({
34462
+ cmd_all_last_graphql_request_id: requestId ?? void 0
34463
+ }));
34464
+ } catch {
34465
+ }
34466
+ }
34421
34467
  async function graphqlRequest(options2) {
34422
34468
  return performGraphQLRequest({
34423
34469
  ...options2,
@@ -34576,8 +34622,7 @@ The CLI is currently unable to prompt for reauthentication.`, "Restart the CLI p
34576
34622
  } catch (error) {
34577
34623
  if (error instanceof InvalidGrantError)
34578
34624
  throwOnNoPrompt(), newSession = await executeCompleteFlow(applications, fqdn);
34579
- else
34580
- throw error instanceof InvalidRequestError ? (await remove(), new AbortError(`
34625
+ else throw error instanceof InvalidRequestError ? (await remove(), new AbortError(`
34581
34626
  Error validating auth session`, "We've cleared the current session, please try again")) : error;
34582
34627
  }
34583
34628
  }
@@ -34820,6 +34865,7 @@ export {
34820
34865
  restRequestUrl,
34821
34866
  restRequestHeaders,
34822
34867
  isThemeAccessSession,
34868
+ requestIdsCollection,
34823
34869
  graphqlRequest,
34824
34870
  graphqlRequestDoc,
34825
34871
  require_lib3 as require_lib2,
@@ -34858,4 +34904,4 @@ mime-types/index.js:
34858
34904
  * MIT Licensed
34859
34905
  *)
34860
34906
  */
34861
- //# sourceMappingURL=chunk-76IKKNIT.js.map
34907
+ //# sourceMappingURL=chunk-ESJZHEJV.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  require_merge2,
3
3
  require_out
4
- } from "./chunk-KYB6A4PE.js";
4
+ } from "./chunk-CRHXI6PS.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require,
8
8
  init_cjs_shims
9
- } from "./chunk-POZ5MGPT.js";
9
+ } from "./chunk-PKR7KJ6P.js";
10
10
 
11
11
  // ../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js
12
12
  var require_slash = __commonJS({
@@ -659,4 +659,4 @@ export {
659
659
  require_globby,
660
660
  require_indent_string
661
661
  };
662
- //# sourceMappingURL=chunk-6WYZ3SZB.js.map
662
+ //# sourceMappingURL=chunk-EZFQXNK5.js.map